From 01cd5fc3cdc8e3d1a9fd69b136f5796556789540 Mon Sep 17 00:00:00 2001 From: Victor Creed Date: Fri, 6 Nov 2020 11:49:17 +0200 Subject: [PATCH] fixes lending max amount showing as wei instead floating number --- .../containers/LendBorrowSovryn/components/Amount/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/containers/LendBorrowSovryn/components/Amount/index.tsx b/src/app/containers/LendBorrowSovryn/components/Amount/index.tsx index d3eb24d5d..964665250 100644 --- a/src/app/containers/LendBorrowSovryn/components/Amount/index.tsx +++ b/src/app/containers/LendBorrowSovryn/components/Amount/index.tsx @@ -2,6 +2,7 @@ import React from 'react'; import '../../assets/index.scss'; import { FieldGroup } from '../../../../components/FieldGroup'; import { AmountField } from '../../../AmountField'; +import { weiTo4 } from '../../../../../utils/blockchain/math-helpers'; type Props = { amountName: string; @@ -39,7 +40,7 @@ const Amount: React.FC = ({
Max:
{currency}{' '} - {maxValue} + {weiTo4(maxValue)}
)}