Skip to content

Commit

Permalink
fix: add wrap logo in tx history
Browse files Browse the repository at this point in the history
  • Loading branch information
damnnou committed May 21, 2024
1 parent ab55ee7 commit dc76ea3
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/hooks/swap/useWrapCallback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -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),
Expand Down

0 comments on commit dc76ea3

Please sign in to comment.