fix(wallet): broken explorer links
This commit is contained in:
@@ -91,7 +91,7 @@ export const BondedGateway = ({
|
||||
{network && (
|
||||
<Typography sx={{ mt: 2, fontSize: 'small' }}>
|
||||
Check more stats of your gateway on the{' '}
|
||||
<Link href={`${urls(network).networkExplorer}/network-components/gateways`} target="_blank">
|
||||
<Link href={`${urls(network).networkExplorer}/network-components/gateway/${identityKey}`} target="_blank">
|
||||
explorer
|
||||
</Link>
|
||||
</Typography>
|
||||
|
||||
@@ -66,6 +66,7 @@ export const BondedMixnode = ({
|
||||
const navigate = useNavigate();
|
||||
const {
|
||||
name,
|
||||
mixId,
|
||||
stake,
|
||||
bond,
|
||||
stakeSaturation,
|
||||
@@ -165,7 +166,7 @@ export const BondedMixnode = ({
|
||||
{network && (
|
||||
<Typography sx={{ mt: 2, fontSize: 'small' }}>
|
||||
Check more stats of your node on the{' '}
|
||||
<Link href={`${urls(network).networkExplorer}/network-components/mixnodes`} target="_blank">
|
||||
<Link href={`${urls(network).networkExplorer}/network-components/mixnode/${mixId}`} target="_blank">
|
||||
explorer
|
||||
</Link>
|
||||
</Typography>
|
||||
|
||||
@@ -48,6 +48,7 @@ import {
|
||||
|
||||
export type TBondedMixnode = {
|
||||
name?: string;
|
||||
mixId: number;
|
||||
identityKey: string;
|
||||
stake: DecCoin;
|
||||
bond: DecCoin;
|
||||
@@ -266,6 +267,7 @@ export const BondingContextProvider = ({ children }: { children?: React.ReactNod
|
||||
const routingScore = await getAvgUptime();
|
||||
setBondedNode({
|
||||
name: nodeDescription?.name,
|
||||
mixId: mix_id,
|
||||
identityKey: bond_information.mix_node.identity_key,
|
||||
stake: {
|
||||
amount: calculateStake(rewarding_details.operator, rewarding_details.delegates),
|
||||
|
||||
@@ -8,6 +8,7 @@ const SLEEP_MS = 1000;
|
||||
|
||||
const bondedMixnodeMock: TBondedMixnode = {
|
||||
name: 'Monster node',
|
||||
mixId: 1,
|
||||
identityKey: '7mjM2fYbtN6kxMwp1TrmQ4VwPks3URR5pBgWPWhzT98F',
|
||||
stake: { denom: 'nym', amount: '1234' },
|
||||
bond: { denom: 'nym', amount: '1234' },
|
||||
|
||||
Reference in New Issue
Block a user