GitHunt
CR

cranium7811/leverage-amm

A minimal AMM with leverage.

Leverage-AMM

A very minimal AMM with leverage.

Installation

Install foundry and run forge install to install all the dependencies. Then run forge test to test the contracts.

Testing

For a particular contract to be test use with logs and traces

forge test --match-contract <CONTRACT-NAME> -vvvv

And for forking the mainnet and testing use

forge test --match-contract <CONTRACT-NAME> --rpc-url <ETH_RPC_URL> -vvvv

Disclaimer

Oracles, Fees and Liquidations are not added.
Not in production. So please don't use it.

Contributors

Created April 17, 2022
Updated June 9, 2022
cranium7811/leverage-amm | GitHunt