awesome-amm

Awesome AMM

List of AMM and Orderbook Resources

An overview of the prominent designs and large implementations

Automated Market Makers

History

A collection of the earliest posts regarding what came to be the automated market maker and it’s many variations

A collection of popular iterations of various designs (listed below)

Designs

Source Constant Function Market Makers: DeFi’s “Zero to One” Innovation

Source Mooniswap Whitepaper

AMM Aggregator

Rango V2 smart contract aggregates and optimizes EVM chains through Uni V2, V3, curve pools and prominent well-audited bridges. Rango V2 employs the diamond design pattern in its architecture, incorporating facets, middlewares, and helper/library contracts. This transition automates a modular design similar to Ethereum Improvement Proposal (EIP) 2535, uniting over 250 EVM smart contracts.

There are two main type of contracts:

The functionality and support for each bridge is handled by a separate facet. All swapping protocols are handled by a single facet. For example: Axelar (Satellite): RangoSatelliteFacet.sol, THORChain: RangoThorchainFacet.sol, Stargate: RangoStargateFacet.sol, Stargate Middleware: RangoStargateMiddleware.sol, 1inch, Paraswap, uniswap v2, v3 & forks etc: RangoSwapperFacet.sol

Swap bridge

Rango provides a versatile cross-chain service (API/SDK/widget) that helps dApps and wallets get free from hassles of connecting to various AMMs and blockchains, tracking transactions, verifying third-party providers, etc. The API consists of just a few endpoints that have abstracted away a very huge amount of complexity in the server’s side, such that making a fully-working cross-chain dApp over any Ethereum-based blockchains is a piece of cake.

Swap bridge call

Resources

Products

Virtual Automated Market Makers

A virtual automated market maker (vAMM) uses formulas, such as constant product, but only as a price discovery mechanism.

Generally a vAMM product is designed with a “clearing house” or “controller” contract in which all of the collateral deposited is held.

vAMMs are primmarily used for perpetual future contracts in which the collateral in the clearing house backs virtual assets that users can trade.

Following the release of Perpetual Protocol’s first vAMM there have been many iterations since, particularly with the price discovery mechanism.

Resources

Products

Derivatives

Options AMMs

There have been various implementations for an AMM that can be used for buying and selling of options.

Orderbooks

AMMs and Orderbooks

Other

Assorted Reading

Awesome Lists