The current contract does not include functionality for the host to withdraw Ether, leaving Ether locked within the contract. The contract allows the withdrawal of ERC20 tokens but fails to handle the withdrawal of Ether, thus preventing the host from accessing any Ether balance stored in the contract.
In the withdraw function, the contract allows the host to withdraw ERC20 tokens such as WETH, WBTC, and USDC, but it does not include a mechanism for the host to withdraw Ether (ETH) from the contract. As a result, any Ether deposited in the contract remains locked and inaccessible to the host.
**Locked Ether: **Any Ether sent to the contract remains locked, as there is no functionality to allow the host to withdraw it.
Loss of Funds: If Ether is deposited into the contract, the host will be unable to retrieve it, which could lead to a loss of funds over time, especially if the contract accumulates a significant Ether balance
Manual code review
To resolve this issue, the contract should include functionality to allow the host to withdraw Ether. Here's a suggested modification:
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.