The ContestManager and Pot smart contracts have identified a severe vulnerability involving unchecked token transfers. This issue affects both the funding of contests and the distribution of rewards, potentially leading to significant fund loss and inconsistent contract states.
ContestManager Contract:
Pot Contract:
In both cases, the return values of transferFrom
and transfer
are not checked, which can lead to silent failures.
Financial Loss: Funds may be lost due to failed transfers that are not detected.
Inconsistent State: Contract states may not reflect actual token balances.
Systemic Risk: The entire contest lifecycle, from funding to reward distribution, is affected.
Trust Issues: The reliability and integrity of the entire system are compromised.
Manual code review
AI for report
Implement Return Value Checks:
Use SafeERC20:
Consider Reentrancy Guards: Implement reentrancy protection, especially for functions involving token transfers.
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.