Skip to content

Commit

Permalink
fix: remove balanced reserves check
Browse files Browse the repository at this point in the history
  • Loading branch information
rndquu committed Jan 24, 2024
1 parent ba8e447 commit 8e5f728
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/contracts/src/dollar/libraries/LibTWAPOracle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ library LibTWAPOracle {

// ensure that there's liquidity in the pair
require(_reserve0 != 0 && _reserve1 != 0, "TWAPOracle: NO_RESERVES");
// ensure that pair balance is perfect
require(_reserve0 == _reserve1, "TWAPOracle: PAIR_UNBALANCED");

ts.priceCumulativeLast = IMetaPool(_pool).get_price_cumulative_last();
ts.pricesBlockTimestampLast = IMetaPool(_pool).block_timestamp_last();
ts.pool = _pool;
Expand Down

0 comments on commit 8e5f728

Please sign in to comment.