-
Notifications
You must be signed in to change notification settings - Fork 9
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
curve ERC4626 #11
base: master
Are you sure you want to change the base?
curve ERC4626 #11
Conversation
contract CurveERC4626 is ERC4626, RewardsClaimer { | ||
using SafeTransferLib for ERC20; | ||
|
||
/// @notice The Convex Rewards contract (for claiming rewards) |
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.
*the Curve gauge
@param _asset The ERC20 compliant token the Vault should accept. | ||
@param _name The name for the vault token. | ||
@param _symbol The symbol for the vault token. | ||
@param _gauge The Convex Rewards contract (for claiming rewards). |
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.
*the Curve gauge (for staking tokens & claiming rewards)
@param _name The name for the vault token. | ||
@param _symbol The symbol for the vault token. | ||
@param _gauge The Convex Rewards contract (for claiming rewards). | ||
@param _rewardsDestination the address to send CRV and CVX. |
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.
not necessarily CRV and CVX, it can be BAL for Balancer gauges too. And CVX don't work with a gauge system, only Curve distributes CRV this way
You could probably rename it from Code looks good (just fix the comments). After I see some unit tests I'll be comfident to merge, the code is very similar to what we use in prod already for staking in gauges :) |
#9