PoolManager
\
Functions
HUNDRED_PERCENT
HUNDRED_PERCENT
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
\
acceptPoolDelegate
acceptPoolDelegate
Accepts the role of pool delegate.
\
active
active
Returns whether or not a pool is active.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
\
addLoanManager
addLoanManager
Adds a new loan manager.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the loan manager factory to use. |
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the new loan manager. |
\
asset
asset
Gets the address of the funds asset.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
\
canCall
canCall
Checks if a scheduled call can be executed.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The function to check. |
1 |
|
|
| The address of the caller. |
2 |
|
|
| The data of the call. |
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| True if the call can be executed, false otherwise. |
1 |
|
|
| The error message if the call cannot be executed. |
\
completeConfiguration
completeConfiguration
Complete the configuration.
\
configured
configured
Returns whether or not a pool is configured.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
\
convertToExitShares
convertToExitShares
Returns the amount of exit shares for the input amount.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
|
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| Amount of shares able to be exited. |
\
delegateManagementFeeRate
delegateManagementFeeRate
Gets the delegate management fee rate.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
\
depositCover
depositCover
Deposits cover into the pool.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The amount of cover to deposit. |
\
factory
factory
The address of the proxy factory.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
|
\
finishCollateralLiquidation
finishCollateralLiquidation
Finishes the collateral liquidation
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| Loan that had its collateral liquidated. |
\
getEscrowParams
getEscrowParams
Gets the information of escrowed shares.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 | `` |
|
| |
1 |
|
|
| The amount of shares to get the information of. |
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The amount of escrowed shares. |
1 |
|
|
| The address of the destination. |
\
globals
globals
Gets the address of the globals.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the globals. |
\
governor
governor
Gets the address of the governor.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the governor. |
\
hasSufficientCover
hasSufficientCover
Returns if pool has sufficient cover.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| True if pool has sufficient cover. |
\
implementation
implementation
The address of the implementation contract being proxied.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
|
\
isLoanManager
isLoanManager
Returns whether or not the given address is a loan manager.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 | `` |
|
|
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
\
liquidityCap
liquidityCap
Gets the liquidity cap for the pool.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
\
loanManagerList
loanManagerList
Gets the address of the loan manager in the list.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 | `` |
|
|
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
\
loanManagerListLength
loanManagerListLength
Returns the length of the `loanManagerList`.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The length of the `loanManagerList`. |
\
maxDeposit
maxDeposit
Gets the amount of assets that can be deposited.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address to check the deposit for. |
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
|
\
maxMint
maxMint
Gets the amount of shares that can be minted.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address to check the mint for. |
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
|
\
maxRedeem
maxRedeem
Gets the amount of shares that can be redeemed.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address to check the redemption for. |
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
|
\
maxWithdraw
maxWithdraw
Gets the amount of assets that can be withdrawn.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address to check the withdraw for. |
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
|
\
migrate
migrate
Modifies the proxy's storage by delegate-calling a migrator contract with some arguments. Access control logic critical since caller can force a selfdestruct via a malicious `migrator_` which is delegatecalled.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of a migrator contract. |
1 |
|
|
| Some encoded arguments to use for the migration. |
\
pendingPoolDelegate
pendingPoolDelegate
Gets the address of the pending pool delegate.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
\
pool
pool
Gets the address of the pool.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
\
poolDelegate
poolDelegate
Gets the address of the pool delegate.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
\
poolDelegateCover
poolDelegateCover
Gets the address of the pool delegate cover.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
\
poolPermissionManager
poolPermissionManager
Gets the address of the pool delegate cover.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
\
previewRedeem
previewRedeem
Gets the amount of shares that can be redeemed.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address to check the redemption for. |
1 |
|
|
| The amount of requested shares to redeem. |
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The amount of assets that will be returned for `shares_`. |
\
previewWithdraw
previewWithdraw
Gets the amount of assets that can be redeemed.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address to check the redemption for. |
1 |
|
|
| The amount of requested shares to redeem. |
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The amount of assets that will be returned for `assets_`. |
\
processRedeem
processRedeem
Processes a redemptions of shares for assets from the pool.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The amount of shares to redeem. |
1 |
|
|
| The address of the owner of the shares. |
2 |
|
|
| The address of the sender of the redeem call. |
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The amount of shares redeemed. |
1 |
|
|
| The amount of assets withdrawn. |
\
processWithdraw
processWithdraw
Processes a redemptions of shares for assets from the pool.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The amount of assets to withdraw. |
1 |
|
|
| The address of the owner of the shares. |
2 |
|
|
| The address of the sender of the withdraw call. |
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The amount of shares redeemed. |
1 |
|
|
| The amount of assets withdrawn. |
\
removeShares
removeShares
Requests a redemption of shares from the pool.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The amount of shares to redeem. |
1 |
|
|
| The address of the owner of the shares. |
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The amount of shares withdrawn. |
\
requestFunds
requestFunds
LoanManager can request funds from the pool via the poolManager.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address to send the funds to. |
1 |
|
|
| The principal amount to fund the loan with. |
\
requestRedeem
requestRedeem
Requests a redemption of shares from the pool.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The amount of shares to redeem. |
1 |
|
|
| The address of the owner of the shares. |
2 |
|
|
| The address of the sender of the shares. |
\
requestWithdraw
requestWithdraw
Requests a withdrawal of assets from the pool.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The amount of shares to redeem. |
1 |
|
|
| The amount of assets to withdraw. |
2 |
|
|
| The address of the owner of the shares. |
3 |
|
|
| The address of the sender of the shares. |
\
setActive
setActive
Sets a the pool to be active or inactive.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| Whether the pool is active. |
\
setDelegateManagementFeeRate
setDelegateManagementFeeRate
Sets the value for the delegate management fee rate.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The value for the delegate management fee rate. |
\
setImplementation
setImplementation
Modifies the proxy's implementation address.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
|
\
setIsLoanManager
setIsLoanManager
Sets if the loanManager is valid in the isLoanManager mapping.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the loanManager |
1 |
|
|
| Whether the loanManager is valid. |
\
setLiquidityCap
setLiquidityCap
Sets the value for liquidity cap.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The value for liquidity cap. |
\
setPendingPoolDelegate
setPendingPoolDelegate
Sets an address as the pending pool delegate.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the new pool delegate. |
\
setPoolPermissionManager
setPoolPermissionManager
Sets the address of the pool permission manager.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
|
\
setWithdrawalManager
setWithdrawalManager
Sets the address of the withdrawal manager.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the withdrawal manager. |
\
totalAssets
totalAssets
Returns the amount of total assets.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| Amount of of total assets. |
\
triggerDefault
triggerDefault
Triggers the default of a loan.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| Loan to trigger the default. |
1 |
|
|
| Factory used to deploy the liquidator. |
\
unrealizedLosses
unrealizedLosses
Returns the amount unrealized losses.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| Amount of unrealized losses. |
\
upgrade
upgrade
Upgrades a contract implementation to a specific version. Access control logic critical since caller can force a selfdestruct via a malicious `migrator_` which is delegatecalled.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| |
1 |
|
|
| Some encoded arguments to use for the upgrade. |
\
withdrawalManager
withdrawalManager
Gets the address of the withdrawal manager.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
\
withdrawCover
withdrawCover
Withdraws cover from the pool.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The amount of cover to withdraw. |
1 |
|
|
| The address of the recipient. |
\
Events
CollateralLiquidationFinished
CollateralLiquidationFinished
Emitted when a collateral liquidations is finished.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the loan. |
1 |
|
|
| The amount of unrealized losses. |
\
CollateralLiquidationTriggered
CollateralLiquidationTriggered
Emitted when a collateral liquidations is triggered.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the loan. |
\
CoverDeposited
CoverDeposited
Emitted when cover is deposited.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The amount of cover deposited. |
\
CoverLiquidated
CoverLiquidated
Emitted when cover is liquidated in the case of a loan defaulting.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The amount of cover sent to the Treasury. |
1 |
|
|
| The amount of cover sent to the Pool. |
\
CoverWithdrawn
CoverWithdrawn
Emitted when cover is withdrawn.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The amount of cover withdrawn. |
\
DelegateManagementFeeRateSet
DelegateManagementFeeRateSet
Emitted when a new management fee rate is set.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The amount of management fee rate. |
\
IsLoanManagerSet
IsLoanManagerSet
Emitted when a loan manager is set as valid.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the loan manager. |
1 |
|
|
| Whether the loan manager is valid. |
\
LiquidityCapSet
LiquidityCapSet
Emitted when a new liquidity cap is set.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The value of liquidity cap. |
\
LoanManagerAdded
LoanManagerAdded
Emitted when a new loan manager is added.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the new loan manager. |
\
PendingDelegateAccepted
PendingDelegateAccepted
Emitted when the pending pool delegate accepts the ownership transfer.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the previous delegate. |
1 |
|
|
| The address of the new delegate. |
\
PendingDelegateSet
PendingDelegateSet
Emitted when the pending pool delegate is set.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the previous delegate. |
1 |
|
|
| The address of the new delegate. |
\
PoolConfigurationComplete
PoolConfigurationComplete
Emitted when the pool configuration is marked as complete.
\
PoolPermissionManagerSet
PoolPermissionManagerSet
Emitted when the pool permission manager is set.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the pool permission manager. |
\
RedeemProcessed
RedeemProcessed
Emitted when a redemption of shares from the pool is processed.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The owner of the shares. |
1 |
|
|
| The amount of redeemable shares. |
2 |
|
|
| The amount of assets redeemed. |
\
RedeemRequested
RedeemRequested
Emitted when a redemption of shares from the pool is requested.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The owner of the shares. |
1 |
|
|
| The amount of redeemable shares. |
\
SetAsActive
SetAsActive
Emitted when a pool is sets to be active or inactive.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| Whether the pool is active. |
\
SharesRemoved
SharesRemoved
Emitted when shares are removed from the pool.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the owner of the shares. |
1 |
|
|
| The amount of shares removed. |
\
Upgraded
Upgraded
The instance was upgraded.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The new version of the loan. |
1 |
|
|
| The upgrade arguments, if any. |
\
WithdrawalManagerSet
WithdrawalManagerSet
Emitted when the withdrawal manager is set.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the withdrawal manager. |
\
WithdrawalProcessed
WithdrawalProcessed
Emitted when withdrawal of assets from the pool is processed.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The owner of the assets. |
1 |
|
|
| The amount of redeemable shares. |
2 |
|
|
| The amount of assets redeemed. |
\
Last updated