AMM Contracts

MuchFi utilizes UniswapV2 for its Automated Market Makers (AMMs), specifically leveraging the UniswapV2 Router and Factory contracts. Each market has its own corresponding pair.

Contract Addresses

UniswapV2Router02

0xC653e745FC613a03D156DACB924AE8e9148B18dc

UniswapV2Factory

0x7864071B532894216e3C045a74814EafEB92ae20

Architecture

The AMM system consists of three main components:

Factory Contract

Creates and manages trading pair contracts. Each unique token pair gets its own dedicated pair contract.

Router Contract

Handles swap execution and liquidity operations. Provides a safe interface for interacting with pair contracts.

Pair Contracts

Individual market contracts holding liquidity for specific token pairs. Implement the constant-product formula for pricing.

Reference Documentation

For detailed specifications, refer to the official Uniswap V2 documentation:

Design Philosophy

MuchFi’s AMM design relies on proven Uniswap V2 infrastructure rather than custom implementation. This approach provides:
  • Battle-tested security - Years of production use
  • Audited codebase - Extensively reviewed contracts
  • Wide compatibility - Standard interfaces for integrations
  • Familiar mechanics - Well-understood by traders and developers