Skip to content

Conversation

@aalavandhan
Copy link
Member

  • 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).

@aalavandhan aalavandhan requested a review from nms-7 March 11, 2025 17:20
@aalavandhan aalavandhan changed the title Removed rollover fees, in favor of daily rebalance. Removed rollover fees in favor of daily rebalance Mar 11, 2025
@aalavandhan aalavandhan requested a review from brandoniles March 11, 2025 17:21
@aalavandhan aalavandhan force-pushed the rollover-fee-removal branch from 4169f08 to 1474d96 Compare March 11, 2025 17:23
@openzeppelin-code
Copy link

openzeppelin-code bot commented Mar 11, 2025

Removed rollover fees in favor of daily rebalance

Generated at commit: 6779862bb613f82e2d08d12b44c1ba91200feb38

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
1
0
0
3
25
29
Dependencies Critical
High
Medium
Low
Note
Total
0
0
0
0
0
0

For more details view the full report in OpenZeppelin Code Inspector

@aalavandhan aalavandhan force-pushed the rollover-fee-removal branch from 1474d96 to 061aaf9 Compare March 12, 2025 12:29
Copy link
Member

@brandoniles brandoniles left a 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>
@aalavandhan aalavandhan force-pushed the rollover-fee-removal branch 3 times, most recently from af81f85 to 6e43a45 Compare March 25, 2025 22:05
@aalavandhan aalavandhan force-pushed the rollover-fee-removal branch from 6e43a45 to 0fc7733 Compare March 26, 2025 18:26
@aalavandhan aalavandhan added WIP work in progress in-review Currently in review and removed WIP work in progress labels Apr 1, 2025
/// @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(
Copy link
Member

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done 👍

Copy link
Member

@brandoniles brandoniles left a 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>
@aalavandhan aalavandhan removed the in-review Currently in review label Apr 16, 2025
@aalavandhan aalavandhan merged commit abc1164 into fee-restructure Apr 18, 2025
@aalavandhan aalavandhan deleted the rollover-fee-removal branch April 18, 2025 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants