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