Skip to content

fix(analytics): per-asset money totals — stop summing USDC + XLM together - #665

Open
yggdrasilworld wants to merge 1 commit into
MergeFi:mainfrom
yggdrasilworld:fix/money-per-asset-574
Open

yggdrasilworld wants to merge 1 commit into
MergeFi:mainfrom
yggdrasilworld:fix/money-per-asset-574

Conversation

@yggdrasilworld

Copy link
Copy Markdown

What

Every monetary aggregate ignored asset — SUM(amount) across all currencies returned one meaningless number (a sponsor paying 100 USDC + 100 XLM saw 'totalSpent: 200').

Fix

Per-asset breakdowns grouped by asset:

  • totalSpendByAsset, budgetLockedByAsset (sponsor dashboard)
  • totalPaidOutByAsset (platform summary)

The single-number fields stay (marked @deprecated) so existing consumers don't break.

Resolves #574

…ther

Every monetary aggregate ignored asset — SUM(amount) across all currencies
returned one meaningless number (a sponsor paying 100 USDC + 100 XLM saw
'200'). Add per-asset breakdowns grouped by asset:

- totalSpendByAsset, budgetLockedByAsset (sponsor dashboard)
- totalPaidOutByAsset (platform summary)

The single-number fields stay (marked deprecated) so existing consumers
don't break, but the per-asset breakdowns give the currency-correct totals.

Resolves MergeFi#574
@vercel

vercel Bot commented Oct 14, 2026

Copy link
Copy Markdown

@yggdrasilworld is attempting to deploy a commit to the chonilius' projects Team on Vercel.

A member of the Team first needs to authorize it.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sponsor and analytics money totals add USDC and XLM amounts together into one number

1 participant