Enum stable_swap::instruction::AdminInstruction [−][src]
#[repr(C)]
pub enum AdminInstruction {
RampA(RampAData),
StopRampA,
Pause,
Unpause,
SetFeeAccount,
ApplyNewAdmin,
CommitNewAdmin,
SetNewFees(Fees),
}
Expand description
Admin only instructions.
Variants
RampA(RampAData)
Tuple Fields
0: RampAData
Starts a ramp of A to the next value.
[writable]
StableSwap[signer]
Admin account[]
Clock sysvar
StopRampA
Cancels the pending ramp of A.
[writable]
StableSwap[signer]
Admin account[]
Clock sysvar
Pause
Pauses swap, deposit, and withdraw_one.
[writable]
StableSwap[signer]
Admin account
Unpause
Unpauses the swap.
[writable]
StableSwap[signer]
Admin account
SetFeeAccount
Sets the account that receives admin fees.
[writable]
StableSwap[signer]
Admin account[]
Token account to receive fees. Must have mint of Token A or Token B.
ApplyNewAdmin
Finalizes the admin transfer. This is run after CommitNewAdmin.
[writable]
StableSwap[signer]
Admin account[]
Clock sysvar
CommitNewAdmin
Commits a new admin. The admin must accept ownership within 3 days.
[writable]
StableSwap[signer]
Admin account[]
New admin account[]
Clock sysvar
SetNewFees(Fees)
Tuple Fields
0: Fees
Updates the swap fees.
[writable]
StableSwap[signer]
Admin account
Implementations
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.