<!-- XE-13230 · [Medium] Supply auditor permanently reports conserved=false and misattributes emission across assets · testnet -->
*Markdown view of <https://bounty.xe.network/XE-13230>. The page is the record; this is the same page for reading.*

XE-13230 · Bounty

# \[Medium\] Supply auditor permanently reports conserved\=false and misattributes emission across assets

Closed · duplicate
—claimed Medium
[xe#356](https://github.com/xeprotocol/xe/issues/356)
filed 2026-11-11 07:43 UTC
by urelkdubdqwr

Verdict
:   Duplicate

Tier
:   —

Claimed
:   Medium

Area
:   Ops / testnet

Duplicate of
:   —

Tracked
:   —

Updated
:   2026-11-20 00:07 UTC

Told
:   2026-11-20 00:04 UTC

### Patches

None linked.

### History

- [543873](https://bounty.xe.network/log/543873) 2026-11-20 00:06 UTC github.state\_pushed
- [543865](https://bounty.xe.network/log/543865) 2026-11-20 00:06 UTC github.labels
- [543754](https://bounty.xe.network/log/543754) 2026-11-20 00:04 UTC reply.mirrored
- [543317](https://bounty.xe.network/log/543317) 2026-11-20 00:04 UTC proposal.adopted
- [543316](https://bounty.xe.network/log/543316) 2026-11-20 00:04 UTC reply.sent
- [543315](https://bounty.xe.network/log/543315) 2026-11-20 00:04 UTC ticket.status new → closed
- [541673](https://bounty.xe.network/log/541673) 2026-11-20 00:04 UTC proposal.adopted
- [541672](https://bounty.xe.network/log/541672) 2026-11-20 00:04 UTC ticket.facts area
- [541671](https://bounty.xe.network/log/541671) 2026-11-20 00:04 UTC proposal.adopted
- [541670](https://bounty.xe.network/log/541670) 2026-11-20 00:04 UTC ticket.facts
- [541669](https://bounty.xe.network/log/541669) 2026-11-20 00:04 UTC proposal.adopted
- [541668](https://bounty.xe.network/log/541668) 2026-11-20 00:04 UTC ticket.facts

[Full history](https://bounty.xe.network/log?ref=XE-13230) · [JSON](https://bounty.xe.network/v1/tickets/XE-13230) · [markdown](https://bounty.xe.network/XE-13230.md)

### Report

# \[Medium\] Supply auditor permanently reports conserved\=false and misattributes emission across assets

**Severity (suggested):** Medium (up to 2,500 XE) — Track 2

## Evidence (live)

`GET https://test.network/api/supply` → `conserved: false`, `stable: true`, with 600\+ notes: `account ... holds block(s) with an unsupported asset: [asset="XUSD"]` and `settle for lease ... has no lease block in the census; escrow unaccounted`.

## Root cause

- `core/supply.go:84-87` skips blocks failing `IsValidAsset` for issuance, but `core/supply.go:227-229` still adds balances for every asset including invalid ones. Any invalid-asset balance permanently splits balances-from-issuance → `Conserved=false` forever.
- `core/supply.go:242-251` keys settle emissions by lease-settle `Source` only, with no asset dimension: emissions always credited to `AssetXE.Emitted` and escrow always to `AssetXUSD.EscrowBurned` regardless of the lease asset — cross-asset misattribution. Also the `Source`→lease-hash join misses leases whose consumer frontier moved (renew).

## Impact

The protocol's only inflation/destruction detector is permanently red (alert fatigue); the XE "Emitted" figure includes non-XE lease emissions.

## Proof of concept

`curl -s https://test.network/api/supply | jq '{conserved, notes: (.notes|length)}'` → `conserved=false`, 600\+ notes, reproducible on every node.

## Fix direction

Use one asset gate for both issuance and balances; add the asset dimension to the settle emission/escrow keys; join settle→lease by lease hash not just consumer frontier.

### Thread

**urelkdubdqwr**2026-11-11 07:48 UTCgithub

XE payout address for this finding: `10b3dcf69edda38c4b579ade45e0bb110c04ce7215837d8f0b784916d5a50405`

**Joseph Denne**team2026-11-20 00:04 UTCgithub

Thanks. This is the same finding as an earlier report that is not public, which was filed first; the programme pays the
first verifiable submission, so this one closes as a duplicate. If you believe it is a different
bug, file a new report that links https://bounty.xe.network/XE-13230 and says what differs; it is read like any other.
