yash/feat/harcode-boundries#383
Open
0xpanicError wants to merge 6 commits intopankaj/feat/security-upgradesfrom
Open
yash/feat/harcode-boundries#3830xpanicError wants to merge 6 commits intopankaj/feat/security-upgradesfrom
0xpanicError wants to merge 6 commits intopankaj/feat/security-upgradesfrom
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b9f7592517
ℹ️ 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".
Contributor
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit ca46d04. Configure here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Note
High Risk
Touches core liquidity pool accounting and redemption/admin parameter paths; the new
MIN_AMOUNT_FOR_SHAREchecks can cause unexpected reverts in deposits/withdrawals/rebases if misconfigured during upgrades.Overview
Adds configurable on-chain guardrails to prevent unsafe parameterization across core contracts.
EtherFiAdminnow takes immutable caps forMAX_ACCEPTABLE_REBASE_APR_IN_BPSandMAX_VALIDATOR_TASK_BATCH_SIZE, validating constructor inputs and enforcing the caps inupdateAcceptableRebaseApr()andsetValidatorTaskBatchSize().EtherFiRedemptionManagersimilarly introduces immutable maxima for exit fee, fee split to treasury, and low-watermark, and applies them across initialization and setters (with updated revert messages).LiquidityPoolintroduces an immutableMIN_AMOUNT_FOR_SHAREand enforces it via_checkMinAmountForShare()after all state changes that can affect the eETH share price (deposits, withdrawals, rebases, burns, ETH accounting/receive), reverting withInvalidAmountForSharewhen the floor is violated. Tests are expanded substantially, including a new mainnet-fork suite covering all affected entry points;TestSetupand other tests are updated for the new constructor args and tighter exit-fee bounds.Reviewed by Cursor Bugbot for commit ca46d04. Bugbot is set up for automated code reviews on this repo. Configure here.