mirror of
https://github.com/oceanprotocol/react.git
synced 2024-12-24 10:06:20 +01:00
getCheapestPool return proper value
This commit is contained in:
parent
e87faa94df
commit
90667040fe
@ -10,6 +10,12 @@ export async function getCheapestPool(
|
||||
dataTokenAddress
|
||||
)
|
||||
Logger.log('DT Pool found', tokenPools)
|
||||
if(tokenPools===undefined || tokenPools.length===0){
|
||||
return {
|
||||
poolAddress: '',
|
||||
poolPrice: '0'
|
||||
}
|
||||
}
|
||||
let cheapestPoolAddress
|
||||
let cheapestPoolPrice = new Decimal(999999999999)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user