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 ac435c3 commit a9c029eCopy full SHA for a9c029e
projects/RockSolid/index.js
@@ -0,0 +1,15 @@
1
+const vault = '0x936facdf10c8c36294e7b9d28345255539d81bc7' // RockSolid rock.rETH
2
+
3
+async function tvl(_, _b, _cb, { api }) {
4
+ // Use erc4626Sum helper to automatically get underlying asset and totalAssets
5
+ return api.erc4626Sum({ calls: [vault], tokenAbi: 'asset', balanceAbi: 'totalAssets' })
6
+}
7
8
+module.exports = {
9
+ methodology:
10
+ 'Calls totalAssets() on the RockSolid rock.rETH vault to get the total amount of rETH managed by the vault.',
11
+ start: 1756339201, // vault launch timestamp
12
+ ethereum: { tvl },
13
+ timetravel: true,
14
+ misrepresentedTokens: false,
15
0 commit comments