TwentyOne

First Flight #29
Beginner FriendlyGameFiFoundrySolidity
100 EXP
View results
Submission Details
Severity: high
Valid

The contract lacks of a function to withdraw the earnings from the game

Description

There is no function implemented to withdraw all the ETH won by the game.

Impact

All the ETH won by the dealer will get stuck in the contract forever.

Recommended mitigation

Add a function (with its respective access control) that allows transfering the ETH the contract holds to an specific address (it could be an EOA account, another smart contract, or a multisig)

Updates

Lead Judging Commences

inallhonesty Lead Judge 11 months ago
Submission Judgement Published
Validated
Assigned finding tags:

Owner has no method to withdraw

Support

FAQs

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