From d383fb92a386d18001a41e7ec20b7792d0d3ccf8 Mon Sep 17 00:00:00 2001 From: snoopy1412 Date: Sun, 29 Sep 2024 17:44:36 +0800 Subject: [PATCH] Refactor stake-ring component to display current chain's native currency symbol --- src/view/stake/_components/new/stake-ring.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/view/stake/_components/new/stake-ring.tsx b/src/view/stake/_components/new/stake-ring.tsx index ca5cc5e..f4699b7 100644 --- a/src/view/stake/_components/new/stake-ring.tsx +++ b/src/view/stake/_components/new/stake-ring.tsx @@ -22,7 +22,7 @@ const StakeRing = ({ selectedCollator, onSuccess }: StakeRingProps) => { const [amount, setAmount] = useState('0'); const { checkWaitingIndexing, isLoading: isLoadingWaitingIndexing } = useCheckWaitingIndexing(); const { watchAsset, isPending: isPendingWatchAsset } = useWatchAsset(); - const { ringDAOGovernance, gringTokenInfo } = useWalletStatus(); + const { ringDAOGovernance, gringTokenInfo, currentChain } = useWalletStatus(); const { formatted, isLoading: isLoadingBalance, @@ -110,7 +110,7 @@ const StakeRing = ({ selectedCollator, onSuccess }: StakeRingProps) => {
Please note that staking has a lock-up period, and you can only unstake after 24 hours. - Stake RING to automatically receive{' '} + Stake {currentChain?.nativeCurrency?.symbol} to automatically receive{' '}