Merging updates from defillama#3
Open
iagoLD wants to merge 6401 commits into
Open
Conversation
* feat: Added landing percent to APY calculation * fix: Default values for percent fields --------- Co-authored-by: georgeorl <smmiz.prime@gmail.com>
* improve accuracy for token / rewards / underlying * additional chain support * update readme
* feat: add gmtrade yield adapter * fix: change code based o comments * feat: add underlyingtoken * fix(gmtrade): dedupe identical long/short tokens in underlyingTokens Single-asset markets (e.g. XPD-USDC, WTI-USDC) return the same address for both long_token and short_token; collapsing the array via Set avoids emitting duplicate underlyingTokens while leaving real LP pairs intact. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --------- Co-authored-by: kr3p <123127490+0xkr3p@users.noreply.github.com> Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* add ample * use realised prize apy * remove intrinsic source * optimise * coderabbit fix
* add ember protocol * better error handling * add pps
* add felix cdp * set token null
…ters remove utils.formatSymbol(symbol) from adapters
remove remaining symbol formats
* return all pools from the ekubo adapter instead of just top pool, fix rounding in formatting * remove tests * all the tests now passing * update the adapter * addressed comments
* add mezo vaults * return valid values for apy * improved logic * omit price per share to reduce confusion
use lp address for pool value
* Add ForgeYields adaptor (fyETH, fyUSDC, fyWBTC on Ethereum and Starknet) * Add per-strategy URL and searchTokenOverride to ForgeYields adaptor * Use projected APY and remove apyBase7d from ForgeYields adaptor * forgeyields: compute APR/TVL onchain, fix per-chain TVL, add apyBase7d - TVL pulled per-chain via the onchain totalAssets providers (0x5d77...DD6 on Ethereum, 0x2d0e...78b8 on Starknet), USD-converted through coins.llama.fi. Fixes double-count across gateways. - APR computed onchain by sampling convertToAssets(1e18) on the Ethereum gateway at now, now-1d-1h, now-7d-1h and annualizing over the actual elapsed time. Same APR reused for the Starknet pool of the same strategy (same vault logic). - Add apyBase7d (per reviewer request). - 1h safety margin on lookback windows to stay past the previous daily report regardless of its ~10min slack. * forgeyields: add public Starknet RPC fallback for PR CI PR test workflow does not expose STARKNET_RPC (only the prod cron does), so onchain Starknet calls silently failed and dropped half the pools in CI output. Fall back to a public RPC when the env var is missing; prod behavior is unchanged. * forgeyields: document the 25h lookback offset invariant Expand the REPORT_MARGIN comment to spell out why we sample at now-25h (not now-24h), so a future maintainer doesn't read it as a typo and "correct" it back, collapsing APY to ~0. Per reviewer request.
* feat: add arkonix yield adapter * address review — vault-specific url, stable 7d apy, drop formatSymbol * append -arkonix to pool
* feat(btcd): sBTCD yield pool adapter Pure on-chain ERC4626 share-price-growth adapter for the BTCD staking vault (sBTCD). Reads sBTCD.totalSupply for size, the on-chain SBTCDOracle (Chainlink-compatible, 8 decimals USD) for tvlUsd, and 7d share-price growth via convertToAssets(1e18) at current and historical blocks for apyBase. Single pool, no rewards (yield is auto-compounded into the share price via 8h linear vesting from the YieldDistributor). underlyingTokens = BTCD; pool id lowercased per yield-server convention. Note: the upstream PR is gated on BTCD being listed on DefiLlama's TVL page (DefiLlama-Adapters). Holding the merge here until that lands. * feat(btcd): update computeApyBase function for improved historical block handling * feat(btcd): enhance documentation and add new adapter entry point for sBTCD yield pool * feat(btcd): improve TVL calculation precision and clarify comments in apy function * feat(btcd): streamline comments and improve code readability in sBTCD adapter * feat(btcd): replace WAD with SCALE for consistency in APY calculations and update variable names for clarity * feat(btcd): remove cooldown mention from poolMeta in BTCD staking vault * feat(btcd): enhance sBTCD adapter with vesting and cooldown duration in poolMeta * feat(btcd): add detailed JSDoc comments for functions in sBTCD adapter * feat(btcd): add JSDoc comments for module export and file description in sBTCD adapter * fix(btcd): format cooldownDurationAbi declaration for consistency * fix(btcd): add validation checks for latest and old data in computeApyBase function * fix(btcd): update computeApyBase to return null on errors and adjust apy structure to handle null values
* Add SpringX's info to the Yields adapter * Code optimization --------- Co-authored-by: springx <team@springx.finance>
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.