The SpicyAuction::recoverToken()
function allows the recovery of auction tokens without updating the _totalAuctionTokenAllocation[token]
. This can lead to incorrect calculation of epochAuctionTokenAmount
in the next auction epoch, causing locking of auction tokens.
The _totalAuctionTokenAllocation[token]
tracks total allocation of auction token Temple Gold.
The function SpicyAuction::recoverToken()
recovers Temple Gold from the auction contract without subtracting withdrawn token amount from _totalAuctionTokenAllocation[token]
, resulting in the amount of auction token (epochAuctionTokenAmount
) is smaller in the next auction epoch.
Where,
The totalAuctionTokenAllocation[token]
remains unchanged after recoverToken()
;
As some auction tokens have been recovered, the balance
of auction token is decreased.
As a result, the epochAuctionTokenAmount
is smaller than it should be, equating to the amount of recovered auction token.
The same amount of recovered auction tokens cannot be distributed by the auction and will be locked.
vscode
Update the _totalAuctionTokenAllocation[token]
accordingly.
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.