Skip to content

Commit

Permalink
fix: cli liquidations
Browse files Browse the repository at this point in the history
  • Loading branch information
jkbpvsc committed Oct 24, 2023
1 parent a4a7182 commit 74737e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clients/rust/marginfi-cli/src/processor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1462,7 +1462,7 @@ pub fn marginfi_account_liquidate(
ix.accounts.extend(load_observation_account_metas(
&marginfi_account,
&banks,
vec![asset_bank_pk, liability_bank_pk],
vec![liability_bank_pk, asset_bank_pk],
vec![],
));
ix.accounts.extend(load_observation_account_metas(
Expand All @@ -1472,7 +1472,7 @@ pub fn marginfi_account_liquidate(
vec![],
));

let cu_ix = ComputeBudgetInstruction::set_compute_unit_limit(600_000);
let cu_ix = ComputeBudgetInstruction::set_compute_unit_limit(1_400_000);

let tx = Transaction::new_signed_with_payer(
&[ix, cu_ix],
Expand Down

0 comments on commit 74737e0

Please sign in to comment.