You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(treasury): tag inflows by where the money came from (#258)
The inflows panel could only say "internal = auction". Everything else — three
quarters of the rows — arrived unlabelled, so the page showed income without
saying what earned it.
Adds a source per row (auction / subnet / splits / transfer) plus summary tiles
for the sources actually present in the window.
The subnet rule is the part worth reading. Splits do not pay recipients
directly: `distribute()` credits the 0xSplits SplitsWarehouse singleton and each
recipient withdraws from it, so split income reaches the treasury `from` the
warehouse and never from the split. Traced and reconciled on-chain: the Gnars
Subnet Final Split has distributed $291.02, the treasury is a 20% recipient,
and $58.29 of USDC arrived from the warehouse — the nine cents of drift being
yield between distribution and withdrawal.
Known limit, and it is deliberate rather than overlooked. The warehouse is a
shared singleton, so today "warehouse USDC == subnet" holds only because the
subnet split is the only 0xSplits paying this treasury. The first time a rider
sponsorship split is distributed, its payout leaves the same address and would
be reported as Morpheus earnings. `splitsAmbiguous` and the `splits` tag are in
place for that day: flipping one flag degrades those rows to an honest "splits"
instead of claiming the wrong origin.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
0 commit comments