Skip to content

Commit

Permalink
correct comments
Browse files Browse the repository at this point in the history
  • Loading branch information
JCSanPedro committed Feb 20, 2024
1 parent b40bd31 commit 6b2ccca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion contracts/Registries.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions contracts/libraries/SyloUtils.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down

0 comments on commit 6b2ccca

Please sign in to comment.