Skip to content

Commit 637c0ac

Browse files
authored
add lagoon protocol tvl (DefiLlama#12818)
1 parent 5bd2b11 commit 637c0ac

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

projects/lagoon/index.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
const { sumERC4626VaultsExport } = require('../helper/erc4626');
2+
const sdk = require('@defillama/sdk');
3+
4+
const config = {
5+
ethereum: {
6+
lvTokens: {
7+
totalAssets: [
8+
"0x07ed467acD4ffd13023046968b0859781cb90D9B", // 9Summits Flagship ETH
9+
"0x03D1eC0D01b659b89a87eAbb56e4AF5Cb6e14BFc",
10+
],
11+
},
12+
},
13+
};
14+
15+
16+
17+
const totalAssetsVaults = config.ethereum.lvTokens.totalAssets;
18+
19+
const tvl = sdk.util.sumChainTvls([
20+
sumERC4626VaultsExport({
21+
vaults: totalAssetsVaults,
22+
tokenAbi: 'asset',
23+
balanceAbi: 'totalAssets',
24+
}),
25+
]);
26+
module.exports['ethereum'] = { tvl };

0 commit comments

Comments
 (0)