The function RebateFiHook:_isReFiBuy has an incorrect verification to check if the swap is buying or selling the ReFi token.
The hook doesn't have the correct information if the ReFi tokens are being bought or sold to apply the correct fee.
To check if the ReFi token is being bought, we need to check the zeroForOne variable too. The ReFi token is being bought only when the is currency0 and zeroForOne is false, or when is currency1 and zeroForOne is true, but the function doesn't have this implementation:
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.