Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions contracts/protocol/libraries/math/PercentageMath.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ library PercentageMath {

/**
* @notice Executes a percentage multiplication
* @dev assembly optimized for improved gas savings, see https://twitter.com/transmissions11/status/1451131036377571328
* @dev assembly optimized for improved gas savings, see https://x.com/transmissions11/status/1451131036377571328
* @param value The value of which the percentage needs to be calculated
* @param percentage The percentage of the value to be calculated
* @return result value percentmul percentage
Expand All @@ -40,7 +40,7 @@ library PercentageMath {

/**
* @notice Executes a percentage division
* @dev assembly optimized for improved gas savings, see https://twitter.com/transmissions11/status/1451131036377571328
* @dev assembly optimized for improved gas savings, see https://x.com/transmissions11/status/1451131036377571328
* @param value The value of which the percentage needs to be calculated
* @param percentage The percentage of the value to be calculated
* @return result value percentdiv percentage
Expand Down
12 changes: 6 additions & 6 deletions contracts/protocol/libraries/math/WadRayMath.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ library WadRayMath {

/**
* @dev Multiplies two wad, rounding half up to the nearest wad
* @dev assembly optimized for improved gas savings, see https://twitter.com/transmissions11/status/1451131036377571328
* @dev assembly optimized for improved gas savings, see https://x.com/transmissions11/status/1451131036377571328
* @param a Wad
* @param b Wad
* @return c = a*b, in wad
Expand All @@ -39,7 +39,7 @@ library WadRayMath {

/**
* @dev Divides two wad, rounding half up to the nearest wad
* @dev assembly optimized for improved gas savings, see https://twitter.com/transmissions11/status/1451131036377571328
* @dev assembly optimized for improved gas savings, see https://x.com/transmissions11/status/1451131036377571328
* @param a Wad
* @param b Wad
* @return c = a/b, in wad
Expand All @@ -57,7 +57,7 @@ library WadRayMath {

/**
* @notice Multiplies two ray, rounding half up to the nearest ray
* @dev assembly optimized for improved gas savings, see https://twitter.com/transmissions11/status/1451131036377571328
* @dev assembly optimized for improved gas savings, see https://x.com/transmissions11/status/1451131036377571328
* @param a Ray
* @param b Ray
* @return c = a raymul b
Expand All @@ -75,7 +75,7 @@ library WadRayMath {

/**
* @notice Divides two ray, rounding half up to the nearest ray
* @dev assembly optimized for improved gas savings, see https://twitter.com/transmissions11/status/1451131036377571328
* @dev assembly optimized for improved gas savings, see https://x.com/transmissions11/status/1451131036377571328
* @param a Ray
* @param b Ray
* @return c = a raydiv b
Expand All @@ -93,7 +93,7 @@ library WadRayMath {

/**
* @dev Casts ray down to wad
* @dev assembly optimized for improved gas savings, see https://twitter.com/transmissions11/status/1451131036377571328
* @dev assembly optimized for improved gas savings, see https://x.com/transmissions11/status/1451131036377571328
* @param a Ray
* @return b = a converted to wad, rounded half up to the nearest wad
*/
Expand All @@ -109,7 +109,7 @@ library WadRayMath {

/**
* @dev Converts wad up to ray
* @dev assembly optimized for improved gas savings, see https://twitter.com/transmissions11/status/1451131036377571328
* @dev assembly optimized for improved gas savings, see https://x.com/transmissions11/status/1451131036377571328
* @param a Wad
* @return b = a converted in ray
*/
Expand Down