Small refactoring

This commit is contained in:
arman37 2020-06-26 15:21:50 +06:00
parent c2195b7c21
commit f96a18b0fd
1 changed files with 6 additions and 5 deletions

View File

@ -9,10 +9,11 @@
==================================================*/
async function tvl(timestamp, block) {
let balances = {
"0x0000000000000000000000000000000000000000": (await sdk.api.eth.getBalance({ target: '0x220a9f0DD581cbc58fcFb907De0454cBF3777f76', block })).output,
const ethBalance = (await sdk.api.eth.getBalance({ target: '0x220a9f0DD581cbc58fcFb907De0454cBF3777f76', block })).output;
return {
"0x0000000000000000000000000000000000000000": ethBalance,
};
return balances;
}
/*==================================================
@ -25,5 +26,5 @@
token: 'MCB',
category: 'derivatives', // allowed values as shown on DefiPulse: 'Derivatives', 'DEXes', 'Lending', 'Payments', 'Assets'
start: 1592478136, // block 10289316
tvl
}
tvl,
};