Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Staking IDRX

This function users to create a new stake.

Using an AI assistant or LLM? An index of these docs is available at llms.txt, and the full docs in one file at llms-full.txt.

  • Function: newStake(uint amount, uint stakeType)

  • Parameters:

    • amount: The amount of IDRX to stake.

    • stakeType: The type of stake (1 to 4 refer to Staking Type).

  • Event Emitted:

event addNewStake(
    uint stakeId,
    uint stakeType,
    address staker,
    uint stakeAmount,
    uint rewardAmount,
    uint createdTimestamp,
    uint unlockTimestamp
);

Last updated