PoolConfigurator
Inherits: VersionedInitializable, IPoolConfigurator, PoolConfiguratorStorage
See the documentation in {IPoolConfigurator}.
State Variables
HUNDRED_PERCENT
POOL_CONFIGURATOR_REVISION
ADDRESSES_PROVIDER
Functions
whenNotPaused
onlyAdminOrGovernor
onlyGovernor
onlyAdmin
onlyPool
constructor
getRevision
Returns the revision number of the contract
Needs to be defined in the inherited class as a constant.
Returns
initialize
The initializer function for the pool configurator (must be called directly after deployment).
Parameters
transferAdmin
Transfers to a new admin.
Parameters
setBuyer
Assigns a buyer to the pool.
Parameters
setValidSeller
Sets the status of a seller.
Parameters
setValidLender
Sets the status of a lender (liquidity providers).
Parameters
setAdminFee
Sets the admin fee rate that would be applied to the pool.
Parameters
setOpenToPublic
Sets whether the pool is open to the public (permissioned or permissionless).
Parameters
setMaxCoverLiquidation
Sets the max cover liquidation for the pool configurator.
Parameters
setMinCover
Sets the min cover required for the pool configurator.
Parameters
setPoolLimit
Sets the pool limit for the pool configurator.
Parameters
requestFunds
Request funds from the pool and fund the loan manager.
Parameters
triggerDefault
Triggers the defaults of a specific loan in the loan manager.
Parameters
requestRedeem
Requests to redeem shares.
Parameters
processRedeem
Processes the redemption of shares for a specific owner.
Parameters
Returns
removeShares
Removes shares from its withdrawal request.
Parameters
Returns
depositCover
Pool admin deposits pool cover.
Parameters
withdrawCover
Pool admin withdraws from pool cover.
Parameters
openToPublic
Returns whether the pool is open to public.
Returns
adminFee
Returns the admin fee of the pool.
Returns
maxCoverLiquidation
Returns the max cover liquidation of the pool.
Returns
minCover
Returns the min cover required for the pool configurator.
Returns
poolLimit
Returns the pool limit of the pool configurator.
Returns
maxDeposit
Returns the max deposit amount of a receiver.
Parameters
Returns
maxMint
Returns the max mint amount of a receiver.
Parameters
Returns
maxRedeem
Returns the max redeem amount of an owner.
Parameters
Returns
previewRedeem
Previews the amount of assets that can be redeemed for the amount of shares specified.
Parameters
Returns
totalAssets
Returns the total amount of assets in the pool.
Returns
hasSufficientCover
Returns whether the pool currently has sufficient cover.
Returns
unrealizedLosses
Returns the current amount of unrealized losses of the pool.
Returns
_totalAssets
_revertIfPaused
_revertIfNotAdmin
_revertIfNotAdminOrGovernor
_revertIfNotGovernor
_revertIfNotPool
_hasSufficientCover
_handleCover
_min
_getMaxAssets
_globals
_loanManager
_withdrawalManager
Last updated