Convergent Curve Pool Factory
- Contract Name: ConvergentCurvePoolFactory.sol
- Type/Category: Factory
The Convergent Curve pool factory deploys convergent curve pools. It also stores the address which can collect Element protocol fees from the pool and the Element protocol fee.
create
: Deploys a new pool contract and registers it with Balancer V2's vault contract. The Convergent Pool Factory must be given permission by Balancer before being able to register pools.setGovFee
: Changes the percent of swap fees that go to the Element protocol.setGov
: Changes the address which can collect element protocol fees.
Storage: This contract stores the percent fee the Element protocol collects of swaps and the address which can collect that fee from pools.
When called the contract will deploy a pool. When that deployment function is called the new pool contract will be registered with Balancer V2. Anyone can deploy a pool from this contract but only privileged addresses can reset the fee or where it goes. It's important to note that the fee switch and collection address changes only affect pools that are deployed in the future, and not any currently existing pools.
Pool deployment can fail if the Element protocol fee is set too high or other sanity checks fail in the constructor of the pool.
This deployer is locked to Balancer V2 and so becomes non-operational if Balancer V2 is not operational.
Last modified 4mo ago