Skip to content

Commit 694bc5f

Browse files
committed
update cygnus DefiLlama#12057
1 parent ce2f424 commit 694bc5f

File tree

1 file changed

+23
-7
lines changed

1 file changed

+23
-7
lines changed

projects/cygnus-fi-restake/index.js

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,29 @@ const ADDRESSES = require('../helper/coreAssets.json')
33

44
// Cygnus is extending the restaking protocol to more chains.
55
// 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+
}
822
}
923

1024
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+
})

0 commit comments

Comments
 (0)