Skip to content

Commit b1e697b

Browse files
authored
Add LinkDeFi TVL adapter on Base (#17252)
1 parent a0b4715 commit b1e697b

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

projects/linkdefi/index.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
3+
const VAULT = '0x806Ea0e218d24410e24533fB68810440E3b618e1';
4+
5+
async function tvl(api) {
6+
7+
const [asset, totalAssets] = await Promise.all([
8+
api.call({ target: VAULT, abi: "address:asset" }),
9+
api.call({ target: VAULT, abi: "uint256:totalAssets" }),
10+
]);
11+
12+
13+
api.add(asset, totalAssets);
14+
}
15+
16+
17+
module.exports = {
18+
methodology:
19+
'Base Chain Split4626 Vault(0x806E...) TVL Count.',
20+
base: {
21+
tvl,
22+
},
23+
};

0 commit comments

Comments
 (0)