diff --git a/index.html b/index.html index ccedb69..4b97129 100644 --- a/index.html +++ b/index.html @@ -437,6 +437,7 @@ const loanRequestForm = Component(() => { const [loanAmount, setLoanAmount] = useState(0) const [selfCollateral, setSelfCollateral] = useState(true) + const collateralAmount = btcMortgage.util.calcRequiredCollateral((loanAmount / floGlobals.btcRate), loan_collateral_ratio) useEffect(() => { if (!selfCollateral) { getRef('collateral_provider').focusIn() @@ -456,7 +457,7 @@ -

Collateral amount: ${formatAmount(btcMortgage.util.calcRequiredCollateral((loanAmount / floGlobals.btcRate), loan_collateral_ratio))}

+

Collateral amount: ${formatAmount(collateralAmount)} (${formatAmount(collateralAmount * floGlobals.btcRate, 'usd')})