Description:
The _isReFiBuy function's logic for buy/sell direction is inverted, making the protocol apply the wrong fee structure (charging buyers instead of sellers and vice versa).
Impact:
Fee logic is reversed: buyers may pay high (or full) fees while sellers avoid fees, completely defeating the protocol's intended economic incentives.
Proof of Concept:
Mitigation:
Invert the logic to match Uniswap's swap conventions:
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.