setFeeTo

function setFeeTo(
    address _tokenA,
    address _tokenB, 
    address _newFeeTo
) external onlyFeeAdmin

Protocol Fee λ°œμƒ μ‹œ Feeλ₯Ό 받을 λŒ€μƒ

β€» μ„€μ • 없을 μ‹œ λ™μž‘ μ•ˆν•¨(Protocol fee)

Parameters

TypeValueDescription

address

_tokenA

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

address

_tokenB

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

address

_newFeeTo

ν”„λ‘œν† μ½œ Fee 받을 λŒ€μƒ μ£Όμ†Œ

Example

// Protocol Fee 받을 λŒ€μƒ μ„€μ •
await MantiswapFactoryContract.setFeeTo(
    mockToken0Contract.address,
    mockToken1Contract.address,
    accounts[0].address
)    

2022.12.22

Last updated