Unitroller
Functions
enterMarkets
function enterMarkets(
address[] cTokens
) public returns (uint256[])
Parameters
Name | Type | Description |
---|---|---|
cTokens | address[] |
_setPendingAdmin
function _setPendingAdmin(
address newPendingAdmin
) public returns (uint256)
Parameters
Name | Type | Description |
---|---|---|
newPendingAdmin | address |
_setBorrowCapGuardian
function _setBorrowCapGuardian(
address newBorrowCapGuardian
) public
Parameters
Name | Type | Description |
---|---|---|
newBorrowCapGuardian | address |
_setMarketSupplyCaps
function _setMarketSupplyCaps(
contract CToken[] cTokens,
uint256[] newSupplyCaps
) external
Parameters
Name | Type | Description |
---|---|---|
cTokens | contract CToken[] | |
newSupplyCaps | uint256[] |
_setMarketBorrowCaps
function _setMarketBorrowCaps(
contract CToken[] cTokens,
uint256[] newBorrowCaps
) external
Parameters
Name | Type | Description |
---|---|---|
cTokens | contract CToken[] | |
newBorrowCaps | uint256[] |
_setPauseGuardian
function _setPauseGuardian(
address newPauseGuardian
) public returns (uint256)
Parameters
Name | Type | Description |
---|---|---|
newPauseGuardian | address |
_setMintPaused
function _setMintPaused(
contract CToken cToken,
bool state
) public returns (bool)
Parameters
Name | Type | Description |
---|---|---|
cToken | contract CToken | |
state | bool |
_setBorrowPaused
function _setBorrowPaused(
contract CToken cToken,
bool borrowPaused
) public returns (bool)
Parameters
Name | Type | Description |
---|---|---|
cToken | contract CToken | |
borrowPaused | bool |
_setTransferPaused
function _setTransferPaused(
bool state
) public returns (bool)
Parameters
Name | Type | Description |
---|---|---|
state | bool |
_setSeizePaused
function _setSeizePaused(
bool state
) public returns (bool)
Parameters
Name | Type | Description |
---|---|---|
state | bool |
_setPriceOracle
function _setPriceOracle(
address newOracle
) external returns (uint256)
Parameters
Name | Type | Description |
---|---|---|
newOracle | address |
_setCloseFactor
function _setCloseFactor(
uint256 newCloseFactorMantissa
) external returns (uint256)
Parameters
Name | Type | Description |
---|---|---|
newCloseFactorMantissa | uint256 |
_setLiquidationIncentive
function _setLiquidationIncentive(
uint256 newLiquidationIncentiveMantissa
) external returns (uint256)
Parameters
Name | Type | Description |
---|---|---|
newLiquidationIncentiveMantissa | uint256 |
_setCollateralFactor
function _setCollateralFactor(
contract CToken cToken,
uint256 newCollateralFactorMantissa
) public returns (uint256)
Parameters
Name | Type | Description |
---|---|---|
cToken | contract CToken | |
newCollateralFactorMantissa | uint256 |
_acceptAdmin
function _acceptAdmin() external returns (uint256)
_deployMarket
function _deployMarket(
bool isCEther,
bytes constructionData,
uint256 collateralFactorMantissa
) external returns (uint256)
Parameters
Name | Type | Description |
---|---|---|
isCEther | bool | |
constructionData | bytes | |
collateralFactorMantissa | uint256 |
borrowGuardianPaused
function borrowGuardianPaused(
address cToken
) external returns (bool)
Parameters
Name | Type | Description |
---|---|---|
cToken | address |
comptrollerImplementation
function comptrollerImplementation() external returns (address)
rewardsDistributors
function rewardsDistributors(
uint256 index
) external returns (address)
Parameters
Name | Type | Description |
---|---|---|
index | uint256 |
_addRewardsDistributor
function _addRewardsDistributor(
address distributor
) external returns (uint256)
Parameters
Name | Type | Description |
---|---|---|
distributor | address |
_setWhitelistEnforcement
function _setWhitelistEnforcement(
bool enforce
) external returns (uint256)
Parameters
Name | Type | Description |
---|---|---|
enforce | bool |
_setWhitelistStatuses
function _setWhitelistStatuses(
address[] suppliers,
bool[] statuses
) external returns (uint256)
Parameters
Name | Type | Description |
---|---|---|
suppliers | address[] | |
statuses | bool[] |
_unsupportMarket
function _unsupportMarket(
contract CToken cToken
) external returns (uint256)
Parameters
Name | Type | Description |
---|---|---|
cToken | contract CToken |
_toggleAutoImplementations
function _toggleAutoImplementations(
bool enabled
) public returns (uint256)
Parameters
Name | Type | Description |
---|---|---|
enabled | bool |