Skip to content

Commit

Permalink
Withdrawn auction NFTs no longer display when viewing balance
Browse files Browse the repository at this point in the history
  • Loading branch information
masonyonkers committed Aug 21, 2024
1 parent 0811b0a commit dd5d597
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bin/pcli/src/command/view/balance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ impl BalanceCmd {
(*index, asset.value(sum.into()))
})
})
// Exclude withdrawn LPNFTs.
// Exclude withdrawn LPNFTs and withdrawn auction NFTs.
.filter(|(_, value)| match asset_cache.get(&value.asset_id) {
None => true,
Some(denom) => !denom.is_withdrawn_position_nft(),
Some(denom) => !denom.is_withdrawn_position_nft() && !denom.is_withdrawn_auction_nft(),
});

for (index, value) in rows {
Expand Down

0 comments on commit dd5d597

Please sign in to comment.