Twap time is hardcoded to 30 minutes
so instead of hardcoding take the time interval as perimeter.
In the function baseOracleCircuitBreaker()
twap time is hardcoded to 30 minutes
which is not optimal in all cases cause even tho the twap is resilient to flashLoan but still it can be manipulated, there are websites that will tell you how much it takes to manipulate the twap price.
This is the effected line,
Let user input the twap price instead of hardcoding as 30 minute timeframe is not optimal and ideal
Manual Review
It is recommended that instead of harcoding take the twap timeframe as input.
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.