Claim Principal and Staking Rewards

Once the staking duration is complete, users can claim their principal and any remaining rewards.

  • Function: claimStakePrincipal(uint stakeId)

  • Parameters:

    • stakeId: The ID of the stake.

  • Event Emitted:

event withdrawPrincipal(
    uint stakeId,
    address staker,
    uint principalAmount,
    uint claimedTimestamp
);

Last updated