Skip to content

Commit

Permalink
loan list amount
Browse files Browse the repository at this point in the history
  • Loading branch information
onnovisser committed Sep 29, 2023
1 parent 5754922 commit 7a6bf91
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions centrifuge-app/src/components/LoanList.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CurrencyBalance, Loan, TinlakeLoan } from '@centrifuge/centrifuge-js'
import { Loan, TinlakeLoan } from '@centrifuge/centrifuge-js'
import {
Box,
IconChevronRight,
Expand All @@ -11,7 +11,6 @@ import {
Thumbnail,
usePagination,
} from '@centrifuge/fabric'
import BN from 'bn.js'
import { useParams, useRouteMatch } from 'react-router'
import { formatNftAttribute } from '../pages/Loan/utils'
import { nftMetadataSchema } from '../schemas'
Expand Down Expand Up @@ -207,10 +206,7 @@ function Amount({ loan }: { loan: Row }) {

const currentFace =
loan?.pricing && 'outstandingQuantity' in loan.pricing
? new CurrencyBalance(
loan.pricing.outstandingQuantity.mul(loan.pricing.notional).div(new BN(10).pow(new BN(18))),
18
)
? loan.pricing.outstandingQuantity.toDecimal().mul(loan.pricing.notional.toDecimal())
: null

function getAmount(l: Row) {
Expand Down

0 comments on commit 7a6bf91

Please sign in to comment.