-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Add LinkDeFi TVL adapter on Base #17252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Error while running adapter at :
|
|
The adapter at projects/linkdefi exports TVL: |
|
all ok? |
|
Currently this adapter only includes our Split4626 USDC vault on Base. As we launch additional vaults on Base and other chains, we’ll extend this adapter to cover those as well. |
projects/linkdefi/index.js
Outdated
| // 1) 볼트 컨트랙트에서 underlying 토큰 주소 + totalAssets 읽기 | ||
| const [asset, totalAssets] = await Promise.all([ | ||
| api.call({ target: VAULT, abi: VAULT_ABI.asset }), | ||
| api.call({ target: VAULT, abi: VAULT_ABI.totalAssets }), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please use abi: "uint256:totalAssets"
and remove VAULT_ABI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx, Update done.
projects/linkdefi/index.js
Outdated
| async function tvl(api) { | ||
| // 1) 볼트 컨트랙트에서 underlying 토큰 주소 + totalAssets 읽기 | ||
| const [asset, totalAssets] = await Promise.all([ | ||
| api.call({ target: VAULT, abi: VAULT_ABI.asset }), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please use abi: "address:asset"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx, Update done.
|
The adapter at projects/linkdefi exports TVL: |
NOTE
Please enable "Allow edits by maintainers" while putting up the PR.
package-lock.jsonfile as part of your changes, we use lockfileVersion 2, and most use v1 and using that messes up our CIName (to be shown on DefiLlama): LinkDeFi
Twitter Link: N/A
List of audit links if any: N/A (no formal audits yet)
Website Link: https://linkdefi.xyz
Logo (High resolution, will be shown with rounded borders): [add logo URL here, e.g. https://linkdefi.xyz/logo.png]
Current TVL: ≈ $50 (Base USDC Split vault at time of listing, dynamic on-chain)
Treasury Addresses (if the protocol has treasury) N/A
Chain: Base
Coingecko ID (so your TVL can appear on Coingecko, leave empty if not listed): (https://api.coingecko.com/api/v3/coins/list)
(leave empty)
Coinmarketcap ID (so your TVL can appear on Coinmarketcap, leave empty if not listed): (https://api.coinmarketcap.com/data-api/v3/map/all?listing_status=active,inactive,untracked&start=1&limit=10000)
(leave empty)
Short Description (to be shown on DefiLlama):
LinkDeFi is a yield protocol that routes USDC on Base into a Split ERC-4626 vault, allocating deposits across multiple underlying strategies to optimize yield.
Token address and ticker if any:
No protocol token yet (vault uses USDC as the underlying asset).
Category (full list at https://defillama.com/categories) *Please choose only one:
Yield Aggregator
Oracle Provider(s): Specify the oracle(s) used (e.g., Chainlink, Band, API3, TWAP, etc.):
N/A – TVL is computed directly from on-chain balances without using an external oracle.
Implementation Details: Briefly describe how the oracle is integrated into your project:
N/A
Documentation/Proof: Provide links to documentation or any other resources that verify the oracle's usage:
N/A
forkedFrom (Does your project originate from another project):
None (custom Split ERC-4626 vault implementation).
methodology (what is being counted as tvl, how is tvl being calculated):
TVL is calculated as the
totalAssets()value of the Split4626 vault on Base (0x806Ea0e218d24410e24533fB68810440E3b618e1), counting the underlying USDC returned byasset()as TVL. Unclaimed rewards or protocol-owned liquidity are not double-counted.Github org/user (Optional, if your code is open source, we can track activity):
https://github.com/AES-256-2