Skip to content

update to use kong and public RPCs#670

Merged
rossgalloway merged 4 commits into
masterfrom
codex/use-kong-and-rpc-env
May 26, 2026
Merged

update to use kong and public RPCs#670
rossgalloway merged 4 commits into
masterfrom
codex/use-kong-and-rpc-env

Conversation

@rossgalloway
Copy link
Copy Markdown
Collaborator

@rossgalloway rossgalloway commented May 25, 2026

updates the code to use kong instead of yDaemon. mostly irrelevant as the pages using it are deprecated now, but if we add features that need vault data, now we have an easy path to get it.

updates the env to use the public yearn RPCs rather than my own alchemy account

@vercel
Copy link
Copy Markdown

vercel Bot commented May 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
yearn-docs Ready Ready Preview, Comment May 26, 2026 2:56pm

Request Review

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates vault snapshot/price reads from legacy yDaemon usage to Kong’s REST snapshot endpoint and removes the legacy Alchemy mainnet RPC fallback in favor of Yearn public RPC overrides, aligning runtime configuration with public infrastructure.

Changes:

  • Switch veYFI calculator vault pricing logic from yDaemon token price data to Kong vault snapshot-derived share price.
  • Remove ALCHEMY_API_KEY legacy RPC fallback and document the new RPC override expectations.
  • Add KONG_ENDPOINT configuration (defaulting to Yearn’s hosted Kong REST endpoint) and update env examples.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/ethereum/publicRpc.ts Removes legacy Alchemy fallback logic so RPCs come only from explicit overrides or Yearn public RPC defaults.
src/components/veYFI-calculator/veYFI-calculator.tsx Replaces yDaemon-based price fetch with Kong-based vault share price fetch.
src/components/veYFI-calculator/fetch.ts Adds Kong snapshot fetching + computation of vault share USD price.
README.md Updates configuration docs for Kong snapshots and removal of ALCHEMY_API_KEY.
docusaurus.config.js Wires KONG_ENDPOINT into customFields with a default Kong REST host.
.env.example Adds KONG_ENDPOINT example value.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/components/veYFI-calculator/fetch.ts Outdated
Comment thread src/components/veYFI-calculator/veYFI-calculator.tsx
Copy link
Copy Markdown
Collaborator

@engn33r engn33r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@rossgalloway rossgalloway merged commit 9c2e0f9 into master May 26, 2026
7 checks passed
@rossgalloway rossgalloway deleted the codex/use-kong-and-rpc-env branch May 26, 2026 15:04
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.

3 participants