MESHswapRouter

The swap router supports all the basic requirements of a front-end offering trading. The functions supported by default can be checked in the table below.

Address

Events, Read-Only Functions, and State-Changing Functions

Events

ExchangePos

event ExchangePos(address token0, uint amount0, address token1, uint amount1);
  • Positive exchange Event

  • parameters

    • token0 : User input token0 address

    • amount0 : User input token0 amount

    • token1 : User get token1 address

    • amount1 : User get token1 amount

ExchangeNeg

event ExchangeNeg(address token0, uint amount0, address token1, uint amount1);
  • Negative exchange Event

  • parameters

    • token0 : User input token0 address

    • amount0 : User input token0 amount

    • token1 : User get token1 address

    • amount1 : User get token1 amount

Last updated