Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
49,976,196.99437450368867 CREDIT
Holders
605
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
21,742.011164065992 CREDITValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
CREDITs
Compiler Version
v0.8.11+commit.d7f03943
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./IERC20Metadata.sol"; import "./Context.sol"; import "./Ownable_new.sol"; import "./SafeMath_new.sol"; import "./SignatureParser_new.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract CREDITs is Context, IERC20, IERC20Metadata, SignatureParser, Ownable { using SafeMath for uint256; mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; mapping(address => uint256) public nonces; mapping(address => bool) public claimedAirdrop; mapping(address => bool) public whitelist; uint256 private _totalSupply; uint256 public totalMinted; uint256 immutable ETH_CAP = 10_000; uint256 immutable ETH_PRICE = 0.04 ether; uint256 immutable TOKEN_PRICE = 25_000*10**18; uint256 immutable TOKEN_CAP = 1_500_000; uint256 public immutable MAX_TOTAL_SUPPLY = 500_000_000_000*10**18; string private _name; string private _symbol; bool public isMinting; bool public isTokenMinting; bool public isWhitelistMinting; event Claim(address indexed, address indexed, uint256 indexed); /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; isMinting = false; isTokenMinting = false; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); require(_totalSupply.add(amount) <= MAX_TOTAL_SUPPLY, "Max limit"); nonces[msg.sender] += 1; _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); } function mintCredits(address account, uint256 amount, uint256 nonce, bytes memory signature) external virtual { require(account != address(0), "ERC20: mint to the zero address"); require(_isValidSignature(account, amount, nonce, signature), "Invalid Signature"); _mint(account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); require(account == msg.sender, "Can't burn others stuff dude"); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } function _encodeForSign(address receiver, uint256 amount, uint256 nonce) internal pure returns (bytes32) { bytes memory hashed = abi.encodePacked(receiver, amount, nonce); return keccak256(hashed); } function _encodeForSign(address receiver, uint256 amount) internal pure returns (bytes32) { bytes memory hashed = abi.encodePacked(receiver, amount); return keccak256(hashed); } function _hashForRecover (bytes32 message) internal pure returns (bytes32){ bytes memory prefix2 = "\x19Ethereum Signed Message:\n32"; bytes32 signHash = keccak256(abi.encodePacked(prefix2, message)); return signHash; } function _isValidSignature (address receiver, uint256 amount, uint256 nonce, bytes memory signature) internal view returns (bool){ require(msg.sender == receiver, "Invalid sender"); require(nonce == nonces[receiver], "Invalid nonce"); bytes32 encodedForSign = _encodeForSign(receiver, amount, nonce); bytes32 signedMessage = _hashForRecover(encodedForSign); address addr = _signatureRecover(signedMessage, signature); require(signer == addr, 'Invalid Signature'); return signer == addr; } function _isValidSignature (address receiver, uint256 amount, bytes memory signature) internal view returns (bool){ require(msg.sender == receiver, "Invalid sender"); bytes32 encodedForSign = _encodeForSign(receiver, amount); bytes32 signedMessage = _hashForRecover(encodedForSign); address addr = _signatureRecover(signedMessage, signature); require(signer == addr, 'Invalid Signature'); return signer == addr; } function withdrawalTokens() onlyOwner external { _transfer(address(this), msg.sender, _balances[address(this)].div(40)); _burn(address(this), _balances[address(this)]); } function withdrawalETH (uint256 _amount) onlyOwner external { require(_amount <= address(this).balance, "Cannot withdraw"); payable(msg.sender).transfer(_amount); } function setMinting (bool val) onlyOwner external { isMinting = val; } function setTokenMinting (bool val) onlyOwner external { isTokenMinting = val; } function setWhitelist (bool val) onlyOwner external { isWhitelistMinting = val; } function mint() external payable { require(isMinting == true, "Can't mint right now"); require(msg.value.div(ETH_PRICE) <= 25, "Can't mint so much!"); require(msg.value >= ETH_PRICE, "Not enough ETH sent."); require(totalMinted < ETH_CAP, "No longer minting."); totalMinted = totalMinted.add(msg.value.div(ETH_PRICE)); } function mintWithTokens(uint256 amount) external payable { require(isTokenMinting == true, "Can't mint right now"); require(amount <= 25, "Can't mint so much!"); require(_balances[msg.sender] >= TOKEN_PRICE.mul(amount), "Not enough Tokens."); require(totalMinted < TOKEN_CAP, "No longer minting."); _transfer(msg.sender, address(this), TOKEN_PRICE.mul(amount)); totalMinted = totalMinted.add(amount); } function mintWhitelist() external payable { require(isWhitelistMinting == true, "Can't mint right now"); require(whitelist[msg.sender] == true, "Not whitelisted!"); require(msg.value >= ETH_PRICE, "Not enough ETH sent."); require(msg.value.div(ETH_PRICE) <= 25, "Can't mint so much!"); require(totalMinted < ETH_CAP, "No longer minting."); totalMinted = totalMinted.add(msg.value.div(ETH_PRICE)); } function addWhitelist(address[] memory people) onlyOwner external { for(uint256 i; i < people.length; i++){ whitelist[people[i]] = true; } } function claimAirdrop(address receiver, uint256 amount, bytes memory signature ) external { require(claimedAirdrop[msg.sender] == false, "Can't claim again."); require(_isValidSignature(receiver, amount, signature), "Invalid Signature"); claimedAirdrop[msg.sender] = true; _mint(receiver, amount); } receive() external payable { } fallback() external payable { } }
pragma solidity ^0.8.0; contract SignatureParser { address public signer = 0x32f33EE03c50C3bFA057B5fd38aeb872A301c2cc; function _breakUpSignature (bytes memory signature) internal pure returns (uint8 v, bytes32 r, bytes32 s) { assembly { r := mload(add(signature, 32)) s := mload(add(add(signature, 32), 32)) v := mload(add(add(signature, 64), 1)) } } function _signatureRecover (bytes32 hash, bytes memory signature) internal pure returns (address) { uint8 v; bytes32 r; bytes32 s; (v,r,s) = _breakUpSignature(signature); return ecrecover(hash, v, r, s); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // 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 (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @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) { return a + b; } /** * @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 a - b; } /** * @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) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting 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 a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting 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) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * 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) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (access/Ownable.sol) pragma solidity ^0.8.0; import "./Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal pure virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @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); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"}],"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":"","type":"address"},{"indexed":true,"internalType":"address","name":"","type":"address"},{"indexed":true,"internalType":"uint256","name":"","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","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"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"MAX_TOTAL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"people","type":"address[]"}],"name":"addWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"claimAirdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimedAirdrop","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isMinting","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isTokenMinting","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isWhitelistMinting","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mintCredits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintWhitelist","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintWithTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"val","type":"bool"}],"name":"setMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"val","type":"bool"}],"name":"setTokenMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"val","type":"bool"}],"name":"setWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawalETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawalTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
610120604052600080546001600160a01b0319167332f33ee03c50c3bfa057b5fd38aeb872a301c2cc179055612710608052668e1bc9bf04000060a05269054b40b1f852bda0000060c0526216e36060e0526c064f964e68233a76f520000000610100523480156200007057600080fd5b5060405162002438380380620024388339810160408190526200009391620002a2565b6200009e33620000dd565b8151620000b39060099060208501906200012f565b508051620000c990600a9060208401906200012f565b5050600b805461ffff191690555062000349565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200013d906200030c565b90600052602060002090601f016020900481019282620001615760008555620001ac565b82601f106200017c57805160ff1916838001178555620001ac565b82800160010185558215620001ac579182015b82811115620001ac5782518255916020019190600101906200018f565b50620001ba929150620001be565b5090565b5b80821115620001ba5760008155600101620001bf565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620001fd57600080fd5b81516001600160401b03808211156200021a576200021a620001d5565b604051601f8301601f19908116603f01168101908282118183101715620002455762000245620001d5565b816040528381526020925086838588010111156200026257600080fd5b600091505b8382101562000286578582018301518183018401529082019062000267565b83821115620002985760008385830101525b9695505050505050565b60008060408385031215620002b657600080fd5b82516001600160401b0380821115620002ce57600080fd5b620002dc86838701620001eb565b93506020850151915080821115620002f357600080fd5b506200030285828601620001eb565b9150509250929050565b600181811c908216806200032157607f821691505b602082108114156200034357634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e05161010051612080620003b86000396000818161035b01526115f50152600061095f0152600081816108e501526109cd0152600081816107480152818161078c0152818161086001528181610b3a0152610ba7015260006107f301526120806000f3fe6080604052600436106101e55760003560e01c8063854962f611610101578063a9059cbb1161009a578063edac985b1161006c578063edac985b146105d4578063f2fde38b146105f4578063f85e8b3d14610614578063f8a0dd5714610633578063f958a6571461064857005b8063a9059cbb1461052e578063b4c7f0661461054e578063d4700fc01461056e578063dd62ed3e1461058e57005b80639b19251a116100d35780639b19251a146104a8578063a2309ff8146104d8578063a457c2d7146104ee578063a6c0bd421461050e57005b8063854962f6146104355780638da5cb5b1461045557806395d89b41146104735780639860851c1461048857005b80632a8092df1161017e5780633950935111610150578063395093511461037d57806370a082311461039d578063715018a6146103d35780637211fc9a146103e85780637ecebe001461040857005b80632a8092df1461030b5780632d3df31f14610325578063313ce5671461032d57806333039d3d1461034957005b80631a4feae3116101b75780631a4feae3146102705780631b93f66d14610283578063238ac933146102b357806323b872dd146102eb57005b806306fdde03146101ee578063095ea7b3146102195780631249c58b1461024957806318160ddd1461025157005b366101ec57005b005b3480156101fa57600080fd5b50610203610668565b6040516102109190611b21565b60405180910390f35b34801561022557600080fd5b50610239610234366004611b70565b6106fa565b6040519015158152602001610210565b6101ec610710565b34801561025d57600080fd5b506007545b604051908152602001610210565b6101ec61027e366004611b9a565b610892565b34801561028f57600080fd5b5061023961029e366004611bb3565b60056020526000908152604090205460ff1681565b3480156102bf57600080fd5b506000546102d3906001600160a01b031681565b6040516001600160a01b039091168152602001610210565b3480156102f757600080fd5b50610239610306366004611bce565b610a0a565b34801561031757600080fd5b50600b546102399060ff1681565b6101ec610ab4565b34801561033957600080fd5b5060405160128152602001610210565b34801561035557600080fd5b506102627f000000000000000000000000000000000000000000000000000000000000000081565b34801561038957600080fd5b50610239610398366004611b70565b610be9565b3480156103a957600080fd5b506102626103b8366004611bb3565b6001600160a01b031660009081526002602052604090205490565b3480156103df57600080fd5b506101ec610c25565b3480156103f457600080fd5b506101ec610403366004611cc1565b610c5b565b34801561041457600080fd5b50610262610423366004611bb3565b60046020526000908152604090205481565b34801561044157600080fd5b506101ec610450366004611d18565b610d00565b34801561046157600080fd5b506001546001600160a01b03166102d3565b34801561047f57600080fd5b50610203610d8e565b34801561049457600080fd5b506101ec6104a3366004611d79565b610d9d565b3480156104b457600080fd5b506102396104c3366004611bb3565b60066020526000908152604090205460ff1681565b3480156104e457600080fd5b5061026260085481565b3480156104fa57600080fd5b50610239610509366004611b70565b610de1565b34801561051a57600080fd5b50600b546102399062010000900460ff1681565b34801561053a57600080fd5b50610239610549366004611b70565b610e7a565b34801561055a57600080fd5b506101ec610569366004611d79565b610e87565b34801561057a57600080fd5b506101ec610589366004611b9a565b610ec4565b34801561059a57600080fd5b506102626105a9366004611d9b565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b3480156105e057600080fd5b506101ec6105ef366004611dce565b610f61565b34801561060057600080fd5b506101ec61060f366004611bb3565b610ff3565b34801561062057600080fd5b50600b5461023990610100900460ff1681565b34801561063f57600080fd5b506101ec61108e565b34801561065457600080fd5b506101ec610663366004611d79565b6110f4565b60606009805461067790611e7b565b80601f01602080910402602001604051908101604052809291908181526020018280546106a390611e7b565b80156106f05780601f106106c5576101008083540402835291602001916106f0565b820191906000526020600020905b8154815290600101906020018083116106d357829003601f168201915b5050505050905090565b600061070733848461113a565b50600192915050565b600b5460ff1615156001146107405760405162461bcd60e51b815260040161073790611eb6565b60405180910390fd5b601961076c347f000000000000000000000000000000000000000000000000000000000000000061125f565b111561078a5760405162461bcd60e51b815260040161073790611ee4565b7f00000000000000000000000000000000000000000000000000000000000000003410156107f15760405162461bcd60e51b81526020600482015260146024820152732737ba1032b737bab3b41022aa241039b2b73a1760611b6044820152606401610737565b7f0000000000000000000000000000000000000000000000000000000000000000600854106108575760405162461bcd60e51b81526020600482015260126024820152712737903637b733b2b91036b4b73a34b7339760711b6044820152606401610737565b61088d610884347f000000000000000000000000000000000000000000000000000000000000000061125f565b60085490611272565b600855565b600b5460ff6101009091041615156001146108bf5760405162461bcd60e51b815260040161073790611eb6565b60198111156108e05760405162461bcd60e51b815260040161073790611ee4565b61090a7f00000000000000000000000000000000000000000000000000000000000000008261127e565b33600090815260026020526040902054101561095d5760405162461bcd60e51b81526020600482015260126024820152712737ba1032b737bab3b4102a37b5b2b7399760711b6044820152606401610737565b7f0000000000000000000000000000000000000000000000000000000000000000600854106109c35760405162461bcd60e51b81526020600482015260126024820152712737903637b733b2b91036b4b73a34b7339760711b6044820152606401610737565b6109f733306109f27f00000000000000000000000000000000000000000000000000000000000000008561127e565b61128a565b600854610a049082611272565b60085550565b6000610a1784848461128a565b6001600160a01b038416600090815260036020908152604080832033845290915290205482811015610a9c5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610737565b610aa9853385840361113a565b506001949350505050565b600b5462010000900460ff161515600114610ae15760405162461bcd60e51b815260040161073790611eb6565b3360009081526006602052604090205460ff161515600114610b385760405162461bcd60e51b815260206004820152601060248201526f4e6f742077686974656c69737465642160801b6044820152606401610737565b7f0000000000000000000000000000000000000000000000000000000000000000341015610b9f5760405162461bcd60e51b81526020600482015260146024820152732737ba1032b737bab3b41022aa241039b2b73a1760611b6044820152606401610737565b6019610bcb347f000000000000000000000000000000000000000000000000000000000000000061125f565b11156107f15760405162461bcd60e51b815260040161073790611ee4565b3360008181526003602090815260408083206001600160a01b03871684529091528120549091610707918590610c20908690611f27565b61113a565b6001546001600160a01b03163314610c4f5760405162461bcd60e51b815260040161073790611f3f565b610c596000611459565b565b3360009081526005602052604090205460ff1615610cb05760405162461bcd60e51b815260206004820152601260248201527121b0b713ba1031b630b4b69030b3b0b4b71760711b6044820152606401610737565b610cbb8383836114ab565b610cd75760405162461bcd60e51b815260040161073790611f74565b336000908152600560205260409020805460ff19166001179055610cfb838361159a565b505050565b6001600160a01b038416610d565760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610737565b610d6284848484611709565b610d7e5760405162461bcd60e51b815260040161073790611f74565b610d88848461159a565b50505050565b6060600a805461067790611e7b565b6001546001600160a01b03163314610dc75760405162461bcd60e51b815260040161073790611f3f565b600b80549115156101000261ff0019909216919091179055565b3360009081526003602090815260408083206001600160a01b038616845290915281205482811015610e635760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610737565b610e70338585840361113a565b5060019392505050565b600061070733848461128a565b6001546001600160a01b03163314610eb15760405162461bcd60e51b815260040161073790611f3f565b600b805460ff1916911515919091179055565b6001546001600160a01b03163314610eee5760405162461bcd60e51b815260040161073790611f3f565b47811115610f305760405162461bcd60e51b815260206004820152600f60248201526e43616e6e6f7420776974686472617760881b6044820152606401610737565b604051339082156108fc029083906000818181858888f19350505050158015610f5d573d6000803e3d6000fd5b5050565b6001546001600160a01b03163314610f8b5760405162461bcd60e51b815260040161073790611f3f565b60005b8151811015610f5d57600160066000848481518110610faf57610faf611f9f565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580610feb81611fb5565b915050610f8e565b6001546001600160a01b0316331461101d5760405162461bcd60e51b815260040161073790611f3f565b6001600160a01b0381166110825760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610737565b61108b81611459565b50565b6001546001600160a01b031633146110b85760405162461bcd60e51b815260040161073790611f3f565b306000818152600260205260409020546110da919033906109f290602861125f565b30600081815260026020526040902054610c599190611857565b6001546001600160a01b0316331461111e5760405162461bcd60e51b815260040161073790611f3f565b600b8054911515620100000262ff000019909216919091179055565b6001600160a01b03831661119c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610737565b6001600160a01b0382166111fd5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610737565b6001600160a01b0383811660008181526003602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b600061126b8284611fd0565b9392505050565b600061126b8284611f27565b600061126b8284611ff2565b6001600160a01b0383166112ee5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610737565b6001600160a01b0382166113505760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610737565b6001600160a01b038316600090815260026020526040902054818110156113c85760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610737565b6001600160a01b038085166000908152600260205260408082208585039055918516815290812080548492906113ff908490611f27565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161144b91815260200190565b60405180910390a350505050565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000336001600160a01b038516146114f65760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b21039b2b73232b960911b6044820152606401610737565b604080516bffffffffffffffffffffffff19606087901b16602080830191909152603480830187905283518084039091018152605490920190925280519101206000611541826119f5565b9050600061154f8286611a65565b6000549091506001600160a01b0380831691161461157f5760405162461bcd60e51b815260040161073790611f74565b6000546001600160a01b039182169116149695505050505050565b6001600160a01b0382166115f05760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610737565b6007547f00000000000000000000000000000000000000000000000000000000000000009061161f9083611272565b11156116595760405162461bcd60e51b815260206004820152600960248201526813585e081b1a5b5a5d60ba1b6044820152606401610737565b336000908152600460205260408120805460019290611679908490611f27565b9250508190555080600760008282546116929190611f27565b90915550506001600160a01b038216600090815260026020526040812080548392906116bf908490611f27565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6000336001600160a01b038616146117545760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b21039b2b73232b960911b6044820152606401610737565b6001600160a01b03851660009081526004602052604090205483146117ab5760405162461bcd60e51b815260206004820152600d60248201526c496e76616c6964206e6f6e636560981b6044820152606401610737565b604080516bffffffffffffffffffffffff19606088901b16602080830191909152603482018790526054808301879052835180840390910181526074909201909252805191012060006117fd826119f5565b9050600061180b8286611a65565b6000549091506001600160a01b0380831691161461183b5760405162461bcd60e51b815260040161073790611f74565b6000546001600160a01b03918216911614979650505050505050565b6001600160a01b0382166118b75760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610737565b6001600160a01b038216331461190f5760405162461bcd60e51b815260206004820152601c60248201527f43616e2774206275726e206f74686572732073747566662064756465000000006044820152606401610737565b6001600160a01b038216600090815260026020526040902054818110156119835760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610737565b6001600160a01b03831660009081526002602052604081208383039055600780548492906119b2908490612011565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001611252565b6000806040518060400160405280601c81526020017f19457468657265756d205369676e6564204d6573736167653a0a333200000000815250905060008184604051602001611a45929190612028565b60408051601f198184030181529190528051602090910120949350505050565b600080600080611a85856020810151604082015160419092015192909190565b6040805160008152602081018083528b905260ff8516918101919091526060810183905260808101829052929550909350915060019060a0016020604051602081039080840390855afa158015611ae0573d6000803e3d6000fd5b5050604051601f190151979650505050505050565b60005b83811015611b10578181015183820152602001611af8565b83811115610d885750506000910152565b6020815260008251806020840152611b40816040850160208701611af5565b601f01601f19169190910160400192915050565b80356001600160a01b0381168114611b6b57600080fd5b919050565b60008060408385031215611b8357600080fd5b611b8c83611b54565b946020939093013593505050565b600060208284031215611bac57600080fd5b5035919050565b600060208284031215611bc557600080fd5b61126b82611b54565b600080600060608486031215611be357600080fd5b611bec84611b54565b9250611bfa60208501611b54565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611c4957611c49611c0a565b604052919050565b600082601f830112611c6257600080fd5b813567ffffffffffffffff811115611c7c57611c7c611c0a565b611c8f601f8201601f1916602001611c20565b818152846020838601011115611ca457600080fd5b816020850160208301376000918101602001919091529392505050565b600080600060608486031215611cd657600080fd5b611cdf84611b54565b925060208401359150604084013567ffffffffffffffff811115611d0257600080fd5b611d0e86828701611c51565b9150509250925092565b60008060008060808587031215611d2e57600080fd5b611d3785611b54565b93506020850135925060408501359150606085013567ffffffffffffffff811115611d6157600080fd5b611d6d87828801611c51565b91505092959194509250565b600060208284031215611d8b57600080fd5b8135801515811461126b57600080fd5b60008060408385031215611dae57600080fd5b611db783611b54565b9150611dc560208401611b54565b90509250929050565b60006020808385031215611de157600080fd5b823567ffffffffffffffff80821115611df957600080fd5b818501915085601f830112611e0d57600080fd5b813581811115611e1f57611e1f611c0a565b8060051b9150611e30848301611c20565b8181529183018401918481019088841115611e4a57600080fd5b938501935b83851015611e6f57611e6085611b54565b82529385019390850190611e4f565b98975050505050505050565b600181811c90821680611e8f57607f821691505b60208210811415611eb057634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526014908201527343616e2774206d696e74207269676874206e6f7760601b604082015260600190565b60208082526013908201527243616e2774206d696e7420736f206d7563682160681b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115611f3a57611f3a611f11565b500190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b602080825260119082015270496e76616c6964205369676e617475726560781b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000600019821415611fc957611fc9611f11565b5060010190565b600082611fed57634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161561200c5761200c611f11565b500290565b60008282101561202357612023611f11565b500390565b6000835161203a818460208801611af5565b919091019182525060200191905056fea2646970667358221220d8abaabc3b55bfc7f4b1463c687ded84bc2ab1c52417749abe79b1cac21b2baa64736f6c634300080b0033000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000012426174746c65537461722043524544495473000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064352454449540000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106101e55760003560e01c8063854962f611610101578063a9059cbb1161009a578063edac985b1161006c578063edac985b146105d4578063f2fde38b146105f4578063f85e8b3d14610614578063f8a0dd5714610633578063f958a6571461064857005b8063a9059cbb1461052e578063b4c7f0661461054e578063d4700fc01461056e578063dd62ed3e1461058e57005b80639b19251a116100d35780639b19251a146104a8578063a2309ff8146104d8578063a457c2d7146104ee578063a6c0bd421461050e57005b8063854962f6146104355780638da5cb5b1461045557806395d89b41146104735780639860851c1461048857005b80632a8092df1161017e5780633950935111610150578063395093511461037d57806370a082311461039d578063715018a6146103d35780637211fc9a146103e85780637ecebe001461040857005b80632a8092df1461030b5780632d3df31f14610325578063313ce5671461032d57806333039d3d1461034957005b80631a4feae3116101b75780631a4feae3146102705780631b93f66d14610283578063238ac933146102b357806323b872dd146102eb57005b806306fdde03146101ee578063095ea7b3146102195780631249c58b1461024957806318160ddd1461025157005b366101ec57005b005b3480156101fa57600080fd5b50610203610668565b6040516102109190611b21565b60405180910390f35b34801561022557600080fd5b50610239610234366004611b70565b6106fa565b6040519015158152602001610210565b6101ec610710565b34801561025d57600080fd5b506007545b604051908152602001610210565b6101ec61027e366004611b9a565b610892565b34801561028f57600080fd5b5061023961029e366004611bb3565b60056020526000908152604090205460ff1681565b3480156102bf57600080fd5b506000546102d3906001600160a01b031681565b6040516001600160a01b039091168152602001610210565b3480156102f757600080fd5b50610239610306366004611bce565b610a0a565b34801561031757600080fd5b50600b546102399060ff1681565b6101ec610ab4565b34801561033957600080fd5b5060405160128152602001610210565b34801561035557600080fd5b506102627f00000000000000000000000000000000000000064f964e68233a76f52000000081565b34801561038957600080fd5b50610239610398366004611b70565b610be9565b3480156103a957600080fd5b506102626103b8366004611bb3565b6001600160a01b031660009081526002602052604090205490565b3480156103df57600080fd5b506101ec610c25565b3480156103f457600080fd5b506101ec610403366004611cc1565b610c5b565b34801561041457600080fd5b50610262610423366004611bb3565b60046020526000908152604090205481565b34801561044157600080fd5b506101ec610450366004611d18565b610d00565b34801561046157600080fd5b506001546001600160a01b03166102d3565b34801561047f57600080fd5b50610203610d8e565b34801561049457600080fd5b506101ec6104a3366004611d79565b610d9d565b3480156104b457600080fd5b506102396104c3366004611bb3565b60066020526000908152604090205460ff1681565b3480156104e457600080fd5b5061026260085481565b3480156104fa57600080fd5b50610239610509366004611b70565b610de1565b34801561051a57600080fd5b50600b546102399062010000900460ff1681565b34801561053a57600080fd5b50610239610549366004611b70565b610e7a565b34801561055a57600080fd5b506101ec610569366004611d79565b610e87565b34801561057a57600080fd5b506101ec610589366004611b9a565b610ec4565b34801561059a57600080fd5b506102626105a9366004611d9b565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b3480156105e057600080fd5b506101ec6105ef366004611dce565b610f61565b34801561060057600080fd5b506101ec61060f366004611bb3565b610ff3565b34801561062057600080fd5b50600b5461023990610100900460ff1681565b34801561063f57600080fd5b506101ec61108e565b34801561065457600080fd5b506101ec610663366004611d79565b6110f4565b60606009805461067790611e7b565b80601f01602080910402602001604051908101604052809291908181526020018280546106a390611e7b565b80156106f05780601f106106c5576101008083540402835291602001916106f0565b820191906000526020600020905b8154815290600101906020018083116106d357829003601f168201915b5050505050905090565b600061070733848461113a565b50600192915050565b600b5460ff1615156001146107405760405162461bcd60e51b815260040161073790611eb6565b60405180910390fd5b601961076c347f000000000000000000000000000000000000000000000000008e1bc9bf04000061125f565b111561078a5760405162461bcd60e51b815260040161073790611ee4565b7f000000000000000000000000000000000000000000000000008e1bc9bf0400003410156107f15760405162461bcd60e51b81526020600482015260146024820152732737ba1032b737bab3b41022aa241039b2b73a1760611b6044820152606401610737565b7f0000000000000000000000000000000000000000000000000000000000002710600854106108575760405162461bcd60e51b81526020600482015260126024820152712737903637b733b2b91036b4b73a34b7339760711b6044820152606401610737565b61088d610884347f000000000000000000000000000000000000000000000000008e1bc9bf04000061125f565b60085490611272565b600855565b600b5460ff6101009091041615156001146108bf5760405162461bcd60e51b815260040161073790611eb6565b60198111156108e05760405162461bcd60e51b815260040161073790611ee4565b61090a7f00000000000000000000000000000000000000000000054b40b1f852bda000008261127e565b33600090815260026020526040902054101561095d5760405162461bcd60e51b81526020600482015260126024820152712737ba1032b737bab3b4102a37b5b2b7399760711b6044820152606401610737565b7f000000000000000000000000000000000000000000000000000000000016e360600854106109c35760405162461bcd60e51b81526020600482015260126024820152712737903637b733b2b91036b4b73a34b7339760711b6044820152606401610737565b6109f733306109f27f00000000000000000000000000000000000000000000054b40b1f852bda000008561127e565b61128a565b600854610a049082611272565b60085550565b6000610a1784848461128a565b6001600160a01b038416600090815260036020908152604080832033845290915290205482811015610a9c5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610737565b610aa9853385840361113a565b506001949350505050565b600b5462010000900460ff161515600114610ae15760405162461bcd60e51b815260040161073790611eb6565b3360009081526006602052604090205460ff161515600114610b385760405162461bcd60e51b815260206004820152601060248201526f4e6f742077686974656c69737465642160801b6044820152606401610737565b7f000000000000000000000000000000000000000000000000008e1bc9bf040000341015610b9f5760405162461bcd60e51b81526020600482015260146024820152732737ba1032b737bab3b41022aa241039b2b73a1760611b6044820152606401610737565b6019610bcb347f000000000000000000000000000000000000000000000000008e1bc9bf04000061125f565b11156107f15760405162461bcd60e51b815260040161073790611ee4565b3360008181526003602090815260408083206001600160a01b03871684529091528120549091610707918590610c20908690611f27565b61113a565b6001546001600160a01b03163314610c4f5760405162461bcd60e51b815260040161073790611f3f565b610c596000611459565b565b3360009081526005602052604090205460ff1615610cb05760405162461bcd60e51b815260206004820152601260248201527121b0b713ba1031b630b4b69030b3b0b4b71760711b6044820152606401610737565b610cbb8383836114ab565b610cd75760405162461bcd60e51b815260040161073790611f74565b336000908152600560205260409020805460ff19166001179055610cfb838361159a565b505050565b6001600160a01b038416610d565760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610737565b610d6284848484611709565b610d7e5760405162461bcd60e51b815260040161073790611f74565b610d88848461159a565b50505050565b6060600a805461067790611e7b565b6001546001600160a01b03163314610dc75760405162461bcd60e51b815260040161073790611f3f565b600b80549115156101000261ff0019909216919091179055565b3360009081526003602090815260408083206001600160a01b038616845290915281205482811015610e635760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610737565b610e70338585840361113a565b5060019392505050565b600061070733848461128a565b6001546001600160a01b03163314610eb15760405162461bcd60e51b815260040161073790611f3f565b600b805460ff1916911515919091179055565b6001546001600160a01b03163314610eee5760405162461bcd60e51b815260040161073790611f3f565b47811115610f305760405162461bcd60e51b815260206004820152600f60248201526e43616e6e6f7420776974686472617760881b6044820152606401610737565b604051339082156108fc029083906000818181858888f19350505050158015610f5d573d6000803e3d6000fd5b5050565b6001546001600160a01b03163314610f8b5760405162461bcd60e51b815260040161073790611f3f565b60005b8151811015610f5d57600160066000848481518110610faf57610faf611f9f565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580610feb81611fb5565b915050610f8e565b6001546001600160a01b0316331461101d5760405162461bcd60e51b815260040161073790611f3f565b6001600160a01b0381166110825760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610737565b61108b81611459565b50565b6001546001600160a01b031633146110b85760405162461bcd60e51b815260040161073790611f3f565b306000818152600260205260409020546110da919033906109f290602861125f565b30600081815260026020526040902054610c599190611857565b6001546001600160a01b0316331461111e5760405162461bcd60e51b815260040161073790611f3f565b600b8054911515620100000262ff000019909216919091179055565b6001600160a01b03831661119c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610737565b6001600160a01b0382166111fd5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610737565b6001600160a01b0383811660008181526003602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b600061126b8284611fd0565b9392505050565b600061126b8284611f27565b600061126b8284611ff2565b6001600160a01b0383166112ee5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610737565b6001600160a01b0382166113505760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610737565b6001600160a01b038316600090815260026020526040902054818110156113c85760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610737565b6001600160a01b038085166000908152600260205260408082208585039055918516815290812080548492906113ff908490611f27565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161144b91815260200190565b60405180910390a350505050565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000336001600160a01b038516146114f65760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b21039b2b73232b960911b6044820152606401610737565b604080516bffffffffffffffffffffffff19606087901b16602080830191909152603480830187905283518084039091018152605490920190925280519101206000611541826119f5565b9050600061154f8286611a65565b6000549091506001600160a01b0380831691161461157f5760405162461bcd60e51b815260040161073790611f74565b6000546001600160a01b039182169116149695505050505050565b6001600160a01b0382166115f05760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610737565b6007547f00000000000000000000000000000000000000064f964e68233a76f5200000009061161f9083611272565b11156116595760405162461bcd60e51b815260206004820152600960248201526813585e081b1a5b5a5d60ba1b6044820152606401610737565b336000908152600460205260408120805460019290611679908490611f27565b9250508190555080600760008282546116929190611f27565b90915550506001600160a01b038216600090815260026020526040812080548392906116bf908490611f27565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6000336001600160a01b038616146117545760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b21039b2b73232b960911b6044820152606401610737565b6001600160a01b03851660009081526004602052604090205483146117ab5760405162461bcd60e51b815260206004820152600d60248201526c496e76616c6964206e6f6e636560981b6044820152606401610737565b604080516bffffffffffffffffffffffff19606088901b16602080830191909152603482018790526054808301879052835180840390910181526074909201909252805191012060006117fd826119f5565b9050600061180b8286611a65565b6000549091506001600160a01b0380831691161461183b5760405162461bcd60e51b815260040161073790611f74565b6000546001600160a01b03918216911614979650505050505050565b6001600160a01b0382166118b75760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610737565b6001600160a01b038216331461190f5760405162461bcd60e51b815260206004820152601c60248201527f43616e2774206275726e206f74686572732073747566662064756465000000006044820152606401610737565b6001600160a01b038216600090815260026020526040902054818110156119835760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610737565b6001600160a01b03831660009081526002602052604081208383039055600780548492906119b2908490612011565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001611252565b6000806040518060400160405280601c81526020017f19457468657265756d205369676e6564204d6573736167653a0a333200000000815250905060008184604051602001611a45929190612028565b60408051601f198184030181529190528051602090910120949350505050565b600080600080611a85856020810151604082015160419092015192909190565b6040805160008152602081018083528b905260ff8516918101919091526060810183905260808101829052929550909350915060019060a0016020604051602081039080840390855afa158015611ae0573d6000803e3d6000fd5b5050604051601f190151979650505050505050565b60005b83811015611b10578181015183820152602001611af8565b83811115610d885750506000910152565b6020815260008251806020840152611b40816040850160208701611af5565b601f01601f19169190910160400192915050565b80356001600160a01b0381168114611b6b57600080fd5b919050565b60008060408385031215611b8357600080fd5b611b8c83611b54565b946020939093013593505050565b600060208284031215611bac57600080fd5b5035919050565b600060208284031215611bc557600080fd5b61126b82611b54565b600080600060608486031215611be357600080fd5b611bec84611b54565b9250611bfa60208501611b54565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611c4957611c49611c0a565b604052919050565b600082601f830112611c6257600080fd5b813567ffffffffffffffff811115611c7c57611c7c611c0a565b611c8f601f8201601f1916602001611c20565b818152846020838601011115611ca457600080fd5b816020850160208301376000918101602001919091529392505050565b600080600060608486031215611cd657600080fd5b611cdf84611b54565b925060208401359150604084013567ffffffffffffffff811115611d0257600080fd5b611d0e86828701611c51565b9150509250925092565b60008060008060808587031215611d2e57600080fd5b611d3785611b54565b93506020850135925060408501359150606085013567ffffffffffffffff811115611d6157600080fd5b611d6d87828801611c51565b91505092959194509250565b600060208284031215611d8b57600080fd5b8135801515811461126b57600080fd5b60008060408385031215611dae57600080fd5b611db783611b54565b9150611dc560208401611b54565b90509250929050565b60006020808385031215611de157600080fd5b823567ffffffffffffffff80821115611df957600080fd5b818501915085601f830112611e0d57600080fd5b813581811115611e1f57611e1f611c0a565b8060051b9150611e30848301611c20565b8181529183018401918481019088841115611e4a57600080fd5b938501935b83851015611e6f57611e6085611b54565b82529385019390850190611e4f565b98975050505050505050565b600181811c90821680611e8f57607f821691505b60208210811415611eb057634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526014908201527343616e2774206d696e74207269676874206e6f7760601b604082015260600190565b60208082526013908201527243616e2774206d696e7420736f206d7563682160681b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115611f3a57611f3a611f11565b500190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b602080825260119082015270496e76616c6964205369676e617475726560781b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000600019821415611fc957611fc9611f11565b5060010190565b600082611fed57634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161561200c5761200c611f11565b500290565b60008282101561202357612023611f11565b500390565b6000835161203a818460208801611af5565b919091019182525060200191905056fea2646970667358221220d8abaabc3b55bfc7f4b1463c687ded84bc2ab1c52417749abe79b1cac21b2baa64736f6c634300080b0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000012426174746c65537461722043524544495473000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064352454449540000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name_ (string): BattleStar CREDITs
Arg [1] : symbol_ (string): CREDIT
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [3] : 426174746c655374617220435245444954730000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [5] : 4352454449540000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.