Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate veFeeDistributor checkpoints #747

Closed
alexcos20 opened this issue Apr 24, 2023 · 1 comment · Fixed by #746
Closed

Automate veFeeDistributor checkpoints #747

alexcos20 opened this issue Apr 24, 2023 · 1 comment · Fixed by #746
Labels
Type: Enhancement New feature or request Type: Question Further information is requested

Comments

@alexcos20
Copy link
Member

alexcos20 commented Apr 24, 2023

Due to veFeeDistributor design, we need to call checkpoint_token and checkpoint_total_supply every Thu, after 00:00.

We can do it with Gelato, but there is a caveat: Only owner is guaranteed to have success on those calls, for other addresses it may fail and rewards can fail.

Status quo: there is a multisig that owns veFeeDistributor, we generate tx from df-py and somebody signs them and executes them.

Proposal:

  • write a contract that owns veFeeDistributor and it's owned by multisig (veFeeOwner.sol)
  • write a gelato cron to automate checkpoint_token and checkpoint_total_supply
  • remove code from df-py
@alexcos20 alexcos20 added the Type: Enhancement New feature or request label Apr 24, 2023
@mihaisc
Copy link
Contributor

mihaisc commented Sep 24, 2023

@alexcos20 is this still relevant?

@LoznianuAnamaria LoznianuAnamaria added the Type: Question Further information is requested label Sep 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement New feature or request Type: Question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants