Unstaking

Unstaking converts validator or delegator shares into a scheduled GEN withdrawal. An exit is processed through epoch accounting, stops earning after the exited stake leaves the active record, and becomes claimable after the unbonding period.

It does not wait for every transaction in which the validator participated to finalize.

Exit lifecycle

  1. After epoch 0, the validator owner or delegator submits an exit. The requested shares immediately leave the holder's available balance.
  2. The protocol queues the withdrawal. When validatorPrime() processes it, the contract prices the shares and updates the validator's active stake and selection weight.
  3. Once removed from active stake, those shares no longer contribute to selection weight or earn rewards.
  4. After the unbonding period, and once any slashing for the epochs the stake served has been settled, the beneficiary claims the GEN. A delegator claims directly from the Staking contract; only the delegator can submit that claim. A validator owner claims through the ValidatorWallet, which forwards the GEN to the owner.

Under the current rules, the exit epoch still earns its normal rewards, and the unbonding period is seven epochs measured from the exit request. These values are protocol parameters.

Validator exits

A validator can exit part of its shares and remain eligible if the resulting self-stake still meets the active minimum. A full exit, or a partial exit below the minimum, removes it from new consensus selection after the staged update takes effect.

The owner key controls validator exits and claims. The node's operator key cannot withdraw stake.

Delegator exits

A delegator exits shares separately for each validator pool. One claim can collect multiple matured withdrawals from the same pool. Each withdrawal includes rewards and remains exposed to slashing for the epochs the stake served.

Use current contract views or the SDK to calculate shares and claimability; do not convert a desired GEN amount to shares using a stale exchange rate.

For step-by-step commands, see the staking guide.