Commit eb7e70be authored by isstuev's avatar isstuev Committed by tom goriunov

token transfers, blocks fee and xstar fixes

parent 55ebeaaf
...@@ -2,8 +2,8 @@ import type { Feature } from './types'; ...@@ -2,8 +2,8 @@ import type { Feature } from './types';
import { getEnvValue } from '../utils'; import { getEnvValue } from '../utils';
const title = 'Xname score'; const title = 'XStar score';
const url = getEnvValue('NEXT_PUBLIC_XNAME_SCORE_URL'); const url = getEnvValue('NEXT_PUBLIC_XSTAR_SCORE_URL');
const config: Feature<{ url: string }> = (() => { const config: Feature<{ url: string }> = (() => {
if (url) { if (url) {
......
...@@ -184,7 +184,7 @@ export default function useNavItems(): ReturnType { ...@@ -184,7 +184,7 @@ export default function useNavItems(): ReturnType {
text: 'Tokens', text: 'Tokens',
nextRoute: { pathname: '/tokens' as const }, nextRoute: { pathname: '/tokens' as const },
icon: 'token', icon: 'token',
isActive: pathname.startsWith('/token'), isActive: pathname === '/tokens' || pathname.startsWith('/token/'),
}, },
{ {
text: 'Token transfers', text: 'Token transfers',
......
...@@ -6,7 +6,7 @@ import { TOKEN_INFO_ERC_20, TOKEN_TRANSFER_ERC_20 } from './token'; ...@@ -6,7 +6,7 @@ import { TOKEN_INFO_ERC_20, TOKEN_TRANSFER_ERC_20 } from './token';
export const BLOCK_HASH = '0x8fa7b9e5e5e79deeb62d608db22ba9a5cb45388c7ebb9223ae77331c6080dc70'; export const BLOCK_HASH = '0x8fa7b9e5e5e79deeb62d608db22ba9a5cb45388c7ebb9223ae77331c6080dc70';
export const BLOCK: Block = { export const BLOCK: Block = {
base_fee_per_gas: '14', base_fee_per_gas: '10000000000',
burnt_fees: '92834504000000000', burnt_fees: '92834504000000000',
burnt_fees_percentage: 42.2, burnt_fees_percentage: 42.2,
difficulty: '340282366920938463463374607431768211451', difficulty: '340282366920938463463374607431768211451',
......
...@@ -37,7 +37,7 @@ const TokenTransfers = () => { ...@@ -37,7 +37,7 @@ const TokenTransfers = () => {
<Show below="lg" ssr={ false }> <Show below="lg" ssr={ false }>
{ tokenTransfersQuery.data?.items.map((item, index) => ( { tokenTransfersQuery.data?.items.map((item, index) => (
<TokenTransfersListItem <TokenTransfersListItem
key={ item.block_number + item.log_index + (tokenTransfersQuery.isPlaceholderData ? index : '') } key={ item.tx_hash + item.log_index + (tokenTransfersQuery.isPlaceholderData ? index : '') }
isLoading={ tokenTransfersQuery.isPlaceholderData } isLoading={ tokenTransfersQuery.isPlaceholderData }
item={ item } item={ item }
/> />
......
...@@ -30,7 +30,7 @@ const TokenTransferTable = ({ items, top, isLoading }: Props) => { ...@@ -30,7 +30,7 @@ const TokenTransferTable = ({ items, top, isLoading }: Props) => {
<Tbody> <Tbody>
{ items?.map((item, index) => ( { items?.map((item, index) => (
<TokenTransferTableItem <TokenTransferTableItem
key={ item.block_number + item.log_index + (isLoading ? index : '') } key={ item.tx_hash + item.log_index + (isLoading ? index : '') }
item={ item } item={ item }
isLoading={ isLoading } isLoading={ isLoading }
/> />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment