fix: circulatingSupply name fix

pull/16/head
VPcodebase 3 years ago
parent 4ca0785ba2
commit 36089b8290
  1. 2
      src/hooks/ERC20_Pool.ts
  2. 6
      src/pages/AddressPage/AddressDetails.tsx
  3. 2
      src/pages/ERC20List/ERC20Table.tsx

@ -28,7 +28,7 @@ export interface Erc20 {
name: string; name: string;
address: string; address: string;
totalSupply: string; totalSupply: string;
circulating_supply: string circulatingSupply: string
holders: string; holders: string;
decimals: number; decimals: number;
symbol: string; symbol: string;

@ -123,7 +123,7 @@ const addressPropertyDisplayNames: Record<
holders: () => "Holders", holders: () => "Holders",
description: () => "Description", description: () => "Description",
transactionHash: () => "Transaction Hash", transactionHash: () => "Transaction Hash",
circulating_supply: () => "Circulating Supply", circulatingSupply: () => "Circulating Supply",
}; };
const addressPropertyDisplayValues: Record< const addressPropertyDisplayValues: Record<
@ -202,7 +202,7 @@ const addressPropertyDisplayValues: Record<
}, },
description: (value) => <>{value}</>, description: (value) => <>{value}</>,
transactionHash: (value) => <Address address={value} type={"tx"} />, transactionHash: (value) => <Address address={value} type={"tx"} />,
circulating_supply: (value, data) => ( circulatingSupply: (value, data) => (
<Box direction={"row"}> <Box direction={"row"}>
<TokenValue <TokenValue
@ -247,7 +247,7 @@ const addressPropertyOrder: Record<string, number> = {
symbol: 21, symbol: 21,
decimals: 22, decimals: 22,
totalSupply: 23, totalSupply: 23,
circulating_supply: 23, circulatingSupply: 23,
holders: 24, holders: 24,
solidityVersion: 31, solidityVersion: 31,

@ -164,7 +164,7 @@ function getColumns(props: any) {
return ( return (
<Box direction={"row"}> <Box direction={"row"}>
<TokenValue <TokenValue
value={data.circulating_supply} value={data.circulatingSupply}
tokenAddress={data.address} tokenAddress={data.address}
formatNumber formatNumber
hideSymbol hideSymbol

Loading…
Cancel
Save