Skip to content

Commit 2bc529a

Browse files
uncomment the is_stable field for the dedust pool
1 parent 700f3bd commit 2bc529a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

pkg/rates/market.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -492,9 +492,9 @@ func convertedDedustPoolResponse(pools map[ton.AccountID]float64, respBody io.Re
492492
return ton.AccountID{}, 0, err
493493
}
494494
var isStable bool
495-
//if record[8] == "true" { // TODO: waiting db update
496-
// isStable = true
497-
//}
495+
if record[8] == "true" {
496+
isStable = true
497+
}
498498
calculatedAccount, price := calculatePoolPrice(firstAsset, secondAsset, firstReserve, secondReserve, firstDecimals, secondDecimals, pools, isStable)
499499

500500
return calculatedAccount, price, nil
@@ -513,6 +513,10 @@ func convertedDedustPoolResponse(pools map[ton.AccountID]float64, respBody io.Re
513513
}
514514
}
515515

516+
fmt.Println()
517+
fmt.Println("COUNT", len(pools))
518+
fmt.Println()
519+
516520
return pools, nil
517521
}
518522

0 commit comments

Comments
 (0)