The contract does not account for tokens that reduce the amount transferred, such as deflationary or tax-on-transfer tokens. These tokens deduct a percentage upon transfer, leading to incorrect balance tracking in the contract. This discrepancy can result in miscalculations of token holdings, incorrect execution of logic dependent on balance changes, and potential loss of funds.
If a contract assumes that amount tokens are received without verifying the actual balance change, it may overestimate available funds.
Example:
The actual received tokens may be lower than amount, leading to inconsistencies in balance tracking.
Use balanceOf to determine the actual amount received:
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.