investSingleETH

Updated : 2024.05.10

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
)

2024.05.10

Last updated