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,