Skip to content

Merging updates from defillama#3

Open
iagoLD wants to merge 6265 commits into
Window-Finance:masterfrom
DefiLlama:master
Open

Merging updates from defillama#3
iagoLD wants to merge 6265 commits into
Window-Finance:masterfrom
DefiLlama:master

Conversation

@iagoLD
Copy link
Copy Markdown

@iagoLD iagoLD commented Jul 18, 2022

No description provided.

0xkr3p and others added 28 commits April 12, 2026 17:14
* fira v1

* fixes

* add all apy

* fix

* prefere onchain and shorten metadata
* 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
slasher125 and others added 30 commits May 21, 2026 16:53
* 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
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.