11// SPDX-License-Identifier: MIT
2- pragma solidity 0.6.12 ;
2+ pragma solidity 0.7.4 ;
33
44import "./libraries/SafeMath.sol " ;
55
@@ -38,9 +38,10 @@ contract FlashToken is IERC20 {
3838 string public constant symbol = "FLASH " ;
3939 uint8 public constant decimals = 18 ;
4040
41- uint256 public override totalSupply;
41+ address public constant FLASH_PROTOCOL = address (0x0 );
42+ address public constant FLASH_CLAIM = address (0x0 );
4243
43- mapping ( address => bool ) public minters ;
44+ uint256 public override totalSupply ;
4445
4546 mapping (address => uint256 ) public override balanceOf;
4647 mapping (address => mapping (address => uint256 )) public override allowance;
@@ -54,14 +55,14 @@ contract FlashToken is IERC20 {
5455 event AuthorizationUsed (address indexed authorizer , bytes32 indexed nonce );
5556
5657 modifier onlyMinter {
57- require (minters[ msg .sender ] == true , "FlashToken:: NOT_MINTER " );
58+ require (msg .sender == FLASH_PROTOCOL || msg . sender == FLASH_CLAIM , "FlashToken:: NOT_MINTER " );
5859 _;
5960 }
6061
61- constructor (address flashProtocol , address flashClaim ) public {
62- minters[flashProtocol] = true ;
63- minters[flashClaim] = true ;
64- _mint (address ( 0 ), 0 * ( 10 ** 18 )); //address and amount will be updated
62+ constructor () {
63+ // BlockZero Labs: Foundation Fund
64+ _mint ( 0x842f8f6fB524996d0b660621DA895166E1ceA691 , 1200746000000000000000000 ) ;
65+ _mint (0x0945d9033147F27aDDFd3e7532ECD2100cb91032 , 1000000000000000000000000 );
6566 }
6667
6768 function _validateSignedData (
0 commit comments