Configurator

The Configurator contract is used by the admin as a single point of entry to configure protocol parameters.

Methods

batchInitLendingPoolReserve()​

function batchInitLendingPoolReserve(ConfigTypes.InitReserveInput[] calldata input)​

Batch initialises lending pool reserves.

Parameter Name
Type
Description

input

ConfigTypes.InitReserveInput[] calldata

See ConfigTypes library for detail.

setBorrowingFlagOnReserve()​

function setBorrowingFlagOnReserve(uint256[] calldata reserveIds, bool flag)​

Sets the borrowing for a given list of reserveIds.

Parameter Name
Type
Description

reserveIds

uint256[] calldata

ids of target reserves

flag

bool

true if borrowing is enabled

setBorrowingRateBorrowingOnReserve()​

function setVariableRateBorrowingOnReserve(uint256[] calldata reserveIds, bool flag)​

Sets the variable rate borrowing for a given list of reserveIds.

Parameter Name
Type
Description

reserveIds

uint256[] calldata

ids of target reserves

flag

bool

true if variable rate borrowing is enabled

setActiveFlagOnReserve()​

function setActiveFlagOnReserve(uint256[] calldata reserveIds, bool flag)​

Sets the active state for a given list of reserveIds.

Parameter Name
Type
Description

reserveIds

uint256[] calldata

ids of target reserves

flag

bool

true if reserve is active

setFreezeFlagOnReserve()​

function setFreezeFlagOnReserve(uint256[] calldata reserveIds, bool flag)​

Sets the freeze state for a given list of reserveIds.

Parameter Name
Type
Description

reserveIds

uint256[] calldata

ids of target reserves

flag

bool

true if reserve is frozen

setReserveFactor()​

function setReserveFactor(uint256[] calldata reserveIds, uint256 factor)​

Sets the reserve factor for a given list of reserveIds.

Parameter Name
Type
Description

reserveIds

uint256[] calldata

ids of target reserves

factor

uint256

the percentage of yield that goes to the protocol

setReserveInterestRateAddress()​

function setReserveInterestRateAddress(uint256[] calldata reserveIds, uint256 rateAddress)​

Sets the reserve interest rate model address for a given list of reserveIds.

Parameter Name
Type
Description

reserveIds

uint256[] calldata

ids of target reserves

rateAddress

address

address of the interest rate model

batchConfigReserve()​

function batchConfigReserve(ConfigTypes.ConfigReserveInput[] calldata inputs)​

Batch configures reserve parameters.

Parameter Name
Type
Description

inputs

ConfigTypes.ConfigReserveInput[] calldata

See ConfigTypes library for detail.

configureReserveAuction()​

function configureReserveAuction(uint256[] calldata reserveIds, uint256 liquidationBonus, uint256 auctionDuration, uint256 auctionPriceMultiple)​

Configures reserve auction parameters for a list of reserveIds.

Parameter Name
Type
Description

reserveIds

uint256[] calldata

ids of target reserves

liquidationBonus

uint256

bonus paid to auction stakeholders

auctionDuration

uint256

duration of the auction

auctionPriceMultiple

uint256

dutch auction start price multiplier

setReserveMaxSupply()​

function setReserveMaxSupply(uint256[] calldata reserveIds, uint256 maxSupply)​

Sets the max supply of NFTs that can be used as collateral within a list of reserves.

Parameter Name
Type
Description

reserveIds

uint256[] calldata

ids of target reserves

maxSupply

uint256

max number of NFTs that can be used as collateral within the reserve

setReserveCreatorAddress()​

function setReserveCreatorAddress(uint256 reserveId, address creator)​

Sets the creator address for a reserve.

Parameter Name
Type
Description

reserveId

uint256

ids of target reserves

creator

address

address to pay creator royalties

setReserveCreatorPercentage()​

function setReserveCreatorPercentage(uint256 reserveId, uint256 percentage)​

Sets the creator percentage of collection fees accrued to the protocol.

Parameter Name
Type
Description

reserveId

uint256

ids of target reserves

percentage

uint256

percentage in 1e4, e.g. 5000 == 50%

setMaxNumberOfReserves()​

function setMaxNumberOfReserves(uint256 newVal)​

Sets the maximum number of reserves permitted within the protocol.

Parameter Name
Type
Description

newVal

uint256

maximum number of reserves permitted

setPoolPause()​

function setPoolPause(bool val)​

Pauses / unpauses all actions of the protocol including fToken transfers. Only actionable by the emergency admin.

Parameter Name
Type
Description

val

bool

true to pause, false to unpause

setPoolPauseTime()​

function setPoolPauseTime(uint256 startTime, uint256 duration)​

Pauses / unpauses all actions of the protocol including fToken transfers; at a given time, for a given duration. Only actionable by the emergency admin.

Parameter Name
Type
Description

startTime

uint256

pause start time

duration

uint256

pause duration from the start time

updateFToken()​

function updateFToken(ConfigTypes.UpdateFTokenInput[] calldata inputs)​

Updates the fToken implementation for the reserve.

Parameter Name
Type
Description

inputs

ConfigTypes.UpdateFTokenInput[] calldata

See ConfigTypes library for detail.

updateStableDebtToken()​

function updateStableDebtToken(ConfigTypes.UpdateStableDebtTokenInput[] calldata inputs)​

Updates the stableDebtToken implementation for the reserve.

Parameter Name
Type
Description

inputs

ConfigTypes.UpdateStableDebtTokenInput[] calldata

See ConfigTypes library for detail.

updateVariableDebtToken()​

function updateVariableDebtToken(ConfigTypes.UpdateVariableDebtTokenInput[] calldata inputs)​

Updates the variableDebtToken implementation for the reserve.

Parameter Name
Type
Description

inputs

ConfigTypes.UpdateVariableDebtTokenInput[] calldata

See ConfigTypes library for detail.

approveExecutionDelegateContracts()​

function approveExecutionDelegateContracts(address[] calldata contracts)​

Approves contracts to send/receive tokens on behalf of the execution delegate.

Parameter Name
Type
Description

contracts

address[] calldata

addresses of contracts approved by the execution delegate

approveWETHExecutionDelegate()​

function approveWETHExecutionDelegate()​

Approves the Execution Delegate contract to send/receive tokens on behalf of the WETH Gateway.

View Methods

ABI

Configurator ABI

Last updated