The contract uses a dynamic Map
structure to track bids from multiple bidders. If a large number of bids are placed, iterating through this map during withdrawals could lead to out-of-gas errors.
The withdraw
function potentially handles large numbers of bids stored in the bid_values
map. If many bidders participate in the auction, retrieving and clearing each bidder's bid during withdrawal could consume too much gas.
If too many bids are placed, users may face gas limit issues when trying to withdraw their funds, leading to failed transactions and unclaimed funds.
Manual code review
Consider using a batched withdrawal mechanism, where users can withdraw in smaller, manageable portions over several transactions.
Alternatively, ensure the Map
is optimized for gas usage when iterating over large numbers of entries.
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.