Skip to content

Commit

Permalink
Fix MsgSendToCosmosClaim exponent formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
avalkov committed May 31, 2022
1 parent e45f4d6 commit ee59464
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/msg/gravity/send_to_cosmos/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
useProfileRecoil,
} from '@recoil/profiles';
import {
formatTokenByExponent, formatNumber,
formatToken, formatNumber,
} from '@utils/format_token';

const SendToCosmos = (props: {
Expand All @@ -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 (
<>
Expand Down

0 comments on commit ee59464

Please sign in to comment.