[L-6] - The BidBeastsNFTMarket::withdrawFee function should emit the FeeWithdrawn event after it alters storage variables.
The withdrawFee function allows the owner to withdraw the total fees accured by the protocol sales. However, the FeeWithdrawn event is being triggered at the end of the logic of the function, where it should be emitted when the storage variable are altered.
Likelihood: Low.
Impact: Low.
This is the actual codebase of the withdrawFee function, where the FeeWithdrawn event is being triggered after the _payout function, not after altering the storage at s_totalFee = 0
Consider always emitting events after sensitive changes take place to facilitate tracking and notify off-chain clients that follow the protocol's contracts' activity.
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.