Skip to content

Merging updates from defillama#3

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

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

Conversation

@iagoLD

@iagoLD iagoLD commented Jul 18, 2022

Copy link
Copy Markdown

No description provided.

slasher125 and others added 30 commits July 11, 2026 09:51
* superform: add Flare (chain id 14) to CHAIN_MAPPING

Routes chain_id 14 vaults from the /supervaults API through the
flare chain slug for on-chain calls.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* fix decimals for share price

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Co-authored-by: kr3p <123127490+0xkr3p@users.noreply.github.com>
* fix(yieldfi): apy always 0 since gw.yield.fi vault metrics went empty, read apyHistory again

* coerce apy to number before rounding, api could return a string
* fix: d2-finance adapter, replace dead subgraph with onchain data across 5 chains

* d2-finance: single 30d apy window, add pricePerShare, drop poolMeta

* d2-finance: isolate per-chain failures, don't report unreadable history as 0% apy

* d2-finance: add per-pool url to the vault strategy page
* add pareto-credit adapter

* pareto-credit: drop formatSymbol, add pricePerShare and per-vault url

* pareto-credit: strip token symbol without regex to avoid metachar crashes

* pareto-credit: fix vault url to hash format, drop comments

* pareto-credit: url fragment should be the AA tranche address, not the vault
Co-authored-by: techsqrt <techsqrt@users.noreply.github.com>
* fix stake link liquid

* refactor to use new subgraph
…ult address) (#2811)

* pareto-credit: set token to AATranche address

token was never set on the returned pool object, so the yield-server
fallback regex grabbed the first 0x address in the pool id (the CDO
vault contract) instead of the actual depositor receipt token.
tranches[i] (the AATranche address) is already fetched and used for
getApr/virtualPrice/name in this same function - just wasn't wired
into the pool object.

Verified locally: npm run test --adapter=pareto-credit passes
(131/131), same 14 pools, same TVL/APY/pricePerShare numbers - only
the token field is new. Also separately verified the pricePerShare
scaling is correct (underlying is USDC, 6 decimals, virtualPrice
scales against it correctly) - not a bug, unrelated to this fix.

* pareto-credit: guard against nullish tranches[i]

multiCall runs with permitFailure: true, so tranches[i] can come back
nullish if that specific on-chain call fails for a given vault. The
existing guard checked token/price/contractValues[i] but not
tranches[i] - harmless before this PR since it was only interpolated
into a URL string, but now that .toLowerCase() is called on it
directly for the token field, a nullish value would throw and crash
the whole adapter (all 14 pools) instead of just skipping the one
bad vault.

Addresses CodeRabbit review comment on #2811.
* Add Uniswap v3 and v4 on Monad

* Use cursor instead of skip

* reduce chunk to 50 & dedupe pools

---------

Co-authored-by: kr3p <123127490+0xkr3p@users.noreply.github.com>
* feat(t3tris-finance): add Robinhood Chain to APY adapter

T3tris deployed on Robinhood Chain (4663). Adds it to CHAIN_IDS so vaults auto-surface from the ecosystem API per chainId (same curation gate as Arbitrum). The chain's @defillama/sdk provider is registered as 'robinhoodchain', so on-chain calls map the 'robinhood' slug to 'robinhoodchain' via SDK_CHAIN, while the pool chain/URL keep the canonical 'robinhood' slug (formatChain -> 'Robinhood Chain').

* fix(t3tris-finance): drop duplicate robinhood formatChain entry

formatChain already maps robinhood -> 'Robinhood Chain' upstream (line ~182); removing the redundant addition per review. The APY change is now confined to the adapter's SDK_CHAIN/CHAIN_IDS wiring.

* fix(t3tris-finance): revert accidental prettier reformat of utils.js

A save-time formatter had reflowed the whole file; restore it to upstream so this PR only touches the adapter. formatChain already maps robinhood -> 'Robinhood Chain' upstream.

* fix(t3tris-finance): route Robinhood price/block lookups through robinhoodchain

Per review (@0xkr3p): getBlockNumber (coins.llama.fi/block/{chain}) and utils.getPrices also hit DefiLlama's backend, which keys Robinhood as 'robinhoodchain' like the sdk provider. Wrap both with sdkChain(chain) so every backend lookup uses the mapping; only the pool chain/URL keep the canonical 'robinhood' slug (formatChain -> 'Robinhood Chain').
* add primeUSD APY calculation for Ethereum

* add URL for primeUSD in index.js
…, pools stale since Jul 11) (#2816)

* fusion-by-ipor: fetch vault list once instead of per chain (fixes OOM)

* retrigger CI

* retrigger CI
…2791)

Co-authored-by: techsqrt <techsqrt@users.noreply.github.com>
yield-yak-aggregator: add yiUSD Milk vault on Base
fix: saucerswap-v1 broken since api.saucerswap.finance went key-only
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.