Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions projects/engyx/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
const sdk = require('@defillama/sdk');

const ENGYX_TOKEN_CONTRACT = '0xe1ec410835e5dFA47A6893448Cbc0AC216dBE642';

const ENGYX_WALLETS = [
'0x058BAA4a1466Ac45D383c1813089f95e11658fD4',
'0x792871536771e9DD3e9141158B0D86b8F56E1F89',
'0x849f6EfB27726DFdbAC21B29754a9c98e25B4d4E',
'0x3149245225Ef28297834c5BeC6776f42c56cCe36',
'0xb7DE9BDD8Ad938F986F57f2b5d740C973e54ABF2',
'0xBE2d1D4330d7C589AB0D5F34b2Aef7D8570b7937',
'0xD20fF9eBa96CfB12E95804544870B141184deC80',
];

async function tvl(api) {
const balances = await api.multiCall({
abi: 'erc20:balanceOf',
calls: ENGYX_WALLETS.map(wallet => ({ target: ENGYX_TOKEN_CONTRACT, params: [wallet] })),
});

await api.addTokens(
ENGYX_WALLETS.map(() => ENGYX_TOKEN_CONTRACT),
balances
);

return api.getBalances();
}

module.exports = {
methodology: 'Cuenta los tokens Engyx bloqueados en todas las wallets del protocolo.',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be in english?

start: 0,
timetravel: false,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be true

misrepresentedTokens: true,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be false

bsc: { tvl },
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use const { staking } = require('./helper/staking') and export it as staking while tvl: () => ({})

};
Binary file added projects/engyx/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.