Skip to content

Commit

Permalink
fix threshold check
Browse files Browse the repository at this point in the history
  • Loading branch information
ZumZoom committed Dec 15, 2023
1 parent 3017c3b commit 921a6b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/WhitelistRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ contract WhitelistRegistry is Ownable {
* @param resolverPercentageThreshold_ The new resolver threshold.
*/
function setResolverPercentageThreshold(uint256 resolverPercentageThreshold_) external onlyOwner {
if (resolverPercentageThreshold_ > BASIS_POINTS) revert InvalidThreshold();
_setResolverPercentageThreshold(resolverPercentageThreshold_);
}

Expand Down Expand Up @@ -124,6 +123,7 @@ contract WhitelistRegistry is Ownable {
}

function _setResolverPercentageThreshold(uint256 resolverPercentageThreshold_) private {
if (resolverPercentageThreshold_ > BASIS_POINTS) revert InvalidThreshold();
resolverPercentageThreshold = resolverPercentageThreshold_;
emit ResolverPercentageThresholdSet(resolverPercentageThreshold_);
}
Expand Down

0 comments on commit 921a6b3

Please sign in to comment.