test: update asserts in base network test
This commit is contained in:
@@ -983,7 +983,7 @@ contract TychoRouterTest is TychoRouterTestSetup {
|
|||||||
// Make sure to set the fork block to 26857267 for base network
|
// Make sure to set the fork block to 26857267 for base network
|
||||||
function testSwapSingleBase() public {
|
function testSwapSingleBase() public {
|
||||||
vm.skip(true);
|
vm.skip(true);
|
||||||
uint256 amountIn = 100 * 1e6;
|
uint256 amountIn = 10 * 10 ** 6;
|
||||||
deal(BASE_USDC, tychoRouterAddr, amountIn);
|
deal(BASE_USDC, tychoRouterAddr, amountIn);
|
||||||
|
|
||||||
bytes memory protocolData = encodeUniswapV2Swap(
|
bytes memory protocolData = encodeUniswapV2Swap(
|
||||||
@@ -997,7 +997,6 @@ contract TychoRouterTest is TychoRouterTestSetup {
|
|||||||
swaps[0] = swap;
|
swaps[0] = swap;
|
||||||
|
|
||||||
tychoRouter.exposedSwap(amountIn, 2, pleEncode(swaps));
|
tychoRouter.exposedSwap(amountIn, 2, pleEncode(swaps));
|
||||||
assertEq(IERC20(BASE_USDC).balanceOf(tychoRouterAddr), 0);
|
assertGt(IERC20(BASE_MAG7).balanceOf(tychoRouterAddr), 1379830606);
|
||||||
assertGt(IERC20(BASE_MAG7).balanceOf(tychoRouterAddr), 0);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -170,7 +170,6 @@ contract UniswapV2ExecutorTest is UniswapV2ExecutorExposed, Test, Constants {
|
|||||||
|
|
||||||
uniswapV2Exposed.swap(amountIn, protocolData);
|
uniswapV2Exposed.swap(amountIn, protocolData);
|
||||||
|
|
||||||
assertEq(IERC20(BASE_USDC).balanceOf(BOB), 0);
|
assertEq(IERC20(BASE_MAG7).balanceOf(BOB), 1379830606);
|
||||||
assertGe(IERC20(BASE_MAG7).balanceOf(BOB), 0);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user