Skip to content

Commit

Permalink
fix getDTPrice
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcos20 authored Aug 19, 2020
1 parent 6cbfa4d commit fe20699
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/balancer/OceanPool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}

/**
Expand Down

0 comments on commit fe20699

Please sign in to comment.