Deposit for minting
Last updated
Last updated
Depositing collateral into the vault can mint both USB and margin tokens.
The V-Vault operates in two modes, starting initially with the stability mode, when the Vault's AAR deviates below the set lower limit (Safety AAR, AARS) or exceeds the upper limit (Upper AAR, AARU), the protocol enters an adjustment phase.
Taking the ETH vault as an example:
When assets are first deposited into the Vault for minting, as the quantities of existing USB and ETHx are zero, we calculate the minting ratio based on the initial price P_(eth-i) and then maintain this minting ratio unchanged throughout the stability phase. The protocol records the quantity of USB minted in each Vault, and the total supply of USB is the sum of USB minted across all Vaults.
When the contract is initially created, USB and ETHx are generated in a fixed ratio. The specific quantities and ratios are calculated using the following formula:
Where:
: The quantity of minted USB.
: The quantity of minted ETHx.
: The quantity of ETH used for minting.
: The initial price of ETH relative to USD (provided by an oracle).
: The protocol's target AAR (Asset Adequacy Ratio) for the ETH vault.
After the initiation, when depositing into the ETH vault, users can mint USB and ETHx in a fixed ratio. The formulas for calculating the minted amounts are as follows:
Example:
We assume ( AART_{eth} = 150% ). When 2 ETH are first deposited into the Vault, and the real-time market price of ETH at that time is $2000, then:
If another user deposits 1 ETH into the Vault, assuming the market price of ETH is $2200, and the protocol is still in the stability phase, the user can obtain ( \Delta USB ) and ( \Delta ETHx ) as follows:
In this scenario, with a total of 3 ETH in the Vault, the Vault has generated a total of 4000 USB and 1 ETHx.
From the examples provided above, we can observe that within the protocol's stability phase, the number of USB and ETHx generated for each ETH deposited remains constant.
When the Vault's AAR deviates below the set lower limit (Safety AAR, AARS) or exceeds the upper limit (Upper AAR, AARU), the protocol enters an adjustment phase. During this adjustment phase, the method of asset minting changes.
When AAR rises above AARU, users can mint USB individually. The corresponding minting formula is as follows:
If users want to mint ETHx, they still need to mint USB+ETHx according to the protocol's calculated ratio.
When AAR falls below AARS, users can mint ETHx alone using the underlying asset. The minting formula in this case is:
When AAR further drops below 101%, the formula for minting ETHx alone will change to:
Where:
: The quantity of USB minted.
: The quantity of ETHx minted.
: The quantity of ETH used for minting.
: The real-time price of ETH relative to USD (provided by the oracle).
: The quantity of ETH in the Vault.
: The quantity of ETHx minted in the ETH Vault.
: The quantity of USB already minted in the ETH Vault.
If users want to mint USB, they still need to mint USB+ETHx according to the protocol's calculated ratio.
When Vault's AAR returns to AART, the protocol returns to the Stability Mode, and the asset minting formula reverts to the calculation used during the stability phase.