ConcentratedLiquidityPoolHelper: getTickState() might run out of gas #17
Labels
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
bug
Warden finding
duplicate
Another warden found this issue
sponsor acknowledged
Technically the issue is correct, but we're not going to resolve it for XYZ reasons
Handle
hickuphh3
Vulnerability details
Impact
getTickState()
attempts to fetch the state of all inserted ticks (includingMIN_TICK
andMAX_TICK
) of a pool. Depending on the tick spacing, this function may run out of gas.Recommended Mitigation Steps
Have a starting index parameter to start the iteration from. Also,
tickCount
can be made use of more meaningfully to limit the number of iterations performed.The text was updated successfully, but these errors were encountered: