From 89121252c6aa6a88404cb385bae812d3dbadd071 Mon Sep 17 00:00:00 2001 From: MoonBoi9001 <67825802+MoonBoi9001@users.noreply.github.com> Date: Fri, 20 Sep 2024 19:33:08 +0100 Subject: [PATCH] Update packages/horizon/contracts/data-service/utilities/ProvisionManager.sol MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Tomás Migone --- .../contracts/data-service/utilities/ProvisionManager.sol | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/horizon/contracts/data-service/utilities/ProvisionManager.sol b/packages/horizon/contracts/data-service/utilities/ProvisionManager.sol index 0e79bfa47..8608fd2fa 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_VERIFIER_CUT = 0; - uint64 private constant DEFAULT_MIN_THAWING_PERIOD = 0; - uint256 private constant DEFAULT_MIN_PROVISION_TOKENS = 0; + uint32 private constant DEFAULT_MIN_VERIFIER_CUT = type(uint32).min; + uint32 private constant DEFAULT_MAX_VERIFIER_CUT = uint32(PPMMath.MAX_PPM); + uint64 private constant DEFAULT_MIN_THAWING_PERIOD = type(uint64).min; uint64 private constant DEFAULT_MAX_THAWING_PERIOD = type(uint64).max; + uint256 private constant DEFAULT_MIN_PROVISION_TOKENS = type(uint256).min; 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.