Skip to content

Commit

Permalink
fix format style
Browse files Browse the repository at this point in the history
  • Loading branch information
rouzwelt committed Sep 5, 2023
1 parent 7feeec3 commit 14a19bc
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ contract GenericPoolOrderBookV3ArbOrderTakerTest is Test {
orders[0] = TakeOrderConfig(order, inputIOIndex, outputIOIndex, new SignedContextV1[](0));

arb.arb(
TakeOrdersConfigV2(0, type(uint256).max, type(uint256).max, orders, abi.encode(address(proxy), address(proxy), "")),
TakeOrdersConfigV2(
0, type(uint256).max, type(uint256).max, orders, abi.encode(address(proxy), address(proxy), "")
),
0
);
}
Expand Down Expand Up @@ -157,7 +159,9 @@ contract GenericPoolOrderBookV3ArbOrderTakerTest is Test {

vm.expectRevert(abi.encodeWithSelector(MinimumOutput.selector, minimumOutput, mintAmount));
arb.arb(
TakeOrdersConfigV2(0, type(uint256).max, type(uint256).max, orders, abi.encode(address(proxy), address(proxy), "")),
TakeOrdersConfigV2(
0, type(uint256).max, type(uint256).max, orders, abi.encode(address(proxy), address(proxy), "")
),
minimumOutput
);
}
Expand Down
19 changes: 11 additions & 8 deletions test/concrete/RouteProcessorOrderBookV3ArbOrderTaker.sender.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,14 @@ contract RouteProcessorOrderBookV3ArbOrderTakerTest is Test {
Token takerInput = new Token();
Token takerOutput = new Token();

RouteProcessorOrderBookV3ArbOrderTaker arb = RouteProcessorOrderBookV3ArbOrderTaker(Clones.clone(implementation));
RouteProcessorOrderBookV3ArbOrderTaker arb =
RouteProcessorOrderBookV3ArbOrderTaker(Clones.clone(implementation));
arb.initialize(
abi.encode(
OrderBookV3ArbOrderTakerConfigV1(
address(ob), EvaluableConfigV2(IExpressionDeployerV2(address(0)), "", new uint256[](0)), abi.encode(address(proxy))
address(ob),
EvaluableConfigV2(IExpressionDeployerV2(address(0)), "", new uint256[](0)),
abi.encode(address(proxy))
)
)
);
Expand All @@ -113,10 +116,7 @@ contract RouteProcessorOrderBookV3ArbOrderTakerTest is Test {
TakeOrderConfig[] memory orders = new TakeOrderConfig[](1);
orders[0] = TakeOrderConfig(order, inputIOIndex, outputIOIndex, new SignedContextV1[](0));

arb.arb(
TakeOrdersConfigV2(0, type(uint256).max, type(uint256).max, orders, abi.encode(bytes("0x00"))),
0
);
arb.arb(TakeOrdersConfigV2(0, type(uint256).max, type(uint256).max, orders, abi.encode(bytes("0x00"))), 0);
}

function testMinimumOutput(
Expand All @@ -138,11 +138,14 @@ contract RouteProcessorOrderBookV3ArbOrderTakerTest is Test {
Token takerInput = new Token();
Token takerOutput = new Token();

RouteProcessorOrderBookV3ArbOrderTaker arb = RouteProcessorOrderBookV3ArbOrderTaker(Clones.clone(implementation));
RouteProcessorOrderBookV3ArbOrderTaker arb =
RouteProcessorOrderBookV3ArbOrderTaker(Clones.clone(implementation));
arb.initialize(
abi.encode(
OrderBookV3ArbOrderTakerConfigV1(
address(ob), EvaluableConfigV2(IExpressionDeployerV2(address(0)), "", new uint256[](0)), abi.encode(address(proxy))
address(ob),
EvaluableConfigV2(IExpressionDeployerV2(address(0)), "", new uint256[](0)),
abi.encode(address(proxy))
)
)
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// SPDX-License-Identifier: CAL
pragma solidity ^0.8.18;

string constant ROUTE_PROCESSOR_ORDER_BOOK_ARB_ORDER_TAKER_META_PATH = "meta/RouteProcessorOrderBookV3ArbOrderTaker.rain.meta";
string constant ROUTE_PROCESSOR_ORDER_BOOK_ARB_ORDER_TAKER_META_PATH =
"meta/RouteProcessorOrderBookV3ArbOrderTaker.rain.meta";

0 comments on commit 14a19bc

Please sign in to comment.