Merging updates from defillama - #3
Open
iagoLD wants to merge 6734 commits into
Open
Conversation
#2758) * fix(strata-markets): add PRIME pools, fix stablecoin flags, update URL - Add Figure/PRIME market (srPRIME + jrPRIME yield pools) CDO: 0xff408b4843CDD4a33CD49EB2aBe057fE8D71C234 srPRIME: 0x35bFF778d3fc53a561486BF28e761428499232Eb jrPRIME: 0xF4C91F24E20EE8ed5eda905E501A1136334C2F27 Underlying: USDC (verified on-chain via asset()) - Fix stablecoin flag for mHYPER pools (underlying is USDC) - Fix stablecoin flag for mM1-USD pools (underlying is USD-pegged) - Fix stablecoin flag for PRIME pools (underlying is USDC) - Add poolMeta 'fixed-rate' for srUSDat (senior APY is set by keeper, constant by design) - Update url from strata.money to strata.markets (canonical domain) * fix: move stablecoin detection to checkStablecoin.js Per reviewer feedback: - Remove stablecoin: true from adapter overrides (was causing test failures) - Add project-level rule in checkStablecoin.js for strata-markets (all pools have USD-pegged underlyings: USDe, NUSD, USDC, mM1-USD, USDat)
switch to Monad
* fix: Spectra vault TVL + add: Stellar Upshift Vaults * gami-labs: add pricePerShare to Spectra and Stellar pools * fix: Stellar Vault's Link * add fix for gami --------- Co-authored-by: kr3p <123127490+0xkr3p@users.noreply.github.com>
mint deterministic config ids (uuidv5 of pool key) for new pools
Add Aave on Monad
* Add Monetrix yield adapter (sUSDM) * fix(monetrix): address review feedback on sUSDM yield adapter - pin totalAssets to latest block so TVL matches the share-price samples - correct sUSDM share decimals to 12 (was 18), fixing pricePerShare scale - add pricePerShare and isIntrinsicSource: true (yield-bearing stablecoin) - add apyBaseInception (since-launch annualized return) - lowercase pool id - price via USDM with USDC fallback, ready for when USDM pricing lands - update pool url to /app/earn * fix(monetrix): export protocolId for yield-server test suite The test suite now requires each adapter to export a protocolId matching its DefiLlama protocol slug (monetrix = 8019). Local branch shipped without it because its test harness predated that check.
* Add Valdora Finance yield adapter * valdora-finance: address review feedback - Switch to Promise.allSettled for validator commission fetching so that a single unresponsive validator does not abort the entire APY pipeline; failed results are filtered out and the average is computed over the remaining ones (returns 0 if all fail) - Deduct the 10% performance fee and the 2% community tax from the APR formula; the displayed APY now reflects net yield for the staker - Add pricePerShare field by querying the exchange_rate from the staker contract, covering the stZIG→ZIG conversion ratio for liquid assets - Validator addresses remain hardcoded for now: the chain does not expose a public endpoint to enumerate Valdora's curated validator set * fix: replace non-existent exchange_rate query with total_supply The contract does not expose an exchange_rate query endpoint, causing HTTP 500 errors. Compute pricePerShare from funds_raised / total_supply instead. * valdora-finance: validate contract balances
* add styfi + stfyix * onchain calls > api
Co-authored-by: Greg T. <greg@permianlabs.xyz>
remove search token override
Co-authored-by: pawel-accountable <282215858+pawel-accountable@users.noreply.github.com>
The phUSD staking contract has been migrated from PhlimboEA (V2) to PhlimboV3 at 0x8D3A8E3ba43DEb8C7e2110DF437a92243523b6ca. All staked positions were moved across as part of the migration; V2 is wound down and mint-revoked, so its totalStaked no longer reflects live staking. The V3 contract exposes the same totalStaked / desiredAPYBps / rewardPerSecond views, so only the address constant changes. Co-authored-by: Justin <12531162+gititGoro@users.noreply.github.com> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
* Add Genesis Vault staking pool to StakeWise yields adaptor Adds the Genesis Vault (the protocol's main public vault) alongside the existing osETH pool, using the public StakeWise V3 subgraph for vault APY and total assets. Genesis TVL nets out the osETH minted against the vault, which the osETH pool already counts (~$195M today), so the pool reports only non-osETH-backed stake. The subgraph exposes minted shares per allocator only, so they are paged over with a bounded id cursor; if the pages run out the pool is dropped rather than reported with an understated deduction. Also fixes the osETH pool pricing its supply with the ETH price (osETH is an appreciating token trading above ETH), guards an empty AvgRewardPerSecondUpdated window that produced a NaN apy, and surfaces subgraph errors instead of dropping them silently. * Drop the Genesis pool instead of flooring a negative TVL to zero --------- Co-authored-by: Mike Diamond <kadyr@stakewise.io>
* Add Agua yield adapter (protocol id 8351) Adds yields for the existing Agua protocol (slug: agua). One pool per ERC-4626 vault, starting with the Global Carry Vault (aguaUSDCgc) on Ethereum. TVL from totalAssets() priced via coins.llama.fi; apyBase is the annualized 7-day share-price growth from convertToAssets() at the current block vs the block ~7 days ago. Structured around a vault config array so future vaults are a one-line addition. * agua: address review feedback - point url at the vault deposit page on the Reservoir app - add pricePerShare - apyBase falls back to null instead of 0 when history is unavailable - use utils.getBlocksByTime instead of a hardcoded coins.llama.fi call
stakewise rename
* add alandale v3 adaptor * address review comments and report lute emissions in alandale v3 * keep unavailable reward inputs unpublished and price emissions off the funding epoch * add fee tier to pool meta
* Add USD supply cap for Euler v2 * Fix Euler v2 cap handling: frozen vaults and unbounded supplyCapUsd The vault lens resolves Euler's packed AmountCap to a raw token amount, where an unset cap resolves to type(uint256).max and the packed 1..64 values governance uses to freeze a vault for wind-down all resolve to 0. The previous `cap > 0 && cap < 64` test matched neither: across all 2252 vaults on the 10 configured chains, none has a resolved cap in that band. Two consequences, both fixed here: - 16 frozen wind-down vaults were published as depositable pools, holding $147.8M of totalSupplyUsd, six advertising apyBase above 10% and up to 90% (they sit pinned at 100% utilisation, which is what drives the rate that high). maxDeposit() and maxWithdraw() both return 0 on all of them. Compare the resolved cap against 0 instead. - supplyCapUsd was emitted for uncapped vaults, publishing ~1.16e71 on 49 of 171 rows. Skip it when the cap is at or above Euler's MAX_SANE_AMOUNT (type(uint112).max), which can never bind. The borrowCap leg of the inclusion filter is dropped: a resolved borrow cap of 0 disables borrowing but not deposits, so it should not exclude a lend vault. That leg was inert under the old threshold, so this adds no rows. Verified against live state for all 2252 vaults: standard rows 187 -> 171 (16 removed, 0 added), supplyCapUsd rows 171 -> 122 with 0 values above 1e30 and a new maximum of $300M. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> --------- Co-authored-by: kr3p <123127490+0xkr3p@users.noreply.github.com> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
…alue (#2920) Co-authored-by: pawel-accountable <282215858+pawel-accountable@users.noreply.github.com>
#2921) nOPAL uses zero-projection mode where the AprPairFeed returns (0,0) for accounting purposes, but the real base APR is available via provider.getAprPairProjected(). CDOLens only reads the feed, so it returns 0% for nOPAL. Added a fallback: when CDOLens returns all-zero APRs and a provider is configured, read getAprPairProjected() directly from the provider to get the real base APR (~10.15%).
* add alandale v2 adaptor * keep unavailable reward inputs unpublished and price emissions off the funding epoch * ignore gauge reward rate once its reward period has ended * add fee tier to pool meta
* fix balancer-v2 apy spikes, fee apy * add poolMeta with name split
* feat: add GILDer yield adapter * feat: added token:null to prevent triggerAdaptor * fix: PR fixes * fix: PR fixes
* Add vesting APY as reward APY to selected IPOR Fusion vaults * Add fix to PR review comments * Add HyperEVM and Robinhood chains support in Fusion by IPOR * Add Monad chain support in Fusion by IPOR
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.