Skip to content

Commit

Permalink
update api entry for transfers from transfersCount to transfers
Browse files Browse the repository at this point in the history
  • Loading branch information
radumojic committed Dec 13, 2024
1 parent 2534783 commit 6c9d229
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/hooks/useGetNativeTokenDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export interface NativeTokenType {
marketCap?: number;
valueUsd?: number;
assets?: TokenAssetType;
transfersCount?: number;
transfers?: number;
}

export const useGetNativeTokenDetails = () => {
Expand Down
4 changes: 2 additions & 2 deletions src/layouts/TokenLayout/TokenDetailsCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const TokenDetailsCard = () => {
circulatingSupply,
accounts,
transactions,
transfersCount,
transfers,
price,
marketCap,
isLowLiquidity
Expand Down Expand Up @@ -104,7 +104,7 @@ export const TokenDetailsCard = () => {
{ title: 'Holders', value: new BigNumber(accounts).toFormat() },
{
title: 'Transactions',
value: new BigNumber(transfersCount || transactions || 0).toFormat()
value: new BigNumber(transfers || transactions || 0).toFormat()
}
];

Expand Down
2 changes: 1 addition & 1 deletion src/pages/Tokens/components/TokensTable/TokensTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export const TokensTable = ({
</td>
<td>
{new BigNumber(
token.transfersCount || token.transactions || 0
token.transfers || token.transactions || 0
).toFormat()}
</td>
</tr>
Expand Down
5 changes: 3 additions & 2 deletions src/types/token.types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { RolesType, SliceType, AccountAssetType } from 'types';
import { RolesType, SliceType, AccountAssetType, NftSubtypeEnum } from 'types';

export interface TokenType {
type: TokenTypeEnum;
subType?: NftSubtypeEnum;
identifier: string;
ticker?: string;
name: string;
Expand All @@ -22,14 +23,14 @@ export interface TokenType {
isPaused?: boolean;
transactions: number;
accounts: number;
transfers?: number;
price?: number;
marketCap?: number;
valueUsd?: number;
assets?: TokenAssetType;
totalLiquidity?: number;
isLowLiquidity?: boolean;
lowLiquidityThresholdPercent?: number;
transfersCount?: number;
roles?: TokenRolesType[];
}

Expand Down

0 comments on commit 6c9d229

Please sign in to comment.