File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 1
1
const { getConfig } = require ( '../helper/cache' ) ;
2
+ const { staking } = require ( "../helper/staking.js" ) ;
3
+
4
+ const RESUP_TOKEN = '0x419905009e4656fdc02418c7df35b1e61ed5f726' ;
5
+ const GOV_STAKING_CONTRACT = '0x22222222E9fE38F6f1FC8C61b25228adB4D8B953' ;
2
6
3
7
const convertToAssetsAbi = 'function convertToAssets(uint256) view returns (uint256)' ;
4
8
@@ -23,9 +27,20 @@ async function tvl(api) {
23
27
api . add ( tokens , assetBalances ) ;
24
28
}
25
29
30
+ async function stakingTvl ( api ) {
31
+ const resupBalance = await api . call ( {
32
+ abi : 'erc20:balanceOf' ,
33
+ target : RESUP_TOKEN ,
34
+ params : [ GOV_STAKING_CONTRACT ] ,
35
+ } ) ;
36
+
37
+ api . add ( RESUP_TOKEN , resupBalance ) ;
38
+ }
39
+
26
40
module . exports = {
27
41
start : '2025-03-15' ,
28
42
ethereum : {
29
43
tvl,
44
+ staking : stakingTvl ,
30
45
} ,
31
46
} ;
You can’t perform that action at this time.
0 commit comments