-
Notifications
You must be signed in to change notification settings - Fork 12
Removed rollover fees in favor of daily rebalance #246
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
Conversation
aalavandhan
commented
Mar 11, 2025
- Removed rollover fees entirely.
- A new "rebalance" operation which can be executed at most once a day is responsible for direct value transfer between perp and the vault.
- When perp needs to be debased, we simply mint the vault more perp tokens.
- When perp needs to be enriched, we transfer some of the vault's underlying tokens into the perp reserve. (Which will then get rolled over into senior tranches through the normal ops).
4169f08 to
1474d96
Compare
Removed rollover fees in favor of daily rebalance
🚨 Report Summary
For more details view the full report in OpenZeppelin Code Inspector |
1474d96 to
061aaf9
Compare
brandoniles
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we take more of a two-sided perspective on rebalancing, then I like the idea of the FeePolicy being the entry point for it, rather than the vault. It would be easy to keep symmetry that way too, as each component would have a "rebalance" function that's called by that policy.
Suggestions Co-authored-by: Brandon Iles <brandon@fragments.org>
af81f85 to
6e43a45
Compare
6e43a45 to
0fc7733
Compare
| /// @notice Updates the rebalance rate. | ||
| /// @param debasementSystemTVLPerc_ The percentage of system tvl out of perp on debasement. | ||
| /// @param enrichmentSystemTVLPerc_ The percentage of system tvl into perp on enrichment. | ||
| function updateMaxRebalancePerc( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updateRebalanceRates is probably best, given the names moved away from the "max" terminology. We can keep these inline.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done 👍
brandoniles
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Co-authored-by: Brandon Iles <brandon@fragments.org>
Co-authored-by: Brandon Iles <brandon@fragments.org>
Rebalancing updates
Pair operations