The burn
function in the RAACToken
contract is intended to burn a specified amount of tokens while applying a burn tax that is sent to a designated fee collector. However, if the fee collector is not assigned, the function fails to burn the full amount from the user, resulting in an incorrect burn operation.
If the feeCollector
is not assigned (i.e., it is the zero address), the tax amount is not transferred, and the function does not burn this portion from the user's balance. This results in a smaller amount being burned than intended.
The intended amount of tokens is not fully burned from the user's balance
Manual
Modify the burn
function to ensure that the full amount is burned from the user's balance, regardless of whether the feeCollector
is set. If the feeCollector
is not set, the tax amount should also be burned.
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.