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 }