PoolDeployer
Constructor
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
|
Functions
deployPool
deployPool
Deploys a pool along with its dependencies.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the PoolManager factory to use. |
1 |
|
|
| The address of the WithdrawalManager factory to use. |
2 |
|
|
| An array of LoanManager factories to use. |
3 |
|
|
| The address of the asset to use. |
4 |
|
|
| The address of the PoolPermissionManager to use. |
5 |
|
|
| The name of the Pool. |
6 |
|
|
| The symbol of the Pool. |
7 |
|
|
| Array of uint256 config parameters. Array used to avoid stack too deep issues. [0]: liquidityCap [1]: delegateManagementFeeRate [2]: coverAmountRequired [3]: initialSupply |
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the PoolManager. |
deployPool
deployPool
Deploys a pool along with its dependencies.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the PoolManager factory to use. |
1 |
|
|
| The address of the WithdrawalManager factory to use. |
2 |
|
|
| An array of LoanManager factories to use. |
3 |
|
|
| The address of the asset to use. |
4 |
|
|
| The address of the PoolPermissionManager to use. |
5 |
|
|
| The name of the Pool. |
6 |
|
|
| The symbol of the Pool. |
7 |
|
|
| Array of uint256 config parameters. Array used to avoid stack too deep issues. [0]: liquidityCap [1]: delegateManagementFeeRate [2]: coverAmountRequired [3]: initialSupply |
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the PoolManager. |
getDeploymentAddresses
getDeploymentAddresses
Gets the addresses that would result from a deployment.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the PoolDelegate that will deploy the Pool. |
1 |
|
|
| The address of the PoolManager factory to use. |
2 |
|
|
| The address of the WithdrawalManager factory to use. |
3 |
|
|
| An array of LoanManager factories to use. |
4 |
|
|
| The address of the asset to use. |
5 |
|
|
| The name of the Pool. |
6 |
|
|
| The symbol of the Pool. |
7 |
|
|
| Array of uint256 config parameters. Array used to avoid stack too deep issues. [0]: liquidityCap [1]: delegateManagementFeeRate [2]: coverAmountRequired [3]: initialSupply |
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the PoolManager contract that will be deployed. |
1 |
|
|
| The address of the Pool contract that will be deployed. |
2 |
|
|
| The address of the PoolDelegateCover contract that will be deployed. |
3 |
|
|
| The address of the WithdrawalManager contract that will be deployed. |
4 |
|
|
| The address of the LoanManager contracts that will be deployed. |
getDeploymentAddresses
getDeploymentAddresses
Gets the addresses that would result from a deployment.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the PoolDelegate that will deploy the Pool. |
1 |
|
|
| The address of the PoolManager factory to use. |
2 |
|
|
| The address of the WithdrawalManager factory to use. |
3 |
|
|
| An array of LoanManager factories to use. |
4 |
|
|
| The address of the asset to use. |
5 |
|
|
| The name of the Pool. |
6 |
|
|
| The symbol of the Pool. |
7 |
|
|
| Array of uint256 config parameters. Array used to avoid stack too deep issues. [0]: liquidityCap [1]: delegateManagementFeeRate [2]: coverAmountRequired [3]: initialSupply |
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the PoolManager contract that will be deployed. |
1 |
|
|
| The address of the Pool contract that will be deployed. |
2 |
|
|
| The address of the PoolDelegateCover contract that will be deployed. |
3 |
|
|
| The address of the WithdrawalManager contract that will be deployed. |
4 |
|
|
| The address of the LoanManager contracts that will be deployed. |
globals
globals
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
Events
PoolDeployed
PoolDeployed
Emitted when a new pool is deployed.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the Pool deployed. |
1 |
|
|
| The address of the PoolManager deployed. |
2 |
|
|
| The address of the WithdrawalManager deployed. |
3 |
|
|
| An array of the addresses of the LoanManagers deployed. |
Last updated