fix(wallet): broken explorer links

This commit is contained in:
pierre
2022-11-17 17:33:41 +01:00
parent b706815802
commit e71f6f0f15
4 changed files with 6 additions and 2 deletions
@@ -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>
+2
View File
@@ -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),
+1
View File
@@ -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' },