Allow negative range accumulators #5854
Labels
F: concentrated-liquidity
Tracking the development of concentrated liquidity feature to improve filtering on the project board
T:bug 🐛
Something isn't working
Background
We should allow negative range accumulators.
Currently, this is disallowed by the validation in
DecCoins
, leaving to a panic.Specific way to reproduce this is by initializing the lower tick when the upper tick is already initialized and current tick > upper tick.
In that case, the lower tick's accumulator value is smaller than upper tick's accumulator value.
Suggested Design
NegDecCoins
struct that serializes similarly toDecCoins
into bytes but does not implement the negative coin validation.Acceptance Criteria
The text was updated successfully, but these errors were encountered: