Skip to content

Commit

Permalink
docs: fix natspecs in Helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
smol-ninja committed Oct 18, 2024
1 parent 9bfe5d6 commit 5dc175c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libraries/Helpers.sol
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ library Helpers {
(brokerFeeAmount, depositAmount) = calculateAmountsFromFee(totalAmount, broker.fee);
}

/// @notice Descales the provided `amount` from 18 decimals fixed-point number to token's decimals number.
/// @dev Descales the provided `amount` from 18 decimals fixed-point number to token's decimals number.
function descaleAmount(uint256 amount, uint8 decimals) internal pure returns (uint256) {
if (decimals == 18) {
return amount;
Expand All @@ -62,7 +62,7 @@ library Helpers {
}
}

/// @notice Scales the provided `amount` from 18 decimals fixed-point number to token's decimals number.
/// @dev Scales the provided `amount` from token's decimals number to 18 decimals fixed-point number.
function scaleAmount(uint256 amount, uint8 decimals) internal pure returns (uint256) {
if (decimals == 18) {
return amount;
Expand Down

0 comments on commit 5dc175c

Please sign in to comment.