AuctionFactory::createAuction()
deploys the Auction
contracts and hence the owner of Auction
contract is AuctionFactory
.
The owner for Auction
contract is AuctionFactory
as in the constructor of Auction
, msg.sender is assigned as the owner.
If for a particular auction, there are no bids received, then at the time end of auction, the funds are transferred back to the owner.
hence, the funds are transferred back to AuctionFactory
contract, instead of the owner of the AuctionFactory
contract.
AuctionFactory
contract does not have a way to with draw these locked tokens.
The funds will be permanently locked incase a particular Auction does not receive bids by the time the auction ends.
Manual review
The funds should be returned back to the owner of AuctionFactory
contract.
Revise the function as below.
An auction with 0 bids will get the `totalTokens` stuck inside the contract. Impact: High - Tokens are forever lost Likelihood - Low - Super small chances of happening, but not impossible
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.