Skip to content

Commit

Permalink
Fix cli
Browse files Browse the repository at this point in the history
  • Loading branch information
jgur-psyops committed Aug 23, 2024
1 parent 6fbdd7d commit 2c263bd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion clients/rust/marginfi-cli/src/processor/emissions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pub fn claim_all_emissions_for_bank(
.lending_account
.balances
.iter()
.any(|balance| balance.active && balance.bank_pk == bank_pk)
.any(|balance| balance.is_active() && balance.bank_pk == bank_pk)
{
Some(address)
} else {
Expand Down
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 @@ -698,7 +698,7 @@ pub fn group_auto_handle_bankruptcy_for_an_account(
.balances
.iter()
.filter(|b| {
b.active
b.is_active()
&& banks
.get(&b.bank_pk)
.unwrap()
Expand Down Expand Up @@ -828,7 +828,7 @@ pub fn handle_bankruptcy_for_accounts(
.balances
.iter()
.filter(|b| {
b.active
b.is_active()
&& banks
.get(&b.bank_pk)
.unwrap()
Expand Down
2 changes: 1 addition & 1 deletion clients/rust/marginfi-cli/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ pub fn load_observation_account_metas(
.lending_account
.balances
.iter()
.filter_map(|balance| balance.active.then_some(balance.bank_pk))
.filter_map(|balance| balance.is_active().then_some(balance.bank_pk))
.collect::<Vec<_>>();

for bank_pk in include_banks {
Expand Down

0 comments on commit 2c263bd

Please sign in to comment.