Merging updates from defillama#3
Open
iagoLD wants to merge 6563 commits into
Open
Conversation
* refactor merkl to use api key * add merkl api key to gh workflow * add default timeout * use params obj for consistency
migrate yield api to r2
* 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
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.