From e45f4d6a36c060956a68134d0a32ff02c04e225a Mon Sep 17 00:00:00 2001 From: avalkov Date: Tue, 31 May 2022 09:44:56 +0300 Subject: [PATCH] Fix MsgSendToCosmosClaim exponent formatting --- src/components/msg/gravity/send_to_cosmos/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/msg/gravity/send_to_cosmos/index.tsx b/src/components/msg/gravity/send_to_cosmos/index.tsx index eebd5a4ff7..1ddfe0d9e8 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, + formatTokenByExponent, formatNumber, } from '@utils/format_token'; const SendToCosmos = (props: { @@ -17,8 +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 = `${formatTokenByExponent(message.amount, 25)} CUDOS`; + const displayAmount = `${formatNumber(amount, 18)} CUDOS`; return ( <>