Skip to content

Commit

Permalink
Nav Management: Include pending fees in nav total (#2301)
Browse files Browse the repository at this point in the history
  • Loading branch information
onnovisser authored Jul 23, 2024
1 parent 8e22635 commit 077f923
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export function NavManagementAssetTable({ poolId }: { poolId: string }) {
0
)
const newNavCash = cashLoans.reduce((acc, cur) => acc + cur.outstandingDebt.toFloat(), 0)
const newNav = newNavExternal + newNavCash + poolReserve
const newNav = newNavExternal + newNavCash + poolReserve - pendingFees.toFloat()
// Only for single tranche pools
const newPrice = newNav / pool.tranches[0].totalIssuance.toFloat()
const isTinlakePool = poolId.startsWith('0x')
Expand Down Expand Up @@ -300,7 +300,7 @@ export function NavManagementAssetTable({ poolId }: { poolId: string }) {
current={pool.nav.total.toFloat()}
change={newNav - pool.nav.total.toFloat()}
pendingFees={pendingFees.toFloat()}
pendingNav={newNav - pendingFees.toFloat()}
pendingNav={newNav}
/>
</Stack>
{pool.tranches.length === 1 && (
Expand Down

0 comments on commit 077f923

Please sign in to comment.