Skip to content

Commit

Permalink
Merge pull request #83 from usmfum/feat/longer-twaps
Browse files Browse the repository at this point in the history
Extended our Uniswap TWAP period from 2 minutes to 10 minutes, for sa…
  • Loading branch information
jacob-eliosoff authored Jan 18, 2021
2 parents 35ddce9 + 14f3ef0 commit 7d0d7d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/oracles/OurUniswapV2TWAPOracle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ contract OurUniswapV2TWAPOracle is Oracle {
* These roles could in principle be separated, eg: "Require the stored price we calculate TWAP from to be >= 2 minutes
* old, but leave >= 10 minutes before storing a new price." But for simplicity we keep them the same.
*/
uint public constant MIN_TWAP_PERIOD = 2 minutes;
uint public constant MIN_TWAP_PERIOD = 10 minutes;

// Uniswap stores its cumulative prices in "FixedPoint.uq112x112" format - 112-bit fixed point:
uint public constant UNISWAP_CUM_PRICE_SCALE_FACTOR = 2 ** 112;
Expand Down

0 comments on commit 7d0d7d0

Please sign in to comment.