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