Skip to content

Comments

feat: add the vault liquid staking adapter#2396

Merged
0xkr3p merged 2 commits intoDefiLlama:masterfrom
0xkr3p:feat/add-vault-liquid-staking-adapter
Feb 19, 2026
Merged

feat: add the vault liquid staking adapter#2396
0xkr3p merged 2 commits intoDefiLlama:masterfrom
0xkr3p:feat/add-vault-liquid-staking-adapter

Conversation

@0xkr3p
Copy link
Contributor

@0xkr3p 0xkr3p commented Feb 19, 2026

Summary by CodeRabbit

  • New Features
    • Added The Vault liquid staking pool integration, enabling real-time TVL and APY tracking for the vSOL token.

@coderabbitai
Copy link

coderabbitai bot commented Feb 19, 2026

Warning

Rate limit exceeded

@0xkr3p has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 6 minutes and 54 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📝 Walkthrough

Walkthrough

A new adapter module for the vSOL liquid staking pool on Solana is introduced. It fetches total supply, current SOL price, and APY data concurrently, validates the inputs, and returns computed TVL and APY metrics for the pool.

Changes

Cohort / File(s) Summary
New Vault Liquid Staking Adapter
src/adaptors/the-vault-liquid-staking/index.js
Implements async apy() function that concurrently retrieves total supply, vSOL price, and APY data; validates and converts values, then returns pool metadata including TVL in USD and base APY. Exports timetravel, apy, and url properties.

Sequence Diagram

sequenceDiagram
    participant Caller as Caller/Client
    participant Adapter as vSOL Adapter
    participant OnChain as On-Chain Data
    participant PriceAPI as Price API
    participant APYData as APY Data Source
    
    Caller->>Adapter: Call apy()
    par Concurrent Fetches
        Adapter->>OnChain: Fetch vSOL total supply
        Adapter->>PriceAPI: Fetch current SOL price
        Adapter->>APYData: Fetch latest APY
    and
        OnChain-->>Adapter: Supply value
        PriceAPI-->>Adapter: Price value
        APYData-->>Adapter: APY value
    end
    
    Adapter->>Adapter: Validate price & APY
    Adapter->>Adapter: Convert APY to percentage
    Adapter->>Adapter: Compute TVL (supply × price)
    
    Adapter-->>Caller: Return pool array with TVL & APY
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Poem

🐰 A new vSOL nest to tend,
Where prices dance and APYs blend,
Concurrent whispers, swift and fair,
TVL blooms in Solana's air!

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'feat: add the vault liquid staking adapter' accurately reflects the main change—adding a new adapter for The Vault liquid staking protocol. It is concise, clear, and directly related to the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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 and usage tips.

@0xkr3p
Copy link
Contributor Author

0xkr3p commented Feb 19, 2026

@coderabbitai review

@coderabbitai
Copy link

coderabbitai bot commented Feb 19, 2026

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@0xkr3p 0xkr3p merged commit 62314a2 into DefiLlama:master Feb 19, 2026
2 checks passed
@0xkr3p 0xkr3p deleted the feat/add-vault-liquid-staking-adapter branch February 19, 2026 16:18
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