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
  • Contract Custody
  • Vaults
  1. Examples & Guide

Contract Custody

Beyond creating fungible tokens, we have a good amount of composability within Glittr. We’ll first cover the building blocks, and then look at creating contracts.

Contract Custody

Glittr contracts can have ETH-like pseudo-custody of assets, or what we would call custody by consensus.

Simple Assets do not have custody; they are either minted, mined, or exchanged for an asset that is burned or deposited to a different address/contract.

Contracts with custody can have significantly more functionality because the transfer and return of assets becomes enforceable.

Vaults

Vaults are functionally user contract addresses. These are necessary to interact with various other contracts, because it allows the user’s ability to move their funds to be constrained without removing custody.

PreviousCreating TokensNextComplex Tokens

Last updated 6 months ago