Skip to content

Raimbow04/curve-factory

 
 

Repository files navigation

curve-factory

Permissionless deployment of Curve metapools.

Overview

The metapool factory has several core components:

  • Factory is the main contract used to deploy new metapools. It also acts a registry for finding the deployed pools and querying information about them.
  • New pools are deployed via a proxy contract. The implementation contract targetted by the proxy is determined according to the base pool. This is the same technique used to create pools in Uniswap V1.
  • Deposit contracts ("zaps") are used for wrapping and unwrapping underlying assets when depositing into or withdrawing from pools.

See the documentation for more detailed information.

Dependencies

Testing

Testing is performed in a forked mainnet environment.

To run the unit tests:

brownie test

You can optionally include the following flags:

  • --decimals: The number of decimal places for the token used to test the factory pool. Default is 18.
  • --return_value: The return value given by the token used to test the factory pool. Valid options are True and None.

Deployment

To deploy the contracts, first modify the deployment script to unlock the account you wish to deploy from. Then:

brownie run deploy --network mainnet

License

(c) Curve.Fi, 2020 - All rights reserved.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 99.5%
  • Solidity 0.5%