Skip to content

dashboard: Fee Metrics live-FX profit, net total, and External table UX - #130

Merged
yrong merged 6 commits into
mainfrom
ron/dashboard-live-profit-fee-metrics
Jul 31, 2026
Merged

dashboard: Fee Metrics live-FX profit, net total, and External table UX#130
yrong merged 6 commits into
mainfrom
ron/dashboard-live-profit-fee-metrics

Conversation

@yrong

@yrong yrong commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Live-FX Profit: P→E and V2 E→P Fee Metrics Profit is computed at live ETH/DOT spot prices (fee − delivery cost), so it matches Total Income − Expend instead of drifting via historical income_sum. V1 E→P still uses indexed historical income (fees not reliably in ETH).
  • All Snowbridge Fee Profit: highlighted strip above Fee Metrics:
    P↔E service (V1+V2 Snowbridge) + P↔K service − two-phase BEEFY
    External relayer profit is excluded. Per-lane Profit cards still do not subtract two-phase; only this net total does.
  • P→E layout: Consensus Update (Beefy) is shown before V1 (Legacy).
  • External transfers table: client-side pagination (5 rows per page) with Prev/Next; API still caps at 100 most-recent transfers.

Test plan

  • Fee Metrics 7d / 60d: P→E Profit ≈ Total Income − Expend (within rounding)
  • All Snowbridge Fee Profit ≈ sum of Snowbridge P↔E profits + P↔K − two-phase cost; External not included
  • P→E section order: Consensus Update → V1 → V2 …
  • External table pages at 5 rows; Prev/Next and range label work

yrong added 6 commits July 31, 2026 12:53
Historical income_sum used fill-time prices, so Profit drifted from
Total Income − Expend. Revalue fee and delivery costs at spot prices
for P→E and V2 E→P; keep V1 E→P on indexed income.
Sum Snowbridge P↔E V1/V2 live profits with P↔K service fees, subtract
two-phase upkeep, and show an auditable breakdown above Fee Metrics.
@yrong yrong changed the title dashboard: live-FX Profit for Fee Metrics dashboard: Fee Metrics live-FX profit, net total, and External table UX Jul 31, 2026
@yrong
yrong merged commit 0922151 into main Jul 31, 2026
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.

1 participant