Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bonnevoyager/hardhat-amm-uniswap2-style
Hardhat AMM in Uniswap v2 style.
https://github.com/bonnevoyager/hardhat-amm-uniswap2-style
Last synced: 15 days ago
JSON representation
Hardhat AMM in Uniswap v2 style.
- Host: GitHub
- URL: https://github.com/bonnevoyager/hardhat-amm-uniswap2-style
- Owner: BonneVoyager
- Created: 2023-01-01T12:49:04.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-01T13:37:32.000Z (about 2 years ago)
- Last Synced: 2024-11-10T00:12:00.876Z (2 months ago)
- Language: TypeScript
- Homepage:
- Size: 198 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hardhat AMM Uniswap V2 style
This is a Uniswap V2's style AMM project with full test coverage. The goal of this repository is to learn how liquidity pools work on Uniswap V2.
Additionally, the repository has a taxable ERC20 token to demonstrate AMM support for such tokens.
Code in this repository is meant as an exercise and not to be used on mainnet.
# Development
### Install dependencies
```
npm install
```### Run linting
```
npm run lint
```### Run tests
```
npm run test
```### Run coverage
```
npm run coverage
```## Deployment
Pass environment variables via `.env` file or shell using the below example.
```ini
ETHERSCAN_API_KEY=abc
GOERLI_URL=https://eth-ropsten.alchemyapi.io/v2/
PRIVATE_KEY=0x123
```