PoolConfigurator
Implements the configuration methods for the ParaSpace protocol
_addressesProvider
_pool
onlyPoolAdmin
Only pool admin can call functions marked by this modifier.
onlyEmergencyAdmin
Only emergency admin can call functions marked by this modifier.
onlyEmergencyOrPoolAdmin
Only emergency or pool admin can call functions marked by this modifier.
onlyAssetListingOrPoolAdmins
Only asset listing or pool admin can call functions marked by this modifier.
onlyRiskOrPoolAdmins
Only risk or pool admin can call functions marked by this modifier.
CONFIGURATOR_REVISION
getRevision
Returns the revision number of the contract
Needs to be defined in the inherited class as a constant.
Return Values
initialize
initReserves
Initializes multiple reserves.
Parameters
dropReserve
Drops a reserve entirely.
Parameters
updatePToken
Updates the pToken implementation for the reserve.
Parameters
updateNToken
Updates the nToken implementation for the reserve.
Parameters
updateVariableDebtToken
Updates the variable debt token implementation for the asset.
Parameters
setReserveBorrowing
Configures borrowing on a reserve.
Can only be disabled (set to false) if stable borrowing is disabled
Parameters
configureReserveAsCollateral
Configures the reserve collateralization parameters.
All the values are expressed in bps. A value of 10000, results in 100.00% The liquidationBonus
is always above 100%. A value of 105% means the liquidator will receive a 5% bonus
Parameters
setReserveActive
Activate or deactivate a reserve
Parameters
setReserveFreeze
Freeze or unfreeze a reserve. A frozen reserve doesn't allow any new supply, borrow or rate swap but allows repayments, liquidations, rate rebalances and withdrawals.
Parameters
setReservePause
Pauses a reserve. A paused reserve does not allow any interaction (supply, borrow, repay, swap interest rate, liquidate, xtoken transfers).
Parameters
setReserveFactor
Updates the reserve factor of a reserve.
Parameters
setSiloedBorrowing
Sets siloed borrowing for an asset
Parameters
setBorrowCap
Updates the borrow cap of a reserve.
Parameters
setSupplyCap
Updates the supply cap of a reserve.
Parameters
setLiquidationProtocolFee
Updates the liquidation protocol fee of reserve.
Parameters
setReserveInterestRateStrategyAddress
Sets the interest rate strategy of a reserve.
Parameters
setReserveAuctionStrategyAddress
Sets the auction strategy of a reserve
Parameters
setPoolPause
Pauses or unpauses all the protocol reserves. In the paused state all the protocol interactions are suspended.
Parameters
setAuctionRecoveryHealthFactor
set the auction recovery health factor