The _distributeGold
function in the DaiGoldAuction
contract lacks a check to ensure sufficient TGOLD balance before attempting to mint and distribute tokens. This could lead to auctions starting with less TGOLD than intended, resulting in unfairness for participants.
The current implementation of _distributeGold
directly calls templeGold.mint()
without verifying if the contract holds enough TGOLD to fulfill the distribution. If the balance is insufficient, the auction could proceed with a lower TGOLD amount, potentially disadvantaging bidders who expected a larger pool of rewards.
Auctions may start with less TGOLD than advertised, leading to lower potential rewards for participants and potentially discouraging participation.
Manual review
Before calling templeGold.mint()
, verify that the contract's TGOLD balance is sufficient to cover the intended distribution amount.
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.