swapExactTokensForTokens

This method swaps an exact amount of one ERC20 tokens (_token0) for another one (_token1).

Function

function swapExactTokensForTokens(
    address _to,
    address _token0,
    address _token1,
    uint _amount0In,
    uint _amount1OutMin,
    uint _deadline
  ) external returns (uint);

Parameters

Return values

Last updated