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:
parent
b552f2f23e
commit
fb3f61a5c5
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user