diff --git a/apps/explorer/src/app/components/txs/details/tx-proposal.tsx b/apps/explorer/src/app/components/txs/details/tx-proposal.tsx index aad0f0d49..85c1d2fae 100644 --- a/apps/explorer/src/app/components/txs/details/tx-proposal.tsx +++ b/apps/explorer/src/app/components/txs/details/tx-proposal.tsx @@ -10,6 +10,8 @@ import Hash from '../../links/hash'; import { t } from '@vegaprotocol/i18n'; import { ProposalSignatureBundleNewAsset } from './proposal/signature-bundle-new'; import { ProposalSignatureBundleUpdateAsset } from './proposal/signature-bundle-update'; +import { MarketLink } from '../../links'; +import { formatNumber } from '@vegaprotocol/utils'; export type Proposal = components['schemas']['v1ProposalSubmission']; export type ProposalTerms = components['schemas']['vegaProposalTerms']; @@ -89,6 +91,9 @@ export const TxProposal = ({ txData, pubKey, blockData }: TxProposalProps) => { } const tx = proposal.terms?.newAsset || proposal.terms?.updateAsset; + const isSuccessorMarketProposal = proposal?.terms?.newMarket?.changes?.successor; + const parentMarketId = isSuccessorMarketProposal && proposal?.terms.newMarket?.changes?.successor?.parentMarketId; + const insurancePoolFraction = proposal?.terms?.newMarket?.changes?.successor?.insurancePoolFraction; // This component is not rendered if no bundle is required const SignatureBundleComponent = proposal.terms?.newAsset @@ -115,6 +120,23 @@ export const TxProposal = ({ txData, pubKey, blockData }: TxProposalProps) => { + {isSuccessorMarketProposal ? <> + {parentMarketId ? + + {t('Previous market')} + + + + : null} + {insurancePoolFraction ? + + {t('Insurance pool fraction')} + + {formatNumber(Number(insurancePoolFraction) * 100, 0)}% + + : null} + : null} +