[CL]: Abstract priceToTick loop to helper function #3985
Labels
C:x/concentrated-liquidity
F: concentrated-liquidity
Tracking the development of concentrated liquidity feature to improve filtering on the project board
Milestone
Background
When computing PriceToTick, we currently loop through exponents (incrementing or decrementing depending on if the desired price is above or below 1) until we reach the first exponent that is greater than the desired price:
osmosis/x/concentrated-liquidity/internal/math/tick.go
Lines 124 to 143 in 00c430b
This should be abstracted into a helper function with tests.
#3874 (comment)
Suggested Design
Abstract the logic into a helper function located within tick.go.
Acceptance Criteria
The text was updated successfully, but these errors were encountered: