OptSwap
  • What is OptSwap?
  • Quick Start
    • Concepts & Definitions
    • Making Your First Trade
    • Managing Your Orders
    • Managing Your Positions
  • User Manual
    • Trading
      • Limit Orders
      • Option Spreads
      • Advanced Order Types
        • Batch Orders
        • All-or-None Fill Type
        • Multi-Legged Strategies
      • Automated Market Maker (AMM)
        • Managed Orders
        • Aggregated Spot Price
        • Liquidity Provider Rewards
        • Match Finder Rewards
      • Modify & Cancel Orders
      • Positions
        • Converting Positions
      • User Accounts
      • Options Oracles
      • Margin Requirements
      • Fees
    • Settlements
      • Exercise Option
      • Force Cash Settlements
      • Recover Margin
      • Automated Settlements
        • Settlements Execution Rewards
    • Meta Oracle
      • Methodology
      • Fetching Price Data
      • Price Mining
      • Managing Oracles
      • Donations
    • Governance
      • Concepts & Definitions
      • Tokenomics
      • Proposals
      • Proposal Types
      • Voting & Execution
      • Fundraising
      • DAO Treasury
      • Commercial Papers
      • Airdrops
      • Staking
      • OptSwap Miner
      • Contracts Registry
      • Testnet Faucet
      • Donations
  • Technical Reference
    • API Overview
    • Smart Contracts
      • Deployment Addresses
      • MetaOracle
      • OptSwap
      • OptSwapAMM
      • OptSwapDAOAirdrops
      • OptSwapDAOFundraising
      • OptSwapDAOGovernance
      • OptSwapDAOStaking
      • OptSwapDAOToken
      • OptSwapDAOVeToken
      • OptSwapDAOCommercialPaperToken
    • Subgraphs
      • Endpoints
      • Entities
      • Querying
        • Example Queries
    • REST API
      • Endpoints
      • API Methods
  • Other
    • Terms and Conditions
    • Risk Warnings
    • Privacy Policy
Powered by GitBook
On this page
  • Genesis Smart Contracts (Singletons)
  • Governance Deployable Smart Contracts (Separate Instances)

Was this helpful?

  1. Technical Reference

Smart Contracts

"A valid contract requires voluntary offer, acceptance, and consideration." — Robert Higgs

The OptSwap protocol consists of ten (10) core smart contracts – six (6) of which are deployed at genesis, and four (4) of which are deployable via governance proposals.

The Genesis Smart Contracts are all Singletons, i.e. they have a single instance and canonical address. The Governance Deployable Smart Contracts will have separate (multiple) instances, one for each DEX, AMM, commercial paper or staking contract.

Genesis Smart Contracts (Singletons)

  1. OptSwapDAOGovernance: The main DAO Governance Contract. No Owner. Governance proposals can only be passed by a greater than two-thirds (67%) majority of votes by OptSwapDAOVeToken holders.

  2. OptSwapDAOFundraising: The DAO Fundraising contract. Owned by the OptSwapDAOGovernance.

  3. OptSwapDAOAirdrops: The DAO Airdrops contract. Owned by the OptSwapDAOGovernance.

  4. MetaOracle: The Liquidity & Price Meta Oracle. Owned by the OptSwapDAOGovernance.

  5. OptSwapDAOToken: The DAO Governance Token. Owned & Mintable by the MetaOracle.

  6. OptSwapDAOVeToken: The Non-Transferrable Vote-Escrowed Token Contract. Owned by & Mintable by escrowing the OptSwapDAOToken.

Governance Deployable Smart Contracts (Separate Instances)

  1. OptSwap: The OptSwap Decentralized Exchange (DEX) contract for a particular underlying-cash pair. Owned by the OptSwapDAOGovernance.

  2. OptSwapAMM: The OptSwap Automated Market Maker (AMM) contact for a particular DEX. Owned by the OptSwapDAOGovernance.

  3. OptSwapDAOStaking: OptSwap Staking contracts. No Owner.

  4. OptSwapDAOCommercialPaperToken: OptSwap DAO Commercial Paper contracts. Owned by the OptSwapDAOGovernance.

PreviousAPI OverviewNextDeployment Addresses

Last updated 10 months ago

Was this helpful?