Wand
  • ⚖️Background
  • Products
    • IP-Vault
      • Principal Token
      • Yield Token
      • Dutch-VAMM
      • Points Tracking
    • 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
  • Deposit for minting
  • Withdraw for redemption
  1. Products
  2. Collateral-Vault
  3. 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