Skip to content

Commit 59af8cf

Browse files
add StakeStone Berachain Vault (DefiLlama#12869)
1 parent 78ee898 commit 59af8cf

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
const vaultABI = {
2+
"getUnderlyings": "function getUnderlyings() external view returns (address[])"
3+
}
4+
5+
const Vault = '0x8f88aE3798E8fF3D0e0DE7465A0863C9bbB577f0';
6+
7+
const Tvl = async (api) => {
8+
const underlyings = await api.call({ abi: vaultABI.getUnderlyings, target: Vault })
9+
return api.sumTokens({ owner: Vault, tokens: underlyings })
10+
}
11+
12+
module.exports = {
13+
ethereum: {
14+
tvl: Tvl,
15+
}
16+
}

0 commit comments

Comments
 (0)