Skip to content

Commit 2bda845

Browse files
Add Engyx adapter (pre-launch)
1 parent 8118b18 commit 2bda845

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

projects/engyx/index.js

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
};

projects/engyx/logo.png

5.52 KB
Loading

0 commit comments

Comments
 (0)