The _update function in the RAACToken contract imposes a tax on every transaction if the users are not whitelisted. However, the function unintentionally burns tokens by transferring the burnAmount to the zero address.
The current _update function in the RAACToken contract is:
The function transfers the burnAmount to the zero address, which results in burning tokens unintentionally.
Links to the issue:
This issue can lead to unintended burning of tokens, potentially reducing the total supply of tokens and affecting the tokenomics of the protocol.
Manual code review.
Remove the unintended token burn by not transferring the burnAmount to the zero address. The corrected function should be:
This ensures that the tax is correctly applied without unintentionally burning tokens.
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.