From 181d260e0ac71aa90307b37fd2fd7618ce972603 Mon Sep 17 00:00:00 2001 From: mihaisc Date: Tue, 24 Nov 2020 15:34:12 +0200 Subject: [PATCH] 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 --- src/ddo/interfaces/BestPrice.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ddo/interfaces/BestPrice.ts b/src/ddo/interfaces/BestPrice.ts index 112bcfb2..eddb2077 100644 --- a/src/ddo/interfaces/BestPrice.ts +++ b/src/ddo/interfaces/BestPrice.ts @@ -2,6 +2,7 @@ export interface BestPrice { type: 'pool' | 'exchange' | '' address: string value: number + isConsumable?: 'true' | 'false' | '' ocean?: number datatoken?: number pools: string[]