Description:
The withdrawTokens function emits the TokensWithdrawn event with swapped arguments.
The event definition is:
The code passes to (recipient) as the first argument (token), and token (token address) as the second argument (to).
Impact:
Off-chain indexers will misinterpret the event, showing the recipient address as the token address and vice versa.
Proof of Concept:
demonstrates that buying ReFi triggers the ReFiSold event (Sell path).
demonstrates that selling ReFi incurs 0 fee (Buy Fee) instead of the intended 0.3%.
Recommended Mitigation:
Swap the arguments in the emit statement.
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.