From bd6f74ca9ccb9d19ff6cfe6ecdb149254449ea37 Mon Sep 17 00:00:00 2001 From: royvardhan Date: Mon, 10 Mar 2025 18:09:46 +0530 Subject: [PATCH] docs: update docs at testSplitInputCyclicSwap and testSplitOutputCyclicSwap --- foundry/test/TychoRouter.t.sol | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/foundry/test/TychoRouter.t.sol b/foundry/test/TychoRouter.t.sol index 5b40291..7d3d5c8 100644 --- a/foundry/test/TychoRouter.t.sol +++ b/foundry/test/TychoRouter.t.sol @@ -1232,12 +1232,11 @@ contract TychoRouterTest is TychoRouterTestSetup { function testSplitInputCyclicSwap() public { // This test has start and end tokens that are the same // The flow is: - // ┌─── WETH (USV3 Pool 1) ───┐ - // │ │ - // USDC (60% split) ─┤ ├─> USDC - // │ │ - // └─── WETH (USV3 Pool 2) ───┘ - // + // ┌─── 60% ──> WETH ──> USDC ───┐ + // │ │ + // USDC ──────┤ ├──> USDC + // │ | + // └─── 40% ──> WETH ──> USDC ───┘ // 60% of USDC is swapped to WETH using Pool 1, then swapped back to USDC using Pool 2 // 40% of USDC is swapped to WETH using Pool 2, then swapped back to USDC using Pool 1 uint256 amountIn = 100 * 10 ** 6; @@ -1300,11 +1299,11 @@ contract TychoRouterTest is TychoRouterTestSetup { function testSplitOutputCyclicSwap() public { // This test has start and end tokens that are the same // The flow is: - // ┌─── (USV3 Pool 1, 60% split) ───┐ - // │ │ - // USDC ──(USV2)── ┤WETH ├─> USDC - // │ │ - // └─── (USV3 Pool 2, 40% split) ───┘ + // ┌─── (USV3, 60% split) ───┐ + // │ │ + // USDC ──(USV2) ── WETH──| ├─> USDC + // │ │ + // └─── (USV3, 40% split) ───┘ uint256 amountIn = 100 * 10 ** 6; deal(USDC_ADDR, tychoRouterAddr, amountIn);