-
Notifications
You must be signed in to change notification settings - Fork 6
feature: fraxusd support #82
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.
ℹ️ 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".
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.
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.
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.
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.
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.
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.
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.
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.
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.
FraxModule Improvements and ChangesOverviewThis document outlines the security fixes, improvements, and new features implemented in the FraxModule contract to address critical issues and align with system requirements. 1. H-01 Missing Withdrawal Cancellation Mechanism Leading to DoSRecommendationMake sure to implement the cancellation flow similarly to how it has been done in EtherFiLiquidModule - this includes both a cancellation hook and a manual cancellation function. Files Changed
Changes Made
2. M-01 Loss of value in Async Withdrawals due to Decimal TruncationRecommendationValidate in Files Changed
Changes Made
3. L-01 Incompatibility with Custodian Async Deposit Flow (DoS)RecommendationThe module should either explicitly support the async flow (accepting fees and skipping the immediate balance check) or, if the intention is to only support synchronous deposits, it should validate the Custodian's state (available assets) before attempting the deposit to prevent gas wastage on doomed transactions. We only want to keep the synchronous flow. Files Changed
Changes Made
4. I-01. Missing Asset Validation Against Custodian ConfigurationRecommendationAdd a check in _deposit to ensure assetToDeposit == custodian.custodianTkn() and a similar check in _withdraw for outputAsset. ResolutionWe have acknowledged the issue. 5. Missing Input ValidationDescriptionThe constructor did not validate that RecommendationAdd zero address validation for custodian in constructor. Files Changed
Changes Made
Summary of All ChangesNew Constants
New Errors
New Events
New Functions
Interface Implementation
Validations Added
ImpactThese changes ensure the module:
|
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.
No description provided.