Skip to main content

Unitroller

Functions

enterMarkets

function enterMarkets(
address[] cTokens
) public returns (uint256[])

Parameters

NameTypeDescription
cTokensaddress[]

_setPendingAdmin

function _setPendingAdmin(
address newPendingAdmin
) public returns (uint256)

Parameters

NameTypeDescription
newPendingAdminaddress

_setBorrowCapGuardian

function _setBorrowCapGuardian(
address newBorrowCapGuardian
) public

Parameters

NameTypeDescription
newBorrowCapGuardianaddress

_setMarketSupplyCaps

function _setMarketSupplyCaps(
contract CToken[] cTokens,
uint256[] newSupplyCaps
) external

Parameters

NameTypeDescription
cTokenscontract CToken[]
newSupplyCapsuint256[]

_setMarketBorrowCaps

function _setMarketBorrowCaps(
contract CToken[] cTokens,
uint256[] newBorrowCaps
) external

Parameters

NameTypeDescription
cTokenscontract CToken[]
newBorrowCapsuint256[]

_setPauseGuardian

function _setPauseGuardian(
address newPauseGuardian
) public returns (uint256)

Parameters

NameTypeDescription
newPauseGuardianaddress

_setMintPaused

function _setMintPaused(
contract CToken cToken,
bool state
) public returns (bool)

Parameters

NameTypeDescription
cTokencontract CToken
statebool

_setBorrowPaused

function _setBorrowPaused(
contract CToken cToken,
bool borrowPaused
) public returns (bool)

Parameters

NameTypeDescription
cTokencontract CToken
borrowPausedbool

_setTransferPaused

function _setTransferPaused(
bool state
) public returns (bool)

Parameters

NameTypeDescription
statebool

_setSeizePaused

function _setSeizePaused(
bool state
) public returns (bool)

Parameters

NameTypeDescription
statebool

_setPriceOracle

function _setPriceOracle(
address newOracle
) external returns (uint256)

Parameters

NameTypeDescription
newOracleaddress

_setCloseFactor

function _setCloseFactor(
uint256 newCloseFactorMantissa
) external returns (uint256)

Parameters

NameTypeDescription
newCloseFactorMantissauint256

_setLiquidationIncentive

function _setLiquidationIncentive(
uint256 newLiquidationIncentiveMantissa
) external returns (uint256)

Parameters

NameTypeDescription
newLiquidationIncentiveMantissauint256

_setCollateralFactor

function _setCollateralFactor(
contract CToken cToken,
uint256 newCollateralFactorMantissa
) public returns (uint256)

Parameters

NameTypeDescription
cTokencontract CToken
newCollateralFactorMantissauint256

_acceptAdmin

function _acceptAdmin() external returns (uint256)

_deployMarket

function _deployMarket(
bool isCEther,
bytes constructionData,
uint256 collateralFactorMantissa
) external returns (uint256)

Parameters

NameTypeDescription
isCEtherbool
constructionDatabytes
collateralFactorMantissauint256

borrowGuardianPaused

function borrowGuardianPaused(
address cToken
) external returns (bool)

Parameters

NameTypeDescription
cTokenaddress

comptrollerImplementation

function comptrollerImplementation() external returns (address)

rewardsDistributors

function rewardsDistributors(
uint256 index
) external returns (address)

Parameters

NameTypeDescription
indexuint256

_addRewardsDistributor

function _addRewardsDistributor(
address distributor
) external returns (uint256)

Parameters

NameTypeDescription
distributoraddress

_setWhitelistEnforcement

function _setWhitelistEnforcement(
bool enforce
) external returns (uint256)

Parameters

NameTypeDescription
enforcebool

_setWhitelistStatuses

function _setWhitelistStatuses(
address[] suppliers,
bool[] statuses
) external returns (uint256)

Parameters

NameTypeDescription
suppliersaddress[]
statusesbool[]

_unsupportMarket

function _unsupportMarket(
contract CToken cToken
) external returns (uint256)

Parameters

NameTypeDescription
cTokencontract CToken

_toggleAutoImplementations

function _toggleAutoImplementations(
bool enabled
) public returns (uint256)

Parameters

NameTypeDescription
enabledbool