// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.5.16; import "./JErc20.sol"; /** * @title Joeound's JErc20Immutable Contract * @notice JTokens which wrap an EIP-20 underlying and are immutable * @author Joeound */ contract JErc20Immutable is JErc20 { /** * @notice Construct a new money market * @param underlying_ The address of the underlying asset * @param joetroller_ The address of the Joetroller * @param interestRateModel_ The address of the interest rate model * @param initialExchangeRateMantissa_ The initial exchange rate, scaled by 1e18 * @param name_ ERC-20 name of this token * @param symbol_ ERC-20 symbol of this token * @param decimals_ ERC-20 decimal precision of this token * @param admin_ Address of the administrator of this token */ constructor( address underlying_, JoetrollerInterface joetroller_, InterestRateModel interestRateModel_, uint256 initialExchangeRateMantissa_, string memory name_, string memory symbol_, uint8 decimals_, address payable admin_ ) public { // Creator of the contract is admin during initialization admin = msg.sender; // Initialize the market initialize( underlying_, joetroller_, interestRateModel_, initialExchangeRateMantissa_, name_, symbol_, decimals_ ); // Set the proper admin now that initialization is done admin = admin_; } }