karma/contracts/karma-2-ERC20.sol

29 lines
1.1 KiB
Solidity
Raw Permalink Normal View History

2021-04-29 19:43:03 +00:00
// Copyright [2021] - [2021], [Shaun Reed] and [Karma] contributors
// SPDX-License-Identifier: MIT
pragma solidity >= 0.8.0;
// ----------------------------------------------------------------------------
// Import ERC Token Standard #20 Interface
// ETH EIP repo: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md
// ----------------------------------------------------------------------------
import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
2021-04-29 19:43:03 +00:00
// ----------------------------------------------------------------------------
// Karma Contract
2021-04-29 19:43:03 +00:00
// ----------------------------------------------------------------------------
contract KarmaV2 is Initializable, ERC20Upgradeable
{
function initialize(string memory name, string memory symbol, uint256 initialSupply) public virtual initializer {
__ERC20_init(name, symbol);
_mint(_msgSender(), initialSupply);
2021-04-29 19:43:03 +00:00
}
function isToken() public returns (bool)
{
return true;
}
2021-04-29 19:43:03 +00:00
}