From 76e4940b8203784d06939e70e45b8779ab9464f9 Mon Sep 17 00:00:00 2001 From: MoonBoi9001 Date: Fri, 20 Sep 2024 12:27:06 +0100 Subject: [PATCH] fix: update constant names. (OZ N-11) --- .../utilities/ProvisionManager.sol | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/horizon/contracts/data-service/utilities/ProvisionManager.sol b/packages/horizon/contracts/data-service/utilities/ProvisionManager.sol index ee5f5e048..0e79bfa47 100644 --- a/packages/horizon/contracts/data-service/utilities/ProvisionManager.sol +++ b/packages/horizon/contracts/data-service/utilities/ProvisionManager.sol @@ -24,12 +24,12 @@ abstract contract ProvisionManager is Initializable, GraphDirectory, ProvisionMa using UintRange for uint256; // Constants - uint32 private constant DEFAULT_MIN_UINT32 = 0; - uint64 private constant DEFAULT_MIN_UINT64 = 0; - uint256 private constant DEFAULT_MIN_UINT256 = 0; - uint64 private constant DEFAULT_MAX_UINT64 = type(uint64).max; - uint256 private constant DEFAULT_MAX_UINT256 = type(uint256).max; - uint32 private constant MAX_PPM = uint32(PPMMath.MAX_PPM); + uint32 private constant DEFAULT_MIN_VERIFIER_CUT = 0; + uint64 private constant DEFAULT_MIN_THAWING_PERIOD = 0; + uint256 private constant DEFAULT_MIN_PROVISION_TOKENS = 0; + uint64 private constant DEFAULT_MAX_THAWING_PERIOD = type(uint64).max; + uint256 private constant DEFAULT_MAX_PROVISION_TOKENS = type(uint256).max; + uint32 private constant DEFAULT_MAX_VERIFIER_CUT = uint32(PPMMath.MAX_PPM); /** * @notice Emitted when the provision tokens range is set. @@ -123,9 +123,9 @@ abstract contract ProvisionManager is Initializable, GraphDirectory, ProvisionMa */ // solhint-disable-next-line func-name-mixedcase function __ProvisionManager_init_unchained() internal onlyInitializing { - _setProvisionTokensRange(DEFAULT_MIN_UINT256, DEFAULT_MAX_UINT256); - _setVerifierCutRange(DEFAULT_MIN_UINT32, MAX_PPM); - _setThawingPeriodRange(DEFAULT_MIN_UINT64, DEFAULT_MAX_UINT64); + _setProvisionTokensRange(DEFAULT_MIN_PROVISION_TOKENS, DEFAULT_MAX_PROVISION_TOKENS); + _setVerifierCutRange(DEFAULT_MIN_VERIFIER_CUT, DEFAULT_MAX_VERIFIER_CUT); + _setThawingPeriodRange(DEFAULT_MIN_THAWING_PERIOD, DEFAULT_MAX_THAWING_PERIOD); } /**