File tree 1 file changed +31
-0
lines changed
1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change
1
+ const { sumTokens2 } = require ( "../helper/unwrapLPs" ) ;
2
+
3
+ const config = {
4
+ arbitrum : {
5
+ staking : {
6
+ token : "0xF4AcDE4D938844751f34659C67056f7e69dBE85a" , // CLUTCH token
7
+ contract : "0x2F849Bf926E457CE57dF4f8C24eEA0d33Fa04672" // CLUTCH staking contract
8
+ } ,
9
+ tvlTokens : [
10
+ {
11
+ token : "0xaf88d065e77c8cC2239327C5EDb3A432268e5831" , // USDC
12
+ contract : "0x9797dA129eaFA143E8A50028563b69Cc02ea6444" // USDC TVL contract
13
+ }
14
+ ]
15
+ }
16
+ } ;
17
+
18
+ async function stakingTvl ( _ , _1 , _2 , { api } ) {
19
+ const { token, contract } = config . arbitrum . staking ;
20
+ return sumTokens2 ( { api, tokens : [ token ] , owners : [ contract ] } ) ;
21
+ }
22
+
23
+ async function tvl ( _ , _1 , _2 , { api } ) {
24
+ const tokensAndOwners = config . arbitrum . tvlTokens . map ( ( { token, contract } ) => [ token , contract ] ) ;
25
+ return sumTokens2 ( { api, tokensAndOwners } ) ;
26
+ }
27
+
28
+ module . exports = {
29
+ methodology : "TVL includes staking for the project's own token (CLUTCH) and total value locked (TVL) for USDC in separate contracts." ,
30
+ arbitrum : { staking : stakingTvl , tvl } ,
31
+ } ;
You can’t perform that action at this time.
0 commit comments