Skip to content

Add Apyx Protocol yield adapter#2428

Draft
ddaws wants to merge 1 commit intoDefiLlama:masterfrom
ddaws:add-apyx-protocol
Draft

Add Apyx Protocol yield adapter#2428
ddaws wants to merge 1 commit intoDefiLlama:masterfrom
ddaws:add-apyx-protocol

Conversation

@ddaws
Copy link

@ddaws ddaws commented Feb 26, 2026

Summary

Adding yield tracking for Apyx Protocol's apyUSD vault.

apyUSD is an ERC-4626 vault where users deposit apxUSD and earn yield on the underlying collateral backing apxUSD. Yield is vested linearly over a configurable period.

Pool Details

  • Vault: 0x38EEb52F0771140d10c4E9A9a72349A329Fe8a6A (apyUSD)
  • Underlying: 0x98A878b1Cd98131B271883B390f68D2c90674665 (apxUSD)
  • Chain: Ethereum
  • APY Source: On-chain ApyUSDRateView contract at 0xCABa36EDE2C08e16F3602e8688a8bE94c1B4e484
  • Yield Source: Preferred share dividends from digital asset treasury companies

Links

Summary by CodeRabbit

  • New Features
    • Integrated APYX protocol support with the ability to query and display total value locked (TVL) in USD and annual percentage yield (APY) metrics for pools. Users can now access comprehensive pool information including underlying tokens, project details, and metadata across supported networks.

@coderabbitai
Copy link

coderabbitai bot commented Feb 26, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 257164c and 81e2ac6.

📒 Files selected for processing (1)
  • src/adaptors/apyx-protocol/index.js

📝 Walkthrough

Walkthrough

A new adaptor module for the APYX protocol is introduced that computes APY metrics by querying the APYUSD vault and RATE_VIEW contracts. The module processes blockchain data and returns standardized pool information including TVL, APY, and metadata.

Changes

Cohort / File(s) Summary
APYX Protocol Adaptor
src/adaptors/apyx-protocol/index.js
New module that exports an async apy function to query APYX protocol metrics from smart contracts, converts data to human-readable format (TVL in USD, base APY), and returns pool metadata. Includes module exports for timetravel, apy function, and protocol URL.

Sequence Diagram

sequenceDiagram
    participant Client
    participant APY Function
    participant APYUSD Vault
    participant RATE_VIEW Contract

    Client->>APY Function: Call apy()
    APY Function->>APYUSD Vault: Query totalAssets
    APYUSD Vault-->>APY Function: totalAssets (raw value)
    APY Function->>RATE_VIEW Contract: Query apy
    RATE_VIEW Contract-->>APY Function: apy (raw value)
    APY Function->>APY Function: Convert to human-readable units<br/>(TVL in USD, base APY)
    APY Function->>APY Function: Construct pool object with metadata<br/>(pool ID, chain, project, symbol, etc.)
    APY Function-->>Client: Return [poolObject]
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 A protocol new joins our fold,
APYX metrics, shiny and bold,
Contracts queried, numbers refined,
APY and TVL aligned,
Data flows in perfect stride! 🌟

🚥 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 'Add Apyx Protocol yield adapter' directly and accurately describes the main change: adding a new yield adapter module for the Apyx Protocol.
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

Tip

Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs).
Share your feedback on Discord.


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.

@ddaws ddaws marked this pull request as draft February 26, 2026 15:07
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