From 5e3f45f9e50c2455eceef32ca07bb8820d7e0f6e Mon Sep 17 00:00:00 2001 From: SamAg19 <52957842+SamAg19@users.noreply.github.com> Date: Wed, 12 Jan 2022 14:19:20 +0530 Subject: [PATCH] tolerance datatype changed (#641) --- contracts/Core/parameters/Governance.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/Core/parameters/Governance.sol b/contracts/Core/parameters/Governance.sol index b7eef13d..bd229d63 100644 --- a/contracts/Core/parameters/Governance.sol +++ b/contracts/Core/parameters/Governance.sol @@ -140,7 +140,7 @@ contract Governance is Initializable, ACL, Constants { stakeManagerParams.setEpochLimitForUpdateCommission(_epochLimitForUpdateCommission); } - function setMaxTolerance(uint8 _maxTolerance) external onlyRole(GOVERNER_ROLE) { + function setMaxTolerance(uint16 _maxTolerance) external onlyRole(GOVERNER_ROLE) { require(_maxTolerance <= BASE_DENOMINATOR, "Slash nums addtion exceeds 10000"); emit ParameterChanged(msg.sender, "maxTolerance", _maxTolerance, block.timestamp); assetManagerParams.setMaxTolerance(_maxTolerance);