Condition is reversed. Now it uses instant price when lookback is specified and uses TWAP with zero lookback (equal to instant price).
Here you can see that condition is reversed:
LibChainlinkOracle.getTokenPrice()
always returns current price even when lookback
is specified. Core mechanism of using Chainlink TWAP doesn't work.
Manual Review
Reverse logic
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.