1
+ const ADDRESSES = require ( '../helper/coreAssets.json' )
2
+ const { staking } = require ( '../helper/staking' )
3
+
4
+ // Public Deposit Pools
5
+ const DEPOSIT_POOL_PUBLIC_005_ETH = '0x6c206B5389de4e5a23FdF13BF38104CE8Dd2eD5f'
6
+ const DEPOSIT_POOL_PUBLIC_05_ETH = '0xC53510D6F535Ba0943b1007f082Af3410fBeA4F7'
7
+
8
+ // Verified Deposit Pools
9
+ const DEPOSIT_POOL_VERIFIED_001_ETH = '0x844bB2917dD363Be5567f9587151c2aAa2E345D2'
10
+ const DEPOSIT_POOL_VERIFIED_01_ETH = '0xD3560eF60Dd06E27b699372c3da1b741c80B7D90'
11
+ const DEPOSIT_POOL_VERIFIED_1_ETH = '0x9cCdFf5f69d93F4Fcd6bE81FeB7f79649cb6319b'
12
+ const DEPOSIT_POOL_VERIFIED_200_USDC = '0xA4dB5eC5d0a2ee01CcD8D6e2e53224CF4E81A9b3'
13
+
14
+ // VEIL staking contract
15
+ const VEIL_TOKEN = '0x767A739D1A152639e9Ea1D8c1BD55FDC5B217D7f'
16
+ const VEIL_STAKING_CONTRACT = '0x3225b5a7c842cC227C773636F5C574443C62bb86'
17
+
18
+ async function tvl ( api ) {
19
+ const ethPools = [
20
+ DEPOSIT_POOL_PUBLIC_005_ETH ,
21
+ DEPOSIT_POOL_PUBLIC_05_ETH ,
22
+ DEPOSIT_POOL_VERIFIED_001_ETH ,
23
+ DEPOSIT_POOL_VERIFIED_01_ETH ,
24
+ DEPOSIT_POOL_VERIFIED_1_ETH ,
25
+ ]
26
+ const usdcPools = [ DEPOSIT_POOL_VERIFIED_200_USDC ]
27
+
28
+ // ETH deposits
29
+ await api . sumTokens ( { owners : ethPools , tokens : [ ADDRESSES . null ] } )
30
+
31
+ // USDC deposits
32
+ await api . sumTokens ( { owners : usdcPools , tokens : [ ADDRESSES . base . USDC ] } )
33
+ }
34
+
35
+ module . exports = {
36
+ base : {
37
+ tvl,
38
+ staking : staking ( VEIL_STAKING_CONTRACT , VEIL_TOKEN )
39
+ }
40
+ }
0 commit comments