bug(CL): rounding behavior is incorrect, analyze other truncations and roundings #3891
Labels
F: concentrated-liquidity
Tracking the development of concentrated liquidity feature to improve filtering on the project board
Background
The comment mentions that we need to round up but does banker's rounding. Instead, we need to first take
Ceil()
and thenTruncateInt()
.osmosis/x/concentrated-liquidity/swaps.go
Lines 330 to 333 in f2a497d
osmosis/x/concentrated-liquidity/swaps.go
Lines 461 to 464 in f2a497d
Suggested Design
Fix the 2 problems
Review other calls to
TruncateInt
andRountInt
in CL module to see if truncations/roundings are safeAcceptance Criteria
TruncateInt
in CL module are analyzed and correctRountInt
in CL module are analyzed and correctThe text was updated successfully, but these errors were encountered: