mErc20Upgradable
Inherits: mErc20, Initializable
Title: Upgradable mErc20
Author: Merge Layers Inc.
Upgradable flavor of mErc20 with initializer support
Functions
constructor
Disables initializers on deployment
Note: oz-upgrades-unsafe-allow: constructor
constructor() ;
_proxyInitialize
Initialize the new money market
function _proxyInitialize(
address underlying_,
address operator_,
address interestRateModel_,
uint256 initialExchangeRateMantissa_,
string memory name_,
string memory symbol_,
uint8 decimals_,
address payable admin_
) internal;
Parameters
| Name | Type | Description |
|---|---|---|
underlying_ | address | The address of the underlying asset |
operator_ | address | The address of the Operator |
interestRateModel_ | address | The address of the interest rate model |
initialExchangeRateMantissa_ | uint256 | The initial exchange rate, scaled by 1e18 |
name_ | string | ERC-20 name of this token |
symbol_ | string | ERC-20 symbol of this token |
decimals_ | uint8 | ERC-20 decimal precision of this token |
admin_ | address payable | Address of the administrator |
Errors
mErc20Upgradable_AdminNotValid
Error thrown when the admin is not valid
error mErc20Upgradable_AdminNotValid();