MorpheusAI

MorpheusAI
Foundry
22,500 USDC
View results
Submission Details
Severity: low
Invalid

`Distribution:depositToken` cannot be updated leading to unexpected behavior

Description

The depositToken is supposed to be stETH which is an upgradeable contract, but the state variable depositToken in Distribution.sol cannot be updated even if the stETH is upgraded to a new implementation. This can lead to unexpected behavior.

Recommendation

Consider adding a setDepositToken function to Distribution.sol to update the depositToken state variable.

+ function setDepositToken(address _depositToken) external onlyOwner {
+ depositToken = _depositToken;
+ }
Updates

Lead Judging Commences

inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Design choice

Support

FAQs

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