Skip to main content

presaleClaims

Function Type: internal

The presaleClaims function enforces participation rules for presale stakers by validating eligibility conditions before allowing staking or unstaking operations.

Parameters

ParameterTypeDescription
_isStakingbooltrue = Stake, false = Unstake
_useraddressUser address

Workflow

  1. Public Staking Status: Verifies allowPublicStaking.flag is disabled (presale staking is only valid when public staking is not active)
  2. Presale Participant Verification: Confirms the user is registered as a presale participant
  3. Token Limit Enforcement: Ensures the user has not exceeded the 2 Staking maximum allocation

Presale Claims