Skip to content

Commit

Permalink
uncomment the is_stable field for the dedust pool
Browse files Browse the repository at this point in the history
  • Loading branch information
zakhar-petukhov committed Aug 15, 2024
1 parent 700f3bd commit 2c9be7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/rates/market.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2c9be7c

Please sign in to comment.