Skip to main content

FuseAdmin

Functions

constructor

function constructor(
address _core,
contract Unitroller _comptroller
) public

Parameters

NameTypeDescription
_coreaddressaddress of core contract
_comptrollercontract Unitrollerthe fuse comptroller

oracleAdd

function oracleAdd(
address[] underlyings,
address[] _oracles
) external

Parameters

NameTypeDescription
underlyingsaddress[]
_oraclesaddress[]

oracleChangeAdmin

function oracleChangeAdmin(
address newAdmin
) external

Parameters

NameTypeDescription
newAdminaddress

_addRewardsDistributor

function _addRewardsDistributor(
address distributor
) external

Parameters

NameTypeDescription
distributoraddress

_setWhitelistEnforcement

function _setWhitelistEnforcement(
bool enforce
) external

Parameters

NameTypeDescription
enforcebool

_setWhitelistStatuses

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

Parameters

NameTypeDescription
suppliersaddress[]
statusesbool[]

_setPriceOracle

function _setPriceOracle(
address newOracle
) public

Parameters

NameTypeDescription
newOracleaddress

_setCloseFactor

function _setCloseFactor(
uint256 newCloseFactorMantissa
) external

Parameters

NameTypeDescription
newCloseFactorMantissauint256

_setCollateralFactor

function _setCollateralFactor(
contract CToken cToken,
uint256 newCollateralFactorMantissa
) public

Parameters

NameTypeDescription
cTokencontract CToken
newCollateralFactorMantissauint256

_setLiquidationIncentive

function _setLiquidationIncentive(
uint256 newLiquidationIncentiveMantissa
) external

Parameters

NameTypeDescription
newLiquidationIncentiveMantissauint256

_deployMarket

function _deployMarket(
address underlying,
address irm,
string name,
string symbol,
address impl,
bytes data,
uint256 reserveFactor,
uint256 adminFee,
uint256 collateralFactorMantissa
) external

Parameters

NameTypeDescription
underlyingaddress
irmaddress
namestring
symbolstring
impladdress
databytes
reserveFactoruint256
adminFeeuint256
collateralFactorMantissauint256

_unsupportMarket

function _unsupportMarket(
contract CToken cToken
) external

Parameters

NameTypeDescription
cTokencontract CToken

_toggleAutoImplementations

function _toggleAutoImplementations(
bool enabled
) public

Parameters

NameTypeDescription
enabledbool

_setPendingAdmin

function _setPendingAdmin(
address newPendingAdmin
) public

Parameters

NameTypeDescription
newPendingAdminaddress

_acceptAdmin

function _acceptAdmin() public

Custom Errors

ComptrollerError

error ComptrollerError()