mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
extra check in searchForDT
This commit is contained in:
parent
6932dfd770
commit
6f22b930dc
@ -347,7 +347,7 @@ export class OceanFixedRateExchange {
|
||||
for (let i = 0; i < events.length; i++) {
|
||||
const constituents = await this.getExchange(events[i].returnValues[0])
|
||||
constituents.exchangeID = events[i].returnValues[0]
|
||||
if (constituents.active === true) {
|
||||
if (constituents.active === true && constituents.dataToken === dataTokenAddress) {
|
||||
const supply = new BigNumber(this.web3.utils.fromWei(constituents.supply))
|
||||
const required = new BigNumber(minSupply)
|
||||
if (supply >= required) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user