[CL Incentives] Add check to only sync uptime accums when necessary #4422
Labels
F: concentrated-liquidity
Tracking the development of concentrated liquidity feature to improve filtering on the project board
Milestone
Background
We currently sync uptime accumulators before any operation that uses their values (e.g. tick init, tick crossing etc.). Since a single function is technically capable of triggering many of these updates, we are likely taking on redundant computation in the average case.
Suggested Design
LastLiquidityUpdate < ctx.Blocktime()
before all uses ofupdateUptimeAccumulatorsToNow
Acceptance Criteria
The text was updated successfully, but these errors were encountered: