FestivalPass::withdraw
.Description: There is no event emission in the function FestivalPass::withdraw
. This means anybody querying for the balance of the contract will get incorrect results since it is not updated upon the withdrawal.
In the IFestivalPass.sol, we can see that there is an unused event. Because of the presence of this event, the intention must've been that it would be used in the FestivalPass::withdraw
function. Note the code below:
Impact:
Likelihood: MEDIUM
Withdrawals will likely happen regularly.
Impact: VERY LOW
Proof of Concept:
N/A
Recommended Mitigation:
I would recommend adding the event line directly in the withdraw function.
Note that I've ALSO updated the event to reflect the "owner" being the withdrawer versus the organizer. This is fully reflected in another writeup.
Informational. This protocol doesn't rely on events to function, they are just nice to have, but not mandatory.
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.