From e56d69b890ce5f40bc8bc3c4fe0b12bd2c990e24 Mon Sep 17 00:00:00 2001 From: Daniel Dimitrov Date: Fri, 27 Sep 2024 16:32:11 +0200 Subject: [PATCH] fix(staking): fee displayed in wrong format the fee is returned by the API in decimal format, so we have to multiply by 100 to get the percentage --- .../stake/components/StakingConfirmationTx/Deposit.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/features/stake/components/StakingConfirmationTx/Deposit.tsx b/src/features/stake/components/StakingConfirmationTx/Deposit.tsx index f90a5e7d72..9024347517 100644 --- a/src/features/stake/components/StakingConfirmationTx/Deposit.tsx +++ b/src/features/stake/components/StakingConfirmationTx/Deposit.tsx @@ -20,6 +20,8 @@ const CURRENCY = 'USD' const StakingConfirmationTxDeposit = ({ order }: StakingOrderConfirmationViewProps) => { const isOrder = order.type === ConfirmationViewTypes.KILN_NATIVE_STAKING_DEPOSIT + // the fee is returned in decimal format, so we multiply by 100 to get the percentage + const fee = (order.fee * 100).toFixed(2) return ( {isOrder && ( @@ -58,7 +60,7 @@ const StakingConfirmationTxDeposit = ({ order }: StakingOrderConfirmationViewPro } > - {order.fee}% + {fee} %