From 33d759ca0a7a9f7656562213d1ab6bfab8ebb783 Mon Sep 17 00:00:00 2001 From: Hrik Bhowal Date: Thu, 25 Apr 2024 18:51:38 -0400 Subject: [PATCH] fix: PtSpotOracle twap duration constructor validation --- src/oracles/spot/PtSpotOracle.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/oracles/spot/PtSpotOracle.sol b/src/oracles/spot/PtSpotOracle.sol index 35eb34e5..37c2b955 100644 --- a/src/oracles/spot/PtSpotOracle.sol +++ b/src/oracles/spot/PtSpotOracle.sol @@ -36,7 +36,7 @@ contract PtSpotOracle is SpotOracle { { (,,,,, uint16 observationCardinalityNext) = _market._storage(); - uint256 minimumOracleSlots = twapDuration / 12; + uint256 minimumOracleSlots = _twapDuration / 12; if (observationCardinalityNext < minimumOracleSlots) revert InsufficientOracleSlots(observationCardinalityNext);