#ethereum #amm #maker #mev

amms

A library to interact with automated market makers across EVM chains

6 releases

new 0.7.0 Mar 24, 2025
0.6.3 Aug 21, 2024
0.6.1 Jul 28, 2023
0.1.0 Jul 22, 2023

#2 in #mev

Download history 3/week @ 2024-11-30 33/week @ 2024-12-07 22/week @ 2024-12-14 1/week @ 2024-12-21 2/week @ 2024-12-28 6/week @ 2025-01-04 12/week @ 2025-01-11 5/week @ 2025-01-18 3/week @ 2025-01-25 31/week @ 2025-02-01 18/week @ 2025-02-08 23/week @ 2025-02-15 36/week @ 2025-02-22 43/week @ 2025-03-01 25/week @ 2025-03-08 26/week @ 2025-03-15

135 downloads per month

MIT license

270KB
6.5K SLoC

Rust 5.5K SLoC // 0.0% comments Solidity 1K SLoC // 0.1% comments

amms-rs Github Actions Chat

amms-rs is a Rust library to interact with automated market makers across EVM chains.

This lib provides functionality to discover, sync, filter, and interact with a variety of AMMs. This library also provides functionality to keep a state space synced, abstracting logic to handle chain reorgs, maintaining a state change cache and more.

amms-rs was built with modularity in mind, making it quick and easy to add a new AMM variant by implementing the AutomatedMarketMaker trait. For a full walkthrough on how to quickly implement a new AMM, check out addingAnAMM.md.

Supported AMMs

AMM Status
UniswapV2 Pools
UniswapV3 Pools
ERC4626 Vaults
Izumi Pools 🟨
Curve Pools
Balancer Pools
Bancor Pools

Dependencies

~45–61MB
~1M SLoC