#

פראקס של והפדיון ההטבעה תהליך פרטי

## הטבעה

**Example A: Minting FRAX at a collateral ratio of 100% with 200 USDC ($1/USDC price) **

**Example A: Minting FRAX at a collateral ratio of 100% with 200 USDC ($1/USDC price)**

To be explicit, we can start by finding the FXS needed to mint FRAX with `200 USDC`

(`$1/USDC`

) at a collateral ratio of 1.00

Thus, we show that no FXS is needed to mint FRAX when the protocol collateral ratio is 100% (fully collateralized). Next, we solve for how much FRAX we will get with the `200 USDC`

.

**Example B: Minting FRAX at a collateral ratio of 80% with 120 USDC ($1/USDC price) and an FXS price of $2/FXS.**

**Example B: Minting FRAX at a collateral ratio of 80% with 120 USDC ($1/USDC price) and an FXS price of $2/FXS.**

First, we need to figure out how much FXS we need to match the corresponding amount of USDC.

Thus, we need to deposit 15 FXS alongside 120 USDC at these conditions. Next, we compute how much FRAX we will get.

`150 FRAX`

are minted in this scenario. `120 FRAX`

are backed by the value of USDC as collateral while the remaining `30 FRAX`

are not backed by anything. Instead, FXS is burned and removed from circulation proportional to the value of minted algorithmic FRAX.

**Example C: Minting FRAX at a collateral ratio of 50% with 220 USDC ($.9995/USDC price) and an FXS price of $3.50/FXS**

**Example C: Minting FRAX at a collateral ratio of 50% with 220 USDC ($.9995/USDC price) and an FXS price of $3.50/FXS**

First, we start off by finding the FXS needed.

Next, we compute how much FRAX we will get.

`437.78 FRAX`

are minted in this scenario. Proportionally, half of the newly minted FRAX are backed by the value of USDC as collateral while the remaining 50% of FRAX are not backed by anything. `62.54 FXS`

is burned and removed from circulation, half the value of the newly minted FRAX. Notice that the price of the collateral affects how many FRAX can be minted – FRAX is pegged to 1 USD, not 1 unit of USDC.

If not enough FXS is put into the minting function alongside the collateral, the transaction will fail with a `subtraction underflow`

error.

## Redeeming

**Example D: Redeeming 170 FRAX at a collateral ratio of 65%. Oracle price is $1.00/USDC and $3.75/FXS. **

**Example D: Redeeming 170 FRAX at a collateral ratio of 65%. Oracle price is $1.00/USDC and $3.75/FXS.**

Redeeming `170 FRAX`

returns `$170`

of value to the redeemer in `110.5 USDC`

from the collateral pool and `15.867 of newly minted FXS`

tokens at the current FXS market price.

Additionally, there is a `2`

block delay parameter (adjustable by governance) on withdrawing redeemed collateral to protect against flash loans.

#### NOTE: These examples do not account for the minting and redemption fees, which are set between 0.20% and 0.45%

Last updated