Beginner FriendlyFoundryDeFi
100 EXP
View results
Submission Details
Severity: high
Invalid

The `steaking` contract is not EIP-4626 compliant.

Description:

The steaking contract in its current form where we have the depositIntoVault function does not comply with the ERC4626 standard, which defines a common interface for tokenized vaults to enable intereporability across different DEFI protocols. The ERC4626 standard mandates specific functions and behaviours, such as deposit, mint, withdraw and redeem operations, which the steaking contract does not fully implement or adhere to.

Impact:

Failure to comply with the ERC4626 standard could lead to several issues:

  1. User confusion: Users familiar with ERC4626-compliant vaults may expect certain behaviors and functionalities that the Steaking contract does not provide, leading to potential misuse or misinterpretation of the contract's functionality.

  2. Increased Maintenance and Integration Costs: The lack of standardization may require custom solutions or additional development work to integrate with other protocols, increasing the complexity and cost of maintaining and expanding the system.

Proof of Concept:

The steaking contract does not include key ERC4626 functions such as withdraw and redeem, and its deposit function deviates from the expected behavior outlined in the standard. For example, the contract's depositIntoVault function handles ETH staking and conversion to WETH but does not follow the ERC4626 interface requirements for accepting assets and returning shares in a standardized manner.

Recommended Mitigation:

To achieve ERC4626 compliance, refactor the steaking contract to implement all required functions (deposit, withdraw, mint, and redeem) according to the ERC4626 standard. Ensure that the contract's interface and behavior align with the standard's specifications, allowing seamless integration with other ERC4626-compliant protocols and tools. Additionally, consider conducting a comprehensive review to identify and resolve any other discrepancies with the ERC4626 standard.

Updates

Lead Judging Commences

inallhonesty Lead Judge 10 months ago
Submission Judgement Published
Invalidated
Reason: Out of scope

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.