Staking IDRX
This function users to create a new stake.
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