investSingleETH

function investSingleETH(
    uint _period,
    uint _deadline
)external payable ensure(_deadline)

코인 Staking 할 때 사용

Parameters

TypeValueDescription

uint

_period

스테이킹 할 기간(sec)

uint

_deadline

트랜잭션 최대 시간 (현재시간+종료시간, sec단)

Example

const overrides = {
    gasLimit: 9999999,
    value : ethers.utils.parseEther("1.0")
}

await stakingRouterContract.investSingleETH(
    10,
    MaxUint256,
    overrides
)

2022.12.23

Last updated