PoolConfigurator

Implements the configuration methods for the ParaSpace protocol

_addressesProvider

contract IPoolAddressesProvider _addressesProvider

_pool

contract IPool _pool

onlyPoolAdmin

modifier onlyPoolAdmin()

Only pool admin can call functions marked by this modifier.

onlyEmergencyAdmin

modifier onlyEmergencyAdmin()

Only emergency admin can call functions marked by this modifier.

onlyEmergencyOrPoolAdmin

modifier onlyEmergencyOrPoolAdmin()

Only emergency or pool admin can call functions marked by this modifier.

onlyAssetListingOrPoolAdmins

modifier onlyAssetListingOrPoolAdmins()

Only asset listing or pool admin can call functions marked by this modifier.

onlyRiskOrPoolAdmins

modifier onlyRiskOrPoolAdmins()

Only risk or pool admin can call functions marked by this modifier.

CONFIGURATOR_REVISION

uint256 CONFIGURATOR_REVISION

getRevision

function getRevision() internal pure virtual returns (uint256)

Returns the revision number of the contract

Needs to be defined in the inherited class as a constant.

Return Values

initialize

function initialize(contract IPoolAddressesProvider provider) external

initReserves

function initReserves(struct ConfiguratorInputTypes.InitReserveInput[] input) external

Initializes multiple reserves.

Parameters

dropReserve

function dropReserve(address asset) external

Drops a reserve entirely.

Parameters

updatePToken

function updatePToken(struct ConfiguratorInputTypes.UpdatePTokenInput input) external

Updates the pToken implementation for the reserve.

Parameters

updateNToken

function updateNToken(struct ConfiguratorInputTypes.UpdateNTokenInput input) external

Updates the nToken implementation for the reserve.

Parameters

updateVariableDebtToken

function updateVariableDebtToken(struct ConfiguratorInputTypes.UpdateDebtTokenInput input) external

Updates the variable debt token implementation for the asset.

Parameters

setReserveBorrowing

function setReserveBorrowing(address asset, bool enabled) external

Configures borrowing on a reserve.

Can only be disabled (set to false) if stable borrowing is disabled

Parameters

configureReserveAsCollateral

function configureReserveAsCollateral(address asset, uint256 ltv, uint256 liquidationThreshold, uint256 liquidationBonus) external

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

function setReserveActive(address asset, bool active) external

Activate or deactivate a reserve

Parameters

setReserveFreeze

function setReserveFreeze(address asset, bool freeze) external

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

function setReservePause(address asset, bool paused) public

Pauses a reserve. A paused reserve does not allow any interaction (supply, borrow, repay, swap interest rate, liquidate, xtoken transfers).

Parameters

setReserveFactor

function setReserveFactor(address asset, uint256 newReserveFactor) external

Updates the reserve factor of a reserve.

Parameters

setSiloedBorrowing

function setSiloedBorrowing(address asset, bool newSiloed) external

Sets siloed borrowing for an asset

Parameters

setBorrowCap

function setBorrowCap(address asset, uint256 newBorrowCap) external

Updates the borrow cap of a reserve.

Parameters

setSupplyCap

function setSupplyCap(address asset, uint256 newSupplyCap) external

Updates the supply cap of a reserve.

Parameters

setLiquidationProtocolFee

function setLiquidationProtocolFee(address asset, uint256 newFee) external

Updates the liquidation protocol fee of reserve.

Parameters

setReserveInterestRateStrategyAddress

function setReserveInterestRateStrategyAddress(address asset, address newRateStrategyAddress) external

Sets the interest rate strategy of a reserve.

Parameters

setReserveAuctionStrategyAddress

function setReserveAuctionStrategyAddress(address asset, address newAuctionStrategyAddress) external

Sets the auction strategy of a reserve

Parameters

setPoolPause

function setPoolPause(bool paused) external

Pauses or unpauses all the protocol reserves. In the paused state all the protocol interactions are suspended.

Parameters

setAuctionRecoveryHealthFactor

function setAuctionRecoveryHealthFactor(uint64 value) external

set the auction recovery health factor

Parameters

_checkNoSuppliers

function _checkNoSuppliers(address asset) internal view

_checkNoBorrowers

function _checkNoBorrowers(address asset) internal view

_onlyPoolAdmin

function _onlyPoolAdmin() internal view

_onlyEmergencyAdmin

function _onlyEmergencyAdmin() internal view

_onlyPoolOrEmergencyAdmin

function _onlyPoolOrEmergencyAdmin() internal view

_onlyAssetListingOrPoolAdmins

function _onlyAssetListingOrPoolAdmins() internal view

_onlyRiskOrPoolAdmins

function _onlyRiskOrPoolAdmins() internal view