Skip to content

Commit a9c029e

Browse files
rgevis-rocksolidRichard Gevisclaude
authored
RockSolid Network (#16871)
Co-authored-by: Richard Gevis <[email protected]> Co-authored-by: Claude <[email protected]>
1 parent ac435c3 commit a9c029e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

projects/RockSolid/index.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)