balancer / balancer-v2-monorepo

Balancer V2 Monorepo
https://balancer.fi/
GNU General Public License v3.0
315 stars 382 forks source link

L2GaugeCheckpointer: fix checkpoint timestamp #2524

Closed jubeira closed 1 year ago

jubeira commented 1 year ago

We are currently checkpointing the current week.

The problem is that for a gauge to mint, it needs to have votes over a week, wait for the week to finish, and then perform the checkpoint.

If the votes change from week to week (in particular, if they go down), the relative weight filter may filter out gauges that need to be checkpointed.

The current checkpointer still allows checkpointing individual gauges or lowering the threshold to 0, so it's not impossible to poke the gauges in those cases. But it'd be more efficient to just fix the filter to consider the previous period (or any custom period, now that we are at it).