Calculations

Health calculations

borrowing Power ratio (Pr): The borrowing power ratio of an asset is a number between 0 and 1 and describes how much you can borrow against this certain asset. It is calculated as:

Collateral (Ct & C): DeltaPrime being fully cross-margin, means that "collateral" as such does not exist, but is either a token-derived collateral value (Ct):

Or a portfolio-derived value (C):

In words: The dollar value of your collateral is equal to the dollar value of your assets, minus the dollar value of your borrowed tokens, either for one token, or for the whole portfolio.

At launch all integrated tokens have either 0x or 5x Borrowing power. If they have 0, the Borrowing Power ratio is 0 as well.

Cross-margin Borrowing Power

How much you can actually borrow against your deposit is not solely dependent on the borrowing power of the token provided, but also on the borrowing power of the token borrowed. This means that if you provide a token with 5x borrowing power, and borrow a token with 2x borrowing power, the exact ratio at which the health meter reaches zero is neither 2x nor 5x, but rather somewhere in between. Below are the calculations how the exact Health can be measured. Additionally you can see how it differs in the Health Playground.

Health of single asset (Ha)

Examples

Health of all assets (H)

Weights

In order to calculate a cross-margin portfolio, we need to take different borrowing powers and token prices into account. To do this we calculate the weighted collateral value of a token (Cw) and the weighted borrowed value (Bw) of a token. By multiplying either with both the token price and Borrowing Power ratio (Pr), we get a value that represents that token's weighted collateral/borrowing value.

Compounding the collateral weights of all tokens within one Prime Account, we get the portfolio's Total Collateral weight (ΣCw). Compounding the borrowed weights of all tokens within one Prime Account we get the portfolio's Total Borrowed weight (ΣBw).

By using the same formula we used with the single-asset health meter, but taking into account the different token prices and borrowing powers, we get:

Health Playground

The Health Playground is an excel sheet you can use to calculate different scenarios for yourself. Make a copy of this document to play around with variable health meters: Health Playground

Last updated

Logo

DeltaPrime

Launch App