diff --git a/src/wallet/api/pending_transaction.cpp b/src/wallet/api/pending_transaction.cpp index 956d752f9..cfc6d1b5e 100644 --- a/src/wallet/api/pending_transaction.cpp +++ b/src/wallet/api/pending_transaction.cpp @@ -166,9 +166,15 @@ uint64_t PendingTransactionImpl::amount() const { uint64_t result = 0; for (const auto &ptx : m_pending_tx) { + if (ptx.m_tx.type == cryptonote::transaction_type::AUDIT || + ptx.m_tx.type == cryptonote::transaction_type::BURN || + ptx.m_tx.type == cryptonote::transaction_type::STAKE) { + result += ptx.m_tx.amount_burnt; + } else { for (const auto &dest : ptx.dests) { result += dest.amount; } + } } return result; }