Small refactoring
This commit is contained in:
parent
c2195b7c21
commit
f96a18b0fd
|
@ -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,
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue