DeFiFoundry
20,000 USDC
View results
Submission Details
Severity: medium
Valid

auction token will be locked in auctionFactory contract

Summary

auction token will be locked in auctionFactory contract

Vulnerability Details

When there is no bidder in auction contract then auction token is transferred to owner ie factory contract. The issue is there is no withdraw function in factory contract for owner to withdraw those auction tokens, therefore those auction tokens will be locked in factory contract forever.

function auctionEnd() external {
if (block.timestamp < auctionEndTime) {
revert AuctionNotYetEnded();
}
if (ended) {
revert AuctionEndAlreadyCalled();
}
ended = true;
emit AuctionEnded(totalBids, totalTokens);
if (totalBids == 0) {
@> auctionToken.transfer(owner, totalTokens);
return;
}
multiplier = totalTokens.mul(PRECISION_18).div(totalBids);
// Burn the FjordPoints held by the contract
uint256 pointsToBurn = fjordPoints.balanceOf(address(this));
fjordPoints.burn(pointsToBurn);
}

Impact

auction tokens will be locked in factory contract

Tools Used

VS code

Recommendations

Transfer the auction token to real owner ie who actually transferred the auction token to auction token

Updates

Lead Judging Commences

inallhonesty Lead Judge about 1 year ago
Submission Judgement Published
Validated
Assigned finding tags:

If no bids are placed during the auction, the `auctionToken` will be permanently locked within the `AuctionFactory`

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

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.