File tree Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ const sdk = require ( '@defillama/sdk' ) ;
2
+
3
+ const ENGYX_TOKEN_CONTRACT = '0xe1ec410835e5dFA47A6893448Cbc0AC216dBE642' ;
4
+
5
+ const ENGYX_WALLETS = [
6
+ '0x058BAA4a1466Ac45D383c1813089f95e11658fD4' ,
7
+ '0x792871536771e9DD3e9141158B0D86b8F56E1F89' ,
8
+ '0x849f6EfB27726DFdbAC21B29754a9c98e25B4d4E' ,
9
+ '0x3149245225Ef28297834c5BeC6776f42c56cCe36' ,
10
+ '0xb7DE9BDD8Ad938F986F57f2b5d740C973e54ABF2' ,
11
+ '0xBE2d1D4330d7C589AB0D5F34b2Aef7D8570b7937' ,
12
+ '0xD20fF9eBa96CfB12E95804544870B141184deC80' ,
13
+ ] ;
14
+
15
+ async function tvl ( api ) {
16
+ const balances = await api . multiCall ( {
17
+ abi : 'erc20:balanceOf' ,
18
+ calls : ENGYX_WALLETS . map ( wallet => ( { target : ENGYX_TOKEN_CONTRACT , params : [ wallet ] } ) ) ,
19
+ } ) ;
20
+
21
+ await api . addTokens (
22
+ ENGYX_WALLETS . map ( ( ) => ENGYX_TOKEN_CONTRACT ) ,
23
+ balances
24
+ ) ;
25
+
26
+ return api . getBalances ( ) ;
27
+ }
28
+
29
+ module . exports = {
30
+ methodology : 'Cuenta los tokens Engyx bloqueados en todas las wallets del protocolo.' ,
31
+ start : 0 ,
32
+ timetravel : false ,
33
+ misrepresentedTokens : true ,
34
+ bsc : { tvl } ,
35
+ } ;
You can’t perform that action at this time.
0 commit comments