false
true
0

Contract Address Details

0x34F0915a5f15a66Eba86F6a58bE1A471FB7836A7

Token
PulseDogecoin (PLSD)
Creator
0xc4e2ca–a814c1 at 0x345caa–ea9887
Balance
0 PLS ( )
Tokens
Fetching tokens...
Transactions
69,729 Transactions
Transfers
0 Transfers
Gas Used
0
Last Balance Update
25860844
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
Contract name:
PulseDogecoin




Optimization enabled
false
Compiler version
v0.8.7+commit.e28d00a7




EVM Version
default




Verified at
2024-09-07T21:22:03.247016Z

Contract source code

/**
 *Submitted for verification at Etherscan.io on 2022-04-20
*/

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v4.4/contracts/utils/Context.sol


// OpenZeppelin Contracts v4.4.1 (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 view virtual returns (bytes calldata) {
        return msg.data;
    }
}

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v4.4/contracts/token/ERC20/IERC20.sol


// OpenZeppelin Contracts v4.4.1 (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);
}

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v4.4/contracts/token/ERC20/extensions/IERC20Metadata.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;


/**
 * @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);
}

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v4.4/contracts/token/ERC20/ERC20.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;




/**
 * @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 ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @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_;
    }

    /**
     * @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");

        _beforeTokenTransfer(sender, recipient, amount);

        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);

        _afterTokenTransfer(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");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), 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");

        _beforeTokenTransfer(account, address(0), amount);

        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);

        _afterTokenTransfer(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);
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v4.4/contracts/utils/math/SafeMath.sol


// OpenZeppelin Contracts v4.4.1 (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;
        }
    }
}

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v4.4/contracts/utils/cryptography/MerkleProof.sol


// OpenZeppelin Contracts v4.4.1 (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }
        return computedHash;
    }
}

// File: contracts/PulseDogecoin.sol


pragma solidity ^0.8.0;

/*

 /$$$$$$$            /$$                     /$$$$$$$                                                    /$$          
| $$__  $$          | $$                    | $$__  $$                                                  |__/          
| $$  \ $$ /$$   /$$| $$  /$$$$$$$  /$$$$$$ | $$  \ $$  /$$$$$$   /$$$$$$   /$$$$$$   /$$$$$$$  /$$$$$$  /$$ /$$$$$$$ 
| $$$$$$$/| $$  | $$| $$ /$$_____/ /$$__  $$| $$  | $$ /$$__  $$ /$$__  $$ /$$__  $$ /$$_____/ /$$__  $$| $$| $$__  $$
| $$____/ | $$  | $$| $$|  $$$$$$ | $$$$$$$$| $$  | $$| $$  \ $$| $$  \ $$| $$$$$$$$| $$      | $$  \ $$| $$| $$  \ $$
| $$      | $$  | $$| $$ \____  $$| $$_____/| $$  | $$| $$  | $$| $$  | $$| $$_____/| $$      | $$  | $$| $$| $$  | $$
| $$      |  $$$$$$/| $$ /$$$$$$$/|  $$$$$$$| $$$$$$$/|  $$$$$$/|  $$$$$$$|  $$$$$$$|  $$$$$$$|  $$$$$$/| $$| $$  | $$
|__/       \______/ |__/|_______/  \_______/|_______/  \______/  \____  $$ \_______/ \_______/ \______/ |__/|__/  |__/
                                                                 /$$  \ $$                                            
                                                                |  $$$$$$/                                            
                                                                 \______/    
   _  _   _   _  _______   ___                 
 _| || |_| | | ||  ___\ \ / (_)                
|_  __  _| |_| || |__  \ V / _  ___ __ _ _ __  
 _| || |_|  _  ||  __| /   \| |/ __/ _` | '_ \ 
|_  __  _| | | || |___/ /^\ \ | (_| (_| | | | |
  |_||_| \_| |_/\____/\/   \/_|\___\__,_|_| |_|

*/

/// ============ Imports ============




contract PulseDogecoin is ERC20 {
    using SafeMath for uint256;

    constructor() ERC20("PulseDogecoin", "PLSD")
    {
        _launchTime = block.timestamp;
    }

    /// ============== Events ==============

    /// @dev Emitted after a successful token claim
    /// @param to recipient of claim
    /// @param amount of tokens claimed
    event Claim(address indexed to, uint256 amount);


    /// ============== Constants ==============

    /* Root hash of the HEX Stakers Merkle tree */
    bytes32 internal constant MERKLE_TREE_ROOT = 0x8f4e1c18aa0323d567b9abc6cf64f9626e82ef1b41a404b3f48bfa92eecb9142;

    /* HEX Origin Address */
    address internal constant HEX_ORIGIN_ADDR = 0x9A6a414D6F3497c05E3b1De90520765fA1E07c03;

    /* PulseDogecoin Benevolent Address */
    address internal constant BENEVOLANT_ADDR = 0x7686640F09123394Cd8Dc3032e9927767aD89344;

    /* Smallest token amount = 1 DOGI; 10^12 = BASE_TOKEN_DECIMALS */
    uint256 internal constant BASE_TOKEN_DECIMALS = 10**12;

    /* HEX Origin Address & PulseDogecoin Benevolent Address token payout per claim */
    uint256 internal constant TOKEN_PAYOUT_IN_DOGI = 10 * BASE_TOKEN_DECIMALS;

    /* Length of airdrop claim phase */
    uint256 internal constant CLAIM_PHASE_DAYS = 100;

    /// ============== Contract Deploy ==============

    /* Time of contract launch, set in constructor */
    uint256 private _launchTime;

    /* Number of airdrop token claims, initial 0*/
    uint256 private _numberOfClaims;

    /* HEX OA PLSD BA mint flag, initial false */
    bool private _OaBaTokensMinted;


    /// ============== Mutable Storage ==============

    /* Mapping of addresses who have claimed tokens */
    mapping(address => bool) public hasClaimed;


    /// ============== Functions ==============

    /*
     * @dev PUBLIC FUNCTION: Overridden decimals function
     * @return contract decimals
     */
    function decimals()
        public
        view
        virtual
        override
        returns (uint8)
    {
        return 12;
    }
        
    /* 
     * @dev PUBLIC FUNCTION: External helper for returning the contract launch time 
     * @return The contract launch time in epoch time
     */
    function launchTime()
        public
        view
        returns (uint256)
    {
        return _launchTime;
    }

    /*
     * @dev PUBLIC FUNCTION: External helper for returning the number of airdrop claims 
     * @return The total number of airdrop claims 
     */
    function numberOfClaims()
        public
        view
        returns (uint256)
    {
        return _numberOfClaims;
    }

    /*
     * @dev PUBLIC FUNCTION: External helper for the current day number since launch time
     * @return Current day number (zero-based)
     */
    function currentDay()
        external
        view
        returns (uint256)
    {
        return _currentDay();
    }

    function _currentDay()
        internal
        view
        returns (uint256)
    {
        return (block.timestamp.sub(_launchTime)).div(1 days);
    }

    /*
     * @dev PUBLIC FUNCTION: Determine if an address and amount are eligble for the airdrop
     * @param hexAddr HEX staker address
     * @param plsdAmount PLSD token amount
     * @param proof Merkle tree proof
     * @return true or false
     */
    function hexAddressIsClaimable(address hexAddr, uint256 plsdAmount, bytes32[] calldata proof)
        external
        pure
        returns (bool)
    {
        return _hexAddressIsClaimable(hexAddr, plsdAmount, proof);
    }

    function _hexAddressIsClaimable(address hexAddr, uint256 plsdAmount, bytes32[] memory proof)
        internal
        pure
        returns (bool)
    {
        bytes32 leaf = keccak256(abi.encodePacked(hexAddr, plsdAmount));
        bool isValidLeaf = MerkleProof.verify(proof, MERKLE_TREE_ROOT, leaf);
        return isValidLeaf;
    }

    /*
     * @dev PUBLIC FUNCTION: Mint HEX Origin & PLSD Benevolant Address tokens. Must be after claim phase has ended. Tokens can only be minted once.
     */
    function mintOaBaTokens() 
        external
    {
        // Claim phase must be over
        require(_currentDay() > CLAIM_PHASE_DAYS, "Claim phase has not ended.");

        // HEX OA & PLSD BA tokens must not have already been minted
        require(!_OaBaTokensMinted, "HEX Origin Address & Benevolant Address Tokens have already been minted.");

        // HEX OA & PLSD BA tokens can only be minted once, set flag
        _OaBaTokensMinted = true;

        // Determine the amount of tokens each address will receive and mint those tokens
        uint256 tokenPayout = _numberOfClaims.mul(TOKEN_PAYOUT_IN_DOGI);
        _mint(HEX_ORIGIN_ADDR, tokenPayout);
        _mint(BENEVOLANT_ADDR, tokenPayout);
    }

    /*
     * @dev PUBLIC FUNCTION: External function to claim airdrop tokens. Must be before the end of the claim phase. 
     * Tokens can only be minted once per unique address. The address must be within the airdrop set.
     * @param to HEX staker address
     * @param amount PLSD token amount
     * @param proof Merkle tree proof
     */
    function claim(address to, uint256 amount, bytes32[] calldata proof)
        external
    {    
        require(_currentDay() <= CLAIM_PHASE_DAYS, "Claim phase has ended.");
        require(!hasClaimed[to], "Address has already claimed.");
        require(_hexAddressIsClaimable(to, amount, proof), "HEX Address is not claimable.");

        // Set claim flag for address
        hasClaimed[to] = true;

        // Increment the number of claims counter
        _numberOfClaims = _numberOfClaims.add(1);

        // Mint tokens to address
        _mint(to, amount);

        // Emit claim event
        emit Claim(to, amount);
    }
}
        

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[]},{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"spender","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Claim","inputs":[{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"allowance","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"spender","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"approve","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"claim","inputs":[{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"bytes32[]","name":"proof","internalType":"bytes32[]"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"currentDay","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"decimals","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"decreaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"subtractedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"hasClaimed","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"pure","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"hexAddressIsClaimable","inputs":[{"type":"address","name":"hexAddr","internalType":"address"},{"type":"uint256","name":"plsdAmount","internalType":"uint256"},{"type":"bytes32[]","name":"proof","internalType":"bytes32[]"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"increaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"addedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"launchTime","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"mintOaBaTokens","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"numberOfClaims","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transfer","inputs":[{"type":"address","name":"recipient","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transferFrom","inputs":[{"type":"address","name":"sender","internalType":"address"},{"type":"address","name":"recipient","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]}]
              

Contract Creation Code

Verify & Publish
0x60806040523480156200001157600080fd5b506040518060400160405280600d81526020017f50756c7365446f6765636f696e000000000000000000000000000000000000008152506040518060400160405280600481526020017f504c534400000000000000000000000000000000000000000000000000000000815250816003908051906020019062000096929190620000bf565b508060049080519060200190620000af929190620000bf565b50505042600581905550620001d4565b828054620000cd906200016f565b90600052602060002090601f016020900481019282620000f157600085556200013d565b82601f106200010c57805160ff19168380011785556200013d565b828001600101855582156200013d579182015b828111156200013c5782518255916020019190600101906200011f565b5b5090506200014c919062000150565b5090565b5b808211156200016b57600081600090555060010162000151565b5090565b600060028204905060018216806200018857607f821691505b602082108114156200019f576200019e620001a5565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b61220880620001e46000396000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c806373b2e80e116100a2578063a457c2d711610071578063a457c2d71461030b578063a9059cbb1461033b578063dd62ed3e1461036b578063ee9933751461039b578063f65fdc69146103b957610116565b806373b2e80e1461026f578063790ca4131461029f57806385db4745146102bd57806395d89b41146102ed57610116565b8063313ce567116100e9578063313ce567146101b757806339509351146101d55780633d13f874146102055780635c9302c91461022157806370a082311461023f57610116565b806306fdde031461011b578063095ea7b31461013957806318160ddd1461016957806323b872dd14610187575b600080fd5b6101236103c3565b60405161013091906118d8565b60405180910390f35b610153600480360381019061014e919061153f565b610455565b60405161016091906118bd565b60405180910390f35b610171610473565b60405161017e9190611a9a565b60405180910390f35b6101a1600480360381019061019c91906114ec565b61047d565b6040516101ae91906118bd565b60405180910390f35b6101bf610575565b6040516101cc9190611ab5565b60405180910390f35b6101ef60048036038101906101ea919061153f565b61057e565b6040516101fc91906118bd565b60405180910390f35b61021f600480360381019061021a919061157f565b61062a565b005b61022961085f565b6040516102369190611a9a565b60405180910390f35b6102596004803603810190610254919061147f565b61086e565b6040516102669190611a9a565b60405180910390f35b6102896004803603810190610284919061147f565b6108b6565b60405161029691906118bd565b60405180910390f35b6102a76108d6565b6040516102b49190611a9a565b60405180910390f35b6102d760048036038101906102d2919061157f565b6108e0565b6040516102e491906118bd565b60405180910390f35b6102f5610938565b60405161030291906118d8565b60405180910390f35b6103256004803603810190610320919061153f565b6109ca565b60405161033291906118bd565b60405180910390f35b6103556004803603810190610350919061153f565b610ab5565b60405161036291906118bd565b60405180910390f35b610385600480360381019061038091906114ac565b610ad3565b6040516103929190611a9a565b60405180910390f35b6103a3610b5a565b6040516103b09190611a9a565b60405180910390f35b6103c1610b64565b005b6060600380546103d290611c93565b80601f01602080910402602001604051908101604052809291908181526020018280546103fe90611c93565b801561044b5780601f106104205761010080835404028352916020019161044b565b820191906000526020600020905b81548152906001019060200180831161042e57829003601f168201915b5050505050905090565b6000610469610462610c82565b8484610c8a565b6001905092915050565b6000600254905090565b600061048a848484610e55565b6000600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006104d5610c82565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015610555576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161054c906119da565b60405180910390fd5b61056985610561610c82565b858403610c8a565b60019150509392505050565b6000600c905090565b600061062061058b610c82565b848460016000610599610c82565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461061b9190611aec565b610c8a565b6001905092915050565b60646106346110d6565b1115610675576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161066c9061197a565b60405180910390fd5b600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615610702576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106f99061191a565b60405180910390fd5b61074e8484848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050611107565b61078d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610784906119ba565b60405180910390fd5b6001600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506107fb600160065461117390919063ffffffff16565b60068190555061080b8484611189565b8373ffffffffffffffffffffffffffffffffffffffff167f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d4846040516108519190611a9a565b60405180910390a250505050565b60006108696110d6565b905090565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60086020528060005260406000206000915054906101000a900460ff1681565b6000600554905090565b600061092e8585858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050611107565b9050949350505050565b60606004805461094790611c93565b80601f016020809104026020016040519081016040528092919081815260200182805461097390611c93565b80156109c05780601f10610995576101008083540402835291602001916109c0565b820191906000526020600020905b8154815290600101906020018083116109a357829003601f168201915b5050505050905090565b600080600160006109d9610c82565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015610a96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8d90611a5a565b60405180910390fd5b610aaa610aa1610c82565b85858403610c8a565b600191505092915050565b6000610ac9610ac2610c82565b8484610e55565b6001905092915050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6000600654905090565b6064610b6e6110d6565b11610bae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ba5906119fa565b60405180910390fd5b600760009054906101000a900460ff1615610bfe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bf59061199a565b60405180910390fd5b6001600760006101000a81548160ff0219169083151502179055506000610c4164e8d4a51000600a610c309190611b73565b6006546112e990919063ffffffff16565b9050610c61739a6a414d6f3497c05e3b1de90520765fa1e07c0382611189565b610c7f737686640f09123394cd8dc3032e9927767ad8934482611189565b50565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610cfa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf190611a3a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610d6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d619061193a565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051610e489190611a9a565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610ec5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ebc90611a1a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610f35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f2c906118fa565b60405180910390fd5b610f408383836112ff565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015610fc6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fbd9061195a565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546110599190611aec565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516110bd9190611a9a565b60405180910390a36110d0848484611304565b50505050565b6000611102620151806110f46005544261130990919063ffffffff16565b61131f90919063ffffffff16565b905090565b600080848460405160200161111d929190611865565b6040516020818303038152906040528051906020012090506000611165847f8f4e1c18aa0323d567b9abc6cf64f9626e82ef1b41a404b3f48bfa92eecb914260001b84611335565b905080925050509392505050565b600081836111819190611aec565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156111f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111f090611a7a565b60405180910390fd5b611205600083836112ff565b80600260008282546112179190611aec565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461126c9190611aec565b925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516112d19190611a9a565b60405180910390a36112e560008383611304565b5050565b600081836112f79190611b73565b905092915050565b505050565b505050565b600081836113179190611bcd565b905092915050565b6000818361132d9190611b42565b905092915050565b600082611342858461134c565b1490509392505050565b60008082905060005b84518110156113f457600085828151811061137357611372611dd3565b5b602002602001015190508083116113b4578281604051602001611397929190611891565b6040516020818303038152906040528051906020012092506113e0565b80836040516020016113c7929190611891565b6040516020818303038152906040528051906020012092505b5080806113ec90611cc5565b915050611355565b508091505092915050565b60008135905061140e816121a4565b92915050565b60008083601f84011261142a57611429611e07565b5b8235905067ffffffffffffffff81111561144757611446611e02565b5b60208301915083602082028301111561146357611462611e0c565b5b9250929050565b600081359050611479816121bb565b92915050565b60006020828403121561149557611494611e16565b5b60006114a3848285016113ff565b91505092915050565b600080604083850312156114c3576114c2611e16565b5b60006114d1858286016113ff565b92505060206114e2858286016113ff565b9150509250929050565b60008060006060848603121561150557611504611e16565b5b6000611513868287016113ff565b9350506020611524868287016113ff565b92505060406115358682870161146a565b9150509250925092565b6000806040838503121561155657611555611e16565b5b6000611564858286016113ff565b92505060206115758582860161146a565b9150509250929050565b6000806000806060858703121561159957611598611e16565b5b60006115a7878288016113ff565b94505060206115b88782880161146a565b935050604085013567ffffffffffffffff8111156115d9576115d8611e11565b5b6115e587828801611414565b925092505092959194509250565b6116046115ff82611c01565b611d0e565b82525050565b61161381611c13565b82525050565b61162a61162582611c1f565b611d20565b82525050565b600061163b82611ad0565b6116458185611adb565b9350611655818560208601611c60565b61165e81611e1b565b840191505092915050565b6000611676602383611adb565b915061168182611e39565b604082019050919050565b6000611699601c83611adb565b91506116a482611e88565b602082019050919050565b60006116bc602283611adb565b91506116c782611eb1565b604082019050919050565b60006116df602683611adb565b91506116ea82611f00565b604082019050919050565b6000611702601683611adb565b915061170d82611f4f565b602082019050919050565b6000611725604883611adb565b915061173082611f78565b606082019050919050565b6000611748601d83611adb565b915061175382611fed565b602082019050919050565b600061176b602883611adb565b915061177682612016565b604082019050919050565b600061178e601a83611adb565b915061179982612065565b602082019050919050565b60006117b1602583611adb565b91506117bc8261208e565b604082019050919050565b60006117d4602483611adb565b91506117df826120dd565b604082019050919050565b60006117f7602583611adb565b91506118028261212c565b604082019050919050565b600061181a601f83611adb565b91506118258261217b565b602082019050919050565b61183981611c49565b82525050565b61185061184b82611c49565b611d3c565b82525050565b61185f81611c53565b82525050565b600061187182856115f3565b601482019150611881828461183f565b6020820191508190509392505050565b600061189d8285611619565b6020820191506118ad8284611619565b6020820191508190509392505050565b60006020820190506118d2600083018461160a565b92915050565b600060208201905081810360008301526118f28184611630565b905092915050565b6000602082019050818103600083015261191381611669565b9050919050565b600060208201905081810360008301526119338161168c565b9050919050565b60006020820190508181036000830152611953816116af565b9050919050565b60006020820190508181036000830152611973816116d2565b9050919050565b60006020820190508181036000830152611993816116f5565b9050919050565b600060208201905081810360008301526119b381611718565b9050919050565b600060208201905081810360008301526119d38161173b565b9050919050565b600060208201905081810360008301526119f38161175e565b9050919050565b60006020820190508181036000830152611a1381611781565b9050919050565b60006020820190508181036000830152611a33816117a4565b9050919050565b60006020820190508181036000830152611a53816117c7565b9050919050565b60006020820190508181036000830152611a73816117ea565b9050919050565b60006020820190508181036000830152611a938161180d565b9050919050565b6000602082019050611aaf6000830184611830565b92915050565b6000602082019050611aca6000830184611856565b92915050565b600081519050919050565b600082825260208201905092915050565b6000611af782611c49565b9150611b0283611c49565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611b3757611b36611d46565b5b828201905092915050565b6000611b4d82611c49565b9150611b5883611c49565b925082611b6857611b67611d75565b5b828204905092915050565b6000611b7e82611c49565b9150611b8983611c49565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611bc257611bc1611d46565b5b828202905092915050565b6000611bd882611c49565b9150611be383611c49565b925082821015611bf657611bf5611d46565b5b828203905092915050565b6000611c0c82611c29565b9050919050565b60008115159050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60005b83811015611c7e578082015181840152602081019050611c63565b83811115611c8d576000848401525b50505050565b60006002820490506001821680611cab57607f821691505b60208210811415611cbf57611cbe611da4565b5b50919050565b6000611cd082611c49565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415611d0357611d02611d46565b5b600182019050919050565b6000611d1982611d2a565b9050919050565b6000819050919050565b6000611d3582611e2c565b9050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b7f416464726573732068617320616c726561647920636c61696d65642e00000000600082015250565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b7f436c61696d2070686173652068617320656e6465642e00000000000000000000600082015250565b7f484558204f726967696e204164647265737320262042656e65766f6c616e742060008201527f4164647265737320546f6b656e73206861766520616c7265616479206265656e60208201527f206d696e7465642e000000000000000000000000000000000000000000000000604082015250565b7f4845582041646472657373206973206e6f7420636c61696d61626c652e000000600082015250565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206160008201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b7f436c61696d20706861736520686173206e6f7420656e6465642e000000000000600082015250565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b6121ad81611c01565b81146121b857600080fd5b50565b6121c481611c49565b81146121cf57600080fd5b5056fea2646970667358221220e6dd04740ab98e9e6aed29021129519160a0ca624c5c62c2a2c93f74dd826c2564736f6c63430008070033

Deployed ByteCode

0x608060405234801561001057600080fd5b50600436106101165760003560e01c806373b2e80e116100a2578063a457c2d711610071578063a457c2d71461030b578063a9059cbb1461033b578063dd62ed3e1461036b578063ee9933751461039b578063f65fdc69146103b957610116565b806373b2e80e1461026f578063790ca4131461029f57806385db4745146102bd57806395d89b41146102ed57610116565b8063313ce567116100e9578063313ce567146101b757806339509351146101d55780633d13f874146102055780635c9302c91461022157806370a082311461023f57610116565b806306fdde031461011b578063095ea7b31461013957806318160ddd1461016957806323b872dd14610187575b600080fd5b6101236103c3565b60405161013091906118d8565b60405180910390f35b610153600480360381019061014e919061153f565b610455565b60405161016091906118bd565b60405180910390f35b610171610473565b60405161017e9190611a9a565b60405180910390f35b6101a1600480360381019061019c91906114ec565b61047d565b6040516101ae91906118bd565b60405180910390f35b6101bf610575565b6040516101cc9190611ab5565b60405180910390f35b6101ef60048036038101906101ea919061153f565b61057e565b6040516101fc91906118bd565b60405180910390f35b61021f600480360381019061021a919061157f565b61062a565b005b61022961085f565b6040516102369190611a9a565b60405180910390f35b6102596004803603810190610254919061147f565b61086e565b6040516102669190611a9a565b60405180910390f35b6102896004803603810190610284919061147f565b6108b6565b60405161029691906118bd565b60405180910390f35b6102a76108d6565b6040516102b49190611a9a565b60405180910390f35b6102d760048036038101906102d2919061157f565b6108e0565b6040516102e491906118bd565b60405180910390f35b6102f5610938565b60405161030291906118d8565b60405180910390f35b6103256004803603810190610320919061153f565b6109ca565b60405161033291906118bd565b60405180910390f35b6103556004803603810190610350919061153f565b610ab5565b60405161036291906118bd565b60405180910390f35b610385600480360381019061038091906114ac565b610ad3565b6040516103929190611a9a565b60405180910390f35b6103a3610b5a565b6040516103b09190611a9a565b60405180910390f35b6103c1610b64565b005b6060600380546103d290611c93565b80601f01602080910402602001604051908101604052809291908181526020018280546103fe90611c93565b801561044b5780601f106104205761010080835404028352916020019161044b565b820191906000526020600020905b81548152906001019060200180831161042e57829003601f168201915b5050505050905090565b6000610469610462610c82565b8484610c8a565b6001905092915050565b6000600254905090565b600061048a848484610e55565b6000600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006104d5610c82565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015610555576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161054c906119da565b60405180910390fd5b61056985610561610c82565b858403610c8a565b60019150509392505050565b6000600c905090565b600061062061058b610c82565b848460016000610599610c82565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461061b9190611aec565b610c8a565b6001905092915050565b60646106346110d6565b1115610675576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161066c9061197a565b60405180910390fd5b600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615610702576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106f99061191a565b60405180910390fd5b61074e8484848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050611107565b61078d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610784906119ba565b60405180910390fd5b6001600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506107fb600160065461117390919063ffffffff16565b60068190555061080b8484611189565b8373ffffffffffffffffffffffffffffffffffffffff167f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d4846040516108519190611a9a565b60405180910390a250505050565b60006108696110d6565b905090565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60086020528060005260406000206000915054906101000a900460ff1681565b6000600554905090565b600061092e8585858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050611107565b9050949350505050565b60606004805461094790611c93565b80601f016020809104026020016040519081016040528092919081815260200182805461097390611c93565b80156109c05780601f10610995576101008083540402835291602001916109c0565b820191906000526020600020905b8154815290600101906020018083116109a357829003601f168201915b5050505050905090565b600080600160006109d9610c82565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905082811015610a96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8d90611a5a565b60405180910390fd5b610aaa610aa1610c82565b85858403610c8a565b600191505092915050565b6000610ac9610ac2610c82565b8484610e55565b6001905092915050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6000600654905090565b6064610b6e6110d6565b11610bae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ba5906119fa565b60405180910390fd5b600760009054906101000a900460ff1615610bfe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bf59061199a565b60405180910390fd5b6001600760006101000a81548160ff0219169083151502179055506000610c4164e8d4a51000600a610c309190611b73565b6006546112e990919063ffffffff16565b9050610c61739a6a414d6f3497c05e3b1de90520765fa1e07c0382611189565b610c7f737686640f09123394cd8dc3032e9927767ad8934482611189565b50565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610cfa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf190611a3a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610d6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d619061193a565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051610e489190611a9a565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610ec5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ebc90611a1a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610f35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f2c906118fa565b60405180910390fd5b610f408383836112ff565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015610fc6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fbd9061195a565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546110599190611aec565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516110bd9190611a9a565b60405180910390a36110d0848484611304565b50505050565b6000611102620151806110f46005544261130990919063ffffffff16565b61131f90919063ffffffff16565b905090565b600080848460405160200161111d929190611865565b6040516020818303038152906040528051906020012090506000611165847f8f4e1c18aa0323d567b9abc6cf64f9626e82ef1b41a404b3f48bfa92eecb914260001b84611335565b905080925050509392505050565b600081836111819190611aec565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156111f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111f090611a7a565b60405180910390fd5b611205600083836112ff565b80600260008282546112179190611aec565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461126c9190611aec565b925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516112d19190611a9a565b60405180910390a36112e560008383611304565b5050565b600081836112f79190611b73565b905092915050565b505050565b505050565b600081836113179190611bcd565b905092915050565b6000818361132d9190611b42565b905092915050565b600082611342858461134c565b1490509392505050565b60008082905060005b84518110156113f457600085828151811061137357611372611dd3565b5b602002602001015190508083116113b4578281604051602001611397929190611891565b6040516020818303038152906040528051906020012092506113e0565b80836040516020016113c7929190611891565b6040516020818303038152906040528051906020012092505b5080806113ec90611cc5565b915050611355565b508091505092915050565b60008135905061140e816121a4565b92915050565b60008083601f84011261142a57611429611e07565b5b8235905067ffffffffffffffff81111561144757611446611e02565b5b60208301915083602082028301111561146357611462611e0c565b5b9250929050565b600081359050611479816121bb565b92915050565b60006020828403121561149557611494611e16565b5b60006114a3848285016113ff565b91505092915050565b600080604083850312156114c3576114c2611e16565b5b60006114d1858286016113ff565b92505060206114e2858286016113ff565b9150509250929050565b60008060006060848603121561150557611504611e16565b5b6000611513868287016113ff565b9350506020611524868287016113ff565b92505060406115358682870161146a565b9150509250925092565b6000806040838503121561155657611555611e16565b5b6000611564858286016113ff565b92505060206115758582860161146a565b9150509250929050565b6000806000806060858703121561159957611598611e16565b5b60006115a7878288016113ff565b94505060206115b88782880161146a565b935050604085013567ffffffffffffffff8111156115d9576115d8611e11565b5b6115e587828801611414565b925092505092959194509250565b6116046115ff82611c01565b611d0e565b82525050565b61161381611c13565b82525050565b61162a61162582611c1f565b611d20565b82525050565b600061163b82611ad0565b6116458185611adb565b9350611655818560208601611c60565b61165e81611e1b565b840191505092915050565b6000611676602383611adb565b915061168182611e39565b604082019050919050565b6000611699601c83611adb565b91506116a482611e88565b602082019050919050565b60006116bc602283611adb565b91506116c782611eb1565b604082019050919050565b60006116df602683611adb565b91506116ea82611f00565b604082019050919050565b6000611702601683611adb565b915061170d82611f4f565b602082019050919050565b6000611725604883611adb565b915061173082611f78565b606082019050919050565b6000611748601d83611adb565b915061175382611fed565b602082019050919050565b600061176b602883611adb565b915061177682612016565b604082019050919050565b600061178e601a83611adb565b915061179982612065565b602082019050919050565b60006117b1602583611adb565b91506117bc8261208e565b604082019050919050565b60006117d4602483611adb565b91506117df826120dd565b604082019050919050565b60006117f7602583611adb565b91506118028261212c565b604082019050919050565b600061181a601f83611adb565b91506118258261217b565b602082019050919050565b61183981611c49565b82525050565b61185061184b82611c49565b611d3c565b82525050565b61185f81611c53565b82525050565b600061187182856115f3565b601482019150611881828461183f565b6020820191508190509392505050565b600061189d8285611619565b6020820191506118ad8284611619565b6020820191508190509392505050565b60006020820190506118d2600083018461160a565b92915050565b600060208201905081810360008301526118f28184611630565b905092915050565b6000602082019050818103600083015261191381611669565b9050919050565b600060208201905081810360008301526119338161168c565b9050919050565b60006020820190508181036000830152611953816116af565b9050919050565b60006020820190508181036000830152611973816116d2565b9050919050565b60006020820190508181036000830152611993816116f5565b9050919050565b600060208201905081810360008301526119b381611718565b9050919050565b600060208201905081810360008301526119d38161173b565b9050919050565b600060208201905081810360008301526119f38161175e565b9050919050565b60006020820190508181036000830152611a1381611781565b9050919050565b60006020820190508181036000830152611a33816117a4565b9050919050565b60006020820190508181036000830152611a53816117c7565b9050919050565b60006020820190508181036000830152611a73816117ea565b9050919050565b60006020820190508181036000830152611a938161180d565b9050919050565b6000602082019050611aaf6000830184611830565b92915050565b6000602082019050611aca6000830184611856565b92915050565b600081519050919050565b600082825260208201905092915050565b6000611af782611c49565b9150611b0283611c49565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611b3757611b36611d46565b5b828201905092915050565b6000611b4d82611c49565b9150611b5883611c49565b925082611b6857611b67611d75565b5b828204905092915050565b6000611b7e82611c49565b9150611b8983611c49565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611bc257611bc1611d46565b5b828202905092915050565b6000611bd882611c49565b9150611be383611c49565b925082821015611bf657611bf5611d46565b5b828203905092915050565b6000611c0c82611c29565b9050919050565b60008115159050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60005b83811015611c7e578082015181840152602081019050611c63565b83811115611c8d576000848401525b50505050565b60006002820490506001821680611cab57607f821691505b60208210811415611cbf57611cbe611da4565b5b50919050565b6000611cd082611c49565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415611d0357611d02611d46565b5b600182019050919050565b6000611d1982611d2a565b9050919050565b6000819050919050565b6000611d3582611e2c565b9050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f45524332303a207472616e7366657220746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b7f416464726573732068617320616c726561647920636c61696d65642e00000000600082015250565b7f45524332303a20617070726f766520746f20746865207a65726f20616464726560008201527f7373000000000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206260008201527f616c616e63650000000000000000000000000000000000000000000000000000602082015250565b7f436c61696d2070686173652068617320656e6465642e00000000000000000000600082015250565b7f484558204f726967696e204164647265737320262042656e65766f6c616e742060008201527f4164647265737320546f6b656e73206861766520616c7265616479206265656e60208201527f206d696e7465642e000000000000000000000000000000000000000000000000604082015250565b7f4845582041646472657373206973206e6f7420636c61696d61626c652e000000600082015250565b7f45524332303a207472616e7366657220616d6f756e742065786365656473206160008201527f6c6c6f77616e6365000000000000000000000000000000000000000000000000602082015250565b7f436c61696d20706861736520686173206e6f7420656e6465642e000000000000600082015250565b7f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008201527f207a65726f000000000000000000000000000000000000000000000000000000602082015250565b7f45524332303a206d696e7420746f20746865207a65726f206164647265737300600082015250565b6121ad81611c01565b81146121b857600080fd5b50565b6121c481611c49565b81146121cf57600080fd5b5056fea2646970667358221220e6dd04740ab98e9e6aed29021129519160a0ca624c5c62c2a2c93f74dd826c2564736f6c63430008070033