From bb895347048dfc5f8e9bdf0f1131c742206f6368 Mon Sep 17 00:00:00 2001 From: alexcos20 Date: Mon, 16 Nov 2020 08:48:45 -0800 Subject: [PATCH] fullfill promises --- src/balancer/OceanPool.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/balancer/OceanPool.ts b/src/balancer/OceanPool.ts index a09661f5..71431b0b 100644 --- a/src/balancer/OceanPool.ts +++ b/src/balancer/OceanPool.ts @@ -574,7 +574,7 @@ export class OceanPool extends Pool { this.logger.error('ERROR: OCEAN approve failed') return null } - return this.swapExactAmountOut( + const tx = await this.swapExactAmountOut( account, poolAddress, this.oceanAddress, @@ -583,6 +583,7 @@ export class OceanPool extends Pool { dtAmountWanted, maxPrice ) + return tx } /** @@ -630,7 +631,7 @@ export class OceanPool extends Pool { this.logger.error('ERROR: OCEAN approve failed') return null } - return this.swapExactAmountIn( + const tx = this.swapExactAmountIn( account, poolAddress, this.oceanAddress, @@ -639,6 +640,7 @@ export class OceanPool extends Pool { minimumdtAmountWanted, maxPrice ) + return tx } /** @@ -685,7 +687,7 @@ export class OceanPool extends Pool { this.logger.error('ERROR: DT approve failed') return null } - return this.swapExactAmountIn( + const tx = this.swapExactAmountIn( account, poolAddress, dtAddress, @@ -694,6 +696,7 @@ export class OceanPool extends Pool { oceanAmountWanted, maxPrice ) + return tx } /**