From dc76ea373eb51d00bd6ef0c1803f0660374cc59d Mon Sep 17 00:00:00 2001 From: damnnou Date: Tue, 21 May 2024 17:09:26 +0300 Subject: [PATCH] fix: add wrap logo in tx history --- src/hooks/swap/useWrapCallback.ts | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/hooks/swap/useWrapCallback.ts b/src/hooks/swap/useWrapCallback.ts index e353b38..c921af0 100644 --- a/src/hooks/swap/useWrapCallback.ts +++ b/src/hooks/swap/useWrapCallback.ts @@ -35,7 +35,11 @@ export default function useWrapCallback( const { isLoading: isWrapLoading } = useTransactionAwait( wrapData?.hash, - { title: `Wrap ${inputAmount?.toSignificant(3)} ${DEFAULT_NATIVE_SYMBOL} to W${DEFAULT_NATIVE_SYMBOL}`, type: TransactionType.SWAP } + { + title: `Wrap ${inputAmount?.toSignificant(3)} ${DEFAULT_NATIVE_SYMBOL}`, + tokenA: WNATIVE[chainId].address as Address, + type: TransactionType.SWAP + } ) const { config: unwrapConfig } = usePrepareWrappedNativeWithdraw({ @@ -47,8 +51,12 @@ export default function useWrapCallback( const { isLoading: isUnwrapLoading } = useTransactionAwait( unwrapData?.hash, - { title: `Unwrap ${inputAmount?.toSignificant(3)} W${DEFAULT_NATIVE_SYMBOL} to ${DEFAULT_NATIVE_SYMBOL}`, type: TransactionType.SWAP } - ) + { + title: `Unwrap ${inputAmount?.toSignificant(3)} W${DEFAULT_NATIVE_SYMBOL}`, + tokenA: WNATIVE[chainId].address as Address, + type: TransactionType.SWAP, + } + ) const { data: balance } = useBalance({ enabled: Boolean(inputCurrency),