Skip to content

Conversation

@aalavandhan
Copy link
Member

Mint2 & Redeem2 => Ability to mint/redeem spot and stampl as matching pairs.

@openzeppelin-code
Copy link

openzeppelin-code bot commented Mar 14, 2025

Pair operations

Generated at commit: 5bdecd34fd0191503a820971be025aa28dce112f

🚨 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 changed the title Pair opartions Pair operations Mar 14, 2025
@aalavandhan aalavandhan force-pushed the rollover-fee-removal branch 3 times, most recently 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
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.

I'd like to talk about the ratio computation strategy before digging into the mint2 & redeem2 functions themselves. But here are some comments from an initial pass.

On naming:
Using the term "note" to describe the vault is ambiguous, since perp is technically also a note. We should call the rotation vault notes something more specific, like maybe "stAMPL" or "rolloverVaultNotes".

Then see also the difference between redemption and burning.

Co-authored-by: Brandon Iles <brandon@fragments.org>
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

@aalavandhan aalavandhan merged commit 6779862 into rollover-fee-removal Apr 18, 2025
@aalavandhan aalavandhan deleted the pair-ops branch April 18, 2025 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in-review Currently in review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants