Wand
  • ⚖️Background
  • Products
    • IP-Vault
      • Principal Token
      • Yield Token
      • Dutch-VAMM
    • Yield-Vault V2
      • Glossary
      • Innovations
      • User Interaction
      • Product Description
        • Single-Asset Liquidity Pool
        • Liquidity Provision
        • Pricing Mechanism
        • Implied APY
      • Renewable Liquidity
      • Zero Liquidity Bootstrap
    • Collateral-Vault
      • Core Concept
        • USB-Stablecoin
        • xToken-Margin Token
      • Vault
        • AAR--Asset Adequacy Ratio
        • V-Vault
          • Deposit for minting
          • Withdraw for redemption
        • S-Vault
      • Earn
        • Interest Settlement
        • PTY--Price Trigger Yield
      • Discount Offer
      • Revenue Flow
      • Parameters
      • RedStone Oracles
      • Audit Report
      • Addresses
      • Migration to V2
      • Guide 101
        • What can I do with Wand?
        • How to obtain xToken and USB?
        • FAQ
  • 🪙TOKENOMIC
    • Coming soon
  • --------Archived--------
    • Blast Campaign
      • Basic Rules
      • Blast Points
      • Blast Gold
Powered by GitBook
On this page
  • Stability Mode
  • Adjustment Mode
  1. Products
  2. Collateral-Vault
  3. Vault
  4. V-Vault

Deposit for minting

PreviousV-VaultNextWithdraw for redemption

Last updated 1 year ago

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:


Stability Mode

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:

ΔUSB=ΔETH×Peth−i×1AARTeth\Delta USB = \Delta ETH \times P_{eth-i} \times \frac{1}{AART_{eth}}ΔUSB=ΔETH×Peth−i​×AARTeth​1​

ΔETHx=ΔETH×(1−1AARTeth)\Delta ETHx = \Delta ETH \times \left(1 - \frac{1}{AART_{eth}}\right)ΔETHx=ΔETH×(1−AARTeth​1​)

Where:

  • ΔUSB \Delta USBΔUSB : The quantity of minted USB.

  • ΔETHx\Delta ETHx ΔETHx: The quantity of minted ETHx.

  • ΔETH\Delta ETH ΔETH: The quantity of ETH used for minting.

  • Peth−iP_{eth-i} Peth−i​: The initial price of ETH relative to USD (provided by an oracle).

  • AARTethAART_{eth}AARTeth​: 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:

ΔUSB=ΔETH×MUSB−ETHMETH\Delta USB = \Delta ETH \times \frac{M_{USB-ETH}}{M_{ETH}}ΔUSB=ΔETH×METH​MUSB−ETH​​

ΔETHx=ΔUSB×METHxMUSB−ETH\Delta ETHx = \frac{\Delta USB \times M_{ETHx}}{M_{USB-ETH}}ΔETHx=MUSB−ETH​ΔUSB×METHx​​

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:

ΔUSB=ΔETH×Peth−i×1AARTeth=2×2000×0.6667=2666.7;\Delta USB = \Delta ETH \times P_{eth-i} \times \frac{1}{AART_{eth}} = 2 \times 2000 \times 0.6667 = 2666.7;ΔUSB=ΔETH×Peth−i​×AARTeth​1​=2×2000×0.6667=2666.7;

ΔETHx=ΔETH×(1−1AARTeth)=2×0.3333=0.6667\Delta ETHx = \Delta ETH \times \left(1 - \frac{1}{AART_{eth}}\right) = 2 \times 0.3333 = 0.6667ΔETHx=ΔETH×(1−AARTeth​1​)=2×0.3333=0.6667

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:

ΔUSB=ΔETH×MUSB−ETHMETH=1×2666.72=1333.4\Delta USB = \Delta ETH \times \frac{M_{USB-ETH}}{M_{ETH}}=1 \times \frac{2666.7}{2}=1333.4ΔUSB=ΔETH×METH​MUSB−ETH​​=1×22666.7​=1333.4

ΔETHx=ΔUSB×METHxMUSB−ETH=1333.4×0.66672666.7=0.3334\Delta ETHx = \frac{\Delta USB \times M_{ETHx}}{M_{USB-ETH}} =\frac{1333.4 \times 0.6667}{2666.7}=0.3334ΔETHx=MUSB−ETH​ΔUSB×METHx​​=2666.71333.4×0.6667​=0.3334

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.


Adjustment 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. 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:

ΔUSB=ΔETH×Peth\Delta USB = \Delta ETH \times P_{eth}ΔUSB=ΔETH×Peth​

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:

ΔETHx=ΔETH×Peth×METHxMETH×Peth−MUSB−ETH\Delta ETHx = \frac{\Delta ETH \times P_{eth} \times M_{ETHx}}{M_{ETH} \times P_{eth} - M_{USB-ETH}}ΔETHx=METH​×Peth​−MUSB−ETH​ΔETH×Peth​×METHx​​

When AAR further drops below 101%, the formula for minting ETHx alone will change to:

ΔETHx=ΔETH×Peth×METHx×100MUSB−ETH\Delta ETHx = \frac{\Delta ETH \times P_{eth} \times M_{ETHx} \times 100}{M_{USB-ETH}}ΔETHx=MUSB−ETH​ΔETH×Peth​×METHx​×100​

Where:

  • ΔUSB\Delta USBΔUSB : The quantity of USB minted.

  • ΔETHx\Delta ETHx ΔETHx: The quantity of ETHx minted.

  • ΔETH\Delta ETHΔETH: The quantity of ETH used for minting.

  • PethP_{eth}Peth​: The real-time price of ETH relative to USD (provided by the oracle).

  • METHM_{ETH}METH​: The quantity of ETH in the Vault.

  • METHxM_{ETHx} METHx​: The quantity of ETHx minted in the ETH Vault.

  • MUSB−ETH M_{USB-ETH}MUSB−ETH​: 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.

Figure: Mint Process