From fcb982855cd602cfd9a47ebebd4a006d2ae4e5ec Mon Sep 17 00:00:00 2001 From: Sunny Gleason Date: Wed, 17 Jul 2019 12:29:11 -0400 Subject: [PATCH] feat: rename to totalStaked --- api/api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/api.js b/api/api.js index 45351cf5..48aec9c0 100644 --- a/api/api.js +++ b/api/api.js @@ -498,7 +498,7 @@ async function getClusterInfo() { let supply = await connection.getTotalSupply(); let cluster = await connection.getClusterNodes(); let voting = await connection.getEpochVoteAccounts(); - let totalBonded = _.reduce(voting, (a, v) => { + let totalStaked = _.reduce(voting, (a, v) => { a += (v.stake || 0); return a; @@ -520,7 +520,7 @@ async function getClusterInfo() { return newc; }); - let rest = {feeCalculator, supply, totalBonded, cluster, voting, ts}; + let rest = {feeCalculator, supply, totalStaked, cluster, voting, ts}; await setexAsync( '!clusterInfo', CLUSTER_INFO_CACHE_TIME_SECS,