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