mTokenConfiguration
Inherits: mTokenStorage
Functions
onlyAdmin
modifier onlyAdmin();
setSameChainFlowState
Sets a new same chain flow state
function setSameChainFlowState(bool _newState) external onlyAdmin;
setOperator
Sets a new Operator for the market
Admin function to set a new operator
function setOperator(address _operator) external onlyAdmin;
setRolesOperator
Sets a new Operator for the market
Admin function to set a new operator
function setRolesOperator(address _roles) external onlyAdmin;
setInterestRateModel
accrues interest and updates the interest rate model using _setInterestRateModelFresh
Admin function to accrue interest and update the interest rate model
function setInterestRateModel(address newInterestRateModel) external onlyAdmin;
Parameters
Name | Type | Description |
---|---|---|
newInterestRateModel | address | the new interest rate model to use |
setBorrowRateMaxMantissa
function setBorrowRateMaxMantissa(uint256 maxMantissa) external onlyAdmin;
setReserveFactor
accrues interest and sets a new reserve factor for the protocol using _setReserveFactorFresh
Admin function to accrue interest and set a new reserve factor
function setReserveFactor(uint256 newReserveFactorMantissa) external onlyAdmin;
setPendingAdmin
Begins transfer of admin rights. The newPendingAdmin must call _acceptAdmin
to finalize the transfer.
Admin function to begin change of admin. The newPendingAdmin must call _acceptAdmin
to finalize the transfer.
function setPendingAdmin(address payable newPendingAdmin) external onlyAdmin;
Parameters
Name | Type | Description |
---|---|---|
newPendingAdmin | address payable | New pending admin. |
acceptAdmin
Accepts transfer of admin rights. msg.sender must be pendingAdmin
Admin function for pending admin to accept role and update admin
function acceptAdmin() external;
_setInterestRateModel
updates the interest rate model (*requires fresh interest accrual)
Admin function to update the interest rate model
function _setInterestRateModel(address newInterestRateModel) internal;
Parameters
Name | Type | Description |
---|---|---|
newInterestRateModel | address | the new interest rate model to use |
_setOperator
function _setOperator(address _operator) internal;