mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
Merge pull request #217 from oceanprotocol/bug/fix_getDtPrice
fix getDTPrice
This commit is contained in:
commit
0af54a09e9
@ -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')
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user