For the complete documentation index, see llms.txt. This page is also available as Markdown.

Pool Accounting

Total Pool Value (totalAssets)

The Pool Manager computes totalAssets as the Pool's cash, plus the value of its Open Term Loan Manager, plus its share of each Strategy Manager it funds:

totalAssets=cash+assetsUnderManagementopenTermLoanManager+∑assetsOfstrategyManagers\begin{align} \nonumber totalAssets = cash + assetsUnderManagement_{openTermLoanManager} + \sum{assetsOf_{strategyManagers}} \end{align}

For the Open Term Loan Manager the Pool Manager reads assetsUnderManagement(). For a Strategy Manager, which several Pools share, it reads assetsOf(poolManager), the Pool's share of the Strategy Manager's total assets in proportion to the shares the Pool Manager holds.

The Open Term Loan Manager's value is:

assetsUnderManagement=∑(outstandingPrincipalloan+outstandingInterestloan)\begin{align} \nonumber assetsUnderManagement = \sum\Big({outstandingPrincipal_{loan}} + {outstandingInterest_{loan}}\Big) \end{align}

where:

outstandingInterest(t)=accountedInterest+issuanceRate×(t−domainStart)PRECISION\begin{align} \nonumber outstandingInterest(t) = accountedInterest + \frac{issuanceRate \times (t - domainStart)}{PRECISION} \end{align}

The Open Term Loan Manager stores issuanceRate scaled by PRECISION, which is 1e27.

Unrealized Losses

unrealizedLosses is a paper loss: value the Pool expects to lose but has not yet written off. The Pool Manager sums each position's unrealized loss and caps the total at totalAssets:

unrealizedLosses=min⁡(unrealizedLossesopenTermLoanManager+∑unrealizedLossesOfstrategyManagers, totalAssets)\begin{align} \nonumber unrealizedLosses = \min\Big(unrealizedLosses_{openTermLoanManager} + \sum{unrealizedLossesOf_{strategyManagers}},\ totalAssets\Big) \end{align}

Two events raise it:

  • The Pool Delegate or Governor impairs a loan on the Open Term Loan Manager, which adds the loan's principal and the interest accrued so far. See Impairments.

  • An Underlying Strategy records an impairment. Each Strategy Manager funding it reports the Pool's pro-rata share of that loss through unrealizedLossesOf(poolManager).

While unrealizedLosses is above zero the Pool prices withdrawals at totalAssets - unrealizedLosses and deposits at totalAssets. This stops Lenders exiting ahead of a loss and stops new Lenders capturing the jump in value when an impairment is removed. Exchange Rates explains the two rates and works through examples.

Last updated

Was this helpful?