Git Source
Inherits: IPoolConfiguratorStorage, IPoolConfiguratorEvents
The initializer function for the pool configurator (must be called directly after deployment).
function initialize(
IPoolAddressesProvider provider_,
address poolAdmin_,
address asset_,
string memory name_,
string memory symbol_
)
external;
Parameters
The address of the pool addresses provider.
The address of the pool admin.
The ERC20 asset used in the lending pool.
The name of the pool token.
The symbol of the pool token.
setMaxCoverLiquidation
Sets the max cover liquidation for the pool configurator.
Parameters
The max cover liquidation as a percentage for the pool admin.
Sets the min cover required for the pool configurator.
Parameters
The min cover required for the pool admin.
Sets the pool limit for the pool configurator.
Parameters
The size limit of the pool.
Transfers to a new admin.
Parameters
The address of the new admin.
setOpenToPublic
Sets whether the pool is open to the public (permissioned or permissionless).
Parameters
Whether the pool is open to the public.
Sets the admin fee rate that would be applied to the pool.
Parameters
Assigns a buyer to the pool.
Parameters
The address of the buyer for this pool.
Sets the status of a seller.
Parameters
The address of the seller.
Whether the seller is valid.
Sets the status of a lender (liquidity providers).
Parameters
The address of the lender.
Whether the lender is valid.
Request funds from the pool and fund the loan manager.
Parameters
The amount of principal to request.
Triggers the defaults of a specific loan in the loan manager.
Parameters
The ID of the defaulted loan.
Requests to redeem shares.
Parameters
The amount of shares to redeem.
Processes the redemption of shares for a specific owner.
Parameters
The amount of shares to redeem.
The sender of the process request.
Returns
The amount of redeemable shares.
The corresponding amount of assets with the redeemable shares.
Removes shares from its withdrawal request.
Parameters
The amount of shares to remove from withdrawal.
Returns
The amount of shares returned.
Pool admin deposits pool cover.
Parameters
The amount of assets to deposit as first-loss cover.
Pool admin withdraws from pool cover.
Parameters
The amount of assets to withdraw from first-loss cover.
The address of the recipient.
maxCoverLiquidation
Returns the max cover liquidation of the pool.
Returns
The max cover liquidation of the pool.
Returns the min cover required for the pool configurator.
Returns
The min cover required for the pool admin.
Returns the pool limit of the pool configurator.
Returns
The size limit of the pool.
Returns whether the pool is open to public.
Returns
Whether the pool is open to public.
Returns the admin fee of the pool.
Returns
The admin fee of the pool.
Returns the max deposit amount of a receiver.
Parameters
The address of the receiver.
Returns
The max amount of assets that can be deposited.
Returns the max mint amount of a receiver.
Parameters
The address of the receiver.
Returns
The max amount of shares that can be minted.
Returns the max redeem amount of an owner.
Parameters
The address of the owner.
Returns
The max amount of shares that can be redeemed.
Previews the amount of assets that can be redeemed for the amount of shares specified.
Parameters
The address of the owner.
The amount of shares to redeem.
Returns
The amount of assets that would be received.
Returns the total amount of assets in the pool.
Returns
The total amount of assets in the pool.
hasSufficientCover
Returns whether the pool currently has sufficient cover.
Returns
Whether the pool currently has sufficient cover.
unrealizedLosses
Returns the current amount of unrealized losses of the pool.
Returns
The current amount of unrealized losses of the pool.