ETH Price: $3,502.86 (+3.91%)
Gas: 4 Gwei

Token

Water (WATER)
 

Overview

Max Total Supply

3,440,276.07384302354189112 WATER

Holders

1,209

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Filtered by Token Holder
sldaly.eth
Balance
645.312015700120985834 WATER

Value
$0.00
0x32dc7a665af94cb941de28de8bd69b8ae95f6b78
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Water

Compiler Version
v0.7.3+commit.9bfce1f6

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-08-25
*/

// Sources flattened with hardhat v2.2.0 https://hardhat.org

// File @openzeppelin/contracts/utils/[email protected]

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <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 GSN 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 payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}


// File @openzeppelin/contracts/token/ERC20/[email protected]

pragma solidity >=0.6.0 <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 @openzeppelin/contracts/math/[email protected]

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        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) {
        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) {
        // 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) {
        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) {
        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) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a, "SafeMath: subtraction overflow");
        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) {
        if (a == 0) return 0;
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: division by zero");
        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) {
        require(b > 0, "SafeMath: modulo by zero");
        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) {
        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.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * 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) {
        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) {
        require(b > 0, errorMessage);
        return a % b;
    }
}


// File @openzeppelin/contracts/token/ERC20/[email protected]

pragma solidity >=0.6.0 <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 guidelines: functions revert instead
 * of 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 {
    using SafeMath for uint256;

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name_, string memory symbol_) public {
        _name = name_;
        _symbol = symbol_;
        _decimals = 18;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual 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 {_setupDecimals} is
     * called.
     *
     * 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 returns (uint8) {
        return _decimals;
    }

    /**
     * @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);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        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].add(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) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is 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);

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(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:
     *
     * - `to` 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 = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(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);

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(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);
    }

    /**
     * @dev Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal virtual {
        _decimals = decimals_;
    }

    /**
     * @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 to 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 { }
}


// File @openzeppelin/contracts/introspection/[email protected]

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}


// File @openzeppelin/contracts/token/ERC721/[email protected]

pragma solidity >=0.6.2 <0.8.0;

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
      * @dev Safely transfers `tokenId` token from `from` to `to`.
      *
      * Requirements:
      *
      * - `from` cannot be the zero address.
      * - `to` cannot be the zero address.
      * - `tokenId` token must exist and be owned by `from`.
      * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
      * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
      *
      * Emits a {Transfer} event.
      */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;
}


// File @openzeppelin/contracts/token/ERC721/[email protected]

pragma solidity >=0.6.2 <0.8.0;

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}


// File @openzeppelin/contracts/math/[email protected]

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow, so we distribute
        return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
    }
}


// File @openzeppelin/contracts/cryptography/[email protected]

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev These functions deal with verification of Merkle trees (hash trees),
 */
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) {
        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));
            }
        }

        // Check if the computed hash (root) is equal to the provided root
        return computedHash == root;
    }
}


// File contracts/Water.sol
pragma solidity ^0.7.3;





contract Water is ERC20 {
    using SafeMath for uint256;

    uint256 public immutable MAX_SUPPLY = 88888888888000000000000000000;
    uint256 public immutable WATER_GENESIS_TIMESTAMP = 1629858907;
    uint256 public immutable WATER_PER_SECOND_PER_BONSAI = 35810908561342;
    IERC721Enumerable public immutable BONSAI;
    bytes32 public immutable MERKLE_ROOT;

    mapping(uint256 => uint256) public last;

    // This is a packed array of booleans.
    mapping(uint256 => uint256) private claimedBitMap;

    constructor(address bonsai, bytes32 root) ERC20("Water", "WATER") {
        MERKLE_ROOT = root;
        BONSAI = IERC721Enumerable(bonsai);
    }

    function mintForUser(address user) external {
        require(totalSupply() <= MAX_SUPPLY, "No more $WATER can be minted.");

        uint256 total = BONSAI.balanceOf(user);
        uint256 owed = 0;
        for (uint256 i = 0; i < total; i = i.add(1)) {
            uint256 id = BONSAI.tokenOfOwnerByIndex(user, i);
            uint256 claimed = lastClaim(id);
            owed = owed.add(
                block.timestamp.sub(claimed).mul(WATER_PER_SECOND_PER_BONSAI)
            );
            last[id] = block.timestamp;
        }
        _mint(user, owed);
    }

    function mintForIds(uint256[] calldata ids) external {
        require(totalSupply() <= MAX_SUPPLY, "No more $WATER can be minted.");

        for (uint256 i = 0; i < ids.length; i = i.add(1)) {
            uint256 id = ids[i];
            address owner = BONSAI.ownerOf(id);
            uint256 claimed = lastClaim(id);
            uint256 owed = block.timestamp.sub(claimed).mul(
                WATER_PER_SECOND_PER_BONSAI
            );
            _mint(owner, owed);
            last[id] = block.timestamp;
        }
    }

    function lastClaim(uint256 id) public view returns (uint256) {
        return Math.max(last[id], WATER_GENESIS_TIMESTAMP);
    }

    function claimable(address user) external view returns (uint256) {
        uint256 total = BONSAI.balanceOf(user);
        uint256 owed = 0;
        for (uint256 i = 0; i < total; i = i.add(1)) {
            uint256 id = BONSAI.tokenOfOwnerByIndex(user, i);
            uint256 claimed = lastClaim(id);
            owed = owed.add(
                block.timestamp.sub(claimed).mul(WATER_PER_SECOND_PER_BONSAI)
            );
        }
        return owed;
    }

    function isClaimed(uint256 index) public view returns (bool) {
        uint256 claimedWordIndex = index / 256;
        uint256 claimedBitIndex = index % 256;
        uint256 claimedWord = claimedBitMap[claimedWordIndex];
        uint256 mask = (1 << claimedBitIndex);
        return claimedWord & mask == mask;
    }

    function setClaimed(uint256 index) private {
        uint256 claimedWordIndex = index / 256;
        uint256 claimedBitIndex = index % 256;
        claimedBitMap[claimedWordIndex] = claimedBitMap[claimedWordIndex] | (1 << claimedBitIndex);
    }

    function claimRetroactive(uint256 index, address account, uint256 amount, bytes32[] calldata merkleProof) external {
        require(!isClaimed(index), 'MerkleDistributor: Drop already claimed.');

        // Verify the merkle proof.
        bytes32 node = keccak256(abi.encodePacked(index, account, amount));
        require(MerkleProof.verify(merkleProof, MERKLE_ROOT, node), 'MerkleDistributor: Invalid proof.');

        // Mark it claimed and send the token.
        setClaimed(index);
        _mint(account, amount);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"bonsai","type":"address"},{"internalType":"bytes32","name":"root","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"BONSAI","outputs":[{"internalType":"contract IERC721Enumerable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MERKLE_ROOT","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WATER_GENESIS_TIMESTAMP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WATER_PER_SECOND_PER_BONSAI","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"uint256","name":"index","type":"uint256"},{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"claimRetroactive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"claimable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"isClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"last","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"lastClaim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"mintForIds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"mintForUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"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"}]

6101206040526c011f372a621c0f72bf15e00000608090815250636125ac5b60a090815250652091e07bdfbe60c0908152503480156200003e57600080fd5b50604051620025d7380380620025d7833981810160405260408110156200006457600080fd5b8101908080519060200190929190805190602001909291905050506040518060400160405280600581526020017f57617465720000000000000000000000000000000000000000000000000000008152506040518060400160405280600581526020017f574154455200000000000000000000000000000000000000000000000000000081525081600390805190602001906200010392919062000183565b5080600490805190602001906200011c92919062000183565b506012600560006101000a81548160ff021916908360ff16021790555050508061010081815250508173ffffffffffffffffffffffffffffffffffffffff1660e08173ffffffffffffffffffffffffffffffffffffffff1660601b81525050505062000229565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620001c657805160ff1916838001178555620001f7565b82800160010185558215620001f7579182015b82811115620001f6578251825591602001919060010190620001d9565b5b5090506200020691906200020a565b5090565b5b80821115620002255760008160009055506001016200020b565b5090565b60805160a05160c05160e05160601c6101005161232f620002a860003980610ed55280610f6c525080610bb15280610c83528061102f5280611101528061142652806116d152508061097d5280610d6252806111e052806114e6525080610b8152806115c2525080610a915280610f905280611362525061232f6000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c806351e75e8b116100c3578063a3f477df1161007c578063a3f477df146106dd578063a457c2d7146106fb578063a9059cbb1461075f578063a97140bd146107c3578063dd62ed3e146107f7578063e4c1a3b21461086f5761014d565b806351e75e8b146104e3578063632508871461050157806370a082311461054557806395d89b411461059d5780639ab8ed48146106205780639e34070f146106995761014d565b8063313ce56711610115578063313ce567146102f957806332cb6b0c1461031a57806339509351146103385780633d3728b51461039c578063402914f5146103de5780634a3546b3146104365761014d565b806306fdde0314610152578063095ea7b3146101d557806318160ddd146102395780631cfccee61461025757806323b872dd14610275575b600080fd5b61015a6108b1565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561019a57808201518184015260208101905061017f565b50505050905090810190601f1680156101c75780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610221600480360360408110156101eb57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610953565b60405180821515815260200191505060405180910390f35b610241610971565b6040518082815260200191505060405180910390f35b61025f61097b565b6040518082815260200191505060405180910390f35b6102e16004803603606081101561028b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061099f565b60405180821515815260200191505060405180910390f35b610301610a78565b604051808260ff16815260200191505060405180910390f35b610322610a8f565b6040518082815260200191505060405180910390f35b6103846004803603604081101561034e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610ab3565b60405180821515815260200191505060405180910390f35b6103c8600480360360208110156103b257600080fd5b8101908080359060200190929190505050610b66565b6040518082815260200191505060405180910390f35b610420600480360360208110156103f457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610bac565b6040518082815260200191505060405180910390f35b6104e16004803603608081101561044c57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019064010000000081111561049d57600080fd5b8201836020820111156104af57600080fd5b803590602001918460208302840111640100000000831117156104d157600080fd5b9091929391929390505050610ddb565b005b6104eb610f6a565b6040518082815260200191505060405180910390f35b6105436004803603602081101561051757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610f8e565b005b6105876004803603602081101561055b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611276565b6040518082815260200191505060405180910390f35b6105a56112be565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156105e55780820151818401526020810190506105ca565b50505050905090810190601f1680156106125780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6106976004803603602081101561063657600080fd5b810190808035906020019064010000000081111561065357600080fd5b82018360208201111561066557600080fd5b8035906020019184602083028401116401000000008311171561068757600080fd5b9091929391929390505050611360565b005b6106c5600480360360208110156106af57600080fd5b810190808035906020019092919050505061156e565b60405180821515815260200191505060405180910390f35b6106e56115c0565b6040518082815260200191505060405180910390f35b6107476004803603604081101561071157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506115e4565b60405180821515815260200191505060405180910390f35b6107ab6004803603604081101561077557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506116b1565b60405180821515815260200191505060405180910390f35b6107cb6116cf565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6108596004803603604081101561080d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506116f3565b6040518082815260200191505060405180910390f35b61089b6004803603602081101561088557600080fd5b810190808035906020019092919050505061177a565b6040518082815260200191505060405180910390f35b606060038054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156109495780601f1061091e57610100808354040283529160200191610949565b820191906000526020600020905b81548152906001019060200180831161092c57829003601f168201915b5050505050905090565b6000610967610960611792565b848461179a565b6001905092915050565b6000600254905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b60006109ac848484611991565b610a6d846109b8611792565b610a688560405180606001604052806028815260200161226460289139600160008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000610a1e611792565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611c529092919063ffffffff16565b61179a565b600190509392505050565b6000600560009054906101000a900460ff16905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000610b5c610ac0611792565b84610b578560016000610ad1611792565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611d0c90919063ffffffff16565b61179a565b6001905092915050565b6000610ba560066000848152602001908152602001600020547f0000000000000000000000000000000000000000000000000000000000000000611d94565b9050919050565b6000807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610c3657600080fd5b505afa158015610c4a573d6000803e3d6000fd5b505050506040513d6020811015610c6057600080fd5b810190808051906020019092919050505090506000805b82811015610dd05760007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16632f745c5987846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060206040518083038186803b158015610d1057600080fd5b505afa158015610d24573d6000803e3d6000fd5b505050506040513d6020811015610d3a57600080fd5b810190808051906020019092919050505090506000610d5882610b66565b9050610db1610da27f0000000000000000000000000000000000000000000000000000000000000000610d948442611dae90919063ffffffff16565b611e3190919063ffffffff16565b85611d0c90919063ffffffff16565b93505050610dc9600182611d0c90919063ffffffff16565b9050610c77565b508092505050919050565b610de48561156e565b15610e3a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001806121d46028913960400191505060405180910390fd5b6000858585604051602001808481526020018373ffffffffffffffffffffffffffffffffffffffff1660601b81526014018281526020019350505050604051602081830303815290604052805190602001209050610efa838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050507f000000000000000000000000000000000000000000000000000000000000000083611eb7565b610f4f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806122226021913960400191505060405180910390fd5b610f5886611f6c565b610f628585611fc2565b505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f0000000000000000000000000000000000000000000000000000000000000000610fb7610971565b111561102b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f4e6f206d6f7265202457415445522063616e206265206d696e7465642e00000081525060200191505060405180910390fd5b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231836040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156110b457600080fd5b505afa1580156110c8573d6000803e3d6000fd5b505050506040513d60208110156110de57600080fd5b810190808051906020019092919050505090506000805b828110156112665760007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16632f745c5986846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060206040518083038186803b15801561118e57600080fd5b505afa1580156111a2573d6000803e3d6000fd5b505050506040513d60208110156111b857600080fd5b8101908080519060200190929190505050905060006111d682610b66565b905061122f6112207f00000000000000000000000000000000000000000000000000000000000000006112128442611dae90919063ffffffff16565b611e3190919063ffffffff16565b85611d0c90919063ffffffff16565b9350426006600084815260200190815260200160002081905550505061125f600182611d0c90919063ffffffff16565b90506110f5565b506112718382611fc2565b505050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b606060048054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156113565780601f1061132b57610100808354040283529160200191611356565b820191906000526020600020905b81548152906001019060200180831161133957829003601f168201915b5050505050905090565b7f0000000000000000000000000000000000000000000000000000000000000000611389610971565b11156113fd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f4e6f206d6f7265202457415445522063616e206265206d696e7465642e00000081525060200191505060405180910390fd5b60005b8282905081101561156957600083838381811061141957fe5b90506020020135905060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561149557600080fd5b505afa1580156114a9573d6000803e3d6000fd5b505050506040513d60208110156114bf57600080fd5b8101908080519060200190929190505050905060006114dd83610b66565b905060006115267f00000000000000000000000000000000000000000000000000000000000000006115188442611dae90919063ffffffff16565b611e3190919063ffffffff16565b90506115328382611fc2565b42600660008681526020019081526020016000208190555050505050611562600182611d0c90919063ffffffff16565b9050611400565b505050565b600080610100838161157c57fe5b0490506000610100848161158c57fe5b0690506000600760008481526020019081526020016000205490506000826001901b90508081831614945050505050919050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60006116a76115f1611792565b846116a2856040518060600160405280602581526020016122d5602591396001600061161b611792565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611c529092919063ffffffff16565b61179a565b6001905092915050565b60006116c56116be611792565b8484611991565b6001905092915050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60066020528060005260406000206000915090505481565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611820576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806122b16024913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156118a6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806121b26022913960400191505060405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040518082815260200191505060405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611a17576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602581526020018061228c6025913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611a9d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602381526020018061218f6023913960400191505060405180910390fd5b611aa8838383612189565b611b13816040518060600160405280602681526020016121fc602691396000808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611c529092919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611ba6816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611d0c90919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a3505050565b6000838311158290611cff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611cc4578082015181840152602081019050611ca9565b50505050905090810190601f168015611cf15780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5082840390509392505050565b600080828401905083811015611d8a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b600081831015611da45781611da6565b825b905092915050565b600082821115611e26576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525060200191505060405180910390fd5b818303905092915050565b600080831415611e445760009050611eb1565b6000828402905082848281611e5557fe5b0414611eac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806122436021913960400191505060405180910390fd5b809150505b92915050565b60008082905060005b8551811015611f5e576000868281518110611ed757fe5b60200260200101519050808311611f1e5782816040516020018083815260200182815260200192505050604051602081830303815290604052805190602001209250611f50565b808360405160200180838152602001828152602001925050506040516020818303038152906040528051906020012092505b508080600101915050611ec0565b508381149150509392505050565b60006101008281611f7957fe5b04905060006101008381611f8957fe5b069050806001901b6007600084815260200190815260200160002054176007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612065576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f45524332303a206d696e7420746f20746865207a65726f20616464726573730081525060200191505060405180910390fd5b61207160008383612189565b61208681600254611d0c90919063ffffffff16565b6002819055506120dd816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611d0c90919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f20616464726573734d65726b6c654469737472696275746f723a2044726f7020616c726561647920636c61696d65642e45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63654d65726b6c654469737472696275746f723a20496e76616c69642070726f6f662e536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122015f617cd02a962a248e30e1f2a9b8103b07ef42f2ec22a2218e2168c192cd2bd64736f6c63430007030033000000000000000000000000ec9c519d49856fd2f8133a0741b4dbe002ce211bd7e77b926489ff991157d8f48cb7b6681d93c7ba6a90ade86b755c38d5039dfc

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061014d5760003560e01c806351e75e8b116100c3578063a3f477df1161007c578063a3f477df146106dd578063a457c2d7146106fb578063a9059cbb1461075f578063a97140bd146107c3578063dd62ed3e146107f7578063e4c1a3b21461086f5761014d565b806351e75e8b146104e3578063632508871461050157806370a082311461054557806395d89b411461059d5780639ab8ed48146106205780639e34070f146106995761014d565b8063313ce56711610115578063313ce567146102f957806332cb6b0c1461031a57806339509351146103385780633d3728b51461039c578063402914f5146103de5780634a3546b3146104365761014d565b806306fdde0314610152578063095ea7b3146101d557806318160ddd146102395780631cfccee61461025757806323b872dd14610275575b600080fd5b61015a6108b1565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561019a57808201518184015260208101905061017f565b50505050905090810190601f1680156101c75780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610221600480360360408110156101eb57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610953565b60405180821515815260200191505060405180910390f35b610241610971565b6040518082815260200191505060405180910390f35b61025f61097b565b6040518082815260200191505060405180910390f35b6102e16004803603606081101561028b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061099f565b60405180821515815260200191505060405180910390f35b610301610a78565b604051808260ff16815260200191505060405180910390f35b610322610a8f565b6040518082815260200191505060405180910390f35b6103846004803603604081101561034e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610ab3565b60405180821515815260200191505060405180910390f35b6103c8600480360360208110156103b257600080fd5b8101908080359060200190929190505050610b66565b6040518082815260200191505060405180910390f35b610420600480360360208110156103f457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610bac565b6040518082815260200191505060405180910390f35b6104e16004803603608081101561044c57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019064010000000081111561049d57600080fd5b8201836020820111156104af57600080fd5b803590602001918460208302840111640100000000831117156104d157600080fd5b9091929391929390505050610ddb565b005b6104eb610f6a565b6040518082815260200191505060405180910390f35b6105436004803603602081101561051757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610f8e565b005b6105876004803603602081101561055b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611276565b6040518082815260200191505060405180910390f35b6105a56112be565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156105e55780820151818401526020810190506105ca565b50505050905090810190601f1680156106125780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6106976004803603602081101561063657600080fd5b810190808035906020019064010000000081111561065357600080fd5b82018360208201111561066557600080fd5b8035906020019184602083028401116401000000008311171561068757600080fd5b9091929391929390505050611360565b005b6106c5600480360360208110156106af57600080fd5b810190808035906020019092919050505061156e565b60405180821515815260200191505060405180910390f35b6106e56115c0565b6040518082815260200191505060405180910390f35b6107476004803603604081101561071157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506115e4565b60405180821515815260200191505060405180910390f35b6107ab6004803603604081101561077557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506116b1565b60405180821515815260200191505060405180910390f35b6107cb6116cf565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6108596004803603604081101561080d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506116f3565b6040518082815260200191505060405180910390f35b61089b6004803603602081101561088557600080fd5b810190808035906020019092919050505061177a565b6040518082815260200191505060405180910390f35b606060038054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156109495780601f1061091e57610100808354040283529160200191610949565b820191906000526020600020905b81548152906001019060200180831161092c57829003601f168201915b5050505050905090565b6000610967610960611792565b848461179a565b6001905092915050565b6000600254905090565b7f00000000000000000000000000000000000000000000000000002091e07bdfbe81565b60006109ac848484611991565b610a6d846109b8611792565b610a688560405180606001604052806028815260200161226460289139600160008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000610a1e611792565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611c529092919063ffffffff16565b61179a565b600190509392505050565b6000600560009054906101000a900460ff16905090565b7f00000000000000000000000000000000000000011f372a621c0f72bf15e0000081565b6000610b5c610ac0611792565b84610b578560016000610ad1611792565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611d0c90919063ffffffff16565b61179a565b6001905092915050565b6000610ba560066000848152602001908152602001600020547f000000000000000000000000000000000000000000000000000000006125ac5b611d94565b9050919050565b6000807f000000000000000000000000ec9c519d49856fd2f8133a0741b4dbe002ce211b73ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610c3657600080fd5b505afa158015610c4a573d6000803e3d6000fd5b505050506040513d6020811015610c6057600080fd5b810190808051906020019092919050505090506000805b82811015610dd05760007f000000000000000000000000ec9c519d49856fd2f8133a0741b4dbe002ce211b73ffffffffffffffffffffffffffffffffffffffff16632f745c5987846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060206040518083038186803b158015610d1057600080fd5b505afa158015610d24573d6000803e3d6000fd5b505050506040513d6020811015610d3a57600080fd5b810190808051906020019092919050505090506000610d5882610b66565b9050610db1610da27f00000000000000000000000000000000000000000000000000002091e07bdfbe610d948442611dae90919063ffffffff16565b611e3190919063ffffffff16565b85611d0c90919063ffffffff16565b93505050610dc9600182611d0c90919063ffffffff16565b9050610c77565b508092505050919050565b610de48561156e565b15610e3a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001806121d46028913960400191505060405180910390fd5b6000858585604051602001808481526020018373ffffffffffffffffffffffffffffffffffffffff1660601b81526014018281526020019350505050604051602081830303815290604052805190602001209050610efa838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050507fd7e77b926489ff991157d8f48cb7b6681d93c7ba6a90ade86b755c38d5039dfc83611eb7565b610f4f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806122226021913960400191505060405180910390fd5b610f5886611f6c565b610f628585611fc2565b505050505050565b7fd7e77b926489ff991157d8f48cb7b6681d93c7ba6a90ade86b755c38d5039dfc81565b7f00000000000000000000000000000000000000011f372a621c0f72bf15e00000610fb7610971565b111561102b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f4e6f206d6f7265202457415445522063616e206265206d696e7465642e00000081525060200191505060405180910390fd5b60007f000000000000000000000000ec9c519d49856fd2f8133a0741b4dbe002ce211b73ffffffffffffffffffffffffffffffffffffffff166370a08231836040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156110b457600080fd5b505afa1580156110c8573d6000803e3d6000fd5b505050506040513d60208110156110de57600080fd5b810190808051906020019092919050505090506000805b828110156112665760007f000000000000000000000000ec9c519d49856fd2f8133a0741b4dbe002ce211b73ffffffffffffffffffffffffffffffffffffffff16632f745c5986846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060206040518083038186803b15801561118e57600080fd5b505afa1580156111a2573d6000803e3d6000fd5b505050506040513d60208110156111b857600080fd5b8101908080519060200190929190505050905060006111d682610b66565b905061122f6112207f00000000000000000000000000000000000000000000000000002091e07bdfbe6112128442611dae90919063ffffffff16565b611e3190919063ffffffff16565b85611d0c90919063ffffffff16565b9350426006600084815260200190815260200160002081905550505061125f600182611d0c90919063ffffffff16565b90506110f5565b506112718382611fc2565b505050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b606060048054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156113565780601f1061132b57610100808354040283529160200191611356565b820191906000526020600020905b81548152906001019060200180831161133957829003601f168201915b5050505050905090565b7f00000000000000000000000000000000000000011f372a621c0f72bf15e00000611389610971565b11156113fd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f4e6f206d6f7265202457415445522063616e206265206d696e7465642e00000081525060200191505060405180910390fd5b60005b8282905081101561156957600083838381811061141957fe5b90506020020135905060007f000000000000000000000000ec9c519d49856fd2f8133a0741b4dbe002ce211b73ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561149557600080fd5b505afa1580156114a9573d6000803e3d6000fd5b505050506040513d60208110156114bf57600080fd5b8101908080519060200190929190505050905060006114dd83610b66565b905060006115267f00000000000000000000000000000000000000000000000000002091e07bdfbe6115188442611dae90919063ffffffff16565b611e3190919063ffffffff16565b90506115328382611fc2565b42600660008681526020019081526020016000208190555050505050611562600182611d0c90919063ffffffff16565b9050611400565b505050565b600080610100838161157c57fe5b0490506000610100848161158c57fe5b0690506000600760008481526020019081526020016000205490506000826001901b90508081831614945050505050919050565b7f000000000000000000000000000000000000000000000000000000006125ac5b81565b60006116a76115f1611792565b846116a2856040518060600160405280602581526020016122d5602591396001600061161b611792565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611c529092919063ffffffff16565b61179a565b6001905092915050565b60006116c56116be611792565b8484611991565b6001905092915050565b7f000000000000000000000000ec9c519d49856fd2f8133a0741b4dbe002ce211b81565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60066020528060005260406000206000915090505481565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611820576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806122b16024913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156118a6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806121b26022913960400191505060405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040518082815260200191505060405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611a17576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602581526020018061228c6025913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611a9d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602381526020018061218f6023913960400191505060405180910390fd5b611aa8838383612189565b611b13816040518060600160405280602681526020016121fc602691396000808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611c529092919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550611ba6816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611d0c90919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a3505050565b6000838311158290611cff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611cc4578082015181840152602081019050611ca9565b50505050905090810190601f168015611cf15780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5082840390509392505050565b600080828401905083811015611d8a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b600081831015611da45781611da6565b825b905092915050565b600082821115611e26576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525060200191505060405180910390fd5b818303905092915050565b600080831415611e445760009050611eb1565b6000828402905082848281611e5557fe5b0414611eac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806122436021913960400191505060405180910390fd5b809150505b92915050565b60008082905060005b8551811015611f5e576000868281518110611ed757fe5b60200260200101519050808311611f1e5782816040516020018083815260200182815260200192505050604051602081830303815290604052805190602001209250611f50565b808360405160200180838152602001828152602001925050506040516020818303038152906040528051906020012092505b508080600101915050611ec0565b508381149150509392505050565b60006101008281611f7957fe5b04905060006101008381611f8957fe5b069050806001901b6007600084815260200190815260200160002054176007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612065576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f45524332303a206d696e7420746f20746865207a65726f20616464726573730081525060200191505060405180910390fd5b61207160008383612189565b61208681600254611d0c90919063ffffffff16565b6002819055506120dd816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611d0c90919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f20616464726573734d65726b6c654469737472696275746f723a2044726f7020616c726561647920636c61696d65642e45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63654d65726b6c654469737472696275746f723a20496e76616c69642070726f6f662e536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122015f617cd02a962a248e30e1f2a9b8103b07ef42f2ec22a2218e2168c192cd2bd64736f6c63430007030033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000ec9c519d49856fd2f8133a0741b4dbe002ce211bd7e77b926489ff991157d8f48cb7b6681d93c7ba6a90ade86b755c38d5039dfc

-----Decoded View---------------
Arg [0] : bonsai (address): 0xeC9C519D49856Fd2f8133A0741B4dbE002cE211b
Arg [1] : root (bytes32): 0xd7e77b926489ff991157d8f48cb7b6681d93c7ba6a90ade86b755c38d5039dfc

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000ec9c519d49856fd2f8133a0741b4dbe002ce211b
Arg [1] : d7e77b926489ff991157d8f48cb7b6681d93c7ba6a90ade86b755c38d5039dfc


Deployed Bytecode Sourcemap

31267:3566:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13544:91;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15690:169;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;14643:108;;;:::i;:::-;;;;;;;;;;;;;;;;;;;31475:69;;;:::i;:::-;;;;;;;;;;;;;;;;;;;16341:321;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;14487:91;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;31333:67;;;:::i;:::-;;;;;;;;;;;;;;;;;;;17071:218;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;33087:130;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;33225:472;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;34292:538;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;31599:36;;;:::i;:::-;;;;;;;;;;;;;;;;;;;31950:580;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;14814:127;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;13754:95;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32538:541;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;33705:322;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;31407:61;;;:::i;:::-;;;;;;;;;;;;;;;;;;;17792:269;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;15154:175;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;31551:41;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;15392:151;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;31644:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;13544:91;13589:13;13622:5;13615:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13544:91;:::o;15690:169::-;15773:4;15790:39;15799:12;:10;:12::i;:::-;15813:7;15822:6;15790:8;:39::i;:::-;15847:4;15840:11;;15690:169;;;;:::o;14643:108::-;14704:7;14731:12;;14724:19;;14643:108;:::o;31475:69::-;;;:::o;16341:321::-;16447:4;16464:36;16474:6;16482:9;16493:6;16464:9;:36::i;:::-;16511:121;16520:6;16528:12;:10;:12::i;:::-;16542:89;16580:6;16542:89;;;;;;;;;;;;;;;;;:11;:19;16554:6;16542:19;;;;;;;;;;;;;;;:33;16562:12;:10;:12::i;:::-;16542:33;;;;;;;;;;;;;;;;:37;;:89;;;;;:::i;:::-;16511:8;:121::i;:::-;16650:4;16643:11;;16341:321;;;;;:::o;14487:91::-;14536:5;14561:9;;;;;;;;;;;14554:16;;14487:91;:::o;31333:67::-;;;:::o;17071:218::-;17159:4;17176:83;17185:12;:10;:12::i;:::-;17199:7;17208:50;17247:10;17208:11;:25;17220:12;:10;:12::i;:::-;17208:25;;;;;;;;;;;;;;;:34;17234:7;17208:34;;;;;;;;;;;;;;;;:38;;:50;;;;:::i;:::-;17176:8;:83::i;:::-;17277:4;17270:11;;17071:218;;;;:::o;33087:130::-;33139:7;33166:43;33175:4;:8;33180:2;33175:8;;;;;;;;;;;;33185:23;33166:8;:43::i;:::-;33159:50;;33087:130;;;:::o;33225:472::-;33281:7;33301:13;33317:6;:16;;;33334:4;33317:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33301:38;;33350:12;33382:9;33377:291;33401:5;33397:1;:9;33377:291;;;33437:10;33450:6;:26;;;33477:4;33483:1;33450:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33437:48;;33500:15;33518:13;33528:2;33518:9;:13::i;:::-;33500:31;;33553:103;33580:61;33613:27;33580:28;33600:7;33580:15;:19;;:28;;;;:::i;:::-;:32;;:61;;;;:::i;:::-;33553:4;:8;;:103;;;;:::i;:::-;33546:110;;33377:291;;33412:8;33418:1;33412;:5;;:8;;;;:::i;:::-;33408:12;;33377:291;;;;33685:4;33678:11;;;;33225:472;;;:::o;34292:538::-;34427:16;34437:5;34427:9;:16::i;:::-;34426:17;34418:70;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34538:12;34580:5;34587:7;34596:6;34563:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34553:51;;;;;;34538:66;;34623:50;34642:11;;34623:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34655:11;34668:4;34623:18;:50::i;:::-;34615:96;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34772:17;34783:5;34772:10;:17::i;:::-;34800:22;34806:7;34815:6;34800:5;:22::i;:::-;34292:538;;;;;;:::o;31599:36::-;;;:::o;31950:580::-;32030:10;32013:13;:11;:13::i;:::-;:27;;32005:69;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32087:13;32103:6;:16;;;32120:4;32103:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32087:38;;32136:12;32168:9;32163:332;32187:5;32183:1;:9;32163:332;;;32223:10;32236:6;:26;;;32263:4;32269:1;32236:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32223:48;;32286:15;32304:13;32314:2;32304:9;:13::i;:::-;32286:31;;32339:103;32366:61;32399:27;32366:28;32386:7;32366:15;:19;;:28;;;;:::i;:::-;:32;;:61;;;;:::i;:::-;32339:4;:8;;:103;;;;:::i;:::-;32332:110;;32468:15;32457:4;:8;32462:2;32457:8;;;;;;;;;;;:26;;;;32163:332;;32198:8;32204:1;32198;:5;;:8;;;;:::i;:::-;32194:12;;32163:332;;;;32505:17;32511:4;32517;32505:5;:17::i;:::-;31950:580;;;:::o;14814:127::-;14888:7;14915:9;:18;14925:7;14915:18;;;;;;;;;;;;;;;;14908:25;;14814:127;;;:::o;13754:95::-;13801:13;13834:7;13827:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13754:95;:::o;32538:541::-;32627:10;32610:13;:11;:13::i;:::-;:27;;32602:69;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32689:9;32684:388;32708:3;;:10;;32704:1;:14;32684:388;;;32749:10;32762:3;;32766:1;32762:6;;;;;;;;;;;;;32749:19;;32783:13;32799:6;:14;;;32814:2;32799:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32783:34;;32832:15;32850:13;32860:2;32850:9;:13::i;:::-;32832:31;;32878:12;32893:93;32944:27;32893:28;32913:7;32893:15;:19;;:28;;;;:::i;:::-;:32;;:93;;;;:::i;:::-;32878:108;;33001:18;33007:5;33014:4;33001:5;:18::i;:::-;33045:15;33034:4;:8;33039:2;33034:8;;;;;;;;;;;:26;;;;32684:388;;;;32724:8;32730:1;32724;:5;;:8;;;;:::i;:::-;32720:12;;32684:388;;;;32538:541;;:::o;33705:322::-;33760:4;33777:24;33812:3;33804:5;:11;;;;;;33777:38;;33826:23;33860:3;33852:5;:11;;;;;;33826:37;;33874:19;33896:13;:31;33910:16;33896:31;;;;;;;;;;;;33874:53;;33938:12;33959:15;33954:1;:20;;33938:37;;34015:4;34007;33993:11;:18;:26;33986:33;;;;;;33705:322;;;:::o;31407:61::-;;;:::o;17792:269::-;17885:4;17902:129;17911:12;:10;:12::i;:::-;17925:7;17934:96;17973:15;17934:96;;;;;;;;;;;;;;;;;:11;:25;17946:12;:10;:12::i;:::-;17934:25;;;;;;;;;;;;;;;:34;17960:7;17934:34;;;;;;;;;;;;;;;;:38;;:96;;;;;:::i;:::-;17902:8;:129::i;:::-;18049:4;18042:11;;17792:269;;;;:::o;15154:175::-;15240:4;15257:42;15267:12;:10;:12::i;:::-;15281:9;15292:6;15257:9;:42::i;:::-;15317:4;15310:11;;15154:175;;;;:::o;31551:41::-;;;:::o;15392:151::-;15481:7;15508:11;:18;15520:5;15508:18;;;;;;;;;;;;;;;:27;15527:7;15508:27;;;;;;;;;;;;;;;;15501:34;;15392:151;;;;:::o;31644:39::-;;;;;;;;;;;;;;;;;:::o;737:106::-;790:15;825:10;818:17;;737:106;:::o;20939:346::-;21058:1;21041:19;;:5;:19;;;;21033:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21139:1;21120:21;;:7;:21;;;;21112:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21223:6;21193:11;:18;21205:5;21193:18;;;;;;;;;;;;;;;:27;21212:7;21193:27;;;;;;;;;;;;;;;:36;;;;21261:7;21245:32;;21254:5;21245:32;;;21270:6;21245:32;;;;;;;;;;;;;;;;;;20939:346;;;:::o;18551:539::-;18675:1;18657:20;;:6;:20;;;;18649:70;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18759:1;18738:23;;:9;:23;;;;18730:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18814:47;18835:6;18843:9;18854:6;18814:20;:47::i;:::-;18894:71;18916:6;18894:71;;;;;;;;;;;;;;;;;:9;:17;18904:6;18894:17;;;;;;;;;;;;;;;;:21;;:71;;;;;:::i;:::-;18874:9;:17;18884:6;18874:17;;;;;;;;;;;;;;;:91;;;;18999:32;19024:6;18999:9;:20;19009:9;18999:20;;;;;;;;;;;;;;;;:24;;:32;;;;:::i;:::-;18976:9;:20;18986:9;18976:20;;;;;;;;;;;;;;;:55;;;;19064:9;19047:35;;19056:6;19047:35;;;19075:6;19047:35;;;;;;;;;;;;;;;;;;18551:539;;;:::o;9534:166::-;9620:7;9653:1;9648;:6;;9656:12;9640:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9691:1;9687;:5;9680:12;;9534:166;;;;;:::o;6707:179::-;6765:7;6785:9;6801:1;6797;:5;6785:17;;6826:1;6821;:6;;6813:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6877:1;6870:8;;;6707:179;;;;:::o;29233:107::-;29291:7;29323:1;29318;:6;;:14;;29331:1;29318:14;;;29327:1;29318:14;29311:21;;29233:107;;;;:::o;7169:158::-;7227:7;7260:1;7255;:6;;7247:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7318:1;7314;:5;7307:12;;7169:158;;;;:::o;7586:220::-;7644:7;7673:1;7668;:6;7664:20;;;7683:1;7676:8;;;;7664:20;7695:9;7711:1;7707;:5;7695:17;;7740:1;7735;7731;:5;;;;;;:10;7723:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7797:1;7790:8;;;7586:220;;;;;:::o;30398:796::-;30489:4;30506:20;30529:4;30506:27;;30551:9;30546:525;30570:5;:12;30566:1;:16;30546:525;;;30604:20;30627:5;30633:1;30627:8;;;;;;;;;;;;;;30604:31;;30672:12;30656;:28;30652:408;;30826:12;30840;30809:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30799:55;;;;;;30784:70;;30652:408;;;31016:12;31030;30999:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30989:55;;;;;;30974:70;;30652:408;30546:525;30584:3;;;;;;;30546:525;;;;31182:4;31166:12;:20;31159:27;;;30398:796;;;;;:::o;34035:249::-;34089:24;34124:3;34116:5;:11;;;;;;34089:38;;34138:23;34172:3;34164:5;:11;;;;;;34138:37;;34260:15;34255:1;:20;;34220:13;:31;34234:16;34220:31;;;;;;;;;;;;:56;34186:13;:31;34200:16;34186:31;;;;;;;;;;;:90;;;;34035:249;;;:::o;19372:378::-;19475:1;19456:21;;:7;:21;;;;19448:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19526:49;19555:1;19559:7;19568:6;19526:20;:49::i;:::-;19603:24;19620:6;19603:12;;:16;;:24;;;;:::i;:::-;19588:12;:39;;;;19659:30;19682:6;19659:9;:18;19669:7;19659:18;;;;;;;;;;;;;;;;:22;;:30;;;;:::i;:::-;19638:9;:18;19648:7;19638:18;;;;;;;;;;;;;;;:51;;;;19726:7;19705:37;;19722:1;19705:37;;;19735:6;19705:37;;;;;;;;;;;;;;;;;;19372:378;;:::o;22318:92::-;;;;:::o

Swarm Source

ipfs://15f617cd02a962a248e30e1f2a9b8103b07ef42f2ec22a2218e2168c192cd2bd
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.