Skip to content

Commit 1dd9796

Browse files
0xMBrog1nt0ki
andauthored
Added Arbitrum vaults (DefiLlama#12845)
Co-authored-by: g1nt0ki <[email protected]>
1 parent 49595fc commit 1dd9796

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

projects/cybro/index.js

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const vaults = [
1+
const vaultsBlast = [
22
'0xe922bccf90d74f02a9d4203b377399314e008e41',
33
'0xdccde9c6800bea86e2e91cf54a870ba3ff6faf9f',
44
'0x0667ac28015ed7146f19b2d218f81218abf32951',
@@ -22,6 +22,12 @@ const vaults = [
2222
'0x24e72c2c7be9b07942f6f8d3cdce995df699514d',
2323
]
2424

25+
const vaultsArbitrum = [
26+
'0x320cd9d00961fb45857a043efea77dc6b9db5d95',
27+
'0x6f0acbaac51f3c72ddaa4edc6e20fc388d20adbc',
28+
'0x951c846aa10cc3da45defed784c3802605f71769',
29+
]
30+
2531
const dexes = [
2632
'0xe9041d3483a760c7d5f8762ad407ac526fbe144f',
2733
'0xbfb18eda8961ee33e38678caf2bceb2d23aedfea',
@@ -31,7 +37,7 @@ const dexes = [
3137
'0x66e1bea0a5a934b96e2d7d54eddd6580c485521b',
3238
]
3339

34-
async function tvl(api) {
40+
async function tvlBlast(api) {
3541
const token0s = await api.multiCall({ abi: 'address:token0', calls: dexes})
3642
const token1s = await api.multiCall({ abi: 'address:token1', calls: dexes})
3743
const positionData = await api.multiCall({ abi: 'function getPositionAmounts() view returns (uint256 amount0, uint256 amount1)', calls: dexes})
@@ -46,11 +52,16 @@ async function tvl(api) {
4652
})
4753

4854
await api.sumTokens({ ownerTokens })
49-
return api.erc4626Sum2({ calls: vaults });
55+
return api.erc4626Sum2({ calls: vaultsBlast });
56+
}
57+
58+
async function tvlArbitrum(api) {
59+
return api.erc4626Sum2({ calls: vaultsArbitrum });
5060
}
5161

5262
module.exports = {
5363
doublecounted: true,
5464
methodology: "We calculate TVL based on the Total Supply of our proxy contracts through which users interact with vault's contracts",
55-
blast: { tvl },
65+
blast: { tvl: tvlBlast },
66+
arbitrum: { tvl: tvlArbitrum },
5667
};

0 commit comments

Comments
 (0)