From a8e66cee4fc11ba8282c7586bd510490274c36da Mon Sep 17 00:00:00 2001 From: Phil Bain Date: Thu, 24 Oct 2019 15:53:36 +0200 Subject: [PATCH] CDP-454 fix stability fee display in onboarding --- src/components/CDPCreateScreens/CDPCreateConfirmCDP.js | 8 ++++++-- src/components/CDPCreateScreens/CDPCreateDeposit.js | 6 +++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/components/CDPCreateScreens/CDPCreateConfirmCDP.js b/src/components/CDPCreateScreens/CDPCreateConfirmCDP.js index 54196b5bb..f123a2064 100644 --- a/src/components/CDPCreateScreens/CDPCreateConfirmCDP.js +++ b/src/components/CDPCreateScreens/CDPCreateConfirmCDP.js @@ -30,7 +30,11 @@ const CDPCreateConfirmSummary = ({ const { lang } = useLanguage(); const [hasReadTOS, setHasReadTOS] = useState(false); - const { liquidationPenalty, liquidationRatio, rate } = selectedIlk.data; + const { + liquidationPenalty, + liquidationRatio, + stabilityFee + } = selectedIlk.data; const { gemsToLock, daiToDraw } = cdpParams; const { liquidationPrice, collateralizationRatio } = calcCDPParams({ ilkData: selectedIlk.data, @@ -51,7 +55,7 @@ const CDPCreateConfirmSummary = ({ [lang.liquidation_ratio, `${liquidationRatio}%`], [lang.liquidation_price, `$${liquidationPrice.toFixed(2)}`], [lang.liquidation_penalty, `${liquidationPenalty}%`], - [lang.stability_fee, `${rate}%`] + [lang.stability_fee, `${stabilityFee}%`] ]; return ( @@ -164,7 +164,7 @@ const CDPCreateDepositSidebar = ({ [lang.liquidation_price, `$${liquidationPrice.toFixed(2)}`], ['Current Price', `$${getUsdPrice(selectedIlk.data).toFixed(2)}`], - [lang.stability_fee, `${rate}%`], + [lang.stability_fee, `${stabilityFee}%`], [lang.liquidation_ratio, `${liquidationRatio}%`], [lang.liquidation_penalty, `${liquidationPenalty}%`], [lang.collateral_debt_ceiling, `${prettifyNumber(debtCeiling)} DAI`],