Skip to content

Y10K#20052

Closed
Sk1mer12 wants to merge 3 commits into
DefiLlama:mainfrom
Sk1mer12:Y10K
Closed

Y10K#20052
Sk1mer12 wants to merge 3 commits into
DefiLlama:mainfrom
Sk1mer12:Y10K

Conversation

@Sk1mer12

@Sk1mer12 Sk1mer12 commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

NOTE

Please enable "Allow edits by maintainers" while putting up the PR.


  1. If you would like to add a volume/fees/revenue adapter please submit the PR here.

  2. Once your adapter has been merged, it takes time to show on the UI. If more than 24 hours have passed, please let us know in Discord.

  3. Sorry, We no longer accept fetch adapter for new projects, we prefer the tvl to computed from blockchain data, if you have trouble with creating a the adapter, please hop onto our discord, we are happy to assist you.

  4. For updating listing info Please send a mail to metadata@defillama.com

  5. Please do not add new npm dependencies, do not edit/push pnpm-lock.yaml file as part of your changes


(Needs to be filled only for new listings)

Name (to be shown on DefiLlama): Y10K Capital
Twitter Link: https://x.com/y10kcapital
List of audit links if any:
Website Link: https://www.y10k.capital/
Logo (High resolution, will be shown with rounded borders): https://imgur.com/a/h8Hf7NP
Current TVL:
Treasury Addresses (if the protocol has treasury)
Chain: Ethereum
Coingecko ID (so your TVL can appear on Coingecko, leave empty if not listed): (https://api.coingecko.com/api/v3/coins/list)
Coinmarketcap ID (so your TVL can appear on Coinmarketcap, leave empty if not listed): (https://api.coinmarketcap.com/data-api/v3/map/all?listing_status=active,inactive,untracked&start=1&limit=10000)
Short Description (to be shown on DefiLlama): Actively managed onchain vehicle by Yield Network and RockawayX team focused on private onchain liquidity deals.
Token address and ticker if any:
Category (full list at https://defillama.com/categories) *Please choose only one: Risk Curator
Oracle Provider(s): Specify the oracle(s) used (e.g., Chainlink, Band, API3, TWAP, etc.):
Implementation Details: Briefly describe how the oracle is integrated into your project:
Documentation/Proof: Provide links to documentation or any other resources that verify the oracle's usage:
forkedFrom (Does your project originate from another project):
methodology (what is being counted as tvl, how is tvl being calculated):
Github org/user (Optional, if your code is open source, we can track activity):
Does this project have a referral program?

Summary by CodeRabbit

  • New Features

    • Expanded y10k Capital TVL tracking to include both Ethereum and SEI.
    • Added support for additional vault-based balance reporting in protocol metrics.
  • Bug Fixes

    • Improved aggregated TVL handling to prevent duplicate counting in overall reporting.

@github-actions

Copy link
Copy Markdown

Error while running adapter at projects/Y10k-Capital:

Error: Module name should start with a lowercase letter: Y10k-Capital
Truncated error stack:

    at /home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/test.js:137:11
    at Object.<anonymous> (/home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/test.js:290:3)
Error saving cache: Error: ENOENT: no such file or directory, open '/home/runner/work/DefiLlama-Adapters/DefiLlama-Adapters/node_modules/.pnpm/@defillama+sdk@5.0.219_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10/node_modules/@defillama/sdk/build/util/local_cache/zlib-1.0/BlockCache-v1.json'

@coderabbitai

coderabbitai Bot commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Adds Y10k-Capital TVL adapters for Ethereum and SEI, summing their ERC-4626 contracts and marking the module as double-counted.

Changes

Y10k-Capital Adapter

Layer / File(s) Summary
ERC-4626 TVL adapters
projects/y10k-capital/index.js
Exports Ethereum and SEI TVL logic using api.erc4626Sum for the eY10K and y10kPYUSD contracts with OG4626 handling enabled, and sets doublecounted: true.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Description check ⚠️ Warning The template is only partially filled; key new-listing fields like methodology, docs/proof, TVL, and several metadata fields are missing. Fill in the missing required fields, especially methodology, documentation/proof, current TVL, token info, and the remaining listing metadata.
Title check ❓ Inconclusive The title is just the project name and doesn't describe the adapter or chain changes. Use a more specific title like "Add Y10K Capital TVL adapter for Ethereum and SEI".
✅ Passed checks (3 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown

The adapter at projects/y10k-capital exports TVL:

ethereum                  16.90 M

total                    16.90 M 

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@projects/y10k-capital/index.js`:
- Line 9: Update the eY10K TVL path to use the canonical OG4626 wrapper,
including the sumTokens2({ api }) processing after api.erc4626Sum, so reported
balances are unwrapped underlying assets rather than vault shares. Replace the
direct return in the affected export while preserving the eY10K call
configuration.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 1127240a-7f0d-4dad-a49b-8fed270fb094

📥 Commits

Reviewing files that changed from the base of the PR and between 1950e01 and 5c176d0.

📒 Files selected for processing (1)
  • projects/y10k-capital/index.js

doublecounted: true,
ethereum: {
tvl: async (api) => {
return api.erc4626Sum({ calls: [eY10K], isOG4626: true})

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Use the OG4626 wrapper so balances are unwrapped before reporting TVL.

The canonical sumERC4626VaultsExport2 path runs sumTokens2({ api }) after api.erc4626Sum; returning api.erc4626Sum directly can expose eY10K share balances instead of the underlying assets, resulting in incorrect TVL.

+const { sumERC4626VaultsExport2 } = require('../helper/erc4626')
+
 const ADDRESSES = require('../helper/coreAssets.json')
@@
-    tvl: async (api) => {
-      return api.erc4626Sum({ calls: [eY10K], isOG4626: true})
-    }
+    tvl: sumERC4626VaultsExport2({ vaults: [eY10K] })
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
return api.erc4626Sum({ calls: [eY10K], isOG4626: true})
const { sumERC4626VaultsExport2 } = require('../helper/erc4626')
tvl: sumERC4626VaultsExport2({ vaults: [eY10K] })
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@projects/y10k-capital/index.js` at line 9, Update the eY10K TVL path to use
the canonical OG4626 wrapper, including the sumTokens2({ api }) processing after
api.erc4626Sum, so reported balances are unwrapped underlying assets rather than
vault shares. Replace the direct return in the affected export while preserving
the eY10K call configuration.

@github-actions

Copy link
Copy Markdown

The adapter at projects/y10k-capital exports TVL:

ethereum                  16.90 M
sei                       14.04 M

total                    30.94 M 

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

♻️ Duplicate comments (1)
projects/y10k-capital/index.js (1)

12-14: ⚠️ Potential issue | 🟠 Major

Use sumERC4626VaultsExport2 for both chains.

Both exports bypass the sumTokens2({ api }) transformation required for OG4626 vaults, risking incorrect TVL based on vault shares rather than underlying assets.

  • projects/y10k-capital/index.js#L12-L14: replace the Ethereum implementation with sumERC4626VaultsExport2({ vaults: [eY10K] }).
  • projects/y10k-capital/index.js#L17-L19: replace the SEI implementation with sumERC4626VaultsExport2({ vaults: [y10kPYUSD] }).
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@projects/y10k-capital/index.js` around lines 12 - 14, The Ethereum and SEI
TVL implementations in projects/y10k-capital/index.js (lines 12-14 and 17-19)
must both use sumERC4626VaultsExport2 instead of api.erc4626Sum. Update the
Ethereum entry to pass eY10K and the SEI entry to pass y10kPYUSD via the vaults
option.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Duplicate comments:
In `@projects/y10k-capital/index.js`:
- Around line 12-14: The Ethereum and SEI TVL implementations in
projects/y10k-capital/index.js (lines 12-14 and 17-19) must both use
sumERC4626VaultsExport2 instead of api.erc4626Sum. Update the Ethereum entry to
pass eY10K and the SEI entry to pass y10kPYUSD via the vaults option.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 43961915-6af3-44f0-a748-ac840c114be1

📥 Commits

Reviewing files that changed from the base of the PR and between 5c176d0 and 06850a0.

📒 Files selected for processing (1)
  • projects/y10k-capital/index.js

@RohanNero

Copy link
Copy Markdown
Contributor

Thank you for the PR, I've added Y10K in #20059

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