From 64a377149178f0f08975b8142f4950a52971f869 Mon Sep 17 00:00:00 2001 From: rolaman Date: Thu, 26 Sep 2024 16:34:01 +0300 Subject: [PATCH] demo-router: contract + task --- contracts/UniswapV2Router01.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/UniswapV2Router01.sol b/contracts/UniswapV2Router01.sol index 20fcde5..3b1bf69 100644 --- a/contracts/UniswapV2Router01.sol +++ b/contracts/UniswapV2Router01.sol @@ -47,7 +47,7 @@ contract UniswapV2Router01 is IUniswapV2Router01, NilCurrencyBase { if (tokens.length != 1) { revert("UniswapV2Router: should contains only pair token"); } - smartCall(pair, tokens, abi.encodeWithSignature("swap(uint,uint,address)", amount0Out, amount1Out, to)); + smartCall(pair, tokens, abi.encodeWithSignature("swap(uint256,uint256,address)", amount0Out, amount1Out, to)); } // TODO: This method are used for swapping via multiple pairs. Not supported in nil for now