Skip to content

Commit

Permalink
fix: update constant names. (OZ N-11)
Browse files Browse the repository at this point in the history
  • Loading branch information
MoonBoi9001 committed Sep 20, 2024
1 parent ffe9b89 commit 76e4940
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 76e4940

Please sign in to comment.