Skip to content

Commit 822a54b

Browse files
committed
forge fmt
1 parent 62c743e commit 822a54b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

test/Fees.t.sol

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,17 @@ contract FeesTest is EulerSwapTestBase {
2020
// No fees
2121

2222
uint256 amountInNoFees = 1e18;
23-
uint256 amountOutNoFees = periphery.quoteExactInput(address(eulerSwap), address(assetTST), address(assetTST2), amountInNoFees);
23+
uint256 amountOutNoFees =
24+
periphery.quoteExactInput(address(eulerSwap), address(assetTST), address(assetTST2), amountInNoFees);
2425
assertApproxEqAbs(amountOutNoFees, 0.9983e18, 0.0001e18);
2526

2627
// With fees: Increase input amount so that corresponding output amount matches
2728

2829
eulerSwap = createEulerSwap(60e18, 60e18, fee, 1e18, 1e18, 0.9e18, 0.9e18);
2930

3031
uint256 amountIn = amountInNoFees * 1e18 / (1e18 - fee);
31-
uint256 amountOut = periphery.quoteExactInput(address(eulerSwap), address(assetTST), address(assetTST2), amountIn);
32+
uint256 amountOut =
33+
periphery.quoteExactInput(address(eulerSwap), address(assetTST), address(assetTST2), amountIn);
3234
assertApproxEqAbs(amountOut, amountOutNoFees, 1); // Same except for possible rounding down by 1
3335

3436
// Actually execute swap
@@ -68,14 +70,16 @@ contract FeesTest is EulerSwapTestBase {
6870
// No fees
6971

7072
uint256 amountOut = 1e18;
71-
uint256 amountInNoFees = periphery.quoteExactOutput(address(eulerSwap), address(assetTST), address(assetTST2), amountOut);
73+
uint256 amountInNoFees =
74+
periphery.quoteExactOutput(address(eulerSwap), address(assetTST), address(assetTST2), amountOut);
7275
assertApproxEqAbs(amountInNoFees, 1.0017e18, 0.0001e18);
7376

7477
// With fees: Increase input amount so output amount stays same
7578

7679
eulerSwap = createEulerSwap(60e18, 60e18, fee, 1e18, 1e18, 0.9e18, 0.9e18);
7780

78-
uint256 amountIn = periphery.quoteExactOutput(address(eulerSwap), address(assetTST), address(assetTST2), amountOut);
81+
uint256 amountIn =
82+
periphery.quoteExactOutput(address(eulerSwap), address(assetTST), address(assetTST2), amountOut);
7983
assertApproxEqAbs(amountIn, amountInNoFees * 1e18 / (1e18 - fee), 1); // Same except for possible rounding up by 1
8084

8185
// Actually execute swap

0 commit comments

Comments
 (0)