From 6b2cccada8919e598cbae152b616dbba0480ff93 Mon Sep 17 00:00:00 2001 From: John Carlo San Pedro Date: Tue, 20 Feb 2024 16:13:27 +1300 Subject: [PATCH] correct comments --- contracts/Registries.sol | 2 +- contracts/libraries/SyloUtils.sol | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contracts/Registries.sol b/contracts/Registries.sol index 719407b7..e5519ca5 100644 --- a/contracts/Registries.sol +++ b/contracts/Registries.sol @@ -95,7 +95,7 @@ contract Registries is IRegistries, Initializable, Ownable2StepUpgradeable, IERC * @notice Set the global default payout percentage value. Only callable * by the owner. * @param _defaultPayoutPercentage The payout percentage as a value where the - * denominator is 10000. + * denominator is 100000. */ function setDefaultPayoutPercentage(uint32 _defaultPayoutPercentage) external onlyOwner { if (_defaultPayoutPercentage > 100000) { diff --git a/contracts/libraries/SyloUtils.sol b/contracts/libraries/SyloUtils.sol index c37a6ff4..e6d82076 100644 --- a/contracts/libraries/SyloUtils.sol +++ b/contracts/libraries/SyloUtils.sol @@ -26,7 +26,7 @@ library SyloUtils { * @dev Multiply a value by a given percentage. Converts the provided * uint128 value to uint256 to avoid any reverts on overflow. * @param value The value to multiply. - * @param percentage The percentage, as a ratio of 10000. + * @param percentage The percentage, as a ratio of 100000. */ function percOf(uint128 value, uint32 percentage) internal pure returns (uint256) { return (uint256(value) * percentage) / PERCENTAGE_DENOMINATOR; @@ -37,7 +37,7 @@ library SyloUtils { * @param numerator The numerator limited to a uint128 value to prevent * phantom overflow. * @param denominator The denominator. - * @return The percentage, as a ratio of 10000. + * @return The percentage, as a ratio of 100000. */ function asPerc(uint128 numerator, uint256 denominator) internal pure returns (uint32) { return SafeCast.toUint32((uint256(numerator) * PERCENTAGE_DENOMINATOR) / denominator);