The SpiceAuction
contract allows two types of auctions which can be set by the ActivationMode
:
AUCTION_TOKEN_BALANCE: Auction is enabled and awaiting start if the amount of auction token is sent to the contract.
USER_FIRST_BID: Enable auction when a user bids for another volatile token.
The problem with the current implementation is that when ActivationMode
is set to USER_FIRST_BID
, the auction will not work as intended. The bid
function requires an auction to be active before a bid can be made. Therefore, the auction must be enabled first before a user can bid, which is what the first ActivationMode
mode (AUCTION_TOKEN_BALANCE
) is intended to do.
When ActivationMode
is set to USER_FIRST_BID
, the auction cannot be started as intended because the bid
function requires an active auction.
Manual analysis
Review and modify the implementation of the USER_FIRST_BID
activation mode. Ensure that the auction can be correctly started upon the first user bid.
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.