Wand Protocol
  • βš–οΈBackground
  • πŸ“Product Introduction
    • Overview
    • Protocol Assets
      • 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
    • IP-Vault for Story protocol
      • Principal Token
      • Yield Token
      • Dutch-VAMM
  • πŸ€–Guide 101
    • What can I do with Wand?
    • How to obtain xToken and USB?
    • FAQ
  • 🎯Early access campaign
    • Basic Rules
    • Blast Points
    • Blast Gold
  • πŸͺ™TOKENOMIC
    • Coming soon
Powered by GitBook
On this page
  • Deposit for minting
  • Withdraw for redemption
  1. Product Introduction
  2. Vault

S-Vault

The minting and redemption mechanism for the S-Vault is different because the price volatility of the stablecoin is low, so its mechanism is simpler compared to V-Vaults. Simply put, USB and xToken can mostly be minted and redeemed independently.

Taking the USDB vault as an example:


Deposit for minting

When the contract is initially created or when the supply of USDBx is zero, USB cannot be minted directly. The first time USDB assets are deposited into the contract to mint USDBx, we preset the initial minting amount with the formula:

Ξ”USDBx=Ξ”USDB\Delta USDBx = \Delta USDBΞ”USDBx=Ξ”USDB

After the initiation, when depositing into the USDB vault, users can mint USB or USDBx independently. The formulas for calculating the minted amounts are as follows:

Ξ”USB=Ξ”USDBΓ—Pusdb\Delta USB = \Delta USDB \times P_{usdb}Ξ”USB=Ξ”USDBΓ—Pusdb​

Ξ”USDBx=Ξ”USDBΓ—PusdbΓ—MUSDBxMusdbΓ—Pusdbβˆ’MUSBβˆ’USDB\Delta USDBx = \frac{\Delta USDB \times P_{usdb} \times M_{USDBx}}{M_{usdb} \times P_{usdb} - M_{USB-USDB}}Ξ”USDBx=Musdb​×Pusdbβ€‹βˆ’MUSBβˆ’USDB​ΔUSDBΓ—Pusdb​×MUSDBx​​

Where:

  • Ξ”USB \Delta USBΞ”USB: The amount of USB minted

  • Ξ”USDBx\Delta USDBxΞ”USDBx: The amount of USDBx minted

  • Ξ”USDB\Delta USDBΞ”USDB: The amount of USDB deposited

  • PusdbP_{usdb} Pusdb​: The price of USDB in terms of USD (assumed to be stable)

  • Musdb M_{usdb} Musdb​: The total amount of USDB in the vault

  • MUSDBxM_{USDBx}MUSDBx​: The total amount of USDBx minted

  • MUSBβˆ’USDBM_{USB-USDB}MUSBβˆ’USDB​: The amount of USB minted from the USDB vault

When the AAR falls below AARS, USB can no longer be minted independently. If users need to mint USB, USDBx will be minted at the same time in proportion, according to the following formula:

Ξ”USB=Ξ”USDBΓ—MUSBβˆ’USDBMUSDB\Delta USB = \Delta USDB \times \frac{M_{USB-USDB}}{M_{USDB}}Ξ”USB=Ξ”USDBΓ—MUSDB​MUSBβˆ’USDB​​

Ξ”USDBx=Ξ”USBΓ—MUSDBxMUSBβˆ’USDB\Delta USDBx = \frac{\Delta USB \times M_{USDBx}}{M_{USB-USDB}}Ξ”USDBx=MUSBβˆ’USDB​ΔUSBΓ—MUSDBx​​

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

Ξ”USDBx=Ξ”USDBΓ—PusdbΓ—MUSDBxΓ—100MUSBβˆ’USDB\Delta USDBx = \frac{\Delta USDB \times P_{usdb} \times M_{USDBx} \times 100}{M_{USB-USDB}}Ξ”USDBx=MUSBβˆ’USDB​ΔUSDBΓ—Pusdb​×MUSDBx​×100​


Withdraw for redemption

When redeeming USDB using USB, the formulas based on the Asset Adequacy Ratio (AAR) are as follows:

Ξ”USDB=Ξ”USBPusdbifΒ AARβ‰₯100%\Delta USDB = \frac{\Delta USB}{P_{usdb}} \quad \text{if AAR} β‰₯ 100\%%Ξ”USDB=Pusdb​ΔUSB​ifΒ AARβ‰₯100%

Ξ”USDB=Ξ”USBΓ—MUSDBMUSBβˆ’USDBifΒ AAR<100%\Delta USDB = \frac{\Delta USB \times M_{USDB}}{M_{USB-USDB}}\quad \text{if AAR} < 100\%Ξ”USDB=MUSBβˆ’USDB​ΔUSBΓ—MUSDB​​ifΒ AAR<100%

Where:

  • Ξ”USB \Delta USBΞ”USB: The amount of USB being redeemed

  • Ξ”USDB \Delta USDBΞ”USDB: The amount of USDB to be received

  • Pusdb P_{usdb} Pusdb​: The price of USDB

  • AAR AARAAR: The Asset Adequacy Ratio of the USDB vault

  • MUSDBM_{USDB}MUSDB​: The total amount of USDB in the vault

  • MUSBβˆ’USDBM_{USB-USDB} MUSBβˆ’USDB​: The amount of USB minted from the USDB vault

When redeeming USDB using USDBx, the calculation formula is as follows:

Ξ”USDB=MusdbΓ—Ξ”USDBxMUSDBxβˆ’MUSBβˆ’USDBΓ—Ξ”USDBxMUSDBxΓ—Pusdb\Delta USDB =\frac{M_{usdb} \times \Delta USDBx}{M_{USDBx}}- \frac{M_{USB-USDB} \times \Delta USDBx}{M_{USDBx} \times P_{usdb}}Ξ”USDB=MUSDBx​Musdb​×ΔUSDBxβ€‹βˆ’MUSDBx​×Pusdb​MUSBβˆ’USDB​×ΔUSDBx​

When the AAR falls below AARS, USDBx assets can no longer be redeemed for USDB independently. Users will need a certain amount of USB to match the proportion of the two assets before they can redeem USDB. For example, if a user wishes to redeem a quantity of USDBx, denoted as βˆ†USDBx, they will need to pair it with a corresponding amount of USB, denoted as βˆ†USB. The calculation formula is as follows:

Ξ”USB=Ξ”USDBxΓ—MUSBβˆ’USDBMUSDBx\Delta USB = \frac{\Delta USDBx \times M_{USB-USDB}}{M_{USDBx}}Ξ”USB=MUSDBx​ΔUSDBxΓ—MUSBβˆ’USDB​​

The amount of USDB redeemed with the paired ( \Delta USDBx ) and ( \Delta USB ) is:

Ξ”USDB=Ξ”USDBxΓ—MUSDBMUSDBx\Delta USDB = \frac{\Delta USDBx \times M_{USDB}}{M_{USDBx}}Ξ”USDB=MUSDBx​ΔUSDBxΓ—MUSDB​​

The redemption fee is 0.5%

PreviousWithdraw for redemptionNextEarn

Last updated 1 year ago

πŸ“