MetaStreet
  • Welcome to MetaStreet
    • 👋Introduction
    • 📦Object-Oriented Finance
    • Links
  • Liquidity Layer
    • 📤Overview
    • 🛠️How Pools Work [ELI5]
    • 💸Earn
      • Manage
    • 📥Borrow
      • Manual Loan Repayment
    • 🔨Auctions
  • Yield Capture Layer
    • 📈Overview
    • 🛠️How it Works [ELI5]
    • 🔺NodeFi (Yield Pass)
      • Aethir on Yield Pass
      • Xai on Yield Pass
    • 💾GPU Financing
    • 🔐Audits
    • 📊Dashboard
  • Technical Overview
    • 🏗️Protocol Design
      • Deposit Flow
      • Borrow Flow
      • Liquidity Ticks
      • Tokenization
      • Collateral Filters
      • Collateral Wrappers
      • Interest Rate Models
      • Liquidation
      • Deployment
      • Admin Fees
    • 📍Contract Addresses
    • 📍Token Bridges
    • 🔐Audits
    • ⛽Gas Report
    • 📑API
    • 🔧SDK
    • 📊Dashboard
  • Other
    • 🤝Terms of Service
Powered by GitBook
On this page
  1. Technical Overview
  2. Protocol Design

Tokenization

PreviousLiquidity TicksNextCollateral Filters

Last updated 1 year ago

Deposit ticks can be optionally represented by an ERC20 token, offering users a basic ERC20 interface to their deposit position. This is enabled for a tick by an external actor calling tokenize(uint128 tick) on the , which deploys an ERC20 token bound to the specified deposit tick. Once an ERC20 token exists for a tick, all users of that tick are automatically minted and burned tokens for deposit and redeem operations on that tick.

The basic ERC20 interface (balanceOf(), allowance(), approve(), transfer(), transferFrom(), etc.) operates in terms of deposit tick shares, rather than currency value, allowing for a stable, non-rebasing unit of account. The ERC20 token is also extended with several convenience APIs, including depositSharePrice() and redemptionSharePrice() price getters, for converting the shares amounts to a currency value using one of the two tick valuation approaches discussed in the section.

Tokenized ERC20 deposits can be used with other protocols in DeFi, such as automated market makers, lending protocols, etc.

See the contract for more information and the exposed API.

🏗️
Pool
Deposit Flow
ERC20DepositTokenImplementation