Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 6394e49

Browse files
authored
stake-pool: Add slippage to all deposit and withdraw ixs (#3980)
1 parent 891b4bd commit 6394e49

File tree

8 files changed

+1262
-137
lines changed

8 files changed

+1262
-137
lines changed

stake-pool/program/src/error.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,9 @@ pub enum StakePoolError {
141141
/// The fee account has an unsupported extension
142142
#[error("UnsupportedFeeAccountExtension")]
143143
UnsupportedFeeAccountExtension,
144+
/// Instruction exceeds desired slippage limit
145+
#[error("Instruction exceeds desired slippage limit")]
146+
ExceededSlippage,
144147
}
145148
impl From<StakePoolError> for ProgramError {
146149
fn from(e: StakePoolError) -> Self {

0 commit comments

Comments
 (0)