Skip to content

Conversation

@wackerow
Copy link
Member

@wackerow wackerow commented Oct 4, 2025

Description

  • fix: enhance fetchEthStakedBeaconchain with timeout and retry logic
  • feat: add/update api utils, constants and types
  • feat: create dedicated beaconcha.in epoch and ethstore fetches—epoch contained validator count and total eth staked values (used on homepage, enterprise, staking pages), and ethstore contains APR data used on staking page
  • feat: add/update mock data
  • refactor: use new beacon chain api fetches with new timeout/retry/revalidation logic
  • deprecate: fetchEthStakedBeaconchain
  • ui: add fallback "—" for zero values on staking page

Prevents 500 response if API unavailable, using next revalidation to store cache from fetches, and guards against any fetching spikes or stampedes. Returns "error" state instead of throwing—subsequently displaying data error message for metric, instead of a 500 page.

Related Issue

@netlify
Copy link

netlify bot commented Oct 4, 2025

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit 6a4c844
🔍 Latest deploy log https://app.netlify.com/projects/ethereumorg/deploys/68e2bc9806e77800087eccd8
😎 Deploy Preview https://deploy-preview-16436--ethereumorg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
7 paths audited
Performance: 42 (🔴 down 1 from production)
Accessibility: 94 (no change from production)
Best Practices: 92 (no change from production)
SEO: 100 (🟢 up 8 from production)
PWA: 59 (no change from production)
View the detailed breakdown and full score reports

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

@github-actions github-actions bot added config ⚙️ Changes to configuration files tooling 🔧 Changes related to tooling of the project labels Oct 4, 2025
@wackerow wackerow marked this pull request as draft October 4, 2025 17:17
@wackerow
Copy link
Member Author

wackerow commented Oct 5, 2025

(User linking issues above has been reported for abuse to GitHub)

@wackerow wackerow changed the title [debug] add timeout and retry logic to data fetch [hot-fix] add timeout and retry logic to data fetch Oct 5, 2025
@wackerow wackerow marked this pull request as ready for review October 5, 2025 19:41
@corwintines corwintines merged commit bb25bcc into master Oct 6, 2025
13 of 14 checks passed
@corwintines corwintines deleted the hot-fit-unstable-cache branch October 6, 2025 22:54
@wackerow wackerow mentioned this pull request Oct 8, 2025
2 tasks
This was referenced Oct 9, 2025
This was referenced Oct 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

config ⚙️ Changes to configuration files tooling 🔧 Changes related to tooling of the project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants