From fa302955e39dc103beb982a497ad3ae73e0992b9 Mon Sep 17 00:00:00 2001 From: Burnt Val Date: Wed, 13 Mar 2024 14:08:19 -0400 Subject: [PATCH] add missing balance component to send modal; fix address validity check --- .../components/WalletSend/WalletSend.tsx | 29 +++++++++++++++++-- apps/abstraxion-dashboard/utils/index.ts | 2 +- 2 files changed, 27 insertions(+), 4 deletions(-) diff --git a/apps/abstraxion-dashboard/components/WalletSend/WalletSend.tsx b/apps/abstraxion-dashboard/components/WalletSend/WalletSend.tsx index 8d1367d9..6161e646 100644 --- a/apps/abstraxion-dashboard/components/WalletSend/WalletSend.tsx +++ b/apps/abstraxion-dashboard/components/WalletSend/WalletSend.tsx @@ -229,11 +229,34 @@ export function WalletSend({ SEND
-

Amount

+
+

XION

+

+ {/* TODO: Make configurable once we support multiple currencies */} + Balance: {formatBalance(Number(balanceInfo.total))} XION{" "} + + $ + {formatBalance( + Number(balanceInfo.total) * XION_TO_USDC_CONVERSION, + )}{" "} + USD + +

+
+
+

Amount

+

+ =$ + {formatBalance( + Number(sendAmount) * 1000000 * XION_TO_USDC_CONVERSION, + )}{" "} + USD +

+