-
Notifications
You must be signed in to change notification settings - Fork 51
Added Restaking Rewards Router Contract #353
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
base: master
Are you sure you want to change the base?
Conversation
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.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 946be8a4df
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
📊 Forge Coverage ReportGenerated by workflow run #573 |
Note
Introduces a new upgradable router contract and tooling to deploy and validate it.
RestakingRewardsRouter:UUPSUpgradeable; forwards received ETH toliquidityPoolinreceive(); role-gatedsetRecipientAddressandrecoverERC20forrewardTokenAddress; upgrade authorization viaIRoleRegistry; emitsEthSent,RecipientAddressSet,Erc20Recovered.script/DeployRestakingRewardsRouter.s.sol: CREATE2 deploy ofRestakingRewardsRouterandUUPSProxywith mainnetROLE_REGISTRY,LIQUIDITY_POOL,REWARD_TOKEN_ADDRESS, initializer data, and JSON logging.test/RestakingRewardsRouter.t.sol: covers constructor/init, ETH forwarding and failure path, recipient management, ERC20 recovery and role checks, upgrade authorization and state preservation, and edge cases.Written by Cursor Bugbot for commit 06fa88d. This will update automatically on new commits. Configure here.