Skip to content

Commit c650fad

Browse files
committed
some dev comments
1 parent c7d7898 commit c650fad

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libraries/CurveLib.sol

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ library CurveLib {
9999
}
100100
}
101101

102+
/// @dev Utility to derive optimal scale for computations in fInverse
102103
function computeScale(uint256 x) internal pure returns (uint256 scale) {
103104
// calculate number of bits in x
104105
uint256 bits = 0;
@@ -116,6 +117,7 @@ library CurveLib {
116117
}
117118
}
118119

120+
/// @dev Less efficient method to compute fInverse. Useful for testing.
119121
function binarySearch(IEulerSwap.Params memory p, uint256 newReserve1, uint256 xMin, uint256 xMax)
120122
internal
121123
pure

0 commit comments

Comments
 (0)