Assessment reports>BPF Stake Program>Threat Model>Instruction: DeactivateDelinquent

Instruction: DeactivateDelinquent

This instruction deactivates delegation of a stake account that has been delegated to a vote account that has been delinquent for at least MINIMUM_DELINQUENT_EPOCHS_FOR_DEACTIVATION epochs.

Input structure

pub enum StakeInstruction { /// # Account references /// 0. `[WRITE]` Delegated stake account /// 1. `[]` Delinquent vote account for the delegated stake account /// 2. `[]` Reference vote account that has voted at least once in the last /// `MINIMUM_DELINQUENT_EPOCHS_FOR_DEACTIVATION` epochs DeactivateDelinquent, }

Accounts

  • stake_account: The delegated stake account to be deactivated.

    • Signer: No.

    • Init: No.

    • PDA: No.

    • Writable: Yes.

    • Rent checks: None.

    • Ownership checks: The account must be owned by the program.

    • Address checks: None.

  • delinquent_vote_account: The delinquent vote account for the delegated stake account.

    • Signer: No.

    • Init: No.

    • PDA: No.

    • Writable: No.

    • Rent checks: None.

    • Ownership checks: The account must be owned by the Solana vote program.

    • Address checks: None.

  • reference_vote_account: The reference vote account that is active over previous MINIMUM_DELINQUENT_EPOCHS_FOR_DEACTIVATION epochs.

    • Signer: No.

    • Init: No.

    • PDA: No.

    • Writable: No.

    • Rent checks: None.

    • Ownership checks: The account must be owned by the Solana vote program.

    • Address checks: None.

Additional checks and behavior

  • The reference_vote_account must have been activated over the previous MINIMUM_DELINQUENT_EPOCHS_FOR_DEACTIVATION epochs.

  • The stake account must be in the Stake state.

  • The stake account must be delegated to the delinquent_vote_account.

  • The delinquent_vote_account must have been delinquent over the previous MINIMUM_DELINQUENT_EPOCHS_FOR_DEACTIVATION epochs.

  • Delegation of the stake account is deactivated if the above conditions are met.

Zellic © 2025Back to top ↑