Merging updates from defillama#3
Open
iagoLD wants to merge 6265 commits into
Open
Conversation
* Add yldfi yields adapter
Adds yldfi auto-compounding vault yields using Yearn Kong API for APY data.
yldfi is a yield optimizer using Yearn V3 tokenized strategies.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* Rename yldfi to yld, dynamic vault discovery
- Rename adapter directory from yldfi to yld
- Fetch strategy vaults dynamically from yldfi.co/api/vaults
- Only include strategy vaults (ys-prefix) to avoid double counting
- Update project slug to 'yld'
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: show all vaults (wrapper + strategy) on yields page
Both y-prefix (wrapper) and ys-prefix (strategy) vaults are valid
deposit targets. Wrapper vaults can be used as LlamaLend collateral.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: use weeklyNet APY to match yldfi.co display
Kong API provides multiple APY windows. Use weeklyNet (7-day) to be
consistent with what yldfi.co shows users.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: remove unused utils import, clarify vault filter comment
Address Copilot review comments:
- Remove unused utils require
- Clarify that both wrapper + strategy vaults are intentionally included
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: use vault symbol (yscvxCRV) instead of asset symbol (cvxCRV)
Shows the vault product name so users can distinguish between
wrapper and strategy vaults with the same underlying asset.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: address CodeRabbit review comments
- Use explicit vault key prefixes instead of broad startsWith('y')
- Guard against malformed vault payloads with field validation
- Coerce numeric values with Number() to prevent type issues
- Add 10s timeout to both API calls
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: use actual prefixes (ys, y) not full vault names
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: use 30-day net APY instead of 7-day weekly
Matches convention of other yield-server adapters and Yearn's own
adapter. Weekly is too volatile due to harvest timing.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: use utils.formatSymbol and formatChain, add poolMeta
- Use utils.formatSymbol for underlying asset symbol (convention)
- Use utils.formatChain for chain name (convention)
- Add poolMeta with vault symbol to distinguish strategy vs wrapper
- Re-add utils import
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* refactor: use getERC4626Info for on-chain APY calculation
Switch from Kong API to DefiLlama's standard ERC-4626 utility.
Calculates APY from 24h convertToAssets growth on-chain.
Matches pattern used by Frax and Resupply adapters.
- Remove Kong API dependency
- Remove dynamic vault fetching (hardcode like other ERC-4626 adapters)
- Use utils.formatSymbol and utils.formatChain
- Add poolMeta to distinguish vaults with same underlying
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: use vault symbols (ycvxCRV, yscvxCRV) instead of underlying
Matches Frax convention — show the vault token symbol, not underlying.
Remove poolMeta since vault symbols are already unique.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: use utils.getPrices for correct USD TVL calculation
totalAssets returns raw token amounts, not USD. Multiply by underlying
token price from DefiLlama coins API for accurate tvlUsd.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* trigger CI: yld slug now registered on DefiLlama
---------
Co-authored-by: yldfi <yldfi@users.noreply.github.com>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: michaeldim <michaeldim@users.noreply.github.com>
* use v3 for api * source 8 is correct
* test comment * simplify the output * same style as before
* fix: benqi staked avax onchain * compound yield
* add openeden prism * fixes * correct pricing structure with soft peg backup
* add canary tables * changes
* add current adapter * remove null
* add afi protocol * bad data return null
* fix dedust adapter * dedust fixes
…on (#2512) * fix: update metrom adapter to add supported chains * feat(metrom-adapter): add support for megaeth and pool meta information * feat(metrom): add mainnet and erc4626 vault support * fix: import * fix(metrom-adapter): shorten meta text * fix(metrom-adapter): make humanize target protocol future proof * chore(metrom): remove format symbol usages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.