The collectPresent
function uses the balanceOf
function without specifying the token or asset being checked for a balance. This ambiguity raises concerns about the intended balance check and may lead to unexpected behavior.
The code checks balanceOf(msg.sender) > 0
without clarifying the type of balance being referred to. It is unclear what asset or token is being checked, and this lack of specificity can result in misinterpretation or unintended consequences.
The ambiguous use of balanceOf
in the collectPresent
function may lead to confusion and potential vulnerabilities if the wrong balance is considered.
Manual code review
Clearly specify the token or asset for which the balance is being checked using balanceOf
.
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.