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

Handle assets with low liquidity (#468)

* Handle assets with low liquidity

`isConsumable` is : 
- 'true' when pool/exchange created and enough datatokens are available ( can we check for exchange?)
- 'false' when pool/exchange created and not enough datatokens are avaialbe
- '' when pool/exchange not created

* isConsumable optional
This commit is contained in:
mihaisc 2020-11-24 15:34:12 +02:00 committed by GitHub
parent 9e809d14cb
commit 181d260e0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,6 +2,7 @@ export interface BestPrice {
type: 'pool' | 'exchange' | ''
address: string
value: number
isConsumable?: 'true' | 'false' | ''
ocean?: number
datatoken?: number
pools: string[]