1
0
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:
Matthias Kretschmann 2020-08-19 17:58:46 +02:00 committed by GitHub
commit 0af54a09e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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')
}
/**