We have an incorrect verification in the RebateFiHook:_beforeInitialize function. This function should verify if key.currency0 or key.currency1 is the ReFi token, but only verifies if key.currency1 is the ReFi token.
If there exists a pool that the ReFi token is the key.currency0, the RebateFiHook will not recognise and will revert with ReFiNotInPool error.
We have the duplicated verification for the key.currency1 in the lines 123 and 124:
The function verification should be updated to remove the duplicated verification and add verify to the key.currency0:
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.