fix split instruction doc (#7022)

This commit is contained in:
Rob Walker
2019-11-18 15:31:17 -08:00
committed by GitHub
parent a6196901de
commit cbf7c0080b
2 changed files with 136 additions and 79 deletions

View File

@@ -94,17 +94,14 @@ pub enum StakeInstruction {
RedeemVoteCredits,
/// Split u64 tokens and stake off a stake account into another stake
/// account. Requires Authorized::staker signature.
///
/// The split-off stake account must be Initialized and carry the
/// the same values for Lockup and Authorized as the source
/// or this instruction will fail.
/// account. Requires Authorized::staker signature and the
/// signature of the split-off stake address.
///
/// The source stake must be either Initialized or a Stake.
///
/// Expects 2 Accounts:
/// 0 - StakeAccount to be split
/// 1 - Initialized StakeAcount that will take the split-off amount
/// 1 - Uninitialized StakeAcount that will take the split-off amount
///
Split(u64),