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 2bc529a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 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 All @@ -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
}

Expand Down

0 comments on commit 2bc529a

Please sign in to comment.