diff --git a/crates/bin/pcli/src/command/view/balance.rs b/crates/bin/pcli/src/command/view/balance.rs index d6a04139f7..b8946fe1ef 100644 --- a/crates/bin/pcli/src/command/view/balance.rs +++ b/crates/bin/pcli/src/command/view/balance.rs @@ -80,10 +80,12 @@ 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 { diff --git a/crates/core/asset/src/asset/denom_metadata.rs b/crates/core/asset/src/asset/denom_metadata.rs index 8b2b489f59..4e059468dc 100644 --- a/crates/core/asset/src/asset/denom_metadata.rs +++ b/crates/core/asset/src/asset/denom_metadata.rs @@ -345,6 +345,10 @@ impl Metadata { self.starts_with("auctionnft_") } + pub fn is_withdrawn_auction_nft(&self) -> bool { + self.starts_with("auctionnft_2") + } + pub fn is_opened_position_nft(&self) -> bool { let prefix = "lpnft_opened_".to_string();