DeFiFoundrySolidity
16,653 OP
View results
Submission Details
Severity: low
Invalid

Missing emergency withdrawal functionality in strategy contracts

Description

The strategy contracts lack implementation of the emergencyWithdraw() function which is meant to allow management to manually withdraw funds from yield sources after a strategy shutdown. This reduces the ability to handle emergency situations where funds need to be quickly retrieved from the underlying protocols.

The function should be implemented to allow privileged users to withdraw a specified amount of funds in emergency scenarios, following the standard pattern from the base strategy contract.

Recommendation

Implement the emergencyWithdraw() function in all strategy contracts, with appropriate access controls and safety checks. The function should accept an amount parameter and allow management to withdraw funds specifically from the yield source after the strategy has been shut down.

Updates

Appeal created

inallhonesty Lead Judge 6 months ago
Submission Judgement Published
Invalidated
Reason: Design choice
inallhonesty Lead Judge 6 months ago
Submission Judgement Published
Invalidated
Reason: Design choice

Support

FAQs

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