Overview ERC20
Price
$0.00 @ 0.000004 AVAX
Fully Diluted Market Cap
Total Supply:
408,468,883.343805 BLZZ
Holders:
2,362 addresses
Transfers:
-
Contract:
Decimals:
18
Official Site:
[ Download CSV Export ]
[ Download CSV Export ]
Market
Volume (24H) | : | $0.00 |
Market Capitalization | : | $0.00 |
Circulating Supply | : | 0.00 BLZZ |
Market Data Source: Coinmarketcap |
Update? Click here to update the token ICO / general information
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|---|---|---|---|---|
1 | ![]() | 0X0F34919404A290E71FC6A510CB4A6ACB8D764B24-0XB31F66AA3C1E785363F0875A1B74E27B85FD66C7 | $0.0001 0.0000000 Btc | $11.09 163,572.864 0X0F34919404A290E71FC6A510CB4A6ACB8D764B24 | 100.0000% |
Contract Name:
BlizzToken
Compiler Version
v0.7.6+commit.7338295f
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-11-07 */ // SPDX-License-Identifier: MIT pragma solidity 0.7.6; // Part: IERC20 /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // Part: SafeMath /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, 'SafeMath: addition overflow'); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, 'SafeMath: subtraction overflow'); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, 'SafeMath: multiplication overflow'); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, 'SafeMath: division by zero'); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, 'SafeMath: modulo by zero'); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } // File: BlizzToken.sol contract BlizzToken is IERC20 { using SafeMath for uint256; string public constant symbol = "BLZZ"; string public constant name = "Blizz.Finance Protocol Token"; uint256 public constant decimals = 18; uint256 public override totalSupply; uint256 public immutable maxTotalSupply; address public minter; uint256 public immutable startTime; address public treasury; uint256 public immutable maxTreasuryMintable; uint256 public treasuryMintedTokens; mapping(address => uint256) public override balanceOf; mapping(address => mapping(address => uint256)) public override allowance; constructor(uint256 _maxTotalSupply, uint256 _maxTreasuryMintable, uint256 _startTime) { maxTotalSupply = _maxTotalSupply; startTime = _startTime; treasury = msg.sender; maxTreasuryMintable = _maxTreasuryMintable; emit Transfer(address(0), msg.sender, 0); } function setMinter(address _minter) external returns (bool) { require(minter == address(0)); minter = _minter; return true; } function approve(address _spender, uint256 _value) external override returns (bool) { allowance[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); return true; } /** shared logic for transfer and transferFrom */ function _transfer(address _from, address _to, uint256 _value) internal { if (block.timestamp < startTime) { require(_from == treasury, "Cannot transfer before startTime"); } require(balanceOf[_from] >= _value, "Insufficient balance"); balanceOf[_from] = balanceOf[_from].sub(_value); balanceOf[_to] = balanceOf[_to].add(_value); emit Transfer(_from, _to, _value); } /** @notice Transfer tokens to a specified address @param _to The address to transfer to @param _value The amount to be transferred @return Success boolean */ function transfer(address _to, uint256 _value) public override returns (bool) { _transfer(msg.sender, _to, _value); return true; } /** @notice Transfer tokens from one address to another @param _from The address which you want to send tokens from @param _to The address which you want to transfer to @param _value The amount of tokens to be transferred @return Success boolean */ function transferFrom( address _from, address _to, uint256 _value ) public override returns (bool) { uint256 allowed = allowance[_from][msg.sender]; require(allowed >= _value, "Insufficient allowance"); if (allowed != uint(-1)) { allowance[_from][msg.sender] = allowed.sub(_value); } _transfer(_from, _to, _value); return true; } function mint(address _to, uint256 _value) external returns (bool) { if (msg.sender != minter) { require(msg.sender == treasury); treasuryMintedTokens = treasuryMintedTokens.add(_value); require(treasuryMintedTokens <= maxTreasuryMintable); } balanceOf[_to] = balanceOf[_to].add(_value); totalSupply = totalSupply.add(_value); require(maxTotalSupply >= totalSupply); emit Transfer(address(0), _to, _value); return true; } function setTreasury(address _treasury) external { require(msg.sender == treasury); treasury = _treasury; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"_maxTotalSupply","type":"uint256"},{"internalType":"uint256","name":"_maxTreasuryMintable","type":"uint256"},{"internalType":"uint256","name":"_startTime","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTreasuryMintable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"}],"name":"setMinter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasuryMintedTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60e060405234801561001057600080fd5b50604051610b6e380380610b6e8339818101604052606081101561003357600080fd5b508051602080830151604093840151608084905260a0819052600280546001600160a01b0319163390811790915560c08390528551600080825296519596939592949193927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a350505060805160a05160c051610a8d6100e16000398061055b52806106b152508061066d52806107cc5250806104f452806105d65250610a8d6000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c806370a08231116100a2578063a9059cbb11610071578063a9059cbb146102ce578063bdd06767146102fa578063dd62ed3e14610302578063f0f4426014610330578063fca3b5aa1461035857610116565b806370a082311461029057806378e97925146102b657806395d89b41146102be5780639d211f5c146102c657610116565b806323b872dd116100e957806323b872dd146102165780632ab4d0521461024c578063313ce5671461025457806340c10f191461025c57806361d027b31461028857610116565b806306fdde031461011b5780630754617214610198578063095ea7b3146101bc57806318160ddd146101fc575b600080fd5b61012361037e565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561015d578181015183820152602001610145565b50505050905090810190601f16801561018a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101a06103b7565b604080516001600160a01b039092168252519081900360200190f35b6101e8600480360360408110156101d257600080fd5b506001600160a01b0381351690602001356103c6565b604080519115158252519081900360200190f35b61020461042c565b60408051918252519081900360200190f35b6101e86004803603606081101561022c57600080fd5b506001600160a01b03813581169160208101359091169060400135610432565b6102046104f2565b610204610516565b6101e86004803603604081101561027257600080fd5b506001600160a01b03813516906020013561051b565b6101a061064a565b610204600480360360208110156102a657600080fd5b50356001600160a01b0316610659565b61020461066b565b61012361068f565b6102046106af565b6101e8600480360360408110156102e457600080fd5b506001600160a01b0381351690602001356106d3565b6102046106e9565b6102046004803603604081101561031857600080fd5b506001600160a01b03813581169160200135166106ef565b6103566004803603602081101561034657600080fd5b50356001600160a01b031661070c565b005b6101e86004803603602081101561036e57600080fd5b50356001600160a01b0316610745565b6040518060400160405280601c81526020017f426c697a7a2e46696e616e63652050726f746f636f6c20546f6b656e0000000081525081565b6001546001600160a01b031681565b3360008181526005602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b60005481565b6001600160a01b0383166000908152600560209081526040808320338452909152812054828110156104a4576040805162461bcd60e51b8152602060048201526016602482015275496e73756666696369656e7420616c6c6f77616e636560501b604482015290519081900360640190fd5b60001981146104dc576104b78184610781565b6001600160a01b03861660009081526005602090815260408083203384529091529020555b6104e78585856107ca565b506001949350505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b601281565b6001546000906001600160a01b03163314610585576002546001600160a01b0316331461054757600080fd5b6003546105549083610966565b60038190557f0000000000000000000000000000000000000000000000000000000000000000101561058557600080fd5b6001600160a01b0383166000908152600460205260409020546105a89083610966565b6001600160a01b038416600090815260046020526040812091909155546105cf9083610966565b60008190557f0000000000000000000000000000000000000000000000000000000000000000101561060057600080fd5b6040805183815290516001600160a01b038516916000917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a350600192915050565b6002546001600160a01b031681565b60046020526000908152604090205481565b7f000000000000000000000000000000000000000000000000000000000000000081565b6040518060400160405280600481526020016321262d2d60e11b81525081565b7f000000000000000000000000000000000000000000000000000000000000000081565b60006106e03384846107ca565b50600192915050565b60035481565b600560209081526000928352604080842090915290825290205481565b6002546001600160a01b0316331461072357600080fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6001546000906001600160a01b03161561075e57600080fd5b50600180546001600160a01b0383166001600160a01b0319909116178155919050565b60006107c383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506109c0565b9392505050565b7f0000000000000000000000000000000000000000000000000000000000000000421015610854576002546001600160a01b03848116911614610854576040805162461bcd60e51b815260206004820181905260248201527f43616e6e6f74207472616e73666572206265666f726520737461727454696d65604482015290519081900360640190fd5b6001600160a01b0383166000908152600460205260409020548111156108b8576040805162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b604482015290519081900360640190fd5b6001600160a01b0383166000908152600460205260409020546108db9082610781565b6001600160a01b03808516600090815260046020526040808220939093559084168152205461090a9082610966565b6001600160a01b0380841660008181526004602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000828201838110156107c3576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60008184841115610a4f5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610a145781810151838201526020016109fc565b50505050905090810190601f168015610a415780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50505090039056fea26469706673582212206545e0c9f788ba70cc48170651a60cf8145e4226e6a105d331647c2bcdec42c964736f6c634300070600330000000000000000000000000000000000000000033b2e3c9fd0803ce8000000000000000000000000000000000000000000000000295be96e64066972000000000000000000000000000000000000000000000000000000000000006188f520
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000033b2e3c9fd0803ce8000000000000000000000000000000000000000000000000295be96e64066972000000000000000000000000000000000000000000000000000000000000006188f520
-----Decoded View---------------
Arg [0] : _maxTotalSupply (uint256): 1000000000000000000000000000
Arg [1] : _maxTreasuryMintable (uint256): 50000000000000000000000000
Arg [2] : _startTime (uint256): 1636365600
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000033b2e3c9fd0803ce8000000
Arg [1] : 000000000000000000000000000000000000000000295be96e64066972000000
Arg [2] : 000000000000000000000000000000000000000000000000000000006188f520