Skip to content

Commit

Permalink
revert the disabling hack
Browse files Browse the repository at this point in the history
  • Loading branch information
Arrowana committed Mar 15, 2024
1 parent 0ccd915 commit 81af641
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions stakedex_sdk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ impl Stakedex {
}

/// Creates all possible Amms from the underlying available Stakedexes
pub fn get_amms(self, ignore_cpi_limitation: bool) -> Vec<Box<dyn Amm + Send + Sync>> {
pub fn get_amms(self) -> Vec<Box<dyn Amm + Send + Sync>> {
#[derive(Clone)]
enum Stakedex {
SplStakePool(SplStakePoolStakedex),
Expand Down Expand Up @@ -556,10 +556,6 @@ impl Stakedex {
}
}

if !ignore_cpi_limitation {
return amms;
}

// SplStakePool WithdrawStake + DepositStake
// UnstakeIt DepositStake
// Marinade DepositStake
Expand Down

0 comments on commit 81af641

Please sign in to comment.