From fe20699334873b9b83916067f47a734bc561a21f Mon Sep 17 00:00:00 2001 From: Alex Coseru Date: Wed, 19 Aug 2020 18:48:31 +0300 Subject: [PATCH] fix getDTPrice --- src/balancer/OceanPool.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/balancer/OceanPool.ts b/src/balancer/OceanPool.ts index 6cb1fbf68..a9cb2493b 100644 --- a/src/balancer/OceanPool.ts +++ b/src/balancer/OceanPool.ts @@ -307,8 +307,7 @@ export class OceanPool extends Pool { console.error('oceanAddress is not defined') return null } - await this.getDTAddress(account, poolAddress) - return super.getSpotPrice(account, poolAddress, this.dtAddress, this.oceanAddress) + return this.getOceanNeeded(account, poolAddress, '1') } /**