Skip to content

Commit

Permalink
Change text on fees change drawer (#2345)
Browse files Browse the repository at this point in the history
* Change text on fees change drawer

* Remove console.lg
  • Loading branch information
kattylucy authored Aug 7, 2024
1 parent 6b13eda commit a3cb6f1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions centrifuge-app/src/components/PoolFees/ChargeFeesDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -146,15 +147,15 @@ 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)}
/>
)
}}
</Field>
<Box bg="backgroundButtonSecondary" p={1} borderRadius="2px">
<Text variant="body3" color="textSecondary">
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
</Text>
</Box>
<ButtonGroup variant="small">
Expand Down

0 comments on commit a3cb6f1

Please sign in to comment.