Skip to content

feat(dapp): admin total volume in naira, for every type - #198

Open
0xDeon wants to merge 1 commit into
mainfrom
feat/admin-naira-volume
Open

0xDeon wants to merge 1 commit into
mainfrom
feat/admin-naira-volume

Conversation

@0xDeon

@0xDeon 0xDeon commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

What changes

  • Overview card: the "Naira paid out" card becomes Total volume in naira. It is the dollar volume of every type (swaps, sends, off-ramps and the rest) times today's naira rate from Linq. The card's note shows the rate used and the naira actually paid to banks.
  • Every chain table: the naira column becomes In naira, showing each chain's volume in naira. Where off-ramps paid out, the naira paid sits under it.

How

  • The metrics route reads createLinqClient().getRate() and holds the result for 10 minutes.
  • If Linq can't be reached, the last rate is kept. With none at all, the card shows "—".

Caveat

  • Every row is priced at today's rate, not the rate on the day of each transaction. The card says "at today's ₦X per $1".

Tests

  • Route test: the overview sends ngnPerUsd.
  • Admin route tests: 18 of 18 pass. Typecheck and lint are clean.
  • Checked locally with sample data and the live Linq rate of ₦1,414.

The naira card counted only off-ramps paid to banks. It now shows the
whole volume, swaps, sends, off-ramps and the rest, in naira at today's
Linq rate, with that rate and the naira actually paid to banks under
it. Each chain's row does the same. The rate is held for ten minutes,
since the overview refreshes every thirty seconds.
@netlify

netlify Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for useintent ready!

Name Link
🔨 Latest commit 36de202
🔍 Latest deploy log https://app.netlify.com/projects/useintent/deploys/6afaf7e34008a0a9034d60c1
😎 Deploy Preview https://deploy-preview-198--useintent.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for useintentadapp ready!

Name Link
🔨 Latest commit 36de202
🔍 Latest deploy log https://app.netlify.com/projects/useintentadapp/deploys/6afaf7e31a60a8764340db1a
😎 Deploy Preview https://deploy-preview-198--useintentadapp.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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