PoolDeployer
\
Constructor
Parameters:
0
globals_
address
address
\
Functions
deployPool
deployPool
Deploys a pool along with its dependencies.
Parameters:
0
poolManagerFactory_
address
address
The address of the PoolManager factory to use.
1
withdrawalManagerFactory_
address
address
The address of the WithdrawalManager factory to use.
2
loanManagerFactories_
address[]
address[]
An array of LoanManager factories to use.
3
asset_
address
address
The address of the asset to use.
4
poolPermissionManager_
address
address
The address of the PoolPermissionManager to use.
5
name_
string
string
The name of the Pool.
6
symbol_
string
string
The symbol of the Pool.
7
configParams_
uint256[4]
uint256[4]
Array of uint256 config parameters. Array used to avoid stack too deep issues. [0]: liquidityCap [1]: delegateManagementFeeRate [2]: coverAmountRequired [3]: initialSupply
Return Values:
0
poolManager_
address
address
The address of the PoolManager.
\
deployPool
deployPool
Deploys a pool along with its dependencies.
Parameters:
0
poolManagerFactory_
address
address
The address of the PoolManager factory to use.
1
withdrawalManagerFactory_
address
address
The address of the WithdrawalManager factory to use.
2
loanManagerFactories_
address[]
address[]
An array of LoanManager factories to use.
3
asset_
address
address
The address of the asset to use.
4
poolPermissionManager_
address
address
The address of the PoolPermissionManager to use.
5
name_
string
string
The name of the Pool.
6
symbol_
string
string
The symbol of the Pool.
7
configParams_
uint256[7]
uint256[7]
Array of uint256 config parameters. Array used to avoid stack too deep issues. [0]: liquidityCap [1]: delegateManagementFeeRate [2]: coverAmountRequired [3]: initialSupply
Return Values:
0
poolManager_
address
address
The address of the PoolManager.
\
getDeploymentAddresses
getDeploymentAddresses
Gets the addresses that would result from a deployment.
Parameters:
0
poolDelegate_
address
address
The address of the PoolDelegate that will deploy the Pool.
1
poolManagerFactory_
address
address
The address of the PoolManager factory to use.
2
withdrawalManagerFactory_
address
address
The address of the WithdrawalManager factory to use.
3
loanManagerFactories_
address[]
address[]
An array of LoanManager factories to use.
4
asset_
address
address
The address of the asset to use.
5
name_
string
string
The name of the Pool.
6
symbol_
string
string
The symbol of the Pool.
7
configParams_
uint256[7]
uint256[7]
Array of uint256 config parameters. Array used to avoid stack too deep issues. [0]: liquidityCap [1]: delegateManagementFeeRate [2]: coverAmountRequired [3]: initialSupply
Return Values:
0
poolManager_
address
address
The address of the PoolManager contract that will be deployed.
1
pool_
address
address
The address of the Pool contract that will be deployed.
2
poolDelegateCover_
address
address
The address of the PoolDelegateCover contract that will be deployed.
3
withdrawalManager_
address
address
The address of the WithdrawalManager contract that will be deployed.
4
loanManagers_
address[]
address[]
The address of the LoanManager contracts that will be deployed.
\
getDeploymentAddresses
getDeploymentAddresses
Gets the addresses that would result from a deployment.
Parameters:
0
poolDelegate_
address
address
The address of the PoolDelegate that will deploy the Pool.
1
poolManagerFactory_
address
address
The address of the PoolManager factory to use.
2
withdrawalManagerFactory_
address
address
The address of the WithdrawalManager factory to use.
3
loanManagerFactories_
address[]
address[]
An array of LoanManager factories to use.
4
asset_
address
address
The address of the asset to use.
5
name_
string
string
The name of the Pool.
6
symbol_
string
string
The symbol of the Pool.
7
configParams_
uint256[4]
uint256[4]
Array of uint256 config parameters. Array used to avoid stack too deep issues. [0]: liquidityCap [1]: delegateManagementFeeRate [2]: coverAmountRequired [3]: initialSupply
Return Values:
0
poolManager_
address
address
The address of the PoolManager contract that will be deployed.
1
pool_
address
address
The address of the Pool contract that will be deployed.
2
poolDelegateCover_
address
address
The address of the PoolDelegateCover contract that will be deployed.
3
withdrawalManager_
address
address
The address of the WithdrawalManager contract that will be deployed.
4
loanManagers_
address[]
address[]
The address of the LoanManager contracts that will be deployed.
\
globals
globals
Return Values:
0
address
address
\
Events
PoolDeployed
PoolDeployed
Emitted when a new pool is deployed.
Parameters:
0
pool_
address
address
The address of the Pool deployed.
1
poolManager_
address
address
The address of the PoolManager deployed.
2
withdrawalManager_
address
address
The address of the WithdrawalManager deployed.
3
loanManagers_
address[]
address[]
An array of the addresses of the LoanManagers deployed.
\
Last updated