File tree Expand file tree Collapse file tree 2 files changed +1
-65
lines changed
Expand file tree Collapse file tree 2 files changed +1
-65
lines changed Original file line number Diff line number Diff line change 99
1010pragma solidity ^ 0.8.27 ;
1111
12- import {Ternary} from "../math/Ternary.sol " ;
1312import {UnsafeMath, Math} from "../math/UnsafeMath.sol " ;
1413import {FullMath} from "../math/FullMath.sol " ;
1514import {FastLogic} from "../math/FastLogic.sol " ;
@@ -19,7 +18,6 @@ import {Sqrt} from "../math/Sqrt.sol";
1918import {IEulerSwap} from "../interfaces/IEulerSwap.sol " ;
2019
2120library CurveLib {
22- using Ternary for bool ;
2321 using UnsafeMath for uint256 ;
2422 using UnsafeMath for int256 ;
2523 using Math for uint256 ;
@@ -128,7 +126,7 @@ library CurveLib {
128126 // 3814697265625 is 5e17 with all the trailing zero bits removed to make the
129127 // constant smaller. The argument of `saturatingSub` is reduced to compensate
130128 uint256 shiftFourAc = (x0 * 3814697265625 ).bitLength ().saturatingSub (109 );
131- shift = ( shiftSquaredB < shiftFourAc). ternary ( shiftFourAc, shiftSquaredB) ;
129+ shift = shiftSquaredB < shiftFourAc ? shiftFourAc : shiftSquaredB;
132130 }
133131 uint256 twoShift = shift << 1 ;
134132
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments