Skip to content

Commit

Permalink
pcli: display withdrawn LPNFTs in view balance --by-note
Browse files Browse the repository at this point in the history
  • Loading branch information
hdevalence committed Feb 27, 2024
1 parent f10d6a4 commit 54185a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/bin/pcli/src/command/view/balance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,14 @@ impl BalanceCmd {
})
})
})
/* Don't exclude withdrawn LPNFTs in by_note, which is a more precise view.
// Exclude withdrawn LPNFTs.
.filter(|(_, value, _, _)| match asset_cache.get(&value.asset_id) {
None => true,
Some(denom) => !denom.is_withdrawn_position_nft(),
});
*/
;

for (index, value, source, return_address) in rows {
table.add_row(vec![
Expand Down

0 comments on commit 54185a5

Please sign in to comment.