From d9d6a6e6332767a57c7edd6d32e5d6e8a621eb8f Mon Sep 17 00:00:00 2001 From: Frederico Teixeira Date: Mon, 24 Jul 2023 17:16:44 +0200 Subject: [PATCH] function signature changed from "pure" to "view", as it access block.timestap. --- contracts/StakeManager.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/StakeManager.sol b/contracts/StakeManager.sol index dd8ea55..75a84e9 100644 --- a/contracts/StakeManager.sol +++ b/contracts/StakeManager.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.18; +pragma solidity ^0.8.18; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; @@ -150,7 +150,7 @@ contract StakeManager is Ownable { accounts[_vault] = _account; } - function calcMaxMultiplierIncrease(uint256 _increasedMultiplier, uint256 _currentMp, uint256 _lockUntil, uint256 _stake) private pure returns(uint256 _maxToIncrease) { + function calcMaxMultiplierIncrease(uint256 _increasedMultiplier, uint256 _currentMp, uint256 _lockUntil, uint256 _stake) private view returns(uint256 _maxToIncrease) { uint256 newMp = _increasedMultiplier + _currentMp; if(block.timestamp > _lockUntil){ //not locked, limit to max_boost