This is a fork of https://github.com/VenusProtocol/oracle with additioanal tests to show TWAP window vulnerability.
yarn install
$ npx hardhat test test/PivotTwapOracleBug.ts
This is a fork of https://github.com/VenusProtocol/oracle with additioanal tests to show TWAP window vulnerability.
yarn install
$ npx hardhat test test/PivotTwapOracleBug.ts