The ERC4626 standard is not followed correctly in PerpetualAtlanticVaultLP contract #1886
Labels
bug
Something isn't working
downgraded by judge
Judge downgraded the risk level of this issue
duplicate-699
grade-b
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
sufficient quality report
This report is of sufficient quality
Lines of code
https://github.com/code-423n4/2023-08-dopex/blob/main/contracts/perp-vault/PerpetualAtlanticVaultLP.sol#L21
Vulnerability details
Vulnerability details
Impact
In the code4rena dopex contests is especified the following about the
PerpetualAtlanticVaultLP
contract:Contract for the Perpetual Atlantic Vault LP (ERC4626).
Although the contest documentation and certain parts of the contract describe the EIP-4626 standard, the protocol does not adhere to it.
Proof of Concept
For example is missing the
maxDeposit
for maximum amount of the underlying asset that can be deposited into the Vault for the receiver, through a deposit call.and others.
Tools Used
Manual review.
Recommended Mitigation Steps
Go through the standard and follow it for all methods that override methods from the inherited ERC4626 implementation.
Assessed type
Context
The text was updated successfully, but these errors were encountered: