ekmanss / cfmms-rs

CFMM lib built in Rust enabling pair syncing and swap simulation with pools on Ethereum.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

------------------------------------

Tests and Docs are still being written 🏗️.

Tests are still being written, assume bugs until tested. If you would like to help contribute on the tests or docs, feel free to open up an issue or make a PR.

------------------------------------

cfmms-rs

Sync pairs simulate swaps, and interact with constant function market makers on Ethereum.

Supported Dexes

Dex Status
UniswapV2 variants
UniswapV3

Running Examples

To run any of the examples, supply your node endpoint to the endpoint variable in each example file. For example in sync-pairs.rs:

    //Add rpc endpoint here:
    let rpc_endpoint = "";

Once you have supplied a node endpoint, you can simply run cargo run --example <example_name>.

About

CFMM lib built in Rust enabling pair syncing and swap simulation with pools on Ethereum.


Languages

Language:Rust 100.0%