Skip to content

Commit

Permalink
Fix pool fees
Browse files Browse the repository at this point in the history
  • Loading branch information
sophialittlejohn committed Mar 15, 2024
1 parent 76d0557 commit 8dc0423
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions centrifuge-app/src/pages/Pool/Overview/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CurrencyBalance, Price } from '@centrifuge/centrifuge-js'
import { CurrencyBalance, Price, Rate } from '@centrifuge/centrifuge-js'
import { Box, Button, Card, Grid, TextWithPlaceholder } from '@centrifuge/fabric'
import Decimal from 'decimal.js-light'
import * as React from 'react'
Expand Down Expand Up @@ -135,7 +135,20 @@ export function PoolDetailOverview() {
<>
<Grid height="fit-content" gridTemplateColumns="1fr 1fr" gap={3}>
<React.Suspense fallback={<Spinner />}>
<PoolStructure numOfTranches={pool.tranches.length} poolId={poolId} poolStatus={metadata?.pool?.status} />
<PoolStructure
numOfTranches={pool.tranches.length}
poolId={poolId}
poolStatus={metadata?.pool?.status}
poolFees={
metadata?.pool?.poolFees?.map((fee) => {
return {
fee: pool.poolFees?.find((f) => f.id === fee.id)?.amounts.percentOfNav ?? Rate.fromFloat(0),
name: fee.name,
id: fee.id,
}
}) || []
}
/>
</React.Suspense>
{/* <React.Suspense fallback={<Spinner />}>
<AssetsByMaturity />
Expand Down

0 comments on commit 8dc0423

Please sign in to comment.