In the recoverToken
function of the contract, when recovering Temple Gold tokens, the function reverts if the requested amount exceeds the total auction token amount. This could be inefficient and may prevent the recovery of the maximum available tokens.
The relevant code snippet is:
Instead of reverting, the function could transfer the maximum available amount (_totalAuctionTokenAmount) when the requested amount exceeds it.
The current implementation may lead to:
Unnecessary transaction failures when trying to recover all available tokens.
Additional gas costs for users who have to retry the recovery with the exact amount.
Potential for tokens to remain locked if the exact amount is not known or if multiple recovery attempts are needed.
Manual
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.