@@ -129,10 +129,24 @@ contract EulerSwapTestBase is EVaultTestBase {
129
129
uint256 py ,
130
130
uint256 cx ,
131
131
uint256 cy
132
+ ) internal returns (EulerSwap) {
133
+ return createEulerSwapFull (reserve0, reserve1, fee, px, py, cx, cy, 0 , address (0 ));
134
+ }
135
+
136
+ function createEulerSwapFull (
137
+ uint112 reserve0 ,
138
+ uint112 reserve1 ,
139
+ uint256 fee ,
140
+ uint256 px ,
141
+ uint256 py ,
142
+ uint256 cx ,
143
+ uint256 cy ,
144
+ uint256 protocolFee ,
145
+ address protcoolFeeRecipient
132
146
) internal returns (EulerSwap) {
133
147
removeInstalledOperator ();
134
148
135
- IEulerSwap.Params memory params = getEulerSwapParams (reserve0, reserve1, px, py, cx, cy, fee);
149
+ IEulerSwap.Params memory params = getEulerSwapParams (reserve0, reserve1, px, py, cx, cy, fee, protocolFee, protcoolFeeRecipient );
136
150
IEulerSwap.InitialState memory initialState =
137
151
IEulerSwap.InitialState ({currReserve0: reserve0, currReserve1: reserve1});
138
152
@@ -158,10 +172,24 @@ contract EulerSwapTestBase is EVaultTestBase {
158
172
uint256 py ,
159
173
uint256 cx ,
160
174
uint256 cy
175
+ ) internal returns (EulerSwap) {
176
+ return createEulerSwapHookFull (reserve0, reserve1, fee, px, py, cx, cy, 0 , address (0 ));
177
+ }
178
+
179
+ function createEulerSwapHookFull (
180
+ uint112 reserve0 ,
181
+ uint112 reserve1 ,
182
+ uint256 fee ,
183
+ uint256 px ,
184
+ uint256 py ,
185
+ uint256 cx ,
186
+ uint256 cy ,
187
+ uint256 protocolFee ,
188
+ address protocolFeeRecipient
161
189
) internal returns (EulerSwap) {
162
190
removeInstalledOperator ();
163
191
164
- IEulerSwap.Params memory params = getEulerSwapParams (reserve0, reserve1, px, py, cx, cy, fee);
192
+ IEulerSwap.Params memory params = getEulerSwapParams (reserve0, reserve1, px, py, cx, cy, fee, protocolFee, protocolFeeRecipient );
165
193
IEulerSwap.InitialState memory initialState =
166
194
IEulerSwap.InitialState ({currReserve0: reserve0, currReserve1: reserve1});
167
195
@@ -235,7 +263,9 @@ contract EulerSwapTestBase is EVaultTestBase {
235
263
uint256 py ,
236
264
uint256 cx ,
237
265
uint256 cy ,
238
- uint256 fee
266
+ uint256 fee ,
267
+ uint256 protocolFee ,
268
+ address protocolFeeRecipient
239
269
) internal view returns (EulerSwap.Params memory ) {
240
270
return IEulerSwap.Params ({
241
271
vault0: address (eTST),
@@ -248,8 +278,8 @@ contract EulerSwapTestBase is EVaultTestBase {
248
278
concentrationX: cx,
249
279
concentrationY: cy,
250
280
fee: fee,
251
- protocolFee: 0 ,
252
- protocolFeeRecipient: address ( 0 )
281
+ protocolFee: protocolFee ,
282
+ protocolFeeRecipient: protocolFeeRecipient
253
283
});
254
284
}
255
285
0 commit comments