-
Notifications
You must be signed in to change notification settings - Fork 12
Pair operations #247
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
Pair operations #247
Conversation
Pair operations
🚨 Report Summary
For more details view the full report in OpenZeppelin Code Inspector |
6e43a45 to
0fc7733
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.
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>
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
Mint2 & Redeem2 => Ability to mint/redeem spot and stampl as matching pairs.