Glittr
  • Introduction
  • Protocol Overview
  • Contract Primitives
    • MOAs - Mint Only Assets
    • MBAs - Mint and Burn Assets
      • Vaults
    • Spec Contracts
    • Oracle Commitments
  • Building on Glittr
    • Setup
    • Faucet
    • Glittr SDK
    • Glittr Transactions
    • Glittr Contracts
    • Installing Glittr Wallet
    • Local Development Guide
  • GLIP
  • Node
    • Run a Bitcoin Node
    • Run a Glittr Node
  • Examples & Guide
    • Creating Tokens
    • Contract Custody
    • Complex Tokens
    • Vesting and Freemint Contract
    • Wrapped BTC Contract
    • USD Contract
    • Oracle Implementation Guide
    • Glittr Output Structure
    • AMM Contract
  • API Reference
    • Getting Assets API
  • APP EXAMPLES
    • Freemint App (NextJS)
    • Freemint App (React + Vite)
    • NFT App (React + Vite)
Powered by GitBook
On this page
  1. Contract Primitives
  2. MBAs - Mint and Burn Assets

Vaults

Vaults are a specific type of collateralized MBA contract which allow users to deposit assets to a contract they create and issue an ownership share against the vault. These vault shares can then be used as collateral for loans, to mint collaterlized tokens, or as a means of payment. Anyone with a spendable vault share UTXO can retrieve assets from the vault.

Vaulting is critical in facilitating other MBAs to work efficiently. For example, the use of vaults allows for different users' deposits to be kept separate without needing to maintain sizable account state on the contract. Vault shares are necessary for MBAs with liquidation conditions, because outstanding minted assets cannot be revoked, so the appropriate user's collateral must be retrievable.

Vaults may contain numerous assets, but relative value differences between them are not innately understood. If vault shares are issued at a fixed rate, then assets are assumed to be of equivalent value. A user burning 10 vault shares could retrieve 10 units of any asset in the vault. For a vault comprised of different stable coins, for example, this is cleaner than retrieving numerous assets proportionately. When vault shares are issued proportionately, burning 1% of vault shares would entitle the retriever to 1% of each asset type in the vault, which is messy. Wouldn't recommend.

PreviousMBAs - Mint and Burn AssetsNextSpec Contracts

Last updated 6 months ago