From b125916ee5fbe7fef3d145980e61288bb8f8a950 Mon Sep 17 00:00:00 2001 From: Uncle Fatso Date: Wed, 25 Nov 2026 12:14:28 +0300 Subject: [PATCH] apply dynamic token names and fix the rootIncluded if the loom state happened at the same block Signed-off-by: Uncle Fatso --- package.json | 2 +- src/containers/History/BondModals/BondModalExodus.jsx | 6 +++++- src/containers/History/BridgeInModal.jsx | 2 +- src/containers/History/History.jsx | 7 ++++--- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 07164c7..48032ec 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ghost-dao-interface", "private": true, - "version": "0.8.32", + "version": "0.8.33", "type": "module", "scripts": { "dev": "vite", diff --git a/src/containers/History/BondModals/BondModalExodus.jsx b/src/containers/History/BondModals/BondModalExodus.jsx index abb8874..b8c6a06 100644 --- a/src/containers/History/BondModals/BondModalExodus.jsx +++ b/src/containers/History/BondModals/BondModalExodus.jsx @@ -13,6 +13,7 @@ import Token from "../../../components/Token/Token"; import { PrimaryButton } from "../../../components/Button"; import { useBondInfo } from "../../../hooks/bonds"; +import { useTokenSymbol } from "../../../hooks/tokens"; import { getTokenDecimals } from "../../../hooks/helpers"; import { useLocalStorage } from "../../../hooks/localstorage"; import { formatNumber, formatCurrency, shorten } from "../../../helpers"; @@ -45,6 +46,7 @@ const BondModalExodus = ({ chainId, address, isOpen, close, config, historyRecor if (historyRecord === null) return null; const { network } = useParams(); const { CONSTANTS } = useLocalStorage(); + const [copiedIndex, setCopiedIndex] = useState(null); const copyToClipboard = (text, index) => { @@ -63,6 +65,8 @@ const BondModalExodus = ({ chainId, address, isOpen, close, config, historyRecor }; }, [config]); + const { symbol: ftsoSymbol } = useTokenSymbol(chainId, "FTSO"); + const { data: receipt, isLoading, error } = useTransactionReceipt({ hash: historyRecord?.txHash, query: { @@ -160,7 +164,7 @@ const BondModalExodus = ({ chainId, address, isOpen, close, config, historyRecor {!voluntaryVerification && Exodus Reward - {formatCurrency(stakedAmount, 5, "FTSO")} + {formatCurrency(stakedAmount, 5, ftsoSymbol)} diff --git a/src/containers/History/BridgeInModal.jsx b/src/containers/History/BridgeInModal.jsx index dfe4182..53e4244 100644 --- a/src/containers/History/BridgeInModal.jsx +++ b/src/containers/History/BridgeInModal.jsx @@ -241,7 +241,7 @@ const BridgeInModal = ({ chainId, isOpen, close, config, historyRecord }) => { const rootIncluded = useMemo(() => { if (!loomState || !receipt) return false; - return evmMerkleRoot === loomState.root_hash && receipt.blockNumber < loomState.at_block; + return evmMerkleRoot === loomState.root_hash && receipt.blockNumber <= loomState.at_block; }, [loomState, receipt, evmMerkleRoot]); const weaverArgs = useMemo(() => { diff --git a/src/containers/History/History.jsx b/src/containers/History/History.jsx index c163d0f..9696426 100644 --- a/src/containers/History/History.jsx +++ b/src/containers/History/History.jsx @@ -61,7 +61,7 @@ const HistoryItem = ({ const isVerySmallScreen = useMediaQuery("(max-width: 450px)"); const localString = new Date(item.submitted).toLocaleString(); - const { symbol: ftsoSymbol } = useTokenSymbol(chainId, "FTSO") + const { symbol: ftsoSymbol } = useTokenSymbol(chainId, "FTSO"); const { CONSTANTS } = useLocalStorage(); const chainInfo = useMemo(() => { @@ -109,7 +109,7 @@ const HistoryItem = ({ flexDirection={isVerySmallScreen ? "row" : "row"} > - + {localString} - + {item?.name ?? "Unknown"}{item?.isCustom ? " (Custom)" : ""} eraseRecord(i)}