From 46a863c7c00c0cca8cede9e59148ef643de3c56e Mon Sep 17 00:00:00 2001 From: "A.L." Date: Sat, 23 Nov 2024 09:16:45 +0800 Subject: [PATCH] fix: add `view` modifier --- src/ReservoirPriceOracle.sol | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ReservoirPriceOracle.sol b/src/ReservoirPriceOracle.sol index ac6bc00..d405366 100644 --- a/src/ReservoirPriceOracle.sol +++ b/src/ReservoirPriceOracle.sol @@ -196,6 +196,7 @@ contract ReservoirPriceOracle is IPriceOracle, Owned(msg.sender), ReentrancyGuar function _calculateReward(uint256 aPrevPrice, uint256 aNewPrice, uint256 aRewardThreshold) private + view returns (uint256 rReward) { // SAFETY: this mul will not overflow as 0 < `aRewardThreshold` <= `Constants.BP_SCALE`, as checked by `setRoute`