Skip to content

Commit

Permalink
the usual hack for jup usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Arrowana committed Mar 15, 2024
1 parent 9d3bc55 commit 0ccd915
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
4 changes: 2 additions & 2 deletions interfaces/stakedex_interface/src/instructions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1317,7 +1317,7 @@ impl From<DepositStakeKeys> for [AccountMeta; DEPOSIT_STAKE_IX_ACCOUNTS_LEN] {
[
AccountMeta {
pubkey: keys.user,
is_signer: true,
is_signer: false,
is_writable: true,
},
AccountMeta {
Expand Down Expand Up @@ -1600,7 +1600,7 @@ impl From<PrefundWithdrawStakeKeys> for [AccountMeta; PREFUND_WITHDRAW_STAKE_IX_
[
AccountMeta {
pubkey: keys.user,
is_signer: true,
is_signer: false,
is_writable: true,
},
AccountMeta {
Expand Down
6 changes: 1 addition & 5 deletions jup_interface/src/pool_pair/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,7 @@ pub fn manual_concat_get_account_metas<W: WithdrawStake + ?Sized, D: DepositStak
Ok(prefund_withdraw_prefix
.into_iter()
.chain(withdraw_from.virtual_ix(&withdraw_quote)?.accounts)
.chain(std::iter::once(AccountMeta {
pubkey: jup_v6_program_id::ID,
is_signer: false,
is_writable: false,
}))
.chain(std::iter::once(swap_params.placeholder_account_meta()))
.chain(deposit_prefix)
.chain(
deposit_to
Expand Down
2 changes: 1 addition & 1 deletion jup_interface/src/pool_pair/two_way.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ where
account_metas.extend(other_account_metas);
account_metas.push(swap_params.placeholder_account_meta());
Ok(SwapAndAccountMetas {
swap: Swap::StakeDexPrefundSwapViaStake { bridge_stake_seed },
swap: Swap::StakeDexPrefundWithdrawStakeAndDepositStake { bridge_stake_seed },
account_metas,
})
}
Expand Down

0 comments on commit 0ccd915

Please sign in to comment.