From 2bc529a67ab95393ad4b4f7ad4a1f66a062b2e77 Mon Sep 17 00:00:00 2001 From: Zakhar Petukhov Date: Thu, 15 Aug 2024 19:11:30 +0800 Subject: [PATCH] uncomment the is_stable field for the dedust pool --- pkg/rates/market.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pkg/rates/market.go b/pkg/rates/market.go index d1755b4b..1ba0c9e9 100644 --- a/pkg/rates/market.go +++ b/pkg/rates/market.go @@ -492,9 +492,9 @@ func convertedDedustPoolResponse(pools map[ton.AccountID]float64, respBody io.Re return ton.AccountID{}, 0, err } var isStable bool - //if record[8] == "true" { // TODO: waiting db update - // isStable = true - //} + if record[8] == "true" { + isStable = true + } calculatedAccount, price := calculatePoolPrice(firstAsset, secondAsset, firstReserve, secondReserve, firstDecimals, secondDecimals, pools, isStable) return calculatedAccount, price, nil @@ -513,6 +513,10 @@ func convertedDedustPoolResponse(pools map[ton.AccountID]float64, respBody io.Re } } + fmt.Println() + fmt.Println("COUNT", len(pools)) + fmt.Println() + return pools, nil }