Curve.fi exchange implementation for Polygon.
- python3 from version 3.6 to 3.8, python3-dev
- brownie - tested with version 1.14.5
- ganache-cli - tested with version 6.12.1
-
To get started, first create and initialize a Python virtual environment.
-
clone the repo and install the developer dependencies:
git clone https://github.com/curvefi/curve-contract-polygon.git cd curve-contract-polygon pip install -r requirements.txt
-
Add Polygon to your local brownie networks:
brownie networks import network-config.yaml
Testing is done against a forked mainnet. To run the entire suite:
brownie test
To run tests on a specific pool:
brownie test --pool <POOL NAME>
Valid pool names are the names of the subdirectories within contracts/pools
.
You can optionally include the --coverage
flag to view a coverage report upon completion of the tests.
(c) Curve.Fi, 2021 - All rights reserved.