File tree Expand file tree Collapse file tree 1 file changed +3
-19
lines changed Expand file tree Collapse file tree 1 file changed +3
-19
lines changed Original file line number Diff line number Diff line change @@ -106,23 +106,11 @@ contract EulerSwapHook is EulerSwap, BaseHook {
106
106
function getHookPermissions () public pure override returns (Hooks.Permissions memory ) {}
107
107
function validateHookAddress (BaseHook) internal pure override {}
108
108
109
-
110
-
111
-
112
-
113
-
114
109
error SwapLimitExceeded ();
115
110
error OperatorNotInstalled ();
116
111
117
- function computeQuote (bool asset0IsInput , uint256 amount , bool exactIn )
118
- internal
119
- view
120
- returns (uint256 )
121
- {
122
- require (
123
- evc.isAccountOperatorAuthorized (eulerAccount, address (this )),
124
- OperatorNotInstalled ()
125
- );
112
+ function computeQuote (bool asset0IsInput , uint256 amount , bool exactIn ) internal view returns (uint256 ) {
113
+ require (evc.isAccountOperatorAuthorized (eulerAccount, address (this )), OperatorNotInstalled ());
126
114
require (amount <= type (uint112 ).max, SwapLimitExceeded ());
127
115
128
116
// exactIn: decrease received amountIn, rounding down
@@ -146,11 +134,7 @@ contract EulerSwapHook is EulerSwap, BaseHook {
146
134
return quote;
147
135
}
148
136
149
- function binarySearch (
150
- uint256 amount ,
151
- bool exactIn ,
152
- bool asset0IsInput
153
- ) internal view returns (uint256 output ) {
137
+ function binarySearch (uint256 amount , bool exactIn , bool asset0IsInput ) internal view returns (uint256 output ) {
154
138
int256 dx;
155
139
int256 dy;
156
140
You can’t perform that action at this time.
0 commit comments