MantiswapSwapRouter

Contract info

Contract name: MantiswapRouter

View the MantiswapSwapRouter contract on:

Source https://github.com/imantisco/mantiswap/blob/master/contracts/MantiswapSwapRouter.sol

ABI https://github.com/imantisco/mantiswap/blob/master/abi/MantiswapSwapRouter.json

How to Slippage Max Slippage:

    let slippagePercentage = 0.5;
    const slippageMax = 1 + slippagePercentage / 100;

    let max = amountsIn[0]*slippageMax;

Min Slippage:

    let slippagePercentage = 0.5;
    const slippageMin = 1 - slippagePercentage / 100;

    let min = amountsOuts[1]*slippageMin;

Error Values

Error String
Description

MantiswapSwapRouter: E01

트랜잭션 시간 초과

MantiswapSwapRouter: E02

가격 영향도 초과

MantiswapSwapRouter: E03

불충분한 교환 될 토큰 개수

MantiswapSwapRouter: E04

초과된 교환 토큰 개수

MantiswapSwapRouter: E05

유효하지 않은 주소(WETH)

2022.08.16

Last updated