Skip to content

Merging updates from defillama#3

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

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

Conversation

@iagoLD

@iagoLD iagoLD commented Jul 18, 2022

Copy link
Copy Markdown

No description provided.

slasher125 and others added 28 commits May 21, 2026 16:53
* fix dedust adapter

* dedust fixes
…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
iamvukasin and others added 30 commits June 19, 2026 16:47
fix: correct token symbol for native pool yield, new app url
…#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
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.