From 10bc049c3f92c926b8050d3d4bf245dfc2e6cf5a Mon Sep 17 00:00:00 2001
From: James Bartnik
Date: Thu, 7 Dec 2023 09:14:51 -0800
Subject: [PATCH] Updates ETH > AETH | Routes Bulgaria to normal Blockpass flow
---
.../src/components/blockpass/Blockpass.tsx | 1 -
.../src/features/home/SentryWallet.tsx | 2 +-
.../src/features/home/SentryWalletHeader.tsx | 6 +++---
.../modals/actions-required/FundsInSentryWalletCard.tsx | 4 ++--
.../features/keys/modals/buy-keys/BuyKeysOrderTotal.tsx | 8 ++++----
.../src/features/checkout/WebBuyKeysOrderTotal.tsx | 8 ++++----
6 files changed, 14 insertions(+), 15 deletions(-)
diff --git a/apps/sentry-client-desktop/src/components/blockpass/Blockpass.tsx b/apps/sentry-client-desktop/src/components/blockpass/Blockpass.tsx
index dc14cb37b..a92654ee0 100644
--- a/apps/sentry-client-desktop/src/components/blockpass/Blockpass.tsx
+++ b/apps/sentry-client-desktop/src/components/blockpass/Blockpass.tsx
@@ -11,7 +11,6 @@ export function Blockpass({onClick = () => {}, children = "Begin KYC"}: PropsWit
function onClickHelper() {
if (selectedCountry) {
if (
- selectedCountry === "BG" || //Bulgaria
selectedCountry === "CN" || //China
selectedCountry === "HK" || //Hong Kong
selectedCountry === "MK" || //Macedonia
diff --git a/apps/sentry-client-desktop/src/features/home/SentryWallet.tsx b/apps/sentry-client-desktop/src/features/home/SentryWallet.tsx
index dfbb3c124..050183ecb 100644
--- a/apps/sentry-client-desktop/src/features/home/SentryWallet.tsx
+++ b/apps/sentry-client-desktop/src/features/home/SentryWallet.tsx
@@ -193,7 +193,7 @@ export function SentryWallet() {
{sentryRunning && balance?.wei === 0n && (
- No ETH
+ No AETH
)}
diff --git a/apps/sentry-client-desktop/src/features/home/SentryWalletHeader.tsx b/apps/sentry-client-desktop/src/features/home/SentryWalletHeader.tsx
index 87fdccb1f..94496979e 100644
--- a/apps/sentry-client-desktop/src/features/home/SentryWalletHeader.tsx
+++ b/apps/sentry-client-desktop/src/features/home/SentryWalletHeader.tsx
@@ -30,11 +30,11 @@ export function SentryWalletHeader() {
Sentry Wallet Balance
@@ -43,7 +43,7 @@ export function SentryWalletHeader() {
-
{(balance == undefined) ? "" : (balance.ethString === "0.0" ? "0" : balance.ethString)} ETH
+
{(balance == undefined) ? "" : (balance.ethString === "0.0" ? "0" : balance.ethString)} AETH
{isBalanceLoading ? (
diff --git a/apps/sentry-client-desktop/src/features/home/modals/actions-required/FundsInSentryWalletCard.tsx b/apps/sentry-client-desktop/src/features/home/modals/actions-required/FundsInSentryWalletCard.tsx
index 9115f2165..9dd7c9ec3 100644
--- a/apps/sentry-client-desktop/src/features/home/modals/actions-required/FundsInSentryWalletCard.tsx
+++ b/apps/sentry-client-desktop/src/features/home/modals/actions-required/FundsInSentryWalletCard.tsx
@@ -50,7 +50,7 @@ export function FundsInSentryWalletCard() {
/>
- To fund the Sentry Wallet, send ETH to this address
+ To fund the Sentry Wallet, send AETH to this address
>
diff --git a/apps/sentry-client-desktop/src/features/keys/modals/buy-keys/BuyKeysOrderTotal.tsx b/apps/sentry-client-desktop/src/features/keys/modals/buy-keys/BuyKeysOrderTotal.tsx
index 9e7d70dc6..513039166 100644
--- a/apps/sentry-client-desktop/src/features/keys/modals/buy-keys/BuyKeysOrderTotal.tsx
+++ b/apps/sentry-client-desktop/src/features/keys/modals/buy-keys/BuyKeysOrderTotal.tsx
@@ -55,12 +55,12 @@ export function BuyKeysOrderTotal({quantity, promoCode, setPromoCode}: BuyKeysOr
- {ethers.formatEther(item.totalPriceForTier)} ETH
+ {ethers.formatEther(item.totalPriceForTier)} AETH
- {ethers.formatEther(item.pricePer)} ETH per key
+ {ethers.formatEther(item.pricePer)} AETH per key
);
@@ -118,7 +118,7 @@ export function BuyKeysOrderTotal({quantity, promoCode, setPromoCode}: BuyKeysOr
- {ethers.formatEther(getPriceData.price * BigInt(5) / BigInt(100))} ETH
+ {ethers.formatEther(getPriceData.price * BigInt(5) / BigInt(100))} AETH
@@ -217,7 +217,7 @@ export function BuyKeysOrderTotal({quantity, promoCode, setPromoCode}: BuyKeysOr
: ethers.formatEther(getPriceData.price)
}
- ETH
+ AETH
diff --git a/apps/web-connect/src/features/checkout/WebBuyKeysOrderTotal.tsx b/apps/web-connect/src/features/checkout/WebBuyKeysOrderTotal.tsx
index 09a79a5df..9e24c8da9 100644
--- a/apps/web-connect/src/features/checkout/WebBuyKeysOrderTotal.tsx
+++ b/apps/web-connect/src/features/checkout/WebBuyKeysOrderTotal.tsx
@@ -77,12 +77,12 @@ export function WebBuyKeysOrderTotal(
- {ethers.formatEther(item.totalPriceForTier)} ETH
+ {ethers.formatEther(item.totalPriceForTier)} AETH
- {ethers.formatEther(item.pricePer)} ETH per key
+ {ethers.formatEther(item.pricePer)} AETH per key
);
@@ -121,7 +121,7 @@ export function WebBuyKeysOrderTotal(
- {ethers.formatEther(getPriceData.price * BigInt(5) / BigInt(100))} ETH
+ {ethers.formatEther(getPriceData.price * BigInt(5) / BigInt(100))} AETH
@@ -224,7 +224,7 @@ export function WebBuyKeysOrderTotal(
: ethers.formatEther(getPriceData.price)
}
- ETH
+ AETH