Skip to content

fix: migrate remaining yDaemon vault requests to Kong - #259

Merged
matheus1lva merged 2 commits into
mainfrom
migration/kong-price-service-20261018
Oct 19, 2026
Merged

matheus1lva merged 2 commits into
mainfrom
migration/kong-price-service-20261018

Conversation

@matheus1lva

@matheus1lva matheus1lva commented Oct 18, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Replace the four remaining yDaemon requests with Kong REST: selected vault names, vault/strategy detection, the landing-page vault count, and the fee metadata fallback.

  • Read single-vault metadata from snapshots and classify vaults using meta.kind.
  • Count visible, non-retired V3 vaults on Ethereum, Base, Arbitrum and Katana from the Kong list.
  • Keep latest RPC → archive RPC → metadata fallback ordering for fees. Kong fees are already basis points; incomplete fee metadata fails instead of assuming zero.

New environment variables: none. Public REST requests use https://kong.yearn.fi/api/rest. Existing KONG_GRAPHQL_URL still controls the separate GraphQL metadata client. No Price Service integration is needed for these four calls.

Related Issue

Part of the yDaemon migration to Kong and the Yearn Price Service.

Motivation and Context

Remove these runtime yDaemon dependencies while preserving archive-RPC profit and fee accounting. The snapshot already returns both fee fields, so this does not require a Kong API change.

How Has This Been Tested?

Static source and diff review. Live GET requests to the public Kong list and the Ethereum USDT-1 snapshot succeeded; the snapshot returned meta.kind: "Multi Strategy", management fee 0 and performance fee 1000 basis points.

A paired live read of that vault returned identical historical net yield (0.03372622154868998) and TVL (5687466.9223230425) from yDaemon and Kong. yDaemon’s performance fee 0.1 matches Kong’s 1000 basis points. These are observations of the API data, not accounting regression tests.

Tests, lint, builds and typechecks were not run. This draft needs application and accounting validation before merge.

Resources

@github-actions
github-actions Bot had a problem deploying to preview October 18, 2026 17:46 Failure
@github-actions

Copy link
Copy Markdown

Deploy preview for y-partners ready!

Project:y-partners
Status: ✅  Deploy successful!
Preview URL:https://y-partners-w7044qj06-yearn.vercel.app
Latest Commit:5031c2d

Deployed with vercel-action

@matheus1lva
matheus1lva marked this pull request as ready for review October 19, 2026 11:08

@engn33r engn33r left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

all lgtm, no ydaemon references remain after these edits

@matheus1lva
matheus1lva merged commit 6fcda70 into main Oct 19, 2026
3 checks passed
@matheus1lva
matheus1lva deleted the migration/kong-price-service-20261018 branch October 19, 2026 13:27

This branch was successfully deployed

1 active deployment
preview — 5031c2df Deployed Oct 18, 2026 by github-actions[bot]
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