setSwapFee

function setSwapFee(
    address _tokenA, 
    address _tokenB, 
    uint8 _newFee 
) external onlyFeeAdmin

Swap μ‹œ SwapFee λ°œμƒ SwapFee 에 λŒ€ν•œ μ„€μ •(1만 자리, μ†Œμˆ˜μ  2μžλ¦¬κΉŒμ§€, 일반적으둜 0.3%)

β€»Swap Fee 의 경우 LP λ“±λ‘ν•œ μ‚¬λžŒμ—κ²Œ 수수료둜 보상(μ§€λΆ„μœ¨μ— 따라 μ°¨λ“±)

Parameters

TypeValueDescription

address

_tokenA

μ„€μ •ν•  νŽ˜μ–΄ 토큰A μ£Όμ†Œ

address

_tokenB

μ„€μ •ν•  νŽ˜μ–΄ 토큰B μ£Όμ†Œ

uint8

_newFee

SwapFee κΈˆμ•‘(30 = 0.3%, μ΅œλŒ€ 1%)

Example

// Swap Fee μ„€μ •
await MantiswapFactoryContract.setSwapFee(
    mockToken0Contract.address,
    mockToken1Contract.address,
    30,
) 

// 0.3% 의 수수료

2022.12.22

Last updated