Commit for circulating supply API
This commit is contained in:
parent
89c429f382
commit
2be889d036
@ -129,7 +129,7 @@ try {
|
|||||||
{
|
{
|
||||||
let result; //500
|
let result; //500
|
||||||
if(option == "circulating")
|
if(option == "circulating")
|
||||||
result= blockDetails.coin_existence;
|
result= blockDetails.coin_existence - blockDetails.totalFoundationReward;
|
||||||
else if(option == "reward")
|
else if(option == "reward")
|
||||||
result= blockDetails.currentReward;
|
result= blockDetails.currentReward;
|
||||||
else if(option == "getblockcount")
|
else if(option == "getblockcount")
|
||||||
|
@ -465,8 +465,6 @@ let currentReward = 16;
|
|||||||
|
|
||||||
// Total foundation reward
|
// Total foundation reward
|
||||||
let totalFoundationReward = await circulationsupply(height)
|
let totalFoundationReward = await circulationsupply(height)
|
||||||
console.log("------------------------------------------------------------------");
|
|
||||||
console.log("Current foundation reward is ", totalFoundationReward)
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
block_height,
|
block_height,
|
||||||
|
Loading…
Reference in New Issue
Block a user