MantiswapPairRouter

Contract info

Contract name: MantiswapRouter

View the MantiswapPairRouter contract on:

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

ABI https://github.com/imantisco/mantiswap/blob/master/abi/MantiswapPairRouter.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 StringDescription

MantiswapPairRouter: E01

νŠΈλžœμž­μ…˜ μ‹œκ°„ 초과

MantiswapPairRouter: E02

토큰 μ£Όμ†Œκ°€ 0인 경우

MantiswapPairRouter: E03

λΆˆμΆ©λΆ„ν•œ 토큰A

MantiswapPairRouter: E04

λΆˆμΆ©λΆ„ν•œ 토큰B

MantiswapPairRouter: E05

토큰 개수 0

MantiswapPairRouter: E06

μš”μ²­λœ 토큰 κ°œμˆ˜κ°€ μœ λ™μ„± 초과

MantiswapPairRouter: E07

μœ λ™μ„± 0

MantiswapPairRouter: E08

λ¦¬μ›Œλ“œ 토큰 개수 0

MantiswapPairRouter: E09

전체 μœ λ™μ„± 0

2022.08.16

Last updated