docs: Fixed outdated comments

Some copypastas, some other improvements.
This commit is contained in:
TAMARA LIPOWSKI
2025-02-20 10:46:27 -05:00
parent 8a8d15477c
commit 2d267792f3
2 changed files with 9 additions and 16 deletions

View File

@@ -389,20 +389,14 @@ contract TychoRouterTest is TychoRouterTestSetup {
function testSwapCheckedNoPermit2() public {
// Trade 1 WETH for DAI with 1 swap on Uniswap V2
// Does permit2 token approval and transfer
// Checks amount out at the end
uint256 amountIn = 1 ether;
// Assume Alica has already transferred tokens to the TychoRouter
// Assume Alice has already transferred tokens to the TychoRouter
deal(WETH_ADDR, tychoRouterAddr, amountIn);
vm.startPrank(ALICE);
(
IAllowanceTransfer.PermitSingle memory permitSingle,
bytes memory signature
) = handlePermit2Approval(WETH_ADDR, amountIn);
bytes memory protocolData = encodeUniswapV2Swap(
WETH_ADDR, WETH_DAI_POOL, tychoRouterAddr, false
);