1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

fix fre bug (#649)

This commit is contained in:
Alex Coseru 2021-03-08 14:23:10 +02:00 committed by GitHub
parent b552f2f23e
commit fb3f61a5c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -322,6 +322,7 @@ export class OceanFixedRateExchange {
.call()
result.fixedRate = this.web3.utils.fromWei(result.fixedRate)
result.supply = this.web3.utils.fromWei(result.supply)
result.exchangeID = exchangeId
return result
}
@ -377,7 +378,6 @@ export class OceanFixedRateExchange {
const results = await Promise.all(promises)
for (let j = 0; j < results.length; j++) {
const constituents = results[j]
constituents.exchangeID = events[i].returnValues[0]
if (
constituents.active === true &&
constituents.dataToken.toLowerCase() === dataTokenAddress.toLowerCase()