GithubHelp home page GithubHelp logo

jeff-cch / cow-amm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cowprotocol/cow-amm

0.0 0.0 0.0 898 KB

An automated market maker running on top of CoW Protocol

Shell 0.10% Python 1.56% Nix 0.01% Makefile 0.03% Solidity 98.30%

cow-amm's Introduction

CoW AMM

CoW AMM is an automated market maker running on top of CoW Protocol.

Documentation

You can find detailed documentation on the building blocks of this repo in the following files:

  • amm.md: details on what a CoW AMM is and how to set it up.

Research

Details on the theory behind CoW AMM can be found on the paper Arbitrageurs' profits, LVR, and sandwich attacks: batch trading as an AMM design response.

Development

Dev set up

You can install git hooks to help you catch simple mistakes before running some git actions like committing. See the dedicated instructions for how to install the hooks.

Build

$ forge build

Test

$ forge test

Format

$ forge fmt

Deploy

All contracts in this repo can be deployed and verified on the block explorer as follows:

export ETHERSCAN_API_KEY='your API key here'
PK='the private key of the deployer'
ETH_RPC_URL='https://rpc.node.url.here.example.com'
forge script 'script/DeployAllContracts.s.sol:DeployAllContracts' -vvvv --rpc-url "$ETH_RPC_URL" --private-key "$PK" --verify --broadcast

Deployment addresses

The file networks.json lists all official deployments of the contracts in this repository by chain id.

The deployment address file is generated with:

bash dev/generate-networks-file.sh > networks.json

cow-amm's People

Contributors

fedgiac avatar mfw78 avatar gunboatsss avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.