IPoolConfigurator

Git Source

Inherits: IPoolConfiguratorStorage, IPoolConfiguratorEvents

Functions

initialize

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

setMaxCoverLiquidation

Sets the max cover liquidation for the pool configurator.

function setMaxCoverLiquidation(uint24 maxCoverLiquidation_) external;

Parameters

setMinCover

Sets the min cover required for the pool configurator.

function setMinCover(uint104 minCover_) external;

Parameters

setPoolLimit

Sets the pool limit for the pool configurator.

function setPoolLimit(uint104 poolLimit_) external;

Parameters

transferAdmin

Transfers to a new admin.

function transferAdmin(address newAdmin_) external;

Parameters

setOpenToPublic

Sets whether the pool is open to the public (permissioned or permissionless).

function setOpenToPublic(bool isOpenToPublic_) external;

Parameters

setAdminFee

Sets the admin fee rate that would be applied to the pool.

function setAdminFee(uint24 adminFee_) external;

Parameters

setBuyer

Assigns a buyer to the pool.

function setBuyer(address buyer_) external;

Parameters

setValidSeller

Sets the status of a seller.

function setValidSeller(address seller_, bool isValid_) external;

Parameters

setValidLender

Sets the status of a lender (liquidity providers).

function setValidLender(address lender_, bool isValid_) external;

Parameters

requestFunds

Request funds from the pool and fund the loan manager.

function requestFunds(uint256 principal_) external;

Parameters

triggerDefault

Triggers the defaults of a specific loan in the loan manager.

function triggerDefault(uint16 loanId_) external;

Parameters

requestRedeem

Requests to redeem shares.

function requestRedeem(uint256 shares_, address owner_) external;

Parameters

processRedeem

Processes the redemption of shares for a specific owner.

function processRedeem(
    uint256 shares_,
    address owner_,
    address sender_
)
    external
    returns (uint256 redeemableShares_, uint256 resultingAssets_);

Parameters

Returns

removeShares

Removes shares from its withdrawal request.

function removeShares(uint256 shares_, address owner_) external returns (uint256 sharesReturned_);

Parameters

Returns

depositCover

Pool admin deposits pool cover.

function depositCover(uint256 amount_) external;

Parameters

withdrawCover

Pool admin withdraws from pool cover.

function withdrawCover(uint256 amount_, address recipient_) external;

Parameters

maxCoverLiquidation

Returns the max cover liquidation of the pool.

function maxCoverLiquidation() external view returns (uint24 maxCoverLiquidation_);

Returns

minCover

Returns the min cover required for the pool configurator.

function minCover() external view returns (uint104 minCover_);

Returns

poolLimit

Returns the pool limit of the pool configurator.

function poolLimit() external view returns (uint104 poolLimit_);

Returns

openToPublic

Returns whether the pool is open to public.

function openToPublic() external view returns (bool openToPublic_);

Returns

adminFee

Returns the admin fee of the pool.

function adminFee() external view returns (uint24 adminFee_);

Returns

maxDeposit

Returns the max deposit amount of a receiver.

function maxDeposit(address receiver_) external view returns (uint256 maxAssets_);

Parameters

Returns

maxMint

Returns the max mint amount of a receiver.

function maxMint(address receiver_) external view returns (uint256 maxShares_);

Parameters

Returns

maxRedeem

Returns the max redeem amount of an owner.

function maxRedeem(address owner_) external view returns (uint256 maxShares_);

Parameters

Returns

previewRedeem

Previews the amount of assets that can be redeemed for the amount of shares specified.

function previewRedeem(address owner_, uint256 shares_) external view returns (uint256 assets_);

Parameters

Returns

totalAssets

Returns the total amount of assets in the pool.

function totalAssets() external view returns (uint256 totalAssets_);

Returns

hasSufficientCover

Returns whether the pool currently has sufficient cover.

function hasSufficientCover() external view returns (bool hasSufficientCover_);

Returns

unrealizedLosses

Returns the current amount of unrealized losses of the pool.

function unrealizedLosses() external view returns (uint256 unrealizedLosses_);

Returns

Last updated