Auction tokens will be permenantly locked inside the FjordAuctionFactory
contract when FjordAuction::auctionEnd
is called for auctions with no bids.
After an auction ends, the auctionEnd
function is called to either transfer the locked tokens to the contract owner or calculate the claimable amount for each participant of the auction. In the case there are no bidders, all tokens in the contract will be sent to the FjordAuctionFactory
contract because it is set as the owner upon deployment.
When deploying a new FjordAuction
, FjordAuctionFactory::createAuction
is called with the following parameters.
In FjordAuction
, msg.sender is set as the owner of the contract in the constructor. Because FjordAuctionFactory
deployed the contract, it will be set as the owner.
When auctionEnd
is called for an auction with no bidders, all tokens are transfered to the owner. The owner here would be the FjordAuctionFactory
contract.
These tokens would then be permanentley locked inside the contract as there is no function inside the FjordAuctionFactory
to retireve them.
Tokens transfered into the FjordAuctionFactory
will be locked permanently.
Manual Review
Test to verify tokens are sent to FjordAuctionFactory
for auctions with no bidders
I first created a FjordAuctionFactory
contract instance in auction.t.sol
Test function that uses a utility function to derive the address of the auction contract deployed by the factory. It then verifies funds are sent to the factory contract.
If it is the intention that these tokens be transfered to the factory contract then a withdraw function should be created that is only called by the owner. Otherwise consider adding an owner parameter in the auction constructor to specify who the owner should be, rather than just using msg.sender.
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.