-
Notifications
You must be signed in to change notification settings - Fork 2
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
The ERC4626 standard is not followed correctly #247
Comments
gzeon-c4 marked the issue as duplicate of #33 |
gzeon-c4 marked the issue as sufficient quality report |
gzeon-c4 marked the issue as not a duplicate |
gzeon-c4 marked the issue as duplicate of #33 |
JustDravee marked the issue as not a duplicate |
Although it may seem similar to all the others about the compliance to EIP5095, this is the only one which mentioned the rule on maxDeposit and focusing on EIP4626. |
JustDravee marked the issue as satisfactory |
yanisepfl (sponsor) disputed |
As much as we want to follow erc4626 as much as possible, it is not in our specs, as opposed to erc5095 which is why we confirmed: #210. Also, the comment on Finally, the fact that we do not implement ERC4626's For those reasons, we dispute this issue. |
JustDravee marked the issue as unsatisfactory: |
I don't understand why this whole finding get invalidated. In Description section i mentioned that And recommendation on i know i mistakely mentioned if i think 3 of them are still valid(partially)(if i submited them individually). like this QA Waiting for your final judgment, sorry if this was a childish comment, thanks for your time. |
JustDravee marked the issue as duplicate of #210 |
JustDravee marked the issue as partial-50 |
Hi @0xhacksmithh |
Lines of code
https://github.com/code-423n4/2024-02-spectra/blob/main/src/tokens/PrincipalToken.sol#L441-L443
https://github.com/code-423n4/2024-02-spectra/blob/main/src/tokens/PrincipalToken.sol#L460-L462
https://github.com/code-423n4/2024-02-spectra/blob/main/src/tokens/PrincipalToken.sol#L483-L485
Vulnerability details
Description
As per EIP-4626, the maxDeposit method "MUST factor in both global and user-specific limits, like if deposits are entirely disabled (even temporarily) it MUST return 0.". This is not the case currently, as even if the contract is paused, the maxDeposit method will still return what it usually does.
maxMint
maxWithdraw
maxRedeem
All of the above functions should return 0 when their respective functions are disabled
Proof of Concept
Tools Used
Manual Review
Recommended Mitigation Steps
All functions listed above should be modified to meet the specifications of EIP-4626.
Go through the EIP-4626 standard and follow it for all methods that override methods from the inherited ERC4626 implementation.
Assessed type
ERC4626
The text was updated successfully, but these errors were encountered: