IPoolConfigurator
Inherits: IPoolConfiguratorStorage, IPoolConfiguratorEvents, IAdminable
Functions
initialize
The initializer function for the pool configurator (must be called straight after deployment)
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the pool addresses provider. |
|
| The address of the pool admin |
|
| The funds asset used in the pool (e.g. DAI, USDC) |
|
| The name of the asset |
|
| The symbol of the asset |
setBuyer
assigns a pool buyer to the pool
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the buyer for this pool |
setValidSeller
Sets the status of a seller
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the seller |
|
| Whether the seller is valid |
setValidLender
Sets the status of a lender (LPs)
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the lender |
|
| Whether the lender is valid |
setOpenToPublic
Sets whether the pool is open to the public (permissioned or permissionless)
Parameters
Name | Type | Description |
---|---|---|
|
| Whether the pool is open to the public |
setAdminFee
Sets the admin fee rate that would be applied to the pool
Parameters
Name | Type | Description |
---|---|---|
|
| The new admin fee |
setGracePeriod
Sets the grace period for the pool
Parameters
Name | Type | Description |
---|---|---|
|
| The new grace period |
requestFunds
Request funds from the pool and fund the loan manager
Parameters
Name | Type | Description |
---|---|---|
|
| The amount of principal to request |
triggerDefault
Triggers the defaults of a specific loan in the loan manager
Parameters
Name | Type | Description |
---|---|---|
|
| The ID of the defaulted loan |
requestRedeem
Requests to redeem shares
Parameters
Name | Type | Description |
---|---|---|
|
| The amount of shares to redeem |
|
| The owner of the shares |
|
| The sender of the request |
processRedeem
Processes the redemption of shares for a specific owner
Parameters
Name | Type | Description |
---|---|---|
|
| The amount of shares to redeem |
|
| The owner of the shares |
|
| The sender of the process request |
Returns
Name | Type | Description |
---|---|---|
|
| The amount of redeemable shares |
|
| The corresponding amount of assets with the redeemable shares |
removeShares
Removes shares from its withdrawal request
Parameters
Name | Type | Description |
---|---|---|
|
| The amount of shares to remove from withdrawal |
|
| The owner of the shares |
Returns
Name | Type | Description |
---|---|---|
|
| The amount of shares returned |
depositCover
Pool admin deposits pool cover
Parameters
Name | Type | Description |
---|---|---|
|
| The amount of assets to deposit as first-loss cover |
withdrawCover
Pool admin withdraws from pool cover
Parameters
Name | Type | Description |
---|---|---|
|
| The amount of assets to withdraw from first-loss cover |
|
| The address of the recipient |
openToPublic
Returns whether the pool is open to public
Returns
Name | Type | Description |
---|---|---|
|
| Whether the pool is open to public |
adminFee
Returns the admin fee of the pool
Returns
Name | Type | Description |
---|---|---|
|
| The admin fee of the pool |
gracePeriod
Returns the grace period of the pool
Returns
Name | Type | Description |
---|---|---|
|
| The grace period of the pool |
maxDeposit
Returns the max deposit amount of a receiver
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the receiver |
Returns
Name | Type | Description |
---|---|---|
|
| The max amount of assets that can be deposited |
maxMint
Returns the max mint amount of a receiver
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the receiver |
Returns
Name | Type | Description |
---|---|---|
|
| The max amount of shares that can be minted |
maxRedeem
Returns the max redeem amount of an owner
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the owner |
Returns
Name | Type | Description |
---|---|---|
|
| The max amount of shares that can be redeemed |
previewRedeem
Previews the amount of assets that can be redeemed for the amount of shares specified
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the owner |
|
| The amount of shares to redeem |
Returns
Name | Type | Description |
---|---|---|
|
| The amount of assets that would be received |
totalAssets
Returns the total amount of assets in the pool
Returns
Name | Type | Description |
---|---|---|
|
| The total amount of assets in the pool |
hasSufficientCover
Returns whether the pool currently has sufficient cover
Returns
Name | Type | Description |
---|---|---|
|
| Whether the pool currently has sufficient cover |
unrealizedLosses
Returns the current amount of unrealized losses of the pool
Returns
Name | Type | Description |
---|---|---|
|
| The current amount of unrealized losses of the pool |
Last updated