In the ReFiSwapRebateHook::withdrawTokens function, the order of the parameters of the TokensWithdrawn event is wrong.
Even though this function is only related to the owner, it can mislead the external or off-chain services which rely on it.
Likelihood: High
It happens every time the owner calls the withdrawTokens function.
Impact: Low
It impacts the external services or parties which depend on it and expect to extract correct information out of it.
It is obvious by just looking at the order of parameters in the code. It is defined as (token, to, amount) but it is used as (to, token, amount).
Please make the following change to solve the issue.
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.