diff --git a/contracts/SwapHelperLib.sol b/contracts/SwapHelperLib.sol index 4f93b0a6..65daf550 100644 --- a/contracts/SwapHelperLib.sol +++ b/contracts/SwapHelperLib.sol @@ -141,7 +141,7 @@ library SwapHelperLib { path[2] = targetZRC20; } - IZRC20(zrc20).approve(address(router), amount); + IZRC20(zrc20).approve(router, amount); uint256[] memory amounts = IUniswapV2Router01(router) .swapExactTokensForTokens( amount, @@ -177,7 +177,7 @@ library SwapHelperLib { path[2] = targetZRC20; } - IZRC20(zrc20).approve(wzeta, amount); + IZRC20(zrc20).approve(router, amount); uint256[] memory amounts = IUniswapV2Router01(router) .swapExactTokensForTokens( amount,