:---: | :-------: | :-------: | :-----------: | --------------------------------------------- |
| 0 | `owner_` | `address` | `address` | The owner of shares. |
| 1 | `shares_` | `uint256` | `uint256` | The amount of shares requested to be removed. |
### `Transfer`
Emitted when tokens have moved from one account to another.
```solidity
event Transfer(
address owner_,
address recipient_,
uint256 amount_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :----------: | :-------: | :-----------: | -------------------------------------------- |
| 0 | `owner_` | `address` | `address` | Account that tokens have moved from. |
| 1 | `recipient_` | `address` | `address` | Account that tokens have moved to. |
| 2 | `amount_` | `uint256` | `uint256` | Amount of tokens that have been transferred. |
### `Withdraw`
\`caller\_\` has exchanged \`shares\_\`, owned by \`owner\_\`, for \`assets\_\`, and transferred them to \`receiver\_\`. MUST be emitted when assets are withdrawn via the \`withdraw\` or \`redeem\` methods.
```solidity
event Withdraw(
address caller_,
address receiver_,
address owner_,
uint256 assets_,
uint256 shares_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :---------: | :-------: | :-----------: | --------------------------------------------------------------- |
| 0 | `caller_` | `address` | `address` | The caller of the function that emitted the \`Withdraw\` event. |
| 1 | `receiver_` | `address` | `address` | The receiver of the assets. |
| 2 | `owner_` | `address` | `address` | The owner of the shares. |
| 3 | `assets_` | `uint256` | `uint256` | The amount of assets withdrawn. |
| 4 | `shares_` | `uint256` | `uint256` | The amount of shares burned. |
### `WithdrawRequested`
A new withdrawal request has been made.
```solidity
event WithdrawRequested(
address owner_,
uint256 assets_,
uint256 escrowedShares_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :---------------: | :-------: | :-----------: | ------------------------------------------------------------------- |
| 0 | `owner_` | `address` | `address` | The owner of shares. |
| 1 | `assets_` | `uint256` | `uint256` | The amount of assets requested to withdraw. |
| 2 | `escrowedShares_` | `uint256` | `uint256` | The amount of shares actually escrowed for this withdrawal request. |
# PoolDeployer
## Constructor
```solidity
constructor(
address globals_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :--------: | :-------: | :-----------: | ----------- |
| 0 | `globals_` | `address` | `address` | |
## Functions
### `deployPool`
Deploys a pool along with its dependencies. NOTE: The PoolManager address is encoded and prepended to the strategyDeploymentData.
```solidity
function deployPool(
address poolManagerFactory_,
address withdrawalManagerFactory_,
address[] strategyFactories_,
bytes[] strategyDeploymentData_,
address asset_,
address poolPermissionManager_,
string name_,
string symbol_,
uint256[4] configParams_
)
nonpayable
returns (
address poolManager_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :-------------------------: | :----------: | :-----------: | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 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 | `strategyFactories_` | `address[]` | `address[]` | An array of Strategy factories to use. |
| 3 | `strategyDeploymentData_` | `bytes[]` | `bytes[]` | An array of bytes to use to construct the strategies. |
| 4 | `asset_` | `address` | `address` | The address of the asset to use. |
| 5 | `poolPermissionManager_` | `address` | `address` | The address of the PoolPermissionManager to use. |
| 6 | `name_` | `string` | `string` | The name of the Pool. |
| 7 | `symbol_` | `string` | `string` | The symbol of the Pool. |
| 8 | `configParams_` | `uint256[4]` | `uint256[4]` | Array of uint256 config parameters. For the queue‑based deployer, only index \[3] (`initialSupply`) is used during deployment; other operational parameters (e.g., liquidityCap, delegateManagementFeeRate, cover) are configured post‑deployment via PoolManager/Globals. |
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :------------: | :-------: | :-----------: | ------------------------------- |
| 0 | `poolManager_` | `address` | `address` | The address of the PoolManager. |
### `getPoolDeploymentAddresses`
Gets the addresses that would result from a deployment.
```solidity
function getPoolDeploymentAddresses(
address poolManagerFactory_,
address poolDelegate_,
address asset_,
uint256 initialSupply_,
string name_,
string symbol_
)
view
returns (
address poolManager_,
address pool_,
address poolDelegateCover_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :-------------------: | :-------: | :-----------: | ---------------------------------------------------------- |
| 0 | `poolManagerFactory_` | `address` | `address` | The address of the PoolManager factory to use. |
| 1 | `poolDelegate_` | `address` | `address` | The address of the PoolDelegate that will deploy the Pool. |
| 2 | `asset_` | `address` | `address` | The address of the asset to use. |
| 3 | `initialSupply_` | `uint256` | `uint256` | The initial supply of the Pool. |
| 4 | `name_` | `string` | `string` | The name of the Pool. |
| 5 | `symbol_` | `string` | `string` | The symbol of the Pool. |
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :------------------: | :-------: | :-----------: | -------------------------------------------------------------------- |
| 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. |
### `getQueueWithdrawalManagerAddress`
Gets the address of the Queue Withdrawal Manager that would result from a deployment.
```solidity
function getQueueWithdrawalManagerAddress(
address withdrawalManagerFactory_,
address pool_,
address poolManager_
)
view
returns (
address withdrawalManager_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :-------------------------: | :-------: | :-----------: | ---------------------------------------------------- |
| 0 | `withdrawalManagerFactory_` | `address` | `address` | The address of the WithdrawalManager factory to use. |
| 1 | `pool_` | `address` | `address` | The address of the Pool to use. |
| 2 | `poolManager_` | `address` | `address` | The address of the PoolManager to use. |
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :------------------: | :-------: | :-----------: | -------------------------------------------------------------------- |
| 0 | `withdrawalManager_` | `address` | `address` | The address of the WithdrawalManager contract that will be deployed. |
### `getStrategiesAddresses`
Gets the addresses of the Strategies that would result from a deployment.
```solidity
function getStrategiesAddresses(
address poolManager_,
address[] strategyFactories_,
bytes[] strategyDeploymentData_
)
view
returns (
address[] strategies_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :-----------------------: | :---------: | :-----------: | ----------------------------------------------------- |
| 0 | `poolManager_` | `address` | `address` | The address of the PoolManager to use. |
| 1 | `strategyFactories_` | `address[]` | `address[]` | An array of Strategy factories to use. |
| 2 | `strategyDeploymentData_` | `bytes[]` | `bytes[]` | An array of bytes to use to construct the strategies. |
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :-----------: | :---------: | :-----------: | -------------------------------------------------------------- |
| 0 | `strategies_` | `address[]` | `address[]` | The addresses of the Strategy contracts that will be deployed. |
### `globals`
Gets the address of the Globals contract.
```solidity
function globals()
view
returns (
address
);
```
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :--: | :-------: | :-----------: | ----------- |
| 0 | | `address` | `address` | |
## Events
### `PoolDeployed`
Emitted when a new pool is deployed.
```solidity
event PoolDeployed(
address pool_,
address poolManager_,
address withdrawalManager_,
address[] strategies_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :------------------: | :---------: | :-----------: | ----------------------------------------------------- |
| 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 | `strategies_` | `address[]` | `address[]` | An array of the addresses of the Strategies deployed. |
# PoolManager Interface: Technical Reference
## Functions
### `HUNDRED_PERCENT`
```solidity
function HUNDRED_PERCENT()
view
returns (
uint256
);
```
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :--: | :-------: | :-----------: | ----------- |
| 0 | | `uint256` | `uint256` | |
### `acceptPoolDelegate`
Accepts the role of pool delegate.
```solidity
function acceptPoolDelegate()
nonpayable;
```
### `active`
Returns whether or not a pool is active.
```solidity
function active()
view
returns (
bool
);
```
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :--: | :----: | :-----------: | ----------- |
| 0 | | `bool` | `bool` | |
### `addStrategy`
Adds a new strategy. NOTE: The PoolManager address is encoded and prepended to the extraDeploymentData.
```solidity
function addStrategy(
address strategyFactory_,
bytes extraDeploymentData_
)
nonpayable
returns (
address strategy_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :--------------------: | :-------: | :-----------: | ------------------------------------------- |
| 0 | `strategyFactory_` | `address` | `address` | The address of the strategy factory to use. |
| 1 | `extraDeploymentData_` | `bytes` | `bytes` | The data to construct the strategy. |
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :---------: | :-------: | :-----------: | -------------------------------- |
| 0 | `strategy_` | `address` | `address` | The address of the new strategy. |
### `asset`
Gets the address of the funds asset.
```solidity
function asset()
view
returns (
address
);
```
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :--: | :-------: | :-----------: | ----------- |
| 0 | | `address` | `address` | |
### `canCall`
Checks if a scheduled call can be executed.
```solidity
function canCall(
bytes32 functionId_,
address caller_,
bytes data_
)
view
returns (
bool canCall_,
string errorMessage_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :-----------: | :-------: | :-----------: | -------------------------- |
| 0 | `functionId_` | `bytes32` | `bytes32` | The function to check. |
| 1 | `caller_` | `address` | `address` | The address of the caller. |
| 2 | `data_` | `bytes` | `bytes` | The data of the call. |
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :-------------: | :------: | :-----------: | -------------------------------------------------- |
| 0 | `canCall_` | `bool` | `bool` | True if the call can be executed, false otherwise. |
| 1 | `errorMessage_` | `string` | `string` | The error message if the call cannot be executed. |
### `completeConfiguration`
Complete the configuration.
```solidity
function completeConfiguration()
nonpayable;
```
### `configured`
Returns whether or not a pool is configured.
```solidity
function configured()
view
returns (
bool
);
```
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :--: | :----: | :-----------: | ----------- |
| 0 | | `bool` | `bool` | |
### `convertToExitShares`
Returns the amount of exit shares for the input amount.
```solidity
function convertToExitShares(
uint256 assets_
)
view
returns (
uint256 shares_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :-------: | :-------: | :-----------: | ----------- |
| 0 | `assets_` | `uint256` | `uint256` | |
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :-------: | :-------: | :-----------: | ----------------------------------- |
| 0 | `shares_` | `uint256` | `uint256` | Amount of shares able to be exited. |
### `delegateManagementFeeRate`
Gets the delegate management fee rate.
```solidity
function delegateManagementFeeRate()
view
returns (
uint256
);
```
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :--: | :-------: | :-----------: | ----------- |
| 0 | | `uint256` | `uint256` | |
### `depositCover`
Deposits cover into the pool.
```solidity
function depositCover(
uint256 amount_
)
nonpayable;
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :-------: | :-------: | :-----------: | ------------------------------- |
| 0 | `amount_` | `uint256` | `uint256` | The amount of cover to deposit. |
### `factory`
The address of the proxy factory.
```solidity
function factory()
view
returns (
address factory_
);
```
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :--------: | :-------: | :-----------: | ----------- |
| 0 | `factory_` | `address` | `address` | |
### `finishCollateralLiquidation`
Finishes the collateral liquidation
```solidity
function finishCollateralLiquidation(
address loan_
)
nonpayable;
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :-----: | :-------: | :-----------: | ---------------------------------------- |
| 0 | `loan_` | `address` | `address` | Loan that had its collateral liquidated. |
### `getEscrowParams`
Gets the information of escrowed shares.
```solidity
function getEscrowParams(
address,
uint256 shares_
)
view
returns (
uint256 escrowShares_,
address destination_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :-------: | :-------: | :-----------: | ----------------------------------------------- |
| 0 | \`\` | `address` | `address` | |
| 1 | `shares_` | `uint256` | `uint256` | The amount of shares to get the information of. |
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :-------------: | :-------: | :-----------: | ------------------------------- |
| 0 | `escrowShares_` | `uint256` | `uint256` | The amount of escrowed shares. |
| 1 | `destination_` | `address` | `address` | The address of the destination. |
### `globals`
Gets the address of the globals.
```solidity
function globals()
view
returns (
address globals_
);
```
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :--------: | :-------: | :-----------: | --------------------------- |
| 0 | `globals_` | `address` | `address` | The address of the globals. |
### `governor`
Gets the address of the governor.
```solidity
function governor()
view
returns (
address governor_
);
```
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :---------: | :-------: | :-----------: | ---------------------------- |
| 0 | `governor_` | `address` | `address` | The address of the governor. |
### `hasSufficientCover`
Returns if pool has sufficient cover.
```solidity
function hasSufficientCover()
view
returns (
bool hasSufficientCover_
);
```
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :-------------------: | :----: | :-----------: | ---------------------------------- |
| 0 | `hasSufficientCover_` | `bool` | `bool` | True if pool has sufficient cover. |
### `implementation`
The address of the implementation contract being proxied.
```solidity
function implementation()
view
returns (
address implementation_
);
```
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :---------------: | :-------: | :-----------: | ----------- |
| 0 | `implementation_` | `address` | `address` | |
### `isStrategy`
Returns whether or not the given address is a strategy.
```solidity
function isStrategy(
address
)
view
returns (
bool
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :--: | :-------: | :-----------: | ----------- |
| 0 | \`\` | `address` | `address` | |
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :--: | :----: | :-----------: | ----------- |
| 0 | | `bool` | `bool` | |
### `liquidityCap`
Gets the liquidity cap for the pool.
```solidity
function liquidityCap()
view
returns (
uint256
);
```
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :--: | :-------: | :-----------: | ----------- |
| 0 | | `uint256` | `uint256` | |
### `maxDeposit`
Gets the amount of assets that can be deposited.
```solidity
function maxDeposit(
address receiver_
)
view
returns (
uint256 maxAssets_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :---------: | :-------: | :-----------: | ------------------------------------- |
| 0 | `receiver_` | `address` | `address` | The address to check the deposit for. |
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :----------: | :-------: | :-----------: | ----------- |
| 0 | `maxAssets_` | `uint256` | `uint256` | |
### `maxMint`
Gets the amount of shares that can be minted.
```solidity
function maxMint(
address receiver_
)
view
returns (
uint256 maxShares_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :---------: | :-------: | :-----------: | ---------------------------------- |
| 0 | `receiver_` | `address` | `address` | The address to check the mint for. |
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :----------: | :-------: | :-----------: | ----------- |
| 0 | `maxShares_` | `uint256` | `uint256` | |
### `maxRedeem`
Gets the amount of shares that can be redeemed.
```solidity
function maxRedeem(
address owner_
)
view
returns (
uint256 maxShares_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :------: | :-------: | :-----------: | ---------------------------------------- |
| 0 | `owner_` | `address` | `address` | The address to check the redemption for. |
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :----------: | :-------: | :-----------: | ----------- |
| 0 | `maxShares_` | `uint256` | `uint256` | |
### 프로젝트로 돌아가기