diff --git a/src/components/msg/gravity/send_to_cosmos/index.tsx b/src/components/msg/gravity/send_to_cosmos/index.tsx index 1ddfe0d9e8..8ec93ec8df 100644 --- a/src/components/msg/gravity/send_to_cosmos/index.tsx +++ b/src/components/msg/gravity/send_to_cosmos/index.tsx @@ -7,7 +7,7 @@ import { useProfileRecoil, } from '@recoil/profiles'; import { - formatTokenByExponent, formatNumber, + formatToken, formatNumber, } from '@utils/format_token'; const SendToCosmos = (props: { @@ -17,9 +17,9 @@ const SendToCosmos = (props: { const receiver = useProfileRecoil(message.receiver); const receiverMoniker = receiver ? receiver?.name : message.receiver; - const amount = formatTokenByExponent(message.amount, 25); - const displayAmount = `${formatNumber(amount, 18)} CUDOS`; + const amount = formatToken(message.amount, 'acudos'); + const displayAmount = `${formatNumber(amount.value, amount.exponent)} ${amount.displayDenom.toUpperCase()}`; return ( <>