Skip to content

Merging updates from defillama#3

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

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

Conversation

@iagoLD

@iagoLD iagoLD commented Jul 18, 2022

Copy link
Copy Markdown

No description provided.

0xkr3p and others added 28 commits May 8, 2026 16:53
* 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
* 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
slasher125 and others added 30 commits June 6, 2026 13:19
* 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>
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.