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 requirements. This function automatically uses the golden fisher's synchronized EVVM nonce for transactions.

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: Calls internal stakingBaseProcess with:
    • Golden fisher address as both payer and staker
    • Automatic synchronous EVVM nonce retrieval
    • No priority fees (set to 0)
    • Standard staking processing flow
info

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

goldenStaking Staking Flow - Happy Path goldenStaking Staking Flow - Failed Path

Unstaking Process

  1. Authorization Validation: Verifies caller is the designated goldenFisher address
  2. Process Execution: Calls internal stakingBaseProcess with:
    • Golden fisher address as both payer and staker
    • Automatic synchronous EVVM nonce retrieval
    • No priority fees (set to 0)
    • Standard unstaking processing flow
info

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

goldenStaking Unstaking Flow - Happy Path goldenStaking Unstaking Flow - Failed Path