@@ -68,7 +68,6 @@ contract HyperdriveMatchingEngineV2Test is HyperdriveTest {
6868 memory longOrder = _createOrderIntent (
6969 alice,
7070 address (0 ),
71- address (0 ),
7271 100_000e18 , // fundAmount.
7372 95_000e18 , // bondAmount.
7473 IHyperdriveMatchingEngineV2.OrderType.OpenLong
@@ -78,7 +77,6 @@ contract HyperdriveMatchingEngineV2Test is HyperdriveTest {
7877 memory shortOrder = _createOrderIntent (
7978 bob,
8079 address (0 ),
81- address (0 ),
8280 101_000e18 , // fundAmount.
8381 95_000e18 , // bondAmount.
8482 IHyperdriveMatchingEngineV2.OrderType.OpenShort
@@ -143,7 +141,6 @@ contract HyperdriveMatchingEngineV2Test is HyperdriveTest {
143141 memory closeLongOrder = _createOrderIntent (
144142 alice,
145143 address (0 ),
146- address (0 ),
147144 90_000e18 , // min fund amount to receive.
148145 95_000e18 , // bond amount to close.
149146 IHyperdriveMatchingEngineV2.OrderType.CloseLong
@@ -155,7 +152,6 @@ contract HyperdriveMatchingEngineV2Test is HyperdriveTest {
155152 memory closeShortOrder = _createOrderIntent (
156153 bob,
157154 address (0 ),
158- address (0 ),
159155 5_001e18 , // min fund amount to receive.
160156 95_000e18 , // bond amount to close.
161157 IHyperdriveMatchingEngineV2.OrderType.CloseShort
@@ -194,7 +190,6 @@ contract HyperdriveMatchingEngineV2Test is HyperdriveTest {
194190 memory closeLongOrder = _createOrderIntent (
195191 alice,
196192 address (0 ),
197- address (0 ),
198193 90_000e18 ,
199194 95_000e18 ,
200195 IHyperdriveMatchingEngineV2.OrderType.CloseLong
@@ -206,7 +201,6 @@ contract HyperdriveMatchingEngineV2Test is HyperdriveTest {
206201 memory closeShortOrder = _createOrderIntent (
207202 bob,
208203 address (0 ),
209- address (0 ),
210204 90_000e18 ,
211205 95_000e18 ,
212206 IHyperdriveMatchingEngineV2.OrderType.CloseShort
@@ -230,7 +224,6 @@ contract HyperdriveMatchingEngineV2Test is HyperdriveTest {
230224 memory longOrder = _createOrderIntent (
231225 alice,
232226 address (0 ),
233- address (0 ),
234227 1e18 , // Very small fundAmount.
235228 95_000e18 ,
236229 IHyperdriveMatchingEngineV2.OrderType.OpenLong
@@ -240,7 +233,6 @@ contract HyperdriveMatchingEngineV2Test is HyperdriveTest {
240233 memory shortOrder = _createOrderIntent (
241234 bob,
242235 address (0 ),
243- address (0 ),
244236 1e18 , // Very small fundAmount.
245237 95_000e18 ,
246238 IHyperdriveMatchingEngineV2.OrderType.OpenShort
@@ -264,7 +256,6 @@ contract HyperdriveMatchingEngineV2Test is HyperdriveTest {
264256 memory longOrder = _createOrderIntent (
265257 alice,
266258 address (0 ),
267- address (0 ),
268259 100_000e18 ,
269260 95_000e18 ,
270261 IHyperdriveMatchingEngineV2.OrderType.OpenLong
@@ -274,7 +265,6 @@ contract HyperdriveMatchingEngineV2Test is HyperdriveTest {
274265 memory shortOrder = _createOrderIntent (
275266 bob,
276267 address (0 ),
277- address (0 ),
278268 100_000e18 ,
279269 90_000e18 , // Different but valid bond amount.
280270 IHyperdriveMatchingEngineV2.OrderType.OpenShort
@@ -335,7 +325,6 @@ contract HyperdriveMatchingEngineV2Test is HyperdriveTest {
335325 memory closeLongOrder = _createOrderIntent (
336326 alice,
337327 address (0 ),
338- address (0 ),
339328 100_000e18 ,
340329 200_000e18 , // More than what alice has.
341330 IHyperdriveMatchingEngineV2.OrderType.CloseLong
@@ -347,7 +336,6 @@ contract HyperdriveMatchingEngineV2Test is HyperdriveTest {
347336 memory closeShortOrder = _createOrderIntent (
348337 bob,
349338 address (0 ),
350- address (0 ),
351339 100_000e18 ,
352340 200_000e18 ,
353341 IHyperdriveMatchingEngineV2.OrderType.CloseShort
@@ -371,7 +359,6 @@ contract HyperdriveMatchingEngineV2Test is HyperdriveTest {
371359 memory longOrder = _createOrderIntent (
372360 alice,
373361 address (0 ),
374- address (0 ),
375362 100_000e18 ,
376363 95_000e18 ,
377364 IHyperdriveMatchingEngineV2.OrderType.OpenLong
@@ -382,7 +369,6 @@ contract HyperdriveMatchingEngineV2Test is HyperdriveTest {
382369 memory shortOrder = _createOrderIntent (
383370 bob,
384371 address (0 ),
385- address (0 ),
386372 100_000e18 ,
387373 95_000e18 ,
388374 IHyperdriveMatchingEngineV2.OrderType.OpenShort
@@ -401,7 +387,6 @@ contract HyperdriveMatchingEngineV2Test is HyperdriveTest {
401387 memory longOrder = _createOrderIntent (
402388 alice,
403389 address (0 ),
404- address (0 ),
405390 100_000e18 ,
406391 95_000e18 ,
407392 IHyperdriveMatchingEngineV2.OrderType.OpenLong
@@ -411,7 +396,6 @@ contract HyperdriveMatchingEngineV2Test is HyperdriveTest {
411396 memory shortOrder = _createOrderIntent (
412397 bob,
413398 address (0 ),
414- address (0 ),
415399 100_000e18 ,
416400 95_000e18 ,
417401 IHyperdriveMatchingEngineV2.OrderType.OpenShort
@@ -434,7 +418,6 @@ contract HyperdriveMatchingEngineV2Test is HyperdriveTest {
434418 memory longOrder = _createOrderIntent (
435419 alice,
436420 address (0 ),
437- address (0 ),
438421 100_000e18 ,
439422 95_000e18 ,
440423 IHyperdriveMatchingEngineV2.OrderType.OpenLong
@@ -444,7 +427,6 @@ contract HyperdriveMatchingEngineV2Test is HyperdriveTest {
444427 memory shortOrder = _createOrderIntent (
445428 bob,
446429 address (0 ),
447- address (0 ),
448430 50_000e18 , // Half the amount.
449431 47_500e18 , // Half the bonds.
450432 IHyperdriveMatchingEngineV2.OrderType.OpenShort
@@ -475,7 +457,6 @@ contract HyperdriveMatchingEngineV2Test is HyperdriveTest {
475457 memory longOrder = _createOrderIntent (
476458 alice,
477459 address (0 ),
478- address (0 ),
479460 100_000e18 ,
480461 95_000e18 ,
481462 IHyperdriveMatchingEngineV2.OrderType.OpenLong
@@ -486,7 +467,6 @@ contract HyperdriveMatchingEngineV2Test is HyperdriveTest {
486467 memory shortOrder = _createOrderIntent (
487468 bob,
488469 address (0 ),
489- address (0 ),
490470 100_000e18 ,
491471 95_000e18 ,
492472 IHyperdriveMatchingEngineV2.OrderType.OpenShort
@@ -506,7 +486,6 @@ contract HyperdriveMatchingEngineV2Test is HyperdriveTest {
506486 memory longOrder = _createOrderIntent (
507487 alice,
508488 address (0 ),
509- address (0 ),
510489 100_000e18 ,
511490 95_000e18 ,
512491 IHyperdriveMatchingEngineV2.OrderType.OpenLong
@@ -516,7 +495,6 @@ contract HyperdriveMatchingEngineV2Test is HyperdriveTest {
516495 memory shortOrder = _createOrderIntent (
517496 bob,
518497 address (0 ),
519- address (0 ),
520498 100_000e18 ,
521499 95_000e18 ,
522500 IHyperdriveMatchingEngineV2.OrderType.OpenShort
@@ -535,15 +513,13 @@ contract HyperdriveMatchingEngineV2Test is HyperdriveTest {
535513 /// @dev Creates an order intent.
536514 /// @param trader The address of the trader.
537515 /// @param counterparty The address of the counterparty.
538- /// @param feeRecipient The address of the fee recipient.
539516 /// @param fundAmount The amount of base tokens to fund the order.
540517 /// @param bondAmount The amount of bonds to fund the order.
541518 /// @param orderType The type of the order.
542519 /// @return The order intent.
543520 function _createOrderIntent (
544521 address trader ,
545522 address counterparty ,
546- address feeRecipient ,
547523 uint256 fundAmount ,
548524 uint256 bondAmount ,
549525 IHyperdriveMatchingEngineV2.OrderType orderType
@@ -552,7 +528,6 @@ contract HyperdriveMatchingEngineV2Test is HyperdriveTest {
552528 IHyperdriveMatchingEngineV2.OrderIntent ({
553529 trader: trader,
554530 counterparty: counterparty,
555- feeRecipient: feeRecipient,
556531 hyperdrive: hyperdrive,
557532 fundAmount: fundAmount,
558533 bondAmount: bondAmount,
0 commit comments