From a3cb6f15c703fcc7aeed60bf7b8cf54451839095 Mon Sep 17 00:00:00 2001
From: Katty Barroso <51223655+kattylucy@users.noreply.github.com>
Date: Wed, 7 Aug 2024 10:43:41 -0500
Subject: [PATCH] Change text on fees change drawer (#2345)
* Change text on fees change drawer
* Remove console.lg
---
centrifuge-app/src/components/PoolFees/ChargeFeesDrawer.tsx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/centrifuge-app/src/components/PoolFees/ChargeFeesDrawer.tsx b/centrifuge-app/src/components/PoolFees/ChargeFeesDrawer.tsx
index 10b26add58..9a61d8221c 100644
--- a/centrifuge-app/src/components/PoolFees/ChargeFeesDrawer.tsx
+++ b/centrifuge-app/src/components/PoolFees/ChargeFeesDrawer.tsx
@@ -32,6 +32,7 @@ export const ChargeFeesDrawer = ({ onClose, isOpen }: ChargeFeesProps) => {
const [updateCharge, setUpdateCharge] = React.useState(false)
const address = useAddress()
const isAllowedToCharge = feeChainData?.destination && addressToHex(feeChainData.destination) === address
+ const maxFee = formatPercentage(feeChainData?.amounts.percentOfNav.toPercent() || 0)
const { execute: chargeFeeTx, isLoading: isChargeFeeLoading } = useCentrifugeTransaction('Charge fee', (cent) => {
return cent.pools.chargePoolFee
@@ -146,7 +147,7 @@ export const ChargeFeesDrawer = ({ onClose, isOpen }: ChargeFeesProps) => {
secondaryLabel={`Maximum charge ${formatBalance(
maxCharge || 0,
pool.currency.symbol
- )} (${formatPercentage(feeChainData?.amounts.percentOfNav.toDecimal() || 0)} NAV)`}
+ )} (${maxFee} NAV)`}
onChange={(value) => form.setFieldValue('amount', value)}
/>
)
@@ -154,7 +155,7 @@ export const ChargeFeesDrawer = ({ onClose, isOpen }: ChargeFeesProps) => {
- Charging of fees will be finalized by the issuer of the pool when executing orders
+ Fees charged will be paid during the execution of the epoch, if sufficient liquidity is available