https://github.com/curvefi/curve-stable-peg
https://github.com/curvefi/curve-stable-peg
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/curvefi/curve-stable-peg
- Owner: curvefi
- License: other
- Created: 2021-08-29T17:42:02.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-26T13:52:08.000Z (over 2 years ago)
- Last Synced: 2025-03-30T00:11:10.422Z (about 2 months ago)
- Language: Python
- Size: 171 KB
- Stars: 4
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# curve-stable-peg
Stabilizer for the Curve pools.### Overview
Peg Keeper stabilizes the pool by adding/removing the coin when the pool is imbalanced.
Arbitrageurs execute `PegKeeper.update()` and receive part of the profit in LP tokens.### Dependencies
* [python3](https://www.python.org/downloads/release/python-368/) version 3.6 or greater, python3-dev
* [brownie](https://github.com/eth-brownie/brownie) – tested with version [1.16.4](https://github.com/eth-brownie/brownie/releases/tag/v1.16.4)
* [brownie-token-tester](https://github.com/iamdefinitelyahuman/brownie-token-tester)
* [ganache-cli](https://github.com/trufflesuite/ganache-cli) – tested with version [2.13.2](https://github.com/trufflesuite/ganache-cli/releases/tag/v2.13.2)### Testing
The test suite contains common tests for all variants of PegKeepers, as well as unique per-type tests.
To run the entire suite:
```shell
brownie test
```
For other parameters see [tests](tests).### Glossary
`Peg` – coin we peg to
`Pegged` – coin we are pegging and able to mint/burn
`PegKeeper` – contract that maintains the peg### License
(c) Curve.Fi, 2022 - [All rights reserved](LICENSE).