Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
stake-pool: Add slippage to all deposit and withdraw ixs (#3980)
Browse files Browse the repository at this point in the history
  • Loading branch information
joncinque authored Feb 1, 2023
1 parent 891b4bd commit 6394e49
Show file tree
Hide file tree
Showing 8 changed files with 1,262 additions and 137 deletions.
3 changes: 3 additions & 0 deletions stake-pool/program/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ pub enum StakePoolError {
/// The fee account has an unsupported extension
#[error("UnsupportedFeeAccountExtension")]
UnsupportedFeeAccountExtension,
/// Instruction exceeds desired slippage limit
#[error("Instruction exceeds desired slippage limit")]
ExceededSlippage,
}
impl From<StakePoolError> for ProgramError {
fn from(e: StakePoolError) -> Self {
Expand Down
Loading

0 comments on commit 6394e49

Please # to comment.