setPair

function setPair(
    address _pairContract,
    address _tokenA,
    address _tokenB
) external onlyAdmin

Pair Contract ๋“ฑ๋ก

โ€ป ์ค‘๋ณต ํŽ˜์–ด ํ† ํฐ ์ปจํŠธ๋ž™ํŠธ ์‹œ ๋ฎ์–ด์”€

Parameters

TypeValueDescription

address

_pariContract

ํŽ˜์–ด ์ปจํŠธ๋ž™ํŠธ ์ฃผ์†Œ

address

_tokenA

์„ค์ •ํ•  ํŽ˜์–ด ํ† ํฐA ์ฃผ์†Œ

address

_tokenB

์„ค์ •ํ•  ํŽ˜์–ด ํ† ํฐB ์ฃผ์†Œ

Example

// ํŽ˜์–ด ์ปจํŠธ๋ž™ํŠธ ๋“ฑ๋ก
await MantiswapFactoryContract.setPair(
    pairContract.address,
    mockToken0Contract.address, 
    mockToken1Contract.address
)   

2022.12.22

Last updated