The createAuction function assumes that the ERC20 token transfer will always succeed. However, some tokens (like USDT) can fail silently, potentially leading to auctions created without the correct token amount transferred.
This could result in auctions being created without the specified token amount, leading to discrepancies between the expected and actual token amounts in the auction contract.
This line assumes the transfer will always succeed, but it may fail silently for some tokens.
Use SafeERC20 for token transfers:
Alternatively, check the return value of transferFrom and revert if it's false.
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.