Skip to main content

goldenStaking

Function Type: external
Function Signature: goldenStaking(bool,uint256,bytes)
Function Selector: 0x475c31ff

The goldenStaking function provides administrative control over staking operations. It is exclusively accessible to the goldenFisher address, allowing privileged execution of stake/unstake actions that bypass standard verification (signature and nonce) requirements. This function operates under strict security parameters, prohibiting priority fees and processing payments via synchronous EVVM nonces.

Parameters

ParameterTypeDescription
isStakingbooltrue = Stake, false = Unstake
amountOfStakinguint256Amount of staking tokens to stake/unstake
signature_EVVMbytesEVVM authorization signature
note

The EVVM payment signature (signature_EVVM) follows the Single Payment Signature Structure.

Workflow

Staking Process

  1. Authorization Validation: Verifies caller is the designated goldenFisher address
  2. Process Execution: Invokes internal stakingUserProcess to:
    • Adjust staking balances
    • Update historical records
    • Handle unstaking cooldowns
    • Manage re-staking restrictions
    • Process payment via EVVM
    • Distribute applicable rewards
info

For detailed information about the stakingUserProcess implementation, refer to the stakingUserProcess.

Golden Staking

Unstaking Process

  1. Authorization Validation: Verifies caller is the designated goldenFisher address
  2. Process Execution: Invokes internal stakingUserProcess to:
    • Adjust staking balances
    • Update historical records
    • Manage unstaking cooldowns
    • Handle re-staking restrictions
    • Distribute applicable rewards
info

For detailed information about the stakingUserProcess implementation, refer to the stakingUserProcess

Golden Staking