Merging updates from defillama#3
Open
iagoLD wants to merge 6501 commits into
Open
Conversation
…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
* feat: add yzPrime, and bridge on HyperEVM, SEI * fix: fix fb from CodeRabbit * fix: update asset urls * fix: update asset urls * fix: add catch pricing
Co-authored-by: Cursor <cursoragent@cursor.com>
* Add phoenix-protocol (phUSD staking) Single-pool adapter for the Phoenix Protocol phUSD staking contract on Ethereum. Computes USDC reward APY from rewardBalance/depletionDuration and reads the phUSD-emission APY directly from the contract's desiredAPYBps target. Prices phUSD via the Balancer V3 phUSD/sUSDS pool and the sUSDS ERC4626 conversion to USDS. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * Wrap Vault call params in arrays for consistency Match the form already used by the convertToAssets call in the same function. The SDK accepts both bare and array forms, but mixing them is noisy. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * Update PHLIMBO staking contract address The phUSD staking contract was redeployed to 0x6084a02c2ac0127ddf1e617de257c61480a2aee0. Point the adapter at the new address and document it in the README. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * Price phUSD via DefiLlama API, drop $1 fallback Address PR review: remove the hardcoded $1 fallback so pricing fails loudly instead of masking a depeg/stale read. Price sUSDS and USDC from the DefiLlama coins API (dropping the USDS=$1 assumption and the sUSDS convertToAssets call); phUSD is not listed on the API so it stays derived from the Balancer phUSD/sUSDS pool ratio, now scaled by the API sUSDS price. Remove the README. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * Add request timeout to DefiLlama price fetch Pass a 10s axios timeout on the coins.llama.fi price request so a stalled API/RPC call can't hang the adapter indefinitely (per review). Also folds in a minor APR correction. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Justin <12531162+gititGoro@users.noreply.github.com> Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
add new borrorw fields
* add monolith-market saving vaults & cdp markets * monolith-market: use sdk for logs * monolith-market: remove unused variable * monolith-market: sdk.getEventLogs usage * monolith-market: add borrowToken field * monolith-market: clean
add availableBorrowUsd to aave-v3 forks
Add available borrow usd
…#2688) * feat: add Kerne Protocol yield adapter (kLP delta-neutral WETH vault on Base) Pool listed: KerneVault (ERC-4626) on Base, share symbol kLP, asset WETH. Strategy: delta-neutral basis trade (Lido stETH long, Hyperliquid perp short). Contract verified on Basescan: https://basescan.org/address/0x8005bc7A86AD904C20fd62788ABED7546c1cF2AC#code Data sources (no protocol API dependency in the critical path): - TVL : KerneVault.totalAssets() × WETH price (coins.llama.fi) - APY : KerneVault.projectedAPY() (governance-configured, basis points) - asset() sanity-checked = WETH Sets token (vault address) and isIntrinsicSource (yield-bearing primitive) per the current adaptor schema. Supersedes PR #2254 which was closed pending a TVL adapter; that prerequisite is opened in parallel against DefiLlama-Adapters. Local test output (npm run test --adapter=kerne-protocol equivalent): pool: 0x8005bc7a86ad904c20fd62788abed7546c1cf2ac-base chain: Base project: kerne-protocol symbol: kLP tvlUsd: 189.58 apyBase: 12 apyReward: 0 isIntrinsicSource: true * fix: rename adapter dir to 'kerne' to match DefiLlama-assigned slug * fix: track skUSD (staked synthetic dollar) instead of the pre-v2 WETH vault * fix: guard expectedAPY with a finite number check before computing apyBase * feat(kerne): compute APY on-chain from skUSD share price (review #2688) Addresses @0xkr3p review: - APY now derived on-chain from skUSD ERC-4626 share-price growth over a trailing 24h window (drops the kerne.fi/api dependency) - add pricePerShare - remove apyReward and rewardTokens (no token incentives) - remove poolMeta - export protocolId 7873 to match the kerne slug (new harness check) A genesis guard reports par price-per-share and 0 realized APY while the vault is below the seed threshold, so no transient pre-seed share-price noise is published; both values flow from on-chain share price once seeded. Pool stays below the public display threshold until then. * refactor(kerne): use shared price/block helpers instead of axios Replace the adapter's direct axios calls to coins.llama.fi with the shared utils helpers (getPriceApiData, getBlocksByTime), matching the rest of yield-server and routing through the pro-api endpoint when DL_API_KEY is set. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: enerzy17 <liamlakevold@gmail.com> Co-authored-by: kr3p <123127490+0xkr3p@users.noreply.github.com> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Marin Petrunic <marin.petrunic@gmail.com>
* Add tizi yield adapter * fix: change tizi/index.js * feat: add intrinsic source and search token override in tizi adapter * fix: handle errors and validate API responses in tizi adapter
#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>
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.