The createAuction()
function lacks validation for key inputs such as auctionToken
, biddingTime
, and totalTokens
. This could result in faulty auction contracts being created with invalid parameters.
The function allows for the creation of auctions without verifying that auctionToken
is a valid address, or that biddingTime
and totalTokens
are non-zero values. Passing invalid values could cause the contract to behave unexpectedly
Deploying auction contracts with invalid parameters can result in broken or non-functional auctions. Users may waste gas deploying faulty contracts or participate in auctions that do not work as expected, leading to potential economic loss.
Manual Review
Add validation checks to ensure:
auctionToken
is not address(0)
.
biddingTime
and totalTokens
are greater than zero.
Example validation:
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.