chore: fmt
This commit is contained in:
committed by
Diana Carvalho
parent
826eca4a80
commit
07d6323316
@@ -46,7 +46,9 @@ contract CurveExecutor is IExecutor {
|
||||
);
|
||||
}
|
||||
// Only add the value parameter when the first token is the native token
|
||||
return curveRouter.exchange{value: params.route[0] == nativeToken ? amountIn : 0}(
|
||||
return curveRouter.exchange{
|
||||
value: params.route[0] == nativeToken ? amountIn : 0
|
||||
}(
|
||||
params.route,
|
||||
params.swapParams,
|
||||
amountIn,
|
||||
|
||||
@@ -79,7 +79,13 @@ contract CurveExecutorTest is Test, Constants {
|
||||
address[5] memory pools;
|
||||
|
||||
bytes memory data = abi.encode(
|
||||
route, swapParams, amountIn, minAmountOut, pools, address(this), true
|
||||
route,
|
||||
swapParams,
|
||||
amountIn,
|
||||
minAmountOut,
|
||||
pools,
|
||||
address(this),
|
||||
true
|
||||
);
|
||||
|
||||
CurveExecutor.SwapParams memory params =
|
||||
@@ -112,7 +118,13 @@ contract CurveExecutorTest is Test, Constants {
|
||||
|
||||
deal(DAI_ADDR, address(curveExecutorExposed), amountIn);
|
||||
bytes memory data = abi.encode(
|
||||
route, swapParams, amountIn, minAmountOut, pools, address(this), true
|
||||
route,
|
||||
swapParams,
|
||||
amountIn,
|
||||
minAmountOut,
|
||||
pools,
|
||||
address(this),
|
||||
true
|
||||
);
|
||||
|
||||
uint256 amountOut = curveExecutorExposed.swap(amountIn, data);
|
||||
@@ -132,7 +144,13 @@ contract CurveExecutorTest is Test, Constants {
|
||||
|
||||
deal(address(curveExecutorExposed), amountIn);
|
||||
bytes memory data = abi.encode(
|
||||
route, swapParams, amountIn, minAmountOut, pools, address(this), false
|
||||
route,
|
||||
swapParams,
|
||||
amountIn,
|
||||
minAmountOut,
|
||||
pools,
|
||||
address(this),
|
||||
false
|
||||
);
|
||||
|
||||
uint256 amountOut = curveExecutorExposed.swap(amountIn, data);
|
||||
@@ -337,7 +355,13 @@ contract CurveExecutorTest is Test, Constants {
|
||||
|
||||
deal(WETH_ADDR, address(curveExecutorExposed), amountIn);
|
||||
bytes memory data = abi.encode(
|
||||
route, swapParams, amountIn, minAmountOut, pools, address(this), true
|
||||
route,
|
||||
swapParams,
|
||||
amountIn,
|
||||
minAmountOut,
|
||||
pools,
|
||||
address(this),
|
||||
true
|
||||
);
|
||||
|
||||
uint256 amountOut = curveExecutorExposed.swap(amountIn, data);
|
||||
|
||||
Reference in New Issue
Block a user