Skip to content

Add Yearn Wrapped wallet recaps - #1478

Open
rossgalloway wants to merge 2 commits into
ross/multi-wallet-portfoliofrom
ross/yearn-wrapped
Open

rossgalloway wants to merge 2 commits into
ross/multi-wallet-portfoliofrom
ross/yearn-wrapped

Conversation

@rossgalloway

Copy link
Copy Markdown
Collaborator

Summary

Add Yearn Wrapped, a standalone 2026 recap for a wallet's Yearn vault history. Users can open a recap by connecting a wallet or entering an address or ENS name, then navigate the story and export cards as images.

This PR builds on #1477 and targets the portfolio branch.

  • Add a recap endpoint that uses the existing settled holdings and Growth Index. The recap distinguishes unavailable data from zero values and labels the date range.
  • Share a versioned response schema between the Yearn server and the Wrapped app. Include an explicit demo with fictional data.

How to review

  1. Run the main Yearn app and Wrapped using the instructions in apps/wrapped/README.md. Point YEARN_HOLDINGS_URL at the main app.
  2. Open the demo, navigate the cards using the controls or keyboard, and try saving a card image.
  3. Open a recap with a known Yearn wallet. Check the date range and Growth Index language. Try an address with no history to review the empty state.

Test plan

  • 30 focused tests across the Wrapped app, response schema, and holdings endpoint
  • Type checks, lint, client/server boundary check, and production build
  • Chromium smoke test for the demo, next-card navigation, and invalid recap request handling

Risk / impact

Wrapped is read-only and uses the main app's holdings backend for live recaps. Recap latency and coverage depend on the existing holdings data and upstream providers. The standalone app has automatic Git deployment disabled during review.

Build a standalone 2026 wallet recap using settled Yearn holdings
and the existing Growth Index. Add a holdings API adapter and a
shared response schema for the recap frontend.
@vercel

vercel Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
yearnfi Ready Ready Preview Dec 1, 2026 4:14am UTC

Request Review

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Dependency Review

The following issues were found:
  • ❌ 2 vulnerable package(s)
  • ✅ 0 package(s) with incompatible licenses
  • ✅ 0 package(s) with invalid SPDX license definitions
  • ⚠️ 4 package(s) with unknown licenses.
See the Details below.

Vulnerabilities

apps/wrapped/package.json

NameVersionVulnerabilitySeverity
next16.4.1Next.js: Information disclosure across root params when a 'use cache' function is called through unstable_cache()moderate
Next.js: Cache leak across root param values in nested 'use cache' functions via delayed inner stream metadatamoderate
Next.js: Cache poisoning of shared fallback shells in Cache Components via request-supplied placeholder route paramsmoderate
Next.js: Cross-user cache disclosure and poisoning in Next.js use cache with binary argumentsmoderate
Next.js: Cross-client response injection and disclosure in self-hosted Next.js applications forwarding fetched responsesmoderate
Next.js: HttpOnly cookie exposure through internal response header on Next.js Edge runtime routesmoderate
Next.js: SVG rejection bypass in the image optimizationmoderate

packages/wrapped-contract/package.json

NameVersionVulnerabilitySeverity
zod4.6.5Zod can exhaust memory while validating oversized constrained collectionshigh
Only included vulnerabilities with severity moderate or higher.

License Issues

apps/wrapped/package.json

PackageVersionLicenseIssue Type
@yearn/site-headerworkspace:*NullUnknown License
@yearn/wallet-uiworkspace:*NullUnknown License
@yearn/wrapped-contractworkspace:*NullUnknown License

apps/yearn/package.json

PackageVersionLicenseIssue Type
@yearn/wrapped-contractworkspace:*NullUnknown License
Allowed Licenses: MIT, Apache-2.0, BSD-3-Clause, BSD-2-Clause, ISC, CC0-1.0, CC-BY-3.0, CC-BY-4.0, Unlicense

OpenSSF Scorecard

Scorecard details
PackageVersionScoreDetails
npm/next 16.4.1 🟢 6.2
Details
CheckScoreReason
Code-Review🟢 9Found 28/29 approved changesets -- score normalized to 9
Maintained🟢 1030 commit(s) and 3 issue activity found in the last 90 days -- score normalized to 10
Dangerous-Workflow🟢 10no dangerous workflow patterns detected
Token-Permissions⚠️ 0detected GitHub workflow tokens with excessive permissions
CII-Best-Practices⚠️ 0no effort to earn an OpenSSF best practices badge detected
License🟢 10license file detected
Branch-Protection⚠️ -1internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration
Packaging🟢 10packaging workflow detected
Signed-Releases⚠️ -1no releases found
Security-Policy🟢 10security policy file detected
Binary-Artifacts⚠️ 0binaries present in source code
Pinned-Dependencies🟢 4dependency not pinned by hash detected -- score normalized to 4
SAST⚠️ 0SAST tool is not run on all commits -- score normalized to 0
Fuzzing🟢 10project is fuzzed
npm/@biomejs/biome 2.5.14 UnknownUnknown
npm/@tailwindcss/postcss 4.3.3 🟢 7.3
Details
CheckScoreReason
Maintained🟢 1030 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 10
Code-Review🟢 4Found 12/30 approved changesets -- score normalized to 4
Dangerous-Workflow🟢 10no dangerous workflow patterns detected
Binary-Artifacts🟢 10no binaries found in the repo
Token-Permissions🟢 10GitHub workflow tokens follow principle of least privilege
Pinned-Dependencies🟢 10all dependencies are pinned
CII-Best-Practices⚠️ 0no effort to earn an OpenSSF best practices badge detected
Security-Policy⚠️ 0security policy file not detected
License🟢 10license file detected
Fuzzing🟢 10project is fuzzed
Branch-Protection⚠️ -1internal error: error during branchesHandler.setup: internal error: some github tokens can't read classic branch protection rules: https://github.com/ossf/scorecard-action/blob/main/docs/authentication/fine-grained-auth-token.md
Signed-Releases⚠️ 0Project has not signed or included provenance with any releases.
Packaging🟢 10packaging workflow detected
SAST⚠️ -1internal error: internal error: Client.Checks.ListCheckRunsForRef: error during graphqlHandler.setupCheckRuns: Although you appear to have the correct authorization credentials, the `cursor` organization has an IP allow list enabled, and your IP address is not permitted to access this resource.
npm/@tanstack/react-query 5.103.2 UnknownUnknown
npm/@types/node 26.6.3 🟢 6.6
Details
CheckScoreReason
Maintained🟢 1030 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Packaging⚠️ -1packaging workflow not detected
Code-Review🟢 9Found 29/30 approved changesets -- score normalized to 9
Token-Permissions⚠️ 0detected GitHub workflow tokens with excessive permissions
Dangerous-Workflow🟢 10no dangerous workflow patterns detected
Security-Policy🟢 10security policy file detected
CII-Best-Practices⚠️ 0no effort to earn an OpenSSF best practices badge detected
License🟢 9license file detected
Signed-Releases⚠️ -1no releases found
Branch-Protection⚠️ -1internal error: error during branchesHandler.setup: internal error: some github tokens can't read classic branch protection rules: https://github.com/ossf/scorecard-action/blob/main/docs/authentication/fine-grained-auth-token.md
Pinned-Dependencies🟢 8dependency not pinned by hash detected -- score normalized to 8
Binary-Artifacts🟢 10no binaries found in the repo
SAST⚠️ 0SAST tool is not run on all commits -- score normalized to 0
Fuzzing⚠️ 0project is not fuzzed
npm/@types/react 19.3.0 🟢 6.6
Details
CheckScoreReason
Maintained🟢 1030 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Packaging⚠️ -1packaging workflow not detected
Code-Review🟢 9Found 29/30 approved changesets -- score normalized to 9
Token-Permissions⚠️ 0detected GitHub workflow tokens with excessive permissions
Dangerous-Workflow🟢 10no dangerous workflow patterns detected
Security-Policy🟢 10security policy file detected
CII-Best-Practices⚠️ 0no effort to earn an OpenSSF best practices badge detected
License🟢 9license file detected
Signed-Releases⚠️ -1no releases found
Branch-Protection⚠️ -1internal error: error during branchesHandler.setup: internal error: some github tokens can't read classic branch protection rules: https://github.com/ossf/scorecard-action/blob/main/docs/authentication/fine-grained-auth-token.md
Pinned-Dependencies🟢 8dependency not pinned by hash detected -- score normalized to 8
Binary-Artifacts🟢 10no binaries found in the repo
SAST⚠️ 0SAST tool is not run on all commits -- score normalized to 0
Fuzzing⚠️ 0project is not fuzzed
npm/@types/react-dom 19.3.0 🟢 6.6
Details
CheckScoreReason
Maintained🟢 1030 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Packaging⚠️ -1packaging workflow not detected
Code-Review🟢 9Found 29/30 approved changesets -- score normalized to 9
Token-Permissions⚠️ 0detected GitHub workflow tokens with excessive permissions
Dangerous-Workflow🟢 10no dangerous workflow patterns detected
Security-Policy🟢 10security policy file detected
CII-Best-Practices⚠️ 0no effort to earn an OpenSSF best practices badge detected
License🟢 9license file detected
Signed-Releases⚠️ -1no releases found
Branch-Protection⚠️ -1internal error: error during branchesHandler.setup: internal error: some github tokens can't read classic branch protection rules: https://github.com/ossf/scorecard-action/blob/main/docs/authentication/fine-grained-auth-token.md
Pinned-Dependencies🟢 8dependency not pinned by hash detected -- score normalized to 8
Binary-Artifacts🟢 10no binaries found in the repo
SAST⚠️ 0SAST tool is not run on all commits -- score normalized to 0
Fuzzing⚠️ 0project is not fuzzed
npm/@wagmi/core 3.6.7 🟢 7.9
Details
CheckScoreReason
Code-Review🟢 3Found 10/27 approved changesets -- score normalized to 3
Maintained🟢 1030 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Dependency-Update-Tool🟢 10update tool detected
Security-Policy🟢 9security policy file detected
Packaging⚠️ -1packaging workflow not detected
Dangerous-Workflow🟢 10no dangerous workflow patterns detected
Token-Permissions🟢 10GitHub workflow tokens follow principle of least privilege
Pinned-Dependencies🟢 10all dependencies are pinned
Binary-Artifacts🟢 10no binaries found in the repo
CII-Best-Practices🟢 5badge detected: Passing
Signed-Releases⚠️ -1no releases found
CI-Tests⚠️ -1internal error: internal error: Client.Repositories.ListCheckRunsForRef: error during graphqlHandler.setupCheckRuns: Although you appear to have the correct authorization credentials, the `cursor` organization has an IP allow list enabled, and your IP address is not permitted to access this resource.
SAST⚠️ -1internal error: internal error: Client.Checks.ListCheckRunsForRef: error during graphqlHandler.setupCheckRuns: Although you appear to have the correct authorization credentials, the `cursor` organization has an IP allow list enabled, and your IP address is not permitted to access this resource.
Vulnerabilities🟢 46 existing vulnerabilities detected
License🟢 10license file detected
Fuzzing⚠️ 0project is not fuzzed
Branch-Protection⚠️ -1internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration
Contributors🟢 10project has 35 contributing companies or organizations
npm/@yearn/site-header workspace:* UnknownUnknown
npm/@yearn/wallet-ui workspace:* UnknownUnknown
npm/@yearn/wrapped-contract workspace:* UnknownUnknown
npm/postcss 8.5.28 🟢 7.6
Details
CheckScoreReason
Code-Review🟢 5Found 15/30 approved changesets -- score normalized to 5
Maintained🟢 1030 commit(s) and 7 issue activity found in the last 90 days -- score normalized to 10
Security-Policy🟢 10security policy file detected
Binary-Artifacts🟢 10no binaries found in the repo
Dangerous-Workflow🟢 10no dangerous workflow patterns detected
Packaging⚠️ -1packaging workflow not detected
Token-Permissions🟢 9detected GitHub workflow tokens with excessive permissions
Pinned-Dependencies🟢 10all dependencies are pinned
CII-Best-Practices⚠️ 0no effort to earn an OpenSSF best practices badge detected
Fuzzing🟢 10project is fuzzed
License🟢 10license file detected
Signed-Releases⚠️ -1no releases found
Branch-Protection🟢 3branch protection is not maximal on development and all release branches
SAST⚠️ 0SAST tool is not run on all commits -- score normalized to 0
npm/react 19.3.0 UnknownUnknown
npm/react-dom 19.3.0 UnknownUnknown
npm/tailwindcss 4.3.3 🟢 7.3
Details
CheckScoreReason
Maintained🟢 1030 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 10
Code-Review🟢 4Found 12/30 approved changesets -- score normalized to 4
Dangerous-Workflow🟢 10no dangerous workflow patterns detected
Binary-Artifacts🟢 10no binaries found in the repo
Token-Permissions🟢 10GitHub workflow tokens follow principle of least privilege
Pinned-Dependencies🟢 10all dependencies are pinned
CII-Best-Practices⚠️ 0no effort to earn an OpenSSF best practices badge detected
Security-Policy⚠️ 0security policy file not detected
License🟢 10license file detected
Fuzzing🟢 10project is fuzzed
Branch-Protection⚠️ -1internal error: error during branchesHandler.setup: internal error: some github tokens can't read classic branch protection rules: https://github.com/ossf/scorecard-action/blob/main/docs/authentication/fine-grained-auth-token.md
Signed-Releases⚠️ 0Project has not signed or included provenance with any releases.
Packaging🟢 10packaging workflow detected
SAST⚠️ -1internal error: internal error: Client.Checks.ListCheckRunsForRef: error during graphqlHandler.setupCheckRuns: Although you appear to have the correct authorization credentials, the `cursor` organization has an IP allow list enabled, and your IP address is not permitted to access this resource.
npm/typescript 7.0.2 🟢 7.8
Details
CheckScoreReason
Packaging⚠️ -1packaging workflow not detected
Code-Review🟢 10all changesets reviewed
Maintained🟢 1030 commit(s) and 9 issue activity found in the last 90 days -- score normalized to 10
Security-Policy🟢 10security policy file detected
Token-Permissions⚠️ 0detected GitHub workflow tokens with excessive permissions
Dangerous-Workflow🟢 10no dangerous workflow patterns detected
Dependency-Update-Tool🟢 10update tool detected
CII-Best-Practices⚠️ 0no effort to earn an OpenSSF best practices badge detected
Binary-Artifacts🟢 10no binaries found in the repo
Pinned-Dependencies🟢 9dependency not pinned by hash detected -- score normalized to 9
Signed-Releases⚠️ 0Project has not signed or included provenance with any releases.
License🟢 10license file detected
SAST🟢 10SAST tool is run on all commits
Branch-Protection🟢 5branch protection is not maximal on development and all release branches
Fuzzing🟢 10project is fuzzed
Vulnerabilities🟢 91 existing vulnerabilities detected
CI-Tests🟢 1030 out of 30 merged PRs checked by a CI test -- score normalized to 10
Contributors🟢 10project has 36 contributing companies or organizations
npm/viem 2.56.9 UnknownUnknown
npm/vitest 4.1.11 UnknownUnknown
npm/wagmi 3.7.9 🟢 7.9
Details
CheckScoreReason
Code-Review🟢 3Found 10/27 approved changesets -- score normalized to 3
Maintained🟢 1030 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Dependency-Update-Tool🟢 10update tool detected
Security-Policy🟢 9security policy file detected
Packaging⚠️ -1packaging workflow not detected
Dangerous-Workflow🟢 10no dangerous workflow patterns detected
Token-Permissions🟢 10GitHub workflow tokens follow principle of least privilege
Pinned-Dependencies🟢 10all dependencies are pinned
Binary-Artifacts🟢 10no binaries found in the repo
CII-Best-Practices🟢 5badge detected: Passing
Signed-Releases⚠️ -1no releases found
CI-Tests⚠️ -1internal error: internal error: Client.Repositories.ListCheckRunsForRef: error during graphqlHandler.setupCheckRuns: Although you appear to have the correct authorization credentials, the `cursor` organization has an IP allow list enabled, and your IP address is not permitted to access this resource.
SAST⚠️ -1internal error: internal error: Client.Checks.ListCheckRunsForRef: error during graphqlHandler.setupCheckRuns: Although you appear to have the correct authorization credentials, the `cursor` organization has an IP allow list enabled, and your IP address is not permitted to access this resource.
Vulnerabilities🟢 46 existing vulnerabilities detected
License🟢 10license file detected
Fuzzing⚠️ 0project is not fuzzed
Branch-Protection⚠️ -1internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration
Contributors🟢 10project has 35 contributing companies or organizations
npm/@yearn/wrapped-contract workspace:* UnknownUnknown
npm/zod 4.6.5 🟢 5.5
Details
CheckScoreReason
Security-Policy🟢 10security policy file detected
Code-Review⚠️ 0Found 0/30 approved changesets -- score normalized to 0
Maintained🟢 1030 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10
Dangerous-Workflow🟢 10no dangerous workflow patterns detected
Packaging⚠️ -1packaging workflow not detected
Token-Permissions⚠️ 0detected GitHub workflow tokens with excessive permissions
Binary-Artifacts🟢 10no binaries found in the repo
CII-Best-Practices⚠️ 0no effort to earn an OpenSSF best practices badge detected
License🟢 10license file detected
Fuzzing⚠️ 0project is not fuzzed
Signed-Releases⚠️ -1no releases found
Pinned-Dependencies🟢 5dependency not pinned by hash detected -- score normalized to 5
SAST⚠️ -1internal error: internal error: Client.Checks.ListCheckRunsForRef: error during graphqlHandler.setupCheckRuns: Although you appear to have the correct authorization credentials, the `cursor` organization has an IP allow list enabled, and your IP address is not permitted to access this resource.
Branch-Protection🟢 3branch protection is not maximal on development and all release branches

Scanned Files

  • apps/wrapped/package.json
  • apps/yearn/package.json
  • packages/wrapped-contract/package.json

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Deploy preview for yearn-4626 ready!

Project:yearn-4626
Status: ✅  Deploy successful!
Preview URL:https://yearn-4626-c6h28mqic-yearn.vercel.app
Latest Commit:2b49d58

Deployed with vercel-action

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Deploy preview for yearn-bold ready!

Project:yearn-bold
Status: ✅  Deploy successful!
Preview URL:https://yearn-bold-ahs3r6dgd-yearn.vercel.app
Latest Commit:2b49d58

Deployed with vercel-action

@github-actions

Copy link
Copy Markdown

Deploy preview for yearn-fi ready!

Project:yearn-fi
Status: ✅  Deploy successful!
Preview URL:https://yearnfi-owfg8dbuy-yearn.vercel.app
Latest Commit:6fb17f0

Deployed with vercel-action

Build a responsive recap around portfolio returns, vault balances,
activity, and vault highlights. Prefetch wallet history, vault returns,
and logos before showing the story.

Share growth attribution with Yearn Portfolio, preserve partial data
coverage, and explain short holds with no daily snapshot. Keep the
performance experiments and their design notes available for review.

This branch was successfully deployed

1 active and 1 inactive (outdated) deployments
preview — 2b49d58b Deployed Dec 1, 2026 by github-actions[bot]
preview — 6fb17f02 Deployed Nov 18, 2026 by vercel[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.

1 participant