The FjordAuction
contract facilitates auctions where users bid using FjordPoints
to acquire auction tokens. If an auction concludes with no bids, the auction tokens are transferred to the owner:
In the code above, the tokens are transferred to the owner
. However, the issue is that the owner
is set to the FjordAuctionFactory
contract during deployment, as it is the one that creates the auction contracts. The problem is that the FjordAuctionFactory
contract, which receives the tokens, has no mechanism to utilize them because creating a new auction always requires transferring tokens from the factory's owner:
As a result, any auction tokens sent back to the factory contract after an auction ends with no bids become stuck and cannot be reused or recovered.
If an auction concludes with no bids, the auction tokens are permanently stuck in the FjordAuctionFactory
contract. This renders the tokens unusable.
Manual Review
Consider either transferring the auction tokens to the owner wallet instead of the factory, or utilize them in the createAuction
as suggested 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.