From ed2bc414d8c7fff7fcf3a9362a253cebf0c6fb44 Mon Sep 17 00:00:00 2001 From: royvardhan Date: Wed, 26 Feb 2025 17:34:22 +0530 Subject: [PATCH] test: update asserts in base network test --- foundry/test/TychoRouter.t.sol | 5 ++--- foundry/test/executors/UniswapV2Executor.t.sol | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/foundry/test/TychoRouter.t.sol b/foundry/test/TychoRouter.t.sol index 89e4d74..be68fbc 100644 --- a/foundry/test/TychoRouter.t.sol +++ b/foundry/test/TychoRouter.t.sol @@ -983,7 +983,7 @@ contract TychoRouterTest is TychoRouterTestSetup { // Make sure to set the fork block to 26857267 for base network function testSwapSingleBase() public { vm.skip(true); - uint256 amountIn = 100 * 1e6; + uint256 amountIn = 10 * 10 ** 6; deal(BASE_USDC, tychoRouterAddr, amountIn); bytes memory protocolData = encodeUniswapV2Swap( @@ -997,7 +997,6 @@ contract TychoRouterTest is TychoRouterTestSetup { swaps[0] = swap; tychoRouter.exposedSwap(amountIn, 2, pleEncode(swaps)); - assertEq(IERC20(BASE_USDC).balanceOf(tychoRouterAddr), 0); - assertGt(IERC20(BASE_MAG7).balanceOf(tychoRouterAddr), 0); + assertGt(IERC20(BASE_MAG7).balanceOf(tychoRouterAddr), 1379830606); } } diff --git a/foundry/test/executors/UniswapV2Executor.t.sol b/foundry/test/executors/UniswapV2Executor.t.sol index 92b7640..d905802 100644 --- a/foundry/test/executors/UniswapV2Executor.t.sol +++ b/foundry/test/executors/UniswapV2Executor.t.sol @@ -170,7 +170,6 @@ contract UniswapV2ExecutorTest is UniswapV2ExecutorExposed, Test, Constants { uniswapV2Exposed.swap(amountIn, protocolData); - assertEq(IERC20(BASE_USDC).balanceOf(BOB), 0); - assertGe(IERC20(BASE_MAG7).balanceOf(BOB), 0); + assertEq(IERC20(BASE_MAG7).balanceOf(BOB), 1379830606); } }