reflexer-labs / curve-contract

Vyper contracts used in Curve.fi exchange pools.
https://www.curve.fi/
Other
4 stars 5 forks source link

Two Coin Pool with peggie and non-peggie, Raiust Pool #7

Closed twpony closed 2 years ago

twpony commented 2 years ago

This pool implementation is to realize two coin pool with a peggie and a non-peggie according to the demand of Gitcoin bounty from Reflexer-Labs. To make the implementation more specific, RAI is used as non-peggie coin, and UST is used as peggi coin. You can change to other coins to make a new pool, just to reset the pooldata.json. In order to optimize, the coin should have 18 decimals. I also write specific tests for moving redemption price of RAI. I have run the tests locally. The pool has passed all default common tests and specific tests. Detailed instruction about the pool can refer to RAIUST_POOL_README.md.