Skip to content

fix: show error indication for APR when API calls fail #47

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 3, 2025

Conversation

justinbarry
Copy link
Contributor

  • Remove fallback values (42% inflation, 2% community tax) from API error handlers
  • Display em dash (—) instead of incorrect APR when data fails to load
  • Prevent misleading APR values from being shown to users

image

@justinbarry justinbarry requested a review from burnt-sun June 3, 2025 00:22
Copy link

cloudflare-workers-and-pages bot commented Jun 3, 2025

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
staking-mainnet 9a0a83c Visit preview Jun 03 2025, 12:28 AM

- Remove fallback values (42% inflation, 2% community tax) from API error handlers
- Display em dash (—) instead of incorrect APR when data fails to load
- Prevent misleading APR values from being shown to users
@justinbarry justinbarry force-pushed the fix/apr-error-handling branch from 103312e to 9a0a83c Compare June 3, 2025 00:25
@justinbarry justinbarry merged commit 817aae7 into main Jun 3, 2025
5 checks passed
@justinbarry justinbarry deleted the fix/apr-error-handling branch June 3, 2025 16:03
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.

2 participants