[CL][bug]: Can trigger panic/chain halt due to incorrect bound check #5556
Labels
F: concentrated-liquidity
Tracking the development of concentrated liquidity feature to improve filtering on the project board
Background
The bound check below is incorrect and allows for the case where
curSqrtPrice = upperSqrtPrice
to be routed intoLiquidity1
, triggering a division by zero. It is trivial to get any pool to this state, including ones that protorev/txfees swap against in beginblock, allowing this issue to be easily escalated to a chain halt.osmosis/x/concentrated-liquidity/math/math.go
Line 184 in 2f30676
Suggested Design
Acceptance Criteria
The text was updated successfully, but these errors were encountered: