LBPManager
This contract manages a Balancer Liquidity Bootstrapping Pool (LBP) so that only a DAO can deploy and shutdown an LBP. After the LBP is deployed, trading must be enabled. While only the DAO has permission to deploy, shutdown and unwind the LBP, anyone can permissionlessly enable trading after the configured start time. When the LBP is completed (via withdrawFromPool()
), the total balance of the LBP tokens will be sent to the DAO treasury.
Functions:
Events:
Graphs:
Function Definitions:
constructor()
Parameter Name | Type | Description |
---|---|---|
| struct LBPManager.Balancer | see struct Balancer - balancer contract addresses |
| string | PoolConfiguration.name |
| string | PoolConfiguration.symbol |
| contract IERC20[] | PoolConfiguration.tokens |
| uint256[] | PoolConfiguration.tokenAmounts |
| uint256[] | PoolConfiguration.startWeights |
| uint256[] | PoolConfiguration.endWeights |
| uint256 | PoolConfiguration.swapFee |
| uint256 | PoolConfiguration.durationInSeconds |
| uint256 | PoolConfiguration.startTime |
| struct LBPManager.DAO | see struct DAO - DAO addresses |
deployLBP()
Will deploy a balancer LBP. Can only be called by DAO.agent address
enableTrading()
withdrawFromPool()
pause()
unpause()
Events
SwapEnabled
CreatedPool
JoinedPool
ExitedPool
Graphs
Dependency Graph
Inheritance Graph
Last updated