Skip to main content

FuseGuardian

Functions

constructor

function constructor(
address _core,
contract Unitroller _comptroller
) public

Parameters

NameTypeDescription
_coreaddressaddress of core contract
_comptrollercontract Unitrollerthe fuse comptroller

_setMarketSupplyCaps

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

Set the given supply caps for the given cToken markets. Supplying that brings total underlying supply to or above supply cap will revert.

Admin or borrowCapGuardian function to set the supply caps. A supply cap of 0 corresponds to unlimited supplying.

Parameters

NameTypeDescription
cTokenscontract CToken[]The addresses of the markets (tokens) to change the supply caps for
newSupplyCapsuint256[]The new supply cap values in underlying to be set. A value of 0 corresponds to unlimited supplying.

_setMarketSupplyCapsByUnderlying

function _setMarketSupplyCapsByUnderlying(
address[] underlyings,
uint256[] newSupplyCaps
) external

Parameters

NameTypeDescription
underlyingsaddress[]
newSupplyCapsuint256[]

_setMarketSupplyCapsInternal

function _setMarketSupplyCapsInternal(
contract CToken[] cTokens,
uint256[] newSupplyCaps
) internal

Parameters

NameTypeDescription
cTokenscontract CToken[]
newSupplyCapsuint256[]

_underlyingToCTokens

function _underlyingToCTokens(
address[] underlyings
) internal returns (contract CToken[])

Parameters

NameTypeDescription
underlyingsaddress[]

_setMarketBorrowCaps

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

Set the given borrow caps for the given cToken markets. Borrowing that brings total borrows to or above borrow cap will revert.

Admin or borrowCapGuardian function to set the borrow caps. A borrow cap of 0 corresponds to unlimited borrowing.

Parameters

NameTypeDescription
cTokenscontract CToken[]The addresses of the markets (tokens) to change the borrow caps for
newBorrowCapsuint256[]The new borrow cap values in underlying to be set. A value of 0 corresponds to unlimited borrowing.

_setMarketBorrowCapsInternal

function _setMarketBorrowCapsInternal(
contract CToken[] cTokens,
uint256[] newBorrowCaps
) internal

Parameters

NameTypeDescription
cTokenscontract CToken[]
newBorrowCapsuint256[]

_setMarketBorrowCapsByUnderlying

function _setMarketBorrowCapsByUnderlying(
address[] underlyings,
uint256[] newBorrowCaps
) external

Parameters

NameTypeDescription
underlyingsaddress[]
newBorrowCapsuint256[]

_setBorrowCapGuardian

function _setBorrowCapGuardian(
address newBorrowCapGuardian
) external

Admin function to change the Borrow Cap Guardian

Parameters

NameTypeDescription
newBorrowCapGuardianaddressThe address of the new Borrow Cap Guardian

_setPauseGuardian

function _setPauseGuardian(
address newPauseGuardian
) external returns (uint256)

Admin function to change the Pause Guardian

Parameters

NameTypeDescription
newPauseGuardianaddressThe address of the new Pause Guardian

Return Values

NameTypeDescription
[0]uint256uint 0=success, otherwise a failure. (See enum Error for details)

_setMintPausedByUnderlying

function _setMintPausedByUnderlying(
address underlying,
bool state
) external returns (bool)

Parameters

NameTypeDescription
underlyingaddress
statebool

_setMintPaused

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

Parameters

NameTypeDescription
cTokencontract CToken
statebool

_setMintPausedInternal

function _setMintPausedInternal(
contract CToken cToken,
bool state
) internal returns (bool)

Parameters

NameTypeDescription
cTokencontract CToken
statebool

_setBorrowPausedByUnderlying

function _setBorrowPausedByUnderlying(
address underlying,
bool state
) external returns (bool)

Parameters

NameTypeDescription
underlyingaddress
statebool

_setBorrowPausedInternal

function _setBorrowPausedInternal(
contract CToken cToken,
bool state
) internal returns (bool)

Parameters

NameTypeDescription
cTokencontract CToken
statebool

_setBorrowPaused

function _setBorrowPaused(
contract CToken cToken,
bool state
) external returns (bool)

Parameters

NameTypeDescription
cTokencontract CToken
statebool

_setTransferPaused

function _setTransferPaused(
bool state
) external returns (bool)

Parameters

NameTypeDescription
statebool

_setSeizePaused

function _setSeizePaused(
bool state
) external returns (bool)

Parameters

NameTypeDescription
statebool