From 3f12bf6f52b4fcdc1d9c4db55e1486ba5f8a5b0d Mon Sep 17 00:00:00 2001 From: Tyera Eulberg Date: Tue, 26 May 2020 10:12:03 -0600 Subject: [PATCH] Default top accounts to all accounts --- explorer/src/components/TopAccountsCard.tsx | 6 +++--- explorer/src/providers/richList.tsx | 4 +--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/explorer/src/components/TopAccountsCard.tsx b/explorer/src/components/TopAccountsCard.tsx index 85a45ee5d5..500d8c3408 100644 --- a/explorer/src/components/TopAccountsCard.tsx +++ b/explorer/src/components/TopAccountsCard.tsx @@ -27,7 +27,7 @@ export default function TopAccountsCard() { return ; } - const { accounts, circulatingSupply: supply } = richList; + const { accounts, totalSupply: supply } = richList; return (
@@ -40,7 +40,7 @@ export default function TopAccountsCard() { Rank Address Balance (SOL) - % of Circulating Supply + % of Total Supply Details @@ -60,7 +60,7 @@ const renderHeader = () => {
-

Top 20 Active Accounts

+

Largest Accounts

diff --git a/explorer/src/providers/richList.tsx b/explorer/src/providers/richList.tsx index 23e0d6974e..d236542b67 100644 --- a/explorer/src/providers/richList.tsx +++ b/explorer/src/providers/richList.tsx @@ -49,9 +49,7 @@ async function fetch(dispatch: Dispatch, url: string) { try { const connection = new Connection(url, "max"); const supply = (await connection.getSupply()).value; - const accounts = ( - await connection.getLargestAccounts({ filter: "circulating" }) - ).value; + const accounts = (await connection.getLargestAccounts()).value; // Update state if still connecting dispatch(state => {