Normal Behavior:
The _beforeInitialize hook in RebateFiHook.sol is intended to validate that at least one of the pool currencies is the ReFi token. If neither currency is ReFi, the pool initialization should revert.
Observed Issue:
The current implementation checks key.currency1 twice, neglecting key.currency0. As a result, a pool could be initialized where neither currency is ReFi, bypassing intended protocol safeguards.
Likelihood:
Any pool creation with two non-ReFi tokens will trigger this scenario.
High usage pools or automated scripts could unknowingly initialize invalid pools.
Impact:
Pools may be initialized without the ReFi token, violating core protocol rules.
Could lead to downstream logic failures, incorrect fee calculations, or lost protocol revenue.
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.