mErc20Upgradable

Git Source

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

NameTypeDescription
underlying_addressThe address of the underlying asset
operator_addressThe address of the Operator
interestRateModel_addressThe address of the interest rate model
initialExchangeRateMantissa_uint256The initial exchange rate, scaled by 1e18
name_stringERC-20 name of this token
symbol_stringERC-20 symbol of this token
decimals_uint8ERC-20 decimal precision of this token
admin_address payableAddress of the administrator

Errors

mErc20Upgradable_AdminNotValid

Error thrown when the admin is not valid

error mErc20Upgradable_AdminNotValid();