ETH Price: $3,357.97 (-1.70%)
Gas: 8 Gwei

Contract

0xbA7970f10D9f0531941DcEd1dda7ef3016B24e5b
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

1 address found via
Transaction Hash
Method
Block
From
To
Value
Approve201602132024-06-24 8:00:232 days ago1719216023IN
0xbA7970f1...016B24e5b
0 ETH0.000249985.37096394
Approve201582412024-06-24 1:23:232 days ago1719192203IN
0xbA7970f1...016B24e5b
0 ETH0.000090581.94381217
Transfer201579122024-06-24 0:17:232 days ago1719188243IN
0xbA7970f1...016B24e5b
0 ETH0.000087252.9410928
Transfer200587792024-06-10 3:35:1116 days ago1717990511IN
0xbA7970f1...016B24e5b
0 ETH0.000139584.70329306
Transfer200587712024-06-10 3:33:3516 days ago1717990415IN
0xbA7970f1...016B24e5b
0 ETH0.000220174.70661811
Transfer199998212024-06-01 22:00:5924 days ago1717279259IN
0xbA7970f1...016B24e5b
0 ETH0.0003645812.28415599
Transfer199574232024-05-26 23:46:4730 days ago1716767207IN
0xbA7970f1...016B24e5b
0 ETH0.000200666.76104281
Transfer199507182024-05-26 1:18:1131 days ago1716686291IN
0xbA7970f1...016B24e5b
0 ETH0.000332367.10503328
Approve198913822024-05-17 18:09:3540 days ago1715969375IN
0xbA7970f1...016B24e5b
0 ETH0.000165496.80494173
Approve198170672024-05-07 8:42:4750 days ago1715071367IN
0xbA7970f1...016B24e5b
0 ETH0.000174257.16508133
Approve198170582024-05-07 8:40:5950 days ago1715071259IN
0xbA7970f1...016B24e5b
0 ETH0.000161936.65833502
Approve198170522024-05-07 8:39:4750 days ago1715071187IN
0xbA7970f1...016B24e5b
0 ETH0.000180287.41309863
Approve198170502024-05-07 8:39:2350 days ago1715071163IN
0xbA7970f1...016B24e5b
0 ETH0.000154216.34099986
Approve198169242024-05-07 8:13:5950 days ago1715069639IN
0xbA7970f1...016B24e5b
0 ETH0.000311196.71554673
Approve198169152024-05-07 8:12:1150 days ago1715069531IN
0xbA7970f1...016B24e5b
0 ETH0.000309326.67505005
Transfer197000632024-04-21 0:00:1166 days ago1713657611IN
0xbA7970f1...016B24e5b
0 ETH0.0006199718
Approve196607422024-04-15 11:54:4772 days ago1713182087IN
0xbA7970f1...016B24e5b
0 ETH0.0003043512.51476999
Approve196297852024-04-11 3:44:2376 days ago1712807063IN
0xbA7970f1...016B24e5b
0 ETH0.0003117212.81747717
Approve195234302024-03-27 4:51:5991 days ago1711515119IN
0xbA7970f1...016B24e5b
0 ETH0.0004681719.25045908
Approve195122312024-03-25 14:58:1193 days ago1711378691IN
0xbA7970f1...016B24e5b
0 ETH0.0008922936.68995714
Approve193923072024-03-08 18:42:35110 days ago1709923355IN
0xbA7970f1...016B24e5b
0 ETH0.0032067369.28997374
Approve192745992024-02-21 7:37:59126 days ago1708501079IN
0xbA7970f1...016B24e5b
0 ETH0.0007018428.85863515
Approve192745972024-02-21 7:37:35126 days ago1708501055IN
0xbA7970f1...016B24e5b
0 ETH0.0007470730.71866601
Approve191280722024-01-31 17:53:47147 days ago1706723627IN
0xbA7970f1...016B24e5b
0 ETH0.0005537622.76996433
Approve190907302024-01-26 12:18:59152 days ago1706271539IN
0xbA7970f1...016B24e5b
0 ETH0.000576823.71716782
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BasedGold

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, Unlicense license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-09-04
*/

/**
 *Submitted for verification at Etherscan.io on 2021-09-01
*/

// SPDX-License-Identifier: UNLICENSED

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

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(
        address indexed previousOwner,
        address indexed newOwner
    );

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(
            newOwner != address(0),
            "Ownable: new owner is the zero address"
        );
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

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

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

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

pragma solidity ^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);
}

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

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


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

/// @title Based Gold for bloot holders!
/// Original author: Will Papper <https://twitter.com/WillPapper>
/// @notice This contract mints Based Gold for bloot holders and provides
/// administrative functions to the bloot DAO. It allows:
/// * bloot holders to claim Based Gold
/// * A DAO to set seasons for new opportunities to claim Based Gold
/// * A DAO to mint Based Gold for use within the bloot ecosystem
/// @custom:unaudited This contract has not been audited. Use at your own risk.
contract BasedGold is Context, Ownable, ERC20 {
    // bloot contract is available at https://etherscan.io/address/0xff9c1b15b16263c61d017ee9f65c50e4ae0113d7
    address public blootContractAddress =
        0x4F8730E0b32B04beaa5757e5aea3aeF970E5B613;
    IERC721Enumerable public blootContract;

    // Give out 10,000 Based Gold for every bloot Bag that a user holds
    uint256 public BasedGoldPerTokenId = 10000 * (10**decimals());

    // tokenIdStart of 1 is based on the following lines in the bloot contract:
    /** 
    function claim(uint256 tokenId) public nonReentrant {
        require(tokenId > 0 && tokenId < 7778, "Token ID invalid");
        _safeMint(_msgSender(), tokenId);
    }
    */
    uint256 public tokenIdStart = 1;

    // tokenIdEnd of 8000 is based on the following lines in the bloot contract:
    /**
        function ownerClaim(uint256 tokenId) public nonReentrant onlyOwner {
        require(tokenId > 7777 && tokenId < 8001, "Token ID invalid");
        _safeMint(owner(), tokenId);
    }
    */
    uint256 public tokenIdEnd = 8000;

    // Seasons are used to allow users to claim tokens regularly. Seasons are
    // decided by the DAO.
    uint256 public season = 0;

    // Track claimed tokens within a season
    // IMPORTANT: The format of the mapping is:
    // claimedForSeason[season][tokenId][claimed]
    mapping(uint256 => mapping(uint256 => bool)) public seasonClaimedByTokenId;

    constructor() Ownable() ERC20("Based Gold", "BGLD") {
        // Transfer ownership to the bloot DAO
        // Ownable by OpenZeppelin automatically sets owner to msg.sender, but
        // we're going to be using a separate wallet for deployment
        transferOwnership(_msgSender());
        blootContract = IERC721Enumerable(blootContractAddress);
    }

    /// @notice Claim Based Gold for a given bloot ID
    /// @param tokenId The tokenId of the bloot NFT
    function claimById(uint256 tokenId) external {
        // Follow the Checks-Effects-Interactions pattern to prevent reentrancy
        // attacks

        // Checks

        // Check that the msgSender owns the token that is being claimed
        require(
            _msgSender() == blootContract.ownerOf(tokenId),
            "MUST_OWN_TOKEN_ID"
        );

        // Further Checks, Effects, and Interactions are contained within the
        // _claim() function
        _claim(tokenId, _msgSender());
    }

    /// @notice Claim Based Gold for all tokens owned by the sender
    /// @notice This function will run out of gas if you have too much bloot! If
    /// this is a concern, you should use claimRangeForOwner and claim Based
    /// Gold in batches.
    function claimAllForOwner() external {
        uint256 tokenBalanceOwner = blootContract.balanceOf(_msgSender());

        // Checks
        require(tokenBalanceOwner > 0, "NO_TOKENS_OWNED");

        // i < tokenBalanceOwner because tokenBalanceOwner is 1-indexed
        for (uint256 i = 0; i < tokenBalanceOwner; i++) {
            // Further Checks, Effects, and Interactions are contained within
            // the _claim() function
            _claim(
                blootContract.tokenOfOwnerByIndex(_msgSender(), i),
                _msgSender()
            );
        }
    }

    /// @notice Claim Based Gold for all tokens owned by the sender within a
    /// given range
    /// @notice This function is useful if you own too much bloot to claim all at
    /// once or if you want to leave some bloot unclaimed. If you leave bloot
    /// unclaimed, however, you cannot claim it once the next season starts.
    function claimRangeForOwner(uint256 ownerIndexStart, uint256 ownerIndexEnd)
        external
    {
        uint256 tokenBalanceOwner = blootContract.balanceOf(_msgSender());

        // Checks
        require(tokenBalanceOwner > 0, "NO_TOKENS_OWNED");

        // We use < for ownerIndexEnd and tokenBalanceOwner because
        // tokenOfOwnerByIndex is 0-indexed while the token balance is 1-indexed
        require(
            ownerIndexStart >= 0 && ownerIndexEnd < tokenBalanceOwner,
            "INDEX_OUT_OF_RANGE"
        );

        // i <= ownerIndexEnd because ownerIndexEnd is 0-indexed
        for (uint256 i = ownerIndexStart; i <= ownerIndexEnd; i++) {
            // Further Checks, Effects, and Interactions are contained within
            // the _claim() function
            _claim(
                blootContract.tokenOfOwnerByIndex(_msgSender(), i),
                _msgSender()
            );
        }
    }

    /// @dev Internal function to mint bloot upon claiming
    function _claim(uint256 tokenId, address tokenOwner) internal {
        // Checks
        // Check that the token ID is in range
        // We use >= and <= to here because all of the token IDs are 0-indexed
        require(
            tokenId >= tokenIdStart && tokenId <= tokenIdEnd,
            "TOKEN_ID_OUT_OF_RANGE"
        );

        // Check that Based Gold have not already been claimed this season
        // for a given tokenId
        require(
            !seasonClaimedByTokenId[season][tokenId],
            "GOLD_CLAIMED_FOR_TOKEN_ID"
        );

        // Effects

        // Mark that Based Gold has been claimed for this season for the
        // given tokenId
        seasonClaimedByTokenId[season][tokenId] = true;

        // Interactions

        // Send Based Gold to the owner of the token ID
        _mint(tokenOwner, BasedGoldPerTokenId);
    }

    /// @notice Allows the DAO to mint new tokens for use within the bloot
    /// Ecosystem
    /// @param amountDisplayValue The amount of bloot to mint. This should be
    /// input as the display value, not in raw decimals. If you want to mint
    /// 100 bloot, you should enter "100" rather than the value of 100 * 10^18.
    function daoMint(uint256 amountDisplayValue) external onlyOwner {
        _mint(owner(), amountDisplayValue * (10**decimals()));
    }

    /// @notice Allows the DAO to set a new contract address for bloot. This is
    /// relevant in the event that bloot migrates to a new contract.
    /// @param blootContractAddress_ The new contract address for bloot
    function daoSetblootContractAddress(address blootContractAddress_)
        external
        onlyOwner
    {
        blootContractAddress = blootContractAddress_;
        blootContract = IERC721Enumerable(blootContractAddress);
    }

    /// @notice Allows the DAO to set the token IDs that are eligible to claim
    /// bloot
    /// @param tokenIdStart_ The start of the eligible token range
    /// @param tokenIdEnd_ The end of the eligible token range
    /// @dev This is relevant in case a future bloot contract has a different
    /// total supply of bloot
    function daoSetTokenIdRange(uint256 tokenIdStart_, uint256 tokenIdEnd_)
        external
        onlyOwner
    {
        tokenIdStart = tokenIdStart_;
        tokenIdEnd = tokenIdEnd_;
    }

    /// @notice Allows the DAO to set a season for new Based Gold claims
    /// @param season_ The season to use for claiming bloot
    function daoSetSeason(uint256 season_) public onlyOwner {
        season = season_;
    }

    /// @notice Allows the DAO to set the amount of Based Gold that is
    /// claimed per token ID
    /// @param BasedGoldDisplayValue The amount of bloot a user can claim.
    /// This should be input as the display value, not in raw decimals. If you
    /// want to mint 100 bloot, you should enter "100" rather than the value of
    /// 100 * 10^18.
    function daoSetBasedGoldPerTokenId(uint256 BasedGoldDisplayValue)
        public
        onlyOwner
    {
        BasedGoldPerTokenId = BasedGoldDisplayValue * (10**decimals());
    }

    /// @notice Allows the DAO to set the season and Based Gold per token ID
    /// in one transaction. This ensures that there is not a gap where a user
    /// can claim more Based Gold than others
    /// @param season_ The season to use for claiming bloot
    /// @param BasedGoldDisplayValue The amount of bloot a user can claim.
    /// This should be input as the display value, not in raw decimals. If you
    /// want to mint 100 bloot, you should enter "100" rather than the value of
    /// 100 * 10^18.
    /// @dev We would save a tiny amount of gas by modifying the season and
    /// BasedGold variables directly. It is better practice for security,
    /// however, to avoid repeating code. This function is so rarely used that
    /// it's not worth moving these values into their own internal function to
    /// skip the gas used on the modifier check.
    function daoSetSeasonAndBasedGoldPerTokenID(
        uint256 season_,
        uint256 BasedGoldDisplayValue
    ) external onlyOwner {
        daoSetSeason(season_);
        daoSetBasedGoldPerTokenId(BasedGoldDisplayValue);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"BasedGoldPerTokenId","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":[],"name":"blootContract","outputs":[{"internalType":"contract IERC721Enumerable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"blootContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimAllForOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"claimById","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"ownerIndexStart","type":"uint256"},{"internalType":"uint256","name":"ownerIndexEnd","type":"uint256"}],"name":"claimRangeForOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountDisplayValue","type":"uint256"}],"name":"daoMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"BasedGoldDisplayValue","type":"uint256"}],"name":"daoSetBasedGoldPerTokenId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"season_","type":"uint256"}],"name":"daoSetSeason","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"season_","type":"uint256"},{"internalType":"uint256","name":"BasedGoldDisplayValue","type":"uint256"}],"name":"daoSetSeasonAndBasedGoldPerTokenID","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenIdStart_","type":"uint256"},{"internalType":"uint256","name":"tokenIdEnd_","type":"uint256"}],"name":"daoSetTokenIdRange","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"blootContractAddress_","type":"address"}],"name":"daoSetblootContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"season","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"seasonClaimedByTokenId","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenIdEnd","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenIdStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600680546001600160a01b031916734f8730e0b32b04beaa5757e5aea3aef970e5b61317905562000033601290565b6200004090600a62000351565b6200004e906127106200041f565b6008556001600955611f40600a556000600b553480156200006e57600080fd5b506040518060400160405280600a81526020016910985cd9590811dbdb1960b21b815250604051806040016040528060048152602001631091d31160e21b815250620000c9620000c36200013960201b60201c565b6200013d565b8151620000de90600490602085019062000262565b508051620000f490600590602084019062000262565b505050620001116200010b6200013960201b60201c565b6200018d565b600654600780546001600160a01b0319166001600160a01b0390921691909117905562000494565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000546001600160a01b03163314620001ed5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b6001600160a01b038116620002545760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401620001e4565b6200025f816200013d565b50565b828054620002709062000441565b90600052602060002090601f016020900481019282620002945760008555620002df565b82601f10620002af57805160ff1916838001178555620002df565b82800160010185558215620002df579182015b82811115620002df578251825591602001919060010190620002c2565b50620002ed929150620002f1565b5090565b5b80821115620002ed5760008155600101620002f2565b600181815b80851115620003495781600019048211156200032d576200032d6200047e565b808516156200033b57918102915b93841c93908002906200030d565b509250929050565b60006200036260ff84168362000369565b9392505050565b6000826200037a5750600162000419565b81620003895750600062000419565b8160018114620003a25760028114620003ad57620003cd565b600191505062000419565b60ff841115620003c157620003c16200047e565b50506001821b62000419565b5060208310610133831016604e8410600b8410161715620003f2575081810a62000419565b620003fe838362000308565b80600019048211156200041557620004156200047e565b0290505b92915050565b60008160001904831182151516156200043c576200043c6200047e565b500290565b600181811c908216806200045657607f821691505b602082108114156200047857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b61157780620004a46000396000f3fe608060405234801561001057600080fd5b50600436106101da5760003560e01c806370a0823111610104578063a9059cbb116100a2578063cbf0b27611610071578063cbf0b276146103d3578063dd62ed3e146103db578063e5e808cb14610414578063f2fde38b1461044257600080fd5b8063a9059cbb14610391578063becf7741146103a4578063c50b0fb0146103b7578063cae155d0146103c057600080fd5b8063878e7ea5116100de578063878e7ea5146103525780638da5cb5b1461036557806395d89b4114610376578063a457c2d71461037e57600080fd5b806370a082311461030e578063715018a614610337578063826eea241461033f57600080fd5b8063313ce5671161017c5780634da7808a1161014b5780634da7808a146102aa578063610cc899146102bd57806362759f6c146102e857806365db6f74146102fb57600080fd5b8063313ce5671461026c578063395093511461027b57806342e473151461028e57806343f42802146102a157600080fd5b80631d372c8e116101b85780631d372c8e1461023257806323b872dd1461023b578063253f75271461024e5780632a3890621461026357600080fd5b806306fdde03146101df578063095ea7b3146101fd57806318160ddd14610220575b600080fd5b6101e7610455565b6040516101f49190611311565b60405180910390f35b61021061020b366004611291565b6104e7565b60405190151581526020016101f4565b6003545b6040519081526020016101f4565b61022460085481565b610210610249366004611250565b6104fe565b61026161025c3660046112ef565b6105ad565b005b61022460095481565b604051601281526020016101f4565b610210610289366004611291565b6105ed565b61026161029c3660046112bd565b610629565b610224600a5481565b6102616102b83660046112ef565b610658565b6007546102d0906001600160a01b031681565b6040516001600160a01b0390911681526020016101f4565b6102616102f63660046112bd565b61068d565b6102616103093660046112bd565b6106ea565b61022461031c3660046111d6565b6001600160a01b031660009081526001602052604090205490565b610261610730565b61026161034d3660046111d6565b610766565b6102616103603660046112ef565b6107bc565b6000546001600160a01b03166102d0565b6101e761098c565b61021061038c366004611291565b61099b565b61021061039f366004611291565b610a34565b6102616103b23660046112bd565b610a41565b610224600b5481565b6006546102d0906001600160a01b031681565b610261610b1b565b6102246103e9366004611217565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b6102106104223660046112ef565b600c60209081526000928352604080842090915290825290205460ff1681565b6102616104503660046111d6565b610c23565b606060048054610464906114c0565b80601f0160208091040260200160405190810160405280929190818152602001828054610490906114c0565b80156104dd5780601f106104b2576101008083540402835291602001916104dd565b820191906000526020600020905b8154815290600101906020018083116104c057829003601f168201915b5050505050905090565b60006104f4338484610cbb565b5060015b92915050565b600061050b848484610ddf565b6001600160a01b0384166000908152600260209081526040808320338452909152902054828110156105955760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6105a28533858403610cbb565b506001949350505050565b6000546001600160a01b031633146105d75760405162461bcd60e51b815260040161058c90611366565b6105e082610629565b6105e9816106ea565b5050565b3360008181526002602090815260408083206001600160a01b038716845290915281205490916104f491859061062490869061139b565b610cbb565b6000546001600160a01b031633146106535760405162461bcd60e51b815260040161058c90611366565b600b55565b6000546001600160a01b031633146106825760405162461bcd60e51b815260040161058c90611366565b600991909155600a55565b6000546001600160a01b031633146106b75760405162461bcd60e51b815260040161058c90611366565b6106e76106cc6000546001600160a01b031690565b6106d86012600a6113f6565b6106e290846114a1565b610fad565b50565b6000546001600160a01b031633146107145760405162461bcd60e51b815260040161058c90611366565b6107206012600a6113f6565b61072a90826114a1565b60085550565b6000546001600160a01b0316331461075a5760405162461bcd60e51b815260040161058c90611366565b610764600061108c565b565b6000546001600160a01b031633146107905760405162461bcd60e51b815260040161058c90611366565b600680546001600160a01b039092166001600160a01b0319928316811790915560078054909216179055565b6007546000906001600160a01b03166370a08231336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561081057600080fd5b505afa158015610824573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061084891906112d6565b90506000811161088c5760405162461bcd60e51b815260206004820152600f60248201526e1393d7d513d2d15394d7d3d5d39151608a1b604482015260640161058c565b8082106108d05760405162461bcd60e51b8152602060048201526012602482015271494e4445585f4f55545f4f465f52414e474560701b604482015260640161058c565b825b82811161098657600754610974906001600160a01b0316632f745c59335b6040516001600160e01b031960e084901b1681526001600160a01b0390911660048201526024810185905260440160206040518083038186803b15801561093657600080fd5b505afa15801561094a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061096e91906112d6565b336110dc565b8061097e816114fb565b9150506108d2565b50505050565b606060058054610464906114c0565b3360009081526002602090815260408083206001600160a01b038616845290915281205482811015610a1d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161058c565b610a2a3385858403610cbb565b5060019392505050565b60006104f4338484610ddf565b6007546040516331a9108f60e11b8152600481018390526001600160a01b0390911690636352211e9060240160206040518083038186803b158015610a8557600080fd5b505afa158015610a99573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610abd91906111fa565b6001600160a01b0316336001600160a01b031614610b115760405162461bcd60e51b8152602060048201526011602482015270135554d517d3d5d397d513d2d15397d251607a1b604482015260640161058c565b6106e781336110dc565b6007546000906001600160a01b03166370a08231336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b158015610b6f57600080fd5b505afa158015610b83573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ba791906112d6565b905060008111610beb5760405162461bcd60e51b815260206004820152600f60248201526e1393d7d513d2d15394d7d3d5d39151608a1b604482015260640161058c565b60005b818110156105e957600754610c11906001600160a01b0316632f745c59336108f0565b80610c1b816114fb565b915050610bee565b6000546001600160a01b03163314610c4d5760405162461bcd60e51b815260040161058c90611366565b6001600160a01b038116610cb25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161058c565b6106e78161108c565b6001600160a01b038316610d1d5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161058c565b6001600160a01b038216610d7e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161058c565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038316610e435760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161058c565b6001600160a01b038216610ea55760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161058c565b6001600160a01b03831660009081526001602052604090205481811015610f1d5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161058c565b6001600160a01b03808516600090815260016020526040808220858503905591851681529081208054849290610f5490849061139b565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610fa091815260200190565b60405180910390a3610986565b6001600160a01b0382166110035760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161058c565b8060036000828254611015919061139b565b90915550506001600160a01b0382166000908152600160205260408120805483929061104290849061139b565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60095482101580156110f05750600a548211155b6111345760405162461bcd60e51b8152602060048201526015602482015274544f4b454e5f49445f4f55545f4f465f52414e474560581b604482015260640161058c565b600b546000908152600c6020908152604080832085845290915290205460ff16156111a15760405162461bcd60e51b815260206004820152601960248201527f474f4c445f434c41494d45445f464f525f544f4b454e5f494400000000000000604482015260640161058c565b600b546000908152600c602090815260408083208584529091529020805460ff191660011790556008546105e9908290610fad565b6000602082840312156111e857600080fd5b81356111f38161152c565b9392505050565b60006020828403121561120c57600080fd5b81516111f38161152c565b6000806040838503121561122a57600080fd5b82356112358161152c565b915060208301356112458161152c565b809150509250929050565b60008060006060848603121561126557600080fd5b83356112708161152c565b925060208401356112808161152c565b929592945050506040919091013590565b600080604083850312156112a457600080fd5b82356112af8161152c565b946020939093013593505050565b6000602082840312156112cf57600080fd5b5035919050565b6000602082840312156112e857600080fd5b5051919050565b6000806040838503121561130257600080fd5b50508035926020909101359150565b600060208083528351808285015260005b8181101561133e57858101830151858201604001528201611322565b81811115611350576000604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082198211156113ae576113ae611516565b500190565b600181815b808511156113ee5781600019048211156113d4576113d4611516565b808516156113e157918102915b93841c93908002906113b8565b509250929050565b60006111f360ff84168360008261140f575060016104f8565b8161141c575060006104f8565b8160018114611432576002811461143c57611458565b60019150506104f8565b60ff84111561144d5761144d611516565b50506001821b6104f8565b5060208310610133831016604e8410600b841016171561147b575081810a6104f8565b61148583836113b3565b806000190482111561149957611499611516565b029392505050565b60008160001904831182151516156114bb576114bb611516565b500290565b600181811c908216806114d457607f821691505b602082108114156114f557634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561150f5761150f611516565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03811681146106e757600080fdfea2646970667358221220caf9f901b3bbf14580aed574cbcc8fd06ccb34ed4e0ce622dfa447a230c4b5de64736f6c63430008070033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101da5760003560e01c806370a0823111610104578063a9059cbb116100a2578063cbf0b27611610071578063cbf0b276146103d3578063dd62ed3e146103db578063e5e808cb14610414578063f2fde38b1461044257600080fd5b8063a9059cbb14610391578063becf7741146103a4578063c50b0fb0146103b7578063cae155d0146103c057600080fd5b8063878e7ea5116100de578063878e7ea5146103525780638da5cb5b1461036557806395d89b4114610376578063a457c2d71461037e57600080fd5b806370a082311461030e578063715018a614610337578063826eea241461033f57600080fd5b8063313ce5671161017c5780634da7808a1161014b5780634da7808a146102aa578063610cc899146102bd57806362759f6c146102e857806365db6f74146102fb57600080fd5b8063313ce5671461026c578063395093511461027b57806342e473151461028e57806343f42802146102a157600080fd5b80631d372c8e116101b85780631d372c8e1461023257806323b872dd1461023b578063253f75271461024e5780632a3890621461026357600080fd5b806306fdde03146101df578063095ea7b3146101fd57806318160ddd14610220575b600080fd5b6101e7610455565b6040516101f49190611311565b60405180910390f35b61021061020b366004611291565b6104e7565b60405190151581526020016101f4565b6003545b6040519081526020016101f4565b61022460085481565b610210610249366004611250565b6104fe565b61026161025c3660046112ef565b6105ad565b005b61022460095481565b604051601281526020016101f4565b610210610289366004611291565b6105ed565b61026161029c3660046112bd565b610629565b610224600a5481565b6102616102b83660046112ef565b610658565b6007546102d0906001600160a01b031681565b6040516001600160a01b0390911681526020016101f4565b6102616102f63660046112bd565b61068d565b6102616103093660046112bd565b6106ea565b61022461031c3660046111d6565b6001600160a01b031660009081526001602052604090205490565b610261610730565b61026161034d3660046111d6565b610766565b6102616103603660046112ef565b6107bc565b6000546001600160a01b03166102d0565b6101e761098c565b61021061038c366004611291565b61099b565b61021061039f366004611291565b610a34565b6102616103b23660046112bd565b610a41565b610224600b5481565b6006546102d0906001600160a01b031681565b610261610b1b565b6102246103e9366004611217565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b6102106104223660046112ef565b600c60209081526000928352604080842090915290825290205460ff1681565b6102616104503660046111d6565b610c23565b606060048054610464906114c0565b80601f0160208091040260200160405190810160405280929190818152602001828054610490906114c0565b80156104dd5780601f106104b2576101008083540402835291602001916104dd565b820191906000526020600020905b8154815290600101906020018083116104c057829003601f168201915b5050505050905090565b60006104f4338484610cbb565b5060015b92915050565b600061050b848484610ddf565b6001600160a01b0384166000908152600260209081526040808320338452909152902054828110156105955760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6105a28533858403610cbb565b506001949350505050565b6000546001600160a01b031633146105d75760405162461bcd60e51b815260040161058c90611366565b6105e082610629565b6105e9816106ea565b5050565b3360008181526002602090815260408083206001600160a01b038716845290915281205490916104f491859061062490869061139b565b610cbb565b6000546001600160a01b031633146106535760405162461bcd60e51b815260040161058c90611366565b600b55565b6000546001600160a01b031633146106825760405162461bcd60e51b815260040161058c90611366565b600991909155600a55565b6000546001600160a01b031633146106b75760405162461bcd60e51b815260040161058c90611366565b6106e76106cc6000546001600160a01b031690565b6106d86012600a6113f6565b6106e290846114a1565b610fad565b50565b6000546001600160a01b031633146107145760405162461bcd60e51b815260040161058c90611366565b6107206012600a6113f6565b61072a90826114a1565b60085550565b6000546001600160a01b0316331461075a5760405162461bcd60e51b815260040161058c90611366565b610764600061108c565b565b6000546001600160a01b031633146107905760405162461bcd60e51b815260040161058c90611366565b600680546001600160a01b039092166001600160a01b0319928316811790915560078054909216179055565b6007546000906001600160a01b03166370a08231336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561081057600080fd5b505afa158015610824573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061084891906112d6565b90506000811161088c5760405162461bcd60e51b815260206004820152600f60248201526e1393d7d513d2d15394d7d3d5d39151608a1b604482015260640161058c565b8082106108d05760405162461bcd60e51b8152602060048201526012602482015271494e4445585f4f55545f4f465f52414e474560701b604482015260640161058c565b825b82811161098657600754610974906001600160a01b0316632f745c59335b6040516001600160e01b031960e084901b1681526001600160a01b0390911660048201526024810185905260440160206040518083038186803b15801561093657600080fd5b505afa15801561094a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061096e91906112d6565b336110dc565b8061097e816114fb565b9150506108d2565b50505050565b606060058054610464906114c0565b3360009081526002602090815260408083206001600160a01b038616845290915281205482811015610a1d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161058c565b610a2a3385858403610cbb565b5060019392505050565b60006104f4338484610ddf565b6007546040516331a9108f60e11b8152600481018390526001600160a01b0390911690636352211e9060240160206040518083038186803b158015610a8557600080fd5b505afa158015610a99573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610abd91906111fa565b6001600160a01b0316336001600160a01b031614610b115760405162461bcd60e51b8152602060048201526011602482015270135554d517d3d5d397d513d2d15397d251607a1b604482015260640161058c565b6106e781336110dc565b6007546000906001600160a01b03166370a08231336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b158015610b6f57600080fd5b505afa158015610b83573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ba791906112d6565b905060008111610beb5760405162461bcd60e51b815260206004820152600f60248201526e1393d7d513d2d15394d7d3d5d39151608a1b604482015260640161058c565b60005b818110156105e957600754610c11906001600160a01b0316632f745c59336108f0565b80610c1b816114fb565b915050610bee565b6000546001600160a01b03163314610c4d5760405162461bcd60e51b815260040161058c90611366565b6001600160a01b038116610cb25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161058c565b6106e78161108c565b6001600160a01b038316610d1d5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161058c565b6001600160a01b038216610d7e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161058c565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038316610e435760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161058c565b6001600160a01b038216610ea55760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161058c565b6001600160a01b03831660009081526001602052604090205481811015610f1d5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161058c565b6001600160a01b03808516600090815260016020526040808220858503905591851681529081208054849290610f5490849061139b565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610fa091815260200190565b60405180910390a3610986565b6001600160a01b0382166110035760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161058c565b8060036000828254611015919061139b565b90915550506001600160a01b0382166000908152600160205260408120805483929061104290849061139b565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60095482101580156110f05750600a548211155b6111345760405162461bcd60e51b8152602060048201526015602482015274544f4b454e5f49445f4f55545f4f465f52414e474560581b604482015260640161058c565b600b546000908152600c6020908152604080832085845290915290205460ff16156111a15760405162461bcd60e51b815260206004820152601960248201527f474f4c445f434c41494d45445f464f525f544f4b454e5f494400000000000000604482015260640161058c565b600b546000908152600c602090815260408083208584529091529020805460ff191660011790556008546105e9908290610fad565b6000602082840312156111e857600080fd5b81356111f38161152c565b9392505050565b60006020828403121561120c57600080fd5b81516111f38161152c565b6000806040838503121561122a57600080fd5b82356112358161152c565b915060208301356112458161152c565b809150509250929050565b60008060006060848603121561126557600080fd5b83356112708161152c565b925060208401356112808161152c565b929592945050506040919091013590565b600080604083850312156112a457600080fd5b82356112af8161152c565b946020939093013593505050565b6000602082840312156112cf57600080fd5b5035919050565b6000602082840312156112e857600080fd5b5051919050565b6000806040838503121561130257600080fd5b50508035926020909101359150565b600060208083528351808285015260005b8181101561133e57858101830151858201604001528201611322565b81811115611350576000604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082198211156113ae576113ae611516565b500190565b600181815b808511156113ee5781600019048211156113d4576113d4611516565b808516156113e157918102915b93841c93908002906113b8565b509250929050565b60006111f360ff84168360008261140f575060016104f8565b8161141c575060006104f8565b8160018114611432576002811461143c57611458565b60019150506104f8565b60ff84111561144d5761144d611516565b50506001821b6104f8565b5060208310610133831016604e8410600b841016171561147b575081810a6104f8565b61148583836113b3565b806000190482111561149957611499611516565b029392505050565b60008160001904831182151516156114bb576114bb611516565b500290565b600181811c908216806114d457607f821691505b602082108114156114f557634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561150f5761150f611516565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03811681146106e757600080fdfea2646970667358221220caf9f901b3bbf14580aed574cbcc8fd06ccb34ed4e0ce622dfa447a230c4b5de64736f6c63430008070033

Deployed Bytecode Sourcemap

26617:9020:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8496:100;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;10804:210;;;;;;:::i;:::-;;:::i;:::-;;;2975:14:1;;2968:22;2950:41;;2938:2;2923:18;10804:210:0;2810:187:1;9616:108:0;9704:12;;9616:108;;;9692:25:1;;;9680:2;9665:18;9616:108:0;9546:177:1;26997:61:0;;;;;;11496:529;;;;;;:::i;:::-;;:::i;35399:235::-;;;;;;:::i;:::-;;:::i;:::-;;27344:31;;;;;;9458:93;;;9541:2;9870:36:1;;9858:2;9843:18;9458:93:0;9728:184:1;12434:297:0;;;;;;:::i;:::-;;:::i;33858:91::-;;;;;;:::i;:::-;;:::i;27678:32::-;;;;;;33519:196;;;;;;:::i;:::-;;:::i;26877:38::-;;;;;-1:-1:-1;;;;;26877:38:0;;;;;;-1:-1:-1;;;;;2487:32:1;;;2469:51;;2457:2;2442:18;26877:38:0;2323:203:1;32568:136:0;;;;;;:::i;:::-;;:::i;34318:187::-;;;;;;:::i;:::-;;:::i;9787:177::-;;;;;;:::i;:::-;-1:-1:-1;;;;;9938:18:0;9906:7;9938:18;;;:9;:18;;;;;;;9787:177;2480:94;;;:::i;32936:238::-;;;;;;:::i;:::-;;:::i;30305:955::-;;;;;;:::i;:::-;;:::i;1829:87::-;1875:7;1902:6;-1:-1:-1;;;;;1902:6:0;1829:87;;8715:104;;;:::i;13234:482::-;;;;;;:::i;:::-;;:::i;10177:216::-;;;;;;:::i;:::-;;:::i;28569:526::-;;;;;;:::i;:::-;;:::i;27826:25::-;;;;;;26781:89;;;;;-1:-1:-1;;;;;26781:89:0;;;29358:600;;;:::i;10456:201::-;;;;;;:::i;:::-;-1:-1:-1;;;;;10622:18:0;;;10590:7;10622:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;10456:201;28005:74;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;2729:229;;;;;;:::i;:::-;;:::i;8496:100::-;8550:13;8583:5;8576:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8496:100;:::o;10804:210::-;10923:4;10945:39;760:10;10968:7;10977:6;10945:8;:39::i;:::-;-1:-1:-1;11002:4:0;10804:210;;;;;:::o;11496:529::-;11636:4;11653:36;11663:6;11671:9;11682:6;11653:9;:36::i;:::-;-1:-1:-1;;;;;11729:19:0;;11702:24;11729:19;;;:11;:19;;;;;;;;760:10;11729:33;;;;;;;;11795:26;;;;11773:116;;;;-1:-1:-1;;;11773:116:0;;6353:2:1;11773:116:0;;;6335:21:1;6392:2;6372:18;;;6365:30;6431:34;6411:18;;;6404:62;-1:-1:-1;;;6482:18:1;;;6475:38;6530:19;;11773:116:0;;;;;;;;;11925:57;11934:6;760:10;11975:6;11956:16;:25;11925:8;:57::i;:::-;-1:-1:-1;12013:4:0;;11496:529;-1:-1:-1;;;;11496:529:0:o;35399:235::-;1875:7;1902:6;-1:-1:-1;;;;;1902:6:0;760:10;2049:23;2041:68;;;;-1:-1:-1;;;2041:68:0;;;;;;;:::i;:::-;35546:21:::1;35559:7;35546:12;:21::i;:::-;35578:48;35604:21;35578:25;:48::i;:::-;35399:235:::0;;:::o;12434:297::-;760:10;12549:4;12643:25;;;:11;:25;;;;;;;;-1:-1:-1;;;;;12643:34:0;;;;;;;;;;12549:4;;12571:130;;12621:7;;12643:47;;12680:10;;12643:47;:::i;:::-;12571:8;:130::i;33858:91::-;1875:7;1902:6;-1:-1:-1;;;;;1902:6:0;760:10;2049:23;2041:68;;;;-1:-1:-1;;;2041:68:0;;;;;;;:::i;:::-;33925:6:::1;:16:::0;33858:91::o;33519:196::-;1875:7;1902:6;-1:-1:-1;;;;;1902:6:0;760:10;2049:23;2041:68;;;;-1:-1:-1;;;2041:68:0;;;;;;;:::i;:::-;33644:12:::1;:28:::0;;;;33683:10:::1;:24:::0;33519:196::o;32568:136::-;1875:7;1902:6;-1:-1:-1;;;;;1902:6:0;760:10;2049:23;2041:68;;;;-1:-1:-1;;;2041:68:0;;;;;;;:::i;:::-;32643:53:::1;32649:7;1875::::0;1902:6;-1:-1:-1;;;;;1902:6:0;;1829:87;32649:7:::1;32680:14;9541:2:::0;32680::::1;:14;:::i;:::-;32658:37;::::0;:18;:37:::1;:::i;:::-;32643:5;:53::i;:::-;32568:136:::0;:::o;34318:187::-;1875:7;1902:6;-1:-1:-1;;;;;1902:6:0;760:10;2049:23;2041:68;;;;-1:-1:-1;;;2041:68:0;;;;;;;:::i;:::-;34482:14:::1;9541:2:::0;34482::::1;:14;:::i;:::-;34457:40;::::0;:21;:40:::1;:::i;:::-;34435:19;:62:::0;-1:-1:-1;34318:187:0:o;2480:94::-;1875:7;1902:6;-1:-1:-1;;;;;1902:6:0;760:10;2049:23;2041:68;;;;-1:-1:-1;;;2041:68:0;;;;;;;:::i;:::-;2545:21:::1;2563:1;2545:9;:21::i;:::-;2480:94::o:0;32936:238::-;1875:7;1902:6;-1:-1:-1;;;;;1902:6:0;760:10;2049:23;2041:68;;;;-1:-1:-1;;;2041:68:0;;;;;;;:::i;:::-;33056:20:::1;:44:::0;;-1:-1:-1;;;;;33056:44:0;;::::1;-1:-1:-1::0;;;;;;33056:44:0;;::::1;::::0;::::1;::::0;;;33111:13:::1;:55:::0;;;;::::1;;::::0;;32936:238::o;30305:955::-;30443:13;;30415:25;;-1:-1:-1;;;;;30443:13:0;:23;760:10;30443:37;;-1:-1:-1;;;;;;30443:37:0;;;;;;;-1:-1:-1;;;;;2487:32:1;;;30443:37:0;;;2469:51:1;2442:18;;30443:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;30415:65;;30540:1;30520:17;:21;30512:49;;;;-1:-1:-1;;;30512:49:0;;8638:2:1;30512:49:0;;;8620:21:1;8677:2;8657:18;;;8650:30;-1:-1:-1;;;8696:18:1;;;8689:45;8751:18;;30512:49:0;8436:339:1;30512:49:0;30787:17;30771:13;:33;30725:125;;;;-1:-1:-1;;;30725:125:0;;4443:2:1;30725:125:0;;;4425:21:1;4482:2;4462:18;;;4455:30;-1:-1:-1;;;4501:18:1;;;4494:48;4559:18;;30725:125:0;4241:342:1;30725:125:0;30946:15;30929:324;30968:13;30963:1;:18;30929:324;;31145:13;;31120:121;;-1:-1:-1;;;;;31145:13:0;:33;760:10;31179:12;31145:50;;-1:-1:-1;;;;;;31145:50:0;;;;;;;-1:-1:-1;;;;;2723:32:1;;;31145:50:0;;;2705:51:1;2772:18;;;2765:34;;;2678:18;;31145:50:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;760:10;31120:6;:121::i;:::-;30983:3;;;;:::i;:::-;;;;30929:324;;;;30404:856;30305:955;;:::o;8715:104::-;8771:13;8804:7;8797:14;;;;;:::i;13234:482::-;760:10;13354:4;13403:25;;;:11;:25;;;;;;;;-1:-1:-1;;;;;13403:34:0;;;;;;;;;;13470:35;;;;13448:122;;;;-1:-1:-1;;;13448:122:0;;8982:2:1;13448:122:0;;;8964:21:1;9021:2;9001:18;;;8994:30;9060:34;9040:18;;;9033:62;-1:-1:-1;;;9111:18:1;;;9104:35;9156:19;;13448:122:0;8780:401:1;13448:122:0;13606:67;760:10;13629:7;13657:15;13638:16;:34;13606:8;:67::i;:::-;-1:-1:-1;13704:4:0;;13234:482;-1:-1:-1;;;13234:482:0:o;10177:216::-;10299:4;10321:42;760:10;10345:9;10356:6;10321:9;:42::i;28569:526::-;28861:13;;:30;;-1:-1:-1;;;28861:30:0;;;;;9692:25:1;;;-1:-1:-1;;;;;28861:13:0;;;;:21;;9665:18:1;;28861:30:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;28845:46:0;760:10;-1:-1:-1;;;;;28845:46:0;;28823:113;;;;-1:-1:-1;;;28823:113:0;;6007:2:1;28823:113:0;;;5989:21:1;6046:2;6026:18;;;6019:30;-1:-1:-1;;;6065:18:1;;;6058:47;6122:18;;28823:113:0;5805:341:1;28823:113:0;29058:29;29065:7;760:10;31120:6;:121::i;29358:600::-;29434:13;;29406:25;;-1:-1:-1;;;;;29434:13:0;:23;760:10;29434:37;;-1:-1:-1;;;;;;29434:37:0;;;;;;;-1:-1:-1;;;;;2487:32:1;;;29434:37:0;;;2469:51:1;2442:18;;29434:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;29406:65;;29531:1;29511:17;:21;29503:49;;;;-1:-1:-1;;;29503:49:0;;8638:2:1;29503:49:0;;;8620:21:1;8677:2;8657:18;;;8650:30;-1:-1:-1;;;8696:18:1;;;8689:45;8751:18;;29503:49:0;8436:339:1;29503:49:0;29643:9;29638:313;29662:17;29658:1;:21;29638:313;;;29843:13;;29818:121;;-1:-1:-1;;;;;29843:13:0;:33;760:10;29877:12;680:98;29818:121;29681:3;;;;:::i;:::-;;;;29638:313;;2729:229;1875:7;1902:6;-1:-1:-1;;;;;1902:6:0;760:10;2049:23;2041:68;;;;-1:-1:-1;;;2041:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;2832:22:0;::::1;2810:110;;;::::0;-1:-1:-1;;;2810:110:0;;4790:2:1;2810:110:0::1;::::0;::::1;4772:21:1::0;4829:2;4809:18;;;4802:30;4868:34;4848:18;;;4841:62;-1:-1:-1;;;4919:18:1;;;4912:36;4965:19;;2810:110:0::1;4588:402:1::0;2810:110:0::1;2931:19;2941:8;2931:9;:19::i;17024:380::-:0;-1:-1:-1;;;;;17160:19:0;;17152:68;;;;-1:-1:-1;;;17152:68:0;;7883:2:1;17152:68:0;;;7865:21:1;7922:2;7902:18;;;7895:30;7961:34;7941:18;;;7934:62;-1:-1:-1;;;8012:18:1;;;8005:34;8056:19;;17152:68:0;7681:400:1;17152:68:0;-1:-1:-1;;;;;17239:21:0;;17231:68;;;;-1:-1:-1;;;17231:68:0;;5197:2:1;17231:68:0;;;5179:21:1;5236:2;5216:18;;;5209:30;5275:34;5255:18;;;5248:62;-1:-1:-1;;;5326:18:1;;;5319:32;5368:19;;17231:68:0;4995:398:1;17231:68:0;-1:-1:-1;;;;;17312:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;17364:32;;9692:25:1;;;17364:32:0;;9665:18:1;17364:32:0;;;;;;;17024:380;;;:::o;14206:770::-;-1:-1:-1;;;;;14346:20:0;;14338:70;;;;-1:-1:-1;;;14338:70:0;;7123:2:1;14338:70:0;;;7105:21:1;7162:2;7142:18;;;7135:30;7201:34;7181:18;;;7174:62;-1:-1:-1;;;7252:18:1;;;7245:35;7297:19;;14338:70:0;6921:401:1;14338:70:0;-1:-1:-1;;;;;14427:23:0;;14419:71;;;;-1:-1:-1;;;14419:71:0;;4039:2:1;14419:71:0;;;4021:21:1;4078:2;4058:18;;;4051:30;4117:34;4097:18;;;4090:62;-1:-1:-1;;;4168:18:1;;;4161:33;4211:19;;14419:71:0;3837:399:1;14419:71:0;-1:-1:-1;;;;;14587:17:0;;14563:21;14587:17;;;:9;:17;;;;;;14637:23;;;;14615:111;;;;-1:-1:-1;;;14615:111:0;;5600:2:1;14615:111:0;;;5582:21:1;5639:2;5619:18;;;5612:30;5678:34;5658:18;;;5651:62;-1:-1:-1;;;5729:18:1;;;5722:36;5775:19;;14615:111:0;5398:402:1;14615:111:0;-1:-1:-1;;;;;14762:17:0;;;;;;;:9;:17;;;;;;14782:22;;;14762:42;;14826:20;;;;;;;;:30;;14798:6;;14762:17;14826:30;;14798:6;;14826:30;:::i;:::-;;;;;;;;14891:9;-1:-1:-1;;;;;14874:35:0;14883:6;-1:-1:-1;;;;;14874:35:0;;14902:6;14874:35;;;;9692:25:1;;9680:2;9665:18;;9546:177;14874:35:0;;;;;;;;14922:46;18004:125;15263:399;-1:-1:-1;;;;;15347:21:0;;15339:65;;;;-1:-1:-1;;;15339:65:0;;9388:2:1;15339:65:0;;;9370:21:1;9427:2;9407:18;;;9400:30;9466:33;9446:18;;;9439:61;9517:18;;15339:65:0;9186:355:1;15339:65:0;15495:6;15479:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;15512:18:0;;;;;;:9;:18;;;;;:28;;15534:6;;15512:18;:28;;15534:6;;15512:28;:::i;:::-;;;;-1:-1:-1;;15556:37:0;;9692:25:1;;;-1:-1:-1;;;;;15556:37:0;;;15573:1;;15556:37;;9680:2:1;9665:18;15556:37:0;;;;;;;35399:235;;:::o;2966:173::-;3022:16;3041:6;;-1:-1:-1;;;;;3058:17:0;;;-1:-1:-1;;;;;;3058:17:0;;;;;;3091:40;;3041:6;;;;;;;3091:40;;3022:16;3091:40;3011:128;2966:173;:::o;31328:899::-;31581:12;;31570:7;:23;;:48;;;;;31608:10;;31597:7;:21;;31570:48;31548:119;;;;-1:-1:-1;;;31548:119:0;;8288:2:1;31548:119:0;;;8270:21:1;8327:2;8307:18;;;8300:30;-1:-1:-1;;;8346:18:1;;;8339:51;8407:18;;31548:119:0;8086:345:1;31548:119:0;31834:6;;31811:30;;;;:22;:30;;;;;;;;:39;;;;;;;;;;;31810:40;31788:115;;;;-1:-1:-1;;;31788:115:0;;7529:2:1;31788:115:0;;;7511:21:1;7568:2;7548:18;;;7541:30;7607:27;7587:18;;;7580:55;7652:18;;31788:115:0;7327:349:1;31788:115:0;32061:6;;32038:30;;;;:22;:30;;;;;;;;:39;;;;;;;;:46;;-1:-1:-1;;32038:46:0;32080:4;32038:46;;;32199:19;;32181:38;;32187:10;;32181:5;:38::i;14:247:1:-;73:6;126:2;114:9;105:7;101:23;97:32;94:52;;;142:1;139;132:12;94:52;181:9;168:23;200:31;225:5;200:31;:::i;:::-;250:5;14:247;-1:-1:-1;;;14:247:1:o;266:251::-;336:6;389:2;377:9;368:7;364:23;360:32;357:52;;;405:1;402;395:12;357:52;437:9;431:16;456:31;481:5;456:31;:::i;522:388::-;590:6;598;651:2;639:9;630:7;626:23;622:32;619:52;;;667:1;664;657:12;619:52;706:9;693:23;725:31;750:5;725:31;:::i;:::-;775:5;-1:-1:-1;832:2:1;817:18;;804:32;845:33;804:32;845:33;:::i;:::-;897:7;887:17;;;522:388;;;;;:::o;915:456::-;992:6;1000;1008;1061:2;1049:9;1040:7;1036:23;1032:32;1029:52;;;1077:1;1074;1067:12;1029:52;1116:9;1103:23;1135:31;1160:5;1135:31;:::i;:::-;1185:5;-1:-1:-1;1242:2:1;1227:18;;1214:32;1255:33;1214:32;1255:33;:::i;:::-;915:456;;1307:7;;-1:-1:-1;;;1361:2:1;1346:18;;;;1333:32;;915:456::o;1376:315::-;1444:6;1452;1505:2;1493:9;1484:7;1480:23;1476:32;1473:52;;;1521:1;1518;1511:12;1473:52;1560:9;1547:23;1579:31;1604:5;1579:31;:::i;:::-;1629:5;1681:2;1666:18;;;;1653:32;;-1:-1:-1;;;1376:315:1:o;1696:180::-;1755:6;1808:2;1796:9;1787:7;1783:23;1779:32;1776:52;;;1824:1;1821;1814:12;1776:52;-1:-1:-1;1847:23:1;;1696:180;-1:-1:-1;1696:180:1:o;1881:184::-;1951:6;2004:2;1992:9;1983:7;1979:23;1975:32;1972:52;;;2020:1;2017;2010:12;1972:52;-1:-1:-1;2043:16:1;;1881:184;-1:-1:-1;1881:184:1:o;2070:248::-;2138:6;2146;2199:2;2187:9;2178:7;2174:23;2170:32;2167:52;;;2215:1;2212;2205:12;2167:52;-1:-1:-1;;2238:23:1;;;2308:2;2293:18;;;2280:32;;-1:-1:-1;2070:248:1:o;3235:597::-;3347:4;3376:2;3405;3394:9;3387:21;3437:6;3431:13;3480:6;3475:2;3464:9;3460:18;3453:34;3505:1;3515:140;3529:6;3526:1;3523:13;3515:140;;;3624:14;;;3620:23;;3614:30;3590:17;;;3609:2;3586:26;3579:66;3544:10;;3515:140;;;3673:6;3670:1;3667:13;3664:91;;;3743:1;3738:2;3729:6;3718:9;3714:22;3710:31;3703:42;3664:91;-1:-1:-1;3816:2:1;3795:15;-1:-1:-1;;3791:29:1;3776:45;;;;3823:2;3772:54;;3235:597;-1:-1:-1;;;3235:597:1:o;6560:356::-;6762:2;6744:21;;;6781:18;;;6774:30;6840:34;6835:2;6820:18;;6813:62;6907:2;6892:18;;6560:356::o;9917:128::-;9957:3;9988:1;9984:6;9981:1;9978:13;9975:39;;;9994:18;;:::i;:::-;-1:-1:-1;10030:9:1;;9917:128::o;10050:422::-;10139:1;10182:5;10139:1;10196:270;10217:7;10207:8;10204:21;10196:270;;;10276:4;10272:1;10268:6;10264:17;10258:4;10255:27;10252:53;;;10285:18;;:::i;:::-;10335:7;10325:8;10321:22;10318:55;;;10355:16;;;;10318:55;10434:22;;;;10394:15;;;;10196:270;;;10200:3;10050:422;;;;;:::o;10477:140::-;10535:5;10564:47;10605:4;10595:8;10591:19;10585:4;10671:5;10701:8;10691:80;;-1:-1:-1;10742:1:1;10756:5;;10691:80;10790:4;10780:76;;-1:-1:-1;10827:1:1;10841:5;;10780:76;10872:4;10890:1;10885:59;;;;10958:1;10953:130;;;;10865:218;;10885:59;10915:1;10906:10;;10929:5;;;10953:130;10990:3;10980:8;10977:17;10974:43;;;10997:18;;:::i;:::-;-1:-1:-1;;11053:1:1;11039:16;;11068:5;;10865:218;;11167:2;11157:8;11154:16;11148:3;11142:4;11139:13;11135:36;11129:2;11119:8;11116:16;11111:2;11105:4;11102:12;11098:35;11095:77;11092:159;;;-1:-1:-1;11204:19:1;;;11236:5;;11092:159;11283:34;11308:8;11302:4;11283:34;:::i;:::-;11353:6;11349:1;11345:6;11341:19;11332:7;11329:32;11326:58;;;11364:18;;:::i;:::-;11402:20;;10622:806;-1:-1:-1;;;10622:806:1:o;11433:168::-;11473:7;11539:1;11535;11531:6;11527:14;11524:1;11521:21;11516:1;11509:9;11502:17;11498:45;11495:71;;;11546:18;;:::i;:::-;-1:-1:-1;11586:9:1;;11433:168::o;11606:380::-;11685:1;11681:12;;;;11728;;;11749:61;;11803:4;11795:6;11791:17;11781:27;;11749:61;11856:2;11848:6;11845:14;11825:18;11822:38;11819:161;;;11902:10;11897:3;11893:20;11890:1;11883:31;11937:4;11934:1;11927:15;11965:4;11962:1;11955:15;11819:161;;11606:380;;;:::o;11991:135::-;12030:3;-1:-1:-1;;12051:17:1;;12048:43;;;12071:18;;:::i;:::-;-1:-1:-1;12118:1:1;12107:13;;11991:135::o;12131:127::-;12192:10;12187:3;12183:20;12180:1;12173:31;12223:4;12220:1;12213:15;12247:4;12244:1;12237:15;12263:131;-1:-1:-1;;;;;12338:31:1;;12328:42;;12318:70;;12384:1;12381;12374:12

Swarm Source

ipfs://caf9f901b3bbf14580aed574cbcc8fd06ccb34ed4e0ce622dfa447a230c4b5de

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.