We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78ee898 commit 59af8cfCopy full SHA for 59af8cf
projects/stakestone-berastone/index.js
@@ -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