Skip to content

Commit

Permalink
add initial value for unvested (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
ElessarST authored Dec 2, 2024
1 parent d0ef6d2 commit 4ea31fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/calculators/subscan.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ const HEADERS = {
'x-api-key': config.subscan.apiKey,
};

let minBlock = 15800000;
let cachedValue = 0n;
let minBlock = 17827639;
let cachedValue = 184056079261254986960n;
let lastUpdated = undefined;

const exchangeAddresses = [
Expand Down Expand Up @@ -134,7 +134,7 @@ async function updateUnvested() {
unvested += await getExchangeAddresses(lastBlockNumber);
lastUpdated = new Date();
cachedValue = unvested;
console.log('unvested: ', unvested);
console.log(`unvested for blockNumber ${lastBlockNumber}: `, unvested);
minBlock = Number(lastBlockNumber) + 1;
return unvested;
}
Expand Down

0 comments on commit 4ea31fe

Please sign in to comment.