TokensWithdrawn event is declared as follows:
ReFiSwapRebateHook::withdrawTokens function emits TokensWithdrawn event with wrong parameters order:
Likelihood:
Issue occurs every time the ReFiSwapRebateHook::withdrawTokens is called and when the ERC20 transfer is not reverted.
Impact:
Wrong data is provided by the protocol to any concerned third-party, reducing on-chain observability and making it harder for off-chain indexers, UIs, and auditors to track history.
Add the following test to TestReFiSwapRebateHook.sol and see the test result as follows:
[FAIL: TokensWithdrawn param mismatch at token: expected=0x212224D2F2d262cd093eE13240ca4873fcCBbA3C, got=0x7FA9385bE102ac3EAc297483Dd6233D62b3e1496, to: expected=0x7FA9385bE102ac3EAc297483Dd6233D62b3e1496, got=0x212224D2F2d262cd093eE13240ca4873fcCBbA3C]
Fix the order of params in the emitted TokensWithdrawn event to conform the specified event signature:
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.