Skip to content

Commit dd23942

Browse files
SpoolFig1nt0ki
andauthored
Add Project: StakingRewards (srETH) (DefiLlama#9196)
* Add Project: StakingRewards (srETH) * code refactor --------- Co-authored-by: g1nt0ki <[email protected]>
1 parent ee83c6d commit dd23942

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

projects/staking-rewards/index.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
const abi = {
2+
"getSmartVaultAssetBalances": "function getSmartVaultAssetBalances(address, bool) external returns (uint256[] memory)"
3+
}
4+
5+
const ethContract = "0x5d6ac99835b0dd42ed9ffc606170e59f75a88fde";
6+
const spoolLens = '0x8aa6174333F75421903b2B5c70DdF8DA5D84f74F';
7+
8+
async function eth(timestamp, ethBlock, chainBlocks, { api }) {
9+
const tvlETH = await api.call({
10+
target: spoolLens,
11+
abi: abi["getSmartVaultAssetBalances"],
12+
params: [ethContract, false]
13+
});
14+
api.addGasToken(tvlETH[0])
15+
return api.getBalances()
16+
}
17+
18+
module.exports = {
19+
methodology: 'TVL is counted as deposits routed to the underlying Liquid Staking protocols in the vault.',
20+
doublecounted: true, // tokens are stored in underlying LSDs
21+
misrepresentedTokens: true,
22+
ethereum: {
23+
tvl: eth
24+
}
25+
}

0 commit comments

Comments
 (0)