An event is not emitted when collection is whitelisted via deposit function
The function _whitelistCollection
adds a collection to the whitelists or removes the collection from the whitelist.
It is important to note that the internal function does not emit an event. The function above is called in 2 places
the first place is in the external function whiteList
as we can see there is emit here.
the second place where _whitelistCollection
is called is in the depositTokens
function below
When called here there will not be an emit as intended. We should emit an event when _whitelistCollection
is called in the function withdrawTokens
Lack of event emission in critical function
manual review
emit when calling _whitelistCollection
in withdrawTokens
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.