Haiko Docs
  • Introducing Haiko
  • Security & Audits
  • protocol
    • Vaults
      • Solvers (V2)
        • Replicating Solver
        • Reversion Solver
      • Strategies (V1)
        • Replicating Strategy
        • Building A Strategy
    • AMM
      • Execution & Order Matching
      • Position Types
      • Order Types
      • Market Schemas
      • Fees & Rewards
  • info
    • User Guides
      • Introduction to Starknet
      • Connect Starknet Wallet
      • Haiko Interface
      • Depositing to a Vault
    • DeFi Spring
    • Leaderboard
    • Listing on Haiko
    • Links
    • Glossary
  • Developers
    • Deployments
    • Interfaces
    • Events
      • MarketManager (AMM)
      • ReplicatingStrategy
      • SolverComponent
      • ReplicatingSolver
    • Advanced Concepts
      • Liquidity Math
      • Limits
      • Data Encoding
  • Media Kit
  • Contact Us
Powered by GitBook
On this page
  1. protocol
  2. AMM

Market Schemas

Haiko introduces the concept of Flexible Market Schemas, allowing markets to be customised to enable, disable or upgrade specific features over time.

For example:

  • Markets can be deployed with Limit Orders and Strategy Vaults disabled, for a more classic V3 experience

  • Linear (V2) pools can be upgraded over time to Concentrated (V3+) pools

  • Dutch Auction Markets can be configured to facilitate token offerings

  • Strategy Only Markets allow RFQ-like quoting for more efficient execution

To allow options to be upgraded over time, a market must be deployed with a nominated Controller. Markets deployed without a controller can still be customised, but not upgraded.

Each market configuration can be set as Upgradeable or Fixed on a modular basis.

Market Configuration
Options

Valid limits

Min lower limit, Max lower limit, Min upper limit, Max upper limit

Valid width

Min width, Max width

Add liquidity

Enable, Disable, Owner Only, Strategy Only

Remove Liquidity

Enable, Disable, Owner Only, Strategy Only

Create Bid Orders

Enable, Disable, Owner Only, Strategy Only

Create Ask Orders

Enable, Disable, Owner Only, Strategy Only

Collect Orders

Enable, Disable, Owner Only, Strategy Only

Swap

Enable, Disable, Owner Only, Strategy Only

Last updated 8 months ago