Skip to content

Commit

Permalink
🥢 Nit FixedMathPointLib comments/links
Browse files Browse the repository at this point in the history
  • Loading branch information
8times4 authored and Vectorized committed Feb 5, 2024
1 parent 9de1fe2 commit 330d9ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/FixedPointMathLib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ library FixedPointMathLib {
}

/// @dev Returns `exp(x)`, denominated in `WAD`.
/// Credit to Remco Bloemen under MIT license: https://2Ï€.com/21/exp-ln
/// Credit to Remco Bloemen under MIT license: https://2Ï€.com/22/exp-ln
function expWad(int256 x) internal pure returns (int256 r) {
unchecked {
// When the result is less than 0.5 we return zero.
Expand Down Expand Up @@ -265,7 +265,7 @@ library FixedPointMathLib {
}

/// @dev Returns `ln(x)`, denominated in `WAD`.
/// Credit to Remco Bloemen under MIT license: https://2Ï€.com/21/exp-ln
/// Credit to Remco Bloemen under MIT license: https://2Ï€.com/22/exp-ln
function lnWad(int256 x) internal pure returns (int256 r) {
/// @solidity memory-safe-assembly
assembly {
Expand Down Expand Up @@ -509,7 +509,7 @@ library FixedPointMathLib {
/// @dev Calculates `floor(x * y / d)` with full precision, rounded up.
/// Throws if result overflows a uint256 or when `d` is zero.
/// Credit to Uniswap-v3-core under MIT license:
/// https://github.com/Uniswap/v3-core/blob/contracts/libraries/FullMath.sol
/// https://github.com/Uniswap/v3-core/blob/main/contracts/libraries/FullMath.sol
function fullMulDivUp(uint256 x, uint256 y, uint256 d) internal pure returns (uint256 result) {
result = fullMulDiv(x, y, d);
/// @solidity memory-safe-assembly
Expand Down

0 comments on commit 330d9ac

Please sign in to comment.