From d7e911151d20160e9c4e3deaf64511b260ad4f68 Mon Sep 17 00:00:00 2001 From: "A.L." Date: Thu, 6 Jun 2024 10:45:54 +0200 Subject: [PATCH] chore: rm irrelevant test --- README.md | 1 - test/unit/libraries/QueryProcessor.t.sol | 24 ------------------------ 2 files changed, 25 deletions(-) diff --git a/README.md b/README.md index 8b13789..e69de29 100644 --- a/README.md +++ b/README.md @@ -1 +0,0 @@ - diff --git a/test/unit/libraries/QueryProcessor.t.sol b/test/unit/libraries/QueryProcessor.t.sol index e9ec4f6..972599c 100644 --- a/test/unit/libraries/QueryProcessor.t.sol +++ b/test/unit/libraries/QueryProcessor.t.sol @@ -121,30 +121,6 @@ contract QueryProcessorTest is BaseTest { assertGt(lAveragePrice, lEndingPrice); } - function testGetTimeWeightedAverage_AccumulatorOverflow() external { - // arrange - uint256 lSecs = 600; // 10 minutes - skip(10); - _pair.sync(); // write first observation at index 0 - uint32 lNow = uint32(block.timestamp); - _writeObservation(_pair, 0, 0, 0, type(int88).max, type(int88).max, lNow); - - skip(lSecs); - _pair.sync(); // write second observation at index 1 - (,,, uint16 lLatestIndex) = _pair.getReserves(); - // sanity - assertEq(lLatestIndex, 1); - lNow = uint32(block.timestamp); - _writeObservation(_pair, 1, 0, 0, type(int88).min + 3000, type(int88).min + 3000, lNow); - - // act - uint256 lAgo = 0; - uint256 lResult = _queryProcessor.getTimeWeightedAverage(_pair, Variable.RAW_PRICE, lSecs, lAgo, lLatestIndex); - - // assert6 - assertEq(lResult, 0); - } - function testGetPastAccumulator_ExactMatch( uint32 aStartTime, uint256 aBlockTime,