From 2dd543e296665947710a36026306a57e522b3d0a Mon Sep 17 00:00:00 2001 From: "A.L." Date: Sun, 16 Jun 2024 12:32:20 +0200 Subject: [PATCH] fix: make priceType shouting snake case --- src/ReservoirPriceOracle.sol | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/ReservoirPriceOracle.sol b/src/ReservoirPriceOracle.sol index 453b74b..dbb1a3b 100644 --- a/src/ReservoirPriceOracle.sol +++ b/src/ReservoirPriceOracle.sol @@ -38,12 +38,10 @@ contract ReservoirPriceOracle is IPriceOracle, IReservoirPriceOracle, Owned(msg. event ResolvedVaultSet(address vault, address asset); event RewardGasAmount(uint256 newAmount); event Route(address token0, address token1, address[] route); - event Price(address token0, address token1, uint256 price); - event SetPriceType(PriceType priceType); event TwapPeriod(uint256 newPeriod); /// @notice The type of price queried and stored, possibilities as defined by `PriceType`. - PriceType public immutable priceType; + PriceType public immutable PRICE_TYPE; /////////////////////////////////////////////////////////////////////////////////////////////// // STORAGE // @@ -81,7 +79,7 @@ contract ReservoirPriceOracle is IPriceOracle, IReservoirPriceOracle, Owned(msg. updatePriceDeviationThreshold(aThreshold); updateTwapPeriod(aTwapPeriod); updateRewardGasAmount(aMultiplier); - priceType = aType; + PRICE_TYPE = aType; } /// @dev contract will hold native tokens to be distributed as gas bounty for updating the prices @@ -154,7 +152,7 @@ contract ReservoirPriceOracle is IPriceOracle, IReservoirPriceOracle, Owned(msg. (lToken0, lToken1) = lRoute[i].sortTokens(lRoute[i + 1]); lQueries[i] = OracleAverageQuery( - priceType, + PRICE_TYPE, lToken0, lToken1, twapPeriod,