setProtocolFee

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

μœ λ™μ„±ν’€(Liquidity Pool) ν•΄μ œ μ‹œ ν”„λ‘œν† μ½œ Fee λ°œμƒ Protocol Fee 에 λŒ€ν•œ μ„€μ •(1만 자리, μ†Œμˆ˜μ  2μžλ¦¬κΉŒμ§€, 일반적으둜 0.05%)

Parameters

TypeValueDescription

address

_tokenA

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

address

_tokenB

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

uint8

_newFee

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

Example

// Protocol Fee μ„€μ •
await MantiswapFactoryContract.setProtocolFee(
    mockToken0Contract.address, 
    mockToken1Contract.address, 
    5
);

// 0.05% 의 수수료

2022.12.22

Last updated