Skip to content
This repository has been archived by the owner on Jul 22, 2020. It is now read-only.

Commit

Permalink
feat: rename to totalStaked
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnygleason committed Jul 17, 2019
1 parent 86b2dae commit fcb9828
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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,
Expand Down

0 comments on commit fcb9828

Please sign in to comment.