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

External Review: veBalFeeInjector #245

Closed
Tritium-VLK opened this issue Jun 5, 2023 · 2 comments
Closed

External Review: veBalFeeInjector #245

Tritium-VLK opened this issue Jun 5, 2023 · 2 comments

Comments

@Tritium-VLK
Copy link
Member

The Maxis currently pay fees into the veBalFee distributor in the form of bb-a-usd and BAL rendered from collecting and selling our fees.

Fee processing is handled on a biweekly basis to align with the 2 week voting epochs (aura). As a result, each week there are 2 weeks of fees left over that must be paid in over 2 separate payments.

The Maxi's have a long list of these kinds of regular operations and are prone to forgetting things as they stack up. We also shouldn't have to sign every week to keep the fees flowing.

The veBalFeeInjector is meant to receive the proceeds from each fee processing round and pay it out over 2 chunks.

@mkflow27 has already done some initial review after we started working on it together. The need for these reviews hit right at the same time as governance around orb kicked into steam, so this just seemed a way to focus on work getting done. I guess it created problems sorry.

The net result is that this contract has been waiting for review for a rather long time, and has had a lot of eyes on it. Would just like a stamp of approval before deploying it.

The repo can be found here, complete with a readme and some tests written in brownie by myself, and in foundry by @mkflow27

https://github.com/BalancerMaxis/veBalFeeInjector

@rabmarut
Copy link

rabmarut commented Jun 5, 2023

The Integrations Team will target this Friday, June 9, to complete this review. In the event that we need more time, I will post an update here as soon as possible.

@rabmarut
Copy link

rabmarut commented Jun 9, 2023

@Tritium-VLK

Thanks to @mkflow27 for the majority of this review. I've also given it a quick pass. The code should function as intended, and at the very least there are avenues for recovering funds if ever the contract should enter an undesirable state. All findings are purely informational.

https://quark-ceres-740.notion.site/veBalFeesInjector-b20ab45d393e4daf9edc0e8c31cf50ae?pvs=4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants