Fetch XECX APY from stakedXec.com/api/apy (the same endpoint as
the marketing site hero; a decimal fraction, displayed as percent) and
show it on the XECX token page. On viewports wider than mobile, also
show it next to "% staked" on the eCash header card.
Details
Details
- Reviewers
Fabien - Group Reviewers
Restricted Project - Commits
- rABCd991317be36e: [Cashtab] Show XECX APY on the XECX page and header
- cd cashtab && npm test -- src/components/Header/__tests__/Header.test.tsx src/components/Etokens/__tests__/Token.test.tsx src/components/Etokens/__tests__/TokenActions.test.js --watchAll=false --coverage=false
- Load the XECX token page; Token Stats shows APY matching stakedXec.com
- On a wide viewport, the eCash header card shows "X.XX% APY" next to "% staked"; on mobile that APY is hidden
- Block/fail https://stakedxec.com/api/apy; XECX page and header still render without APY
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Build Bitcoin ABC Diffs / Diff Testing (ai-review) passed.
CodeRabbit Review
Diff : committed changes only
Compare : HEAD → master
Directory : work
────────────────────────────────────────
(\(\
(• .•) To infinity and beyond! Scouring your code for pesky bugs.
────────────────────────────────────────
Review complete
No findings ✔
9 files reviewed:
- cashtab/src/components/Etokens/Token/index.tsx
- cashtab/src/components/Etokens/__tests__/Token.test.tsx
- cashtab/src/components/Etokens/__tests__/TokenActions.test.js
- cashtab/src/components/Header/__tests__/Header.test.tsx
- cashtab/src/components/Header/index.tsx
- cashtab/src/components/Header/styled.ts
- cashtab/src/constants/tokens.ts
- cashtab/src/test/index.tsx
- cashtab/src/wallet/useWallet.ts
────────────────────────────────────────