setEmergency

function setEmergency(
    address _tokenA, 
    address _tokenB, 
    bool _emergency
) external onlyFeeAdmin

SwapκΈ°λŠ₯에 λŒ€ν•œ Emergency Flag μž₯치

Parameters

TypeValueDescription

address

_tokenA

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

address

_tokenB

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

bool

_emergency

true : swap 쀑지, false: swap μ‚¬μš©(κΈ°λ³Έ)

Example

// Emergency Flag μ„€μ •
await MantiswapFactoryContract.setEmergency(
    mockToken0Contract.address, 
    mockToken1Contract.address, 
    true
);

2023.06.12

Last updated