Skip to content

Commit

Permalink
demo-router: contract + task
Browse files Browse the repository at this point in the history
  • Loading branch information
Rolaman committed Sep 26, 2024
1 parent 7560f3b commit 64a3771
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/UniswapV2Router01.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 64a3771

Please sign in to comment.