Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: medium
Invalid

No withdrawal function are implemented for deposited funds in the entrypoint.

Description

MondrianWallet implements the addDeposit function to send funds to the EntryPoint. However, no withdrawal function is implemented, which will prevent users from retrieving the money they've sent if they no longer want to use it or if they've sent too much.

Risk

Likelihood: Low

  • When too many funds are sent to the contract (by the user or any other users).

Impact: High

  • Loss of funds

Recommended Mitigation

Implement a withdrawal function:

+ function withdrawDepositTo(address payable withdrawAddress, uint256 amount) public onlyOwner {
+ i_entryPoint..withdrawTo(withdrawAddress, amount);
+ }
Updates

Lead Judging Commences

inallhonesty Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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