Skip to content

add stake-pool #117

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Conversation

Perelyn-sama
Copy link
Contributor

No description provided.

@Perelyn-sama
Copy link
Contributor Author

Perelyn-sama commented Mar 30, 2025

Instructions:

  • Initialize
  • AddValidatorToPool
  • RemoveValidatorFromPool
  • DecreaseValidatorStake - DEPRECATED (since version 0.7.0, replaced by DecreaseValidatorStakeWithReserve)
  • IncreaseValidatorStake
  • SetPreferredValidator
  • UpdateValidatorListBalance
  • UpdateStakePoolBalance
  • CleanupRemovedValidatorEntries
  • DepositStake
  • WithdrawStake
  • SetManager
  • SetFee
  • SetStaker
  • DepositSol
  • SetFundingAuthority
  • WithdrawSol
  • CreateTokenMetadata
  • UpdateTokenMetadata
  • IncreaseAdditionalValidatorStake
  • DecreaseAdditionalValidatorStake
  • DecreaseValidatorStakeWithReserve
  • Redelegate - DEPRECATED (since version 2.0.0, with note: "The stake redelegate instruction used in this will not be enabled.")
  • DepositStakeWithSlippage
  • WithdrawStakeWithSlippage
  • DepositSolWithSlippage
  • WithdrawSolWithSlippage

@Perelyn-sama
Copy link
Contributor Author

deposit_authority = *info.key();
} else {
deposit_authority =
find_deposit_authority_program_address(&crate::ID, &self.stake_pool.key()).0;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the deposit_authority has not being informed, then no need to set one nor derive its address.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants