Skip to content

feat(web): expose katana debt-coverage components over graphql - #464

Open
matheus1lva wants to merge 1 commit into
mainfrom
matheus1lva/debt-coverage
Open

feat(web): expose katana debt-coverage components over graphql#464
matheus1lva wants to merge 1 commit into
mainfrom
matheus1lva/debt-coverage

Conversation

@matheus1lva

Copy link
Copy Markdown
Collaborator

Summary

katana-apr-service will emit three new vault-addressed estimated-APR components:
estimatedDebtCoverage (share of active debt backed by a live Morpho estimate vs oracle
fallback), morphoBaseAPY, and morphoRewardsAPR. Ingestion and both REST paths already
pass arbitrary component keys through, but GraphQL's EstimatedAprComponents is a fixed
field list and drops undeclared keys. This declares the three fields so they serialize,
and documents them.

How to review

  • packages/web/app/api/gql/typeDefs/vault.ts: three fields added to
    EstimatedAprComponents, nothing else.
  • packages/ingest/helpers/apy-apr.spec.ts: new case proving
    getLatestEstimatedAprV3 returns the three components unchanged for a
    katana-labelled row set.
  • docs/graphql.md: three table rows.
  • No change to getLatestEstimatedAprV3, resolvers, REST schemas, or promotion;
    no DB migration.

Test plan

  • Automated: bun --filter ingest test -- helpers/apy-apr.spec.ts (18 pass)

Risk / impact

Additive GraphQL fields; null until the katana-apr-service side ships, so existing
consumers see unchanged output. No rollback steps needed beyond revert.

@vercel

vercel Bot commented Aug 31, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
kong Ready Ready Preview Aug 31, 2026 8:55pm

Request Review

@matheus1lva
matheus1lva marked this pull request as draft August 31, 2026 20:56
@matheus1lva
matheus1lva marked this pull request as ready for review September 3, 2026 20:45
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.

1 participant