File tree Expand file tree Collapse file tree 1 file changed +23
-7
lines changed
projects/cygnus-fi-restake Expand file tree Collapse file tree 1 file changed +23
-7
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,29 @@ const ADDRESSES = require('../helper/coreAssets.json')
3
3
4
4
// Cygnus is extending the restaking protocol to more chains.
5
5
// Bsquared is one of the first chains we are supporting.
6
- const CYGNUS_RESTAKE_VAULT = {
7
- bsquared : '0x7551aEa51588AaCe99B89c3FaC3CFc4108DB8094'
6
+
7
+ const CYGNUS_POOL_CONFIG = {
8
+ bsquared : {
9
+ UBTC : {
10
+ depositToken : ADDRESSES . bsquared . UBTC ,
11
+ vault : '0x7551aEa51588AaCe99B89c3FaC3CFc4108DB8094'
12
+ } ,
13
+ STBTC : {
14
+ depositToken : '0xf6718b2701D4a6498eF77D7c152b2137Ab28b8A3' ,
15
+ vault : '0x0Ce45dd53affbb011884EF1866E0738f58AB7969'
16
+ } ,
17
+ UNIBTC : {
18
+ depositToken : '0x93919784C523f39CACaa98Ee0a9d96c3F32b593e' ,
19
+ vault : '0xBc323bA4bbf2559417C3Ca47A75e2Ea341Cf8320'
20
+ }
21
+ }
8
22
}
9
23
10
24
module . exports = {
11
- methodology : "Calculates assets locked in cygnus restaking vault" ,
12
- bsquared : {
13
- tvl : sumTokensExport ( { owner : CYGNUS_RESTAKE_VAULT . bsquared , tokens : [ ADDRESSES . bsquared . UBTC ] } )
14
- }
15
- }
25
+ methodology : "Calculates assets locked in cygnus restaking vault" ,
26
+ }
27
+
28
+ Object . keys ( CYGNUS_POOL_CONFIG ) . forEach ( chain => {
29
+ const tokensAndOwners = Object . values ( CYGNUS_POOL_CONFIG [ chain ] ) . map ( i => [ i . depositToken , i . vault ] )
30
+ module . exports [ chain ] = { tvl : sumTokensExport ( { tokensAndOwners } ) }
31
+ } )
You can’t perform that action at this time.
0 commit comments