The contract lacks a withdrawal function to allow the owner to withdraw accumulated fees. The contract successfully collects fees via the buyOrder function (stored via the fee variable), but there is no mechanism to withdraw these funds. Without a proper withdrawal function, the owner is unable to access or use the collected fees, potentially causing the contract to become clogged with Ether over time.
Attempt to withdraw the accumulated fees, only to realize no withdrawal function is available
There is no function in the contract to withdraw the accumulated fees, which could lead to Ether being locked in the contract.
Manuel review and foundry
Add a withdrawal function to allow the owner to withdraw the accumulated fee. This function should check that only the contract owner can call it and that there are funds available for withdrawal.
The extra eth sent by the user in the buy order will be locked in the contract forever
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.