From 74737e0dbe0d61f8ba1303332104c6f21621ad4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakob=20Pov=C5=A1i=C4=8D?= Date: Tue, 24 Oct 2023 10:21:35 +0200 Subject: [PATCH] fix: cli liquidations --- clients/rust/marginfi-cli/src/processor/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clients/rust/marginfi-cli/src/processor/mod.rs b/clients/rust/marginfi-cli/src/processor/mod.rs index b1458b41..7dd004d9 100644 --- a/clients/rust/marginfi-cli/src/processor/mod.rs +++ b/clients/rust/marginfi-cli/src/processor/mod.rs @@ -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( @@ -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],