Mento Protocol
  • Overview
    • Getting Started
      • What Is Mento?
      • Quick Start Guides
      • Analytics & Dashboards
    • Core Concepts
      • Stability Mechanisms
      • The Reserve
      • Oracles & Price Feeds
      • Trading Limits & Circuit Breakers
      • The Broker & Virtual AMMs
      • Fixed-Price Market Makers (FPMMs)
      • Research & Economics
    • Governance & the MENTO Token
      • Understanding Mento Governance
      • Participating in Governance
        • veMENTO & Voting Power
        • Creating Proposals
        • Voting Process
      • MENTO Tokenomics
      • Watchdogs & Safety
    • Security & Risk
      • Overview
      • Audit Reports
  • Build On Mento
    • Integration Overview
      • Integrate Stables
      • Integrate the Broker
      • Integrate Oracles
    • Mento SDK
      • Installation
      • Guides
        • Getting Exchange Pairs
        • Getting a Quote
        • Initiating a Swap
    • Smart Contracts
      • Broker
      • TradingLimits
      • BiPoolManager
      • Pricing Modules
      • SortedOracles
      • BreakerBox
      • Reserve
      • StableToken
      • Audits
    • Deployments
      • Addresses
      • Verification
  • Use Mento
    • Getting Mento Stables
      • On Celo
      • On Mobile
      • From Other Chains
      • Via Centralized Exchanges
Powered by GitBook
On this page
Edit on GitHub
  1. Protocol Concepts
  2. Asset exchanges

BiPoolManager

Exchange provider with two-asset virtual automated market maker pools

Last updated 1 year ago

CtrlK
  • vAMM
  • Pricing Modules

The BiPoolManager is an exchange provider that generalizes the vAMM implementation previously used in Mento v1's Exchanges. It manages asset pools containing a pair of Mento assets, which can be either stable-to-collateral or stable-to-stable. A pool can be configured to use either a constant sum or a constant product pricing function via pricing modules.

vAMM

An automated market maker (AMM) is a type of decentralized exchange (DEX) that enables the automatic exchange of digital assets. Typically AMMs rely on user-provided liquidity pools, which hold assets, that can be exchanged in one or more smart contracts. AMMs rely on a specific market-maker function that automatically adjusts the price of assets based on the liquidity pool reserves.

Virtual automated market makers (vAMMs) are built on the same concepts as AMMs; however, there is no user-provided liquidity, and the vAMM holds no assets. Virtual automated market makers also employ market-maker functions to determine the price of assets that users can exchange.

Pricing Modules

A market maker function is a mathematical formula used by AMMs & vAMMs to determine the price of assets in a pool and to determine the levels of available liquidity. Several market maker functions exist, including constant product, constant sum, and constant mean. Mento pricing modules are an abstraction over these market maker functions, allowing Mento exchanges to use any market maker function without changing the underlying code structure.