The SpiceAuctionFactory
contract's deployedAuctions
mapping does not prevent overwriting existing auction addresses. This could lead to the loss of access to previous auctions and potential manipulation of auction data.
The createAuction
function in SpiceAuctionFactory
allows the creation of new SpiceAuction contracts. However, it does not check if an auction for the given token pair already exists in the deployedAuctions
mapping. This means that if createAuction
is called again with the same token pair, the existing auction address will be overwritten with the new one, effectively making the previous auction inaccessible.
Users who participated in previous auctions may lose the ability to claim their rewards or view auction details if the corresponding auction address is overwritten.
Manual Review
Before adding a new auction address to the deployedAuctions
mapping, check if an entry for the given token pair already exists. If so, either revert the transaction or provide an option to update the existing auction address
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.