feat: Protocol vFDUSD FDUSD reference + Venus 1 vFDUSD Price (#571) #1105

Merged
PlasticDigits merged 2 commits from feat/571-protocol-vfdusd-venus into main 2026-08-20 03:42:19 +00:00
PlasticDigits commented 2026-08-20 02:28:13 +00:00 (Migrated from gitlab.com)

Summary

  • Relabel the /protocol vFDUSD CEX StatBox to FDUSD reference price (tab heading is vFDUSD, not vFDUSD / USD).
  • Indexer polls Venus Core Pool exchangeRateStored (view 0x182df0cd) and exposes human FDUSD per 1 vFDUSD on GET /api/v1/oracle/price/vfdusd (venus) plus GET /api/v1/oracle/price/vfdusd/venus.
  • USTC/LUNC stay unchanged; CEX vs Venus loading/errors are independent; browser CSP does not add BSC hosts.

Closes #571

Test plan

  • make verify-issue-571 (docs, indexer lib + api_oracle, Protocol RTL, Playwright e2e-smoke protocol-page with 5 workers)
  • Protocol RTL: FDUSD reference label, Venus isolation, XSS source → hardcoded Venus, em-dash for Infinity
  • make verify-issue-550 (serialized cargo --jobs 1; Playwright P1–P5)
  • make verify-issue-515 catalog / X1–X6
  • Production indexer: set BSC_RPC_URLS (never VITE_*); confirm Protocol vFDUSD tab shows both figures
  • Confirm no exchangeRateCurrent transaction and no /price/fdusd alias
## Summary - Relabel the `/protocol` vFDUSD CEX StatBox to **FDUSD reference price** (tab heading is **vFDUSD**, not **vFDUSD / USD**). - Indexer polls Venus Core Pool `exchangeRateStored` (view `0x182df0cd`) and exposes human **FDUSD per 1 vFDUSD** on `GET /api/v1/oracle/price/vfdusd` (`venus`) plus `GET /api/v1/oracle/price/vfdusd/venus`. - USTC/LUNC stay unchanged; CEX vs Venus loading/errors are independent; browser CSP does not add BSC hosts. Closes #571 ## Test plan - [x] `make verify-issue-571` (docs, indexer lib + `api_oracle`, Protocol RTL, Playwright e2e-smoke protocol-page with 5 workers) - [x] Protocol RTL: FDUSD reference label, Venus isolation, XSS source → hardcoded Venus, em-dash for Infinity - [x] `make verify-issue-550` (serialized cargo `--jobs 1`; Playwright P1–P5) - [x] `make verify-issue-515` catalog / X1–X6 - [ ] Production indexer: set `BSC_RPC_URLS` (never `VITE_*`); confirm Protocol vFDUSD tab shows both figures - [ ] Confirm no `exchangeRateCurrent` transaction and no `/price/fdusd` alias
PlasticDigits commented 2026-08-20 02:28:22 +00:00 (Migrated from gitlab.com)

marked this merge request as ready

marked this merge request as **ready**
PlasticDigits commented 2026-08-20 02:29:32 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
PlasticDigits (Migrated from gitlab.com) merged commit 350463ead8 into main 2026-08-20 03:42:19 +00:00
PlasticDigits commented 2026-08-20 03:54:27 +00:00 (Migrated from gitlab.com)

mentioned in issue #580

mentioned in issue #580
PlasticDigits commented 2026-08-20 03:54:28 +00:00 (Migrated from gitlab.com)

mentioned in issue #571

mentioned in issue #571
PlasticDigits commented 2026-08-20 03:54:52 +00:00 (Migrated from gitlab.com)

mentioned in issue #583

mentioned in issue #583
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
code/cl8y-dex-terraclassic!1105
No description provided.