LogoLogo
WebsiteGithubCommunity Docs
  • Developer Docs
  • Smart Contracts
    • Bond System
      • Auctioneer
        • Auctioneer Interfaces
        • Sequential Dutch Auctioneer (SDA)
          • Auction Pricing
          • Fixed-Term SDA
          • Fixed-Expiry SDA
        • Fixed Price Auctioneer (FPA)
          • Fixed-Term FPA
          • Fixed-Expiry FPA
        • Oracle-based Auctioneers
          • Oracle Interface
        • Oracle Fixed Discount Auctioneer (OFDA)
          • Fixed-Term OFDA
          • Fixed-Expiry OFDA
        • Oracle Sequential Dutch Auctioneer (OSDA)
          • Fixed-Term OSDA
          • Fixed-Expiry OSDA
      • Teller
        • Teller Interfaces
        • Base Teller
        • Fixed-Expiry Teller
        • Fixed-Term Teller
      • Callback
        • Callback Interface
        • Base Callback
        • Sample Callback Contract
      • Aggregator
        • Aggregator Interface
        • Aggregator Contract
      • Intended User Actions
      • Limit Orders
    • Option System
      • Fixed Strike oTokens
      • Fixed Strike Option Teller
      • Options Liquidity Mining (OLM)
        • Manual Strike OLM
        • Oracle Strike OLM
      • OLM Factories
  • Developers
    • Subgraph
    • Market Calculations
    • Purchases & Redemptions
    • User Balances
    • Options Library
      • Helper Functions
      • Types
  • References
    • Technical Resources
      • Audits
    • Community Resources
    • Brand Assets
    • Contact Us
Powered by GitBook
On this page
  • Teller Interface
  • Fixed-Term Teller Interface
  • Fixed-Expiry Teller Interface
  1. Smart Contracts
  2. Bond System
  3. Teller

Teller Interfaces

PreviousTellerNextBase Teller

The Teller contract handles all interactions with end users and manages tokens issued to represent bond positions. Users purchase bonds by depositing Quote Tokens and receive a Bond Token (token type is implementation-specific) that represents their payout and the designated expiry. Once a bond vests, users can redeem their Bond Tokens for the underlying Payout Token. A Teller requires one or more Auctioneer contracts to be deployed to provide markets for users to purchase bonds from.

Teller Interface

The defines the functions that all Teller contracts should implement.

Significant functionality is left to specific implementations.

The two Tellers implemented here both tokenize the bond positions, but this is not required. The functions Tellers must implement are:

purchase
getFee
setProtocolFee // onlyGuardian
setReferrerFee
claimFees

Fixed-Term Teller Interface

The defines the functions that should be implemented to tokenize and redeem fixed-term bond positions using ERC1155 tokens.

The required functions are:

deploy
create
redeem
batchRedeem
getTokenId
getTokenNameAndSymbol

Fixed-Expiry Teller Interface

deploy
create
redeem
getBondTokenForMarket

The deploy, create and redeem functions are similar across each Teller that tokenizes bond positions but they differ in the arguments required and the type of token they return.

The defines the functions that should be implemented to tokenize and redeem fixed-maturity bond positions using ERC20 tokens. The required functions are:

Teller Interface
Fixed-Term Teller Interface
Fixed-Expiry Teller Interface