The useAutoBurn
parameter in the depositTokens
function on L1 and the use_deposit_burn_auto
parameter in the deposit_tokens
function on L2 are both designed to control the automatic burning of tokens during L1/L2 deposit calls. However, these parameters are currently not utilized, potentially leading to user confusion as they may mistakenly believe their NFTs are being burned when they are not.
In the depositTokens
function on L1, the useAutoBurn
parameter is intended to control whether tokens are automatically burned on L1 instead of being sent to escrow. Despite this, the parameter is not utilized in the function, meaning that the tokens are not automatically burned, even if the user expects them to be.
The deposit_tokens
function on L2 includes the use_deposit_burn_auto
parameter, which is meant to trigger the automatic burning of tokens on L2 after transfer via the Starklane indexer. However, this parameter is also unused in the function, leading to the same issues as on L1, where users might incorrectly believe their tokens are being burned.
Users may mistakenly believe that their NFTs are being automatically burned on either L1 or L2 when they are not, leading to confusion and potential operational errors.
Manual Review.
If the implementation is expected to be built in future versions, consider preventing the user from choosing the auto burn feature.
Please, do not suppose impacts, think about the real impact of the bug and check the CodeHawks documentation to confirm: https://docs.codehawks.com/hawks-auditors/how-to-determine-a-finding-validity A PoC always helps to understand the real impact possible.
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.