The AuctionFactory
contract is used for deploying new FjordAuction
contracts. When the owner calls the AuctionFactory::createAuction
function, a new FjordAuction
contract is created with FjordAuction::owner
set to the AuctionFactory
contract.
So when the FjordAuction::auctionEnd
function is called and FjordAuction::totalBids
equals 0, all auction tokens will be transferred to the AuctionFactory
contract and get stuck there permanently.
All auction tokens would get stuck permanently in the AuctionFactory
contract.
Add the following test cases in a new file FjordAuctionFactory.t.sol
and run the command forge test --mp test/unit/FjordAuctionFactory.t.sol
:
In the FjordAuction::constructor
function, pass an additional parameter, _owner
, to set FjordAuction::owner
equal to _owner
:
And then update the AuctionFactory::createAuction
function:
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.