Skip to content

Commit 362cf8b

Browse files
committed
test: update oracle indexes
1 parent f6dab4e commit 362cf8b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/unit/OracleWriter.t.sol

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -385,14 +385,14 @@ contract OracleWriterTest is BaseTest {
385385
_stepTime(12);
386386
lCP.sync();
387387
lSP.sync();
388-
Observation memory lObsCP0 = _oracleCaller.observation(lCP, 0);
389388
Observation memory lObsCP1 = _oracleCaller.observation(lCP, 1);
390-
Observation memory lObsSP0 = _oracleCaller.observation(lSP, 0);
389+
Observation memory lObsCP2 = _oracleCaller.observation(lCP, 2);
391390
Observation memory lObsSP1 = _oracleCaller.observation(lSP, 1);
391+
Observation memory lObsSP2 = _oracleCaller.observation(lSP, 2);
392392
uint256 lUncompressedPriceCP =
393-
LogCompression.fromLowResLog((lObsCP1.logAccRawPrice - lObsCP0.logAccRawPrice) / 12);
393+
LogCompression.fromLowResLog((lObsCP2.logAccRawPrice - lObsCP1.logAccRawPrice) / 12);
394394
uint256 lUncompressedPriceSP =
395-
LogCompression.fromLowResLog((lObsSP1.logAccRawPrice - lObsSP0.logAccRawPrice) / 12);
395+
LogCompression.fromLowResLog((lObsSP2.logAccRawPrice - lObsSP1.logAccRawPrice) / 12);
396396
assertEq(lUncompressedPriceCP, lUncompressedPriceSP);
397397
}
398398

0 commit comments

Comments
 (0)