false
true
0

Contract Address Details

0x10d46D6F8f691d3439A781FC5E7BE598Ab67b393

Token
EvmBitcoinToken (E.BTC)
Creator
0x2e7000–f30ae2 at 0xc5b037–67eafb
Balance
0 PLS ( )
Tokens
Fetching tokens...
Transactions
2,166,449 Transactions
Transfers
0 Transfers
Gas Used
0
Last Balance Update
25999180
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
Contract name:
EvmBitcoinToken




Optimization enabled
false
Compiler version
v0.8.24+commit.e11b9ed9




EVM Version
default




Verified at
2024-02-04T04:40:49.354888Z

Contract source code

// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/utils/math/SafeMath.sol


// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

// File: @openzeppelin/contracts/interfaces/draft-IERC6093.sol


// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;

/**
 * @dev Standard ERC20 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens.
 */
interface IERC20Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC20InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC20InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     * @param allowance Amount of tokens a `spender` is allowed to operate with.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC20InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `spender` to be approved. Used in approvals.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC20InvalidSpender(address spender);
}

/**
 * @dev Standard ERC721 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
 */
interface IERC721Errors {
    /**
     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.
     * Used in balance queries.
     * @param owner Address of the current owner of a token.
     */
    error ERC721InvalidOwner(address owner);

    /**
     * @dev Indicates a `tokenId` whose `owner` is the zero address.
     * @param tokenId Identifier number of a token.
     */
    error ERC721NonexistentToken(uint256 tokenId);

    /**
     * @dev Indicates an error related to the ownership over a particular token. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param tokenId Identifier number of a token.
     * @param owner Address of the current owner of a token.
     */
    error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC721InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC721InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param tokenId Identifier number of a token.
     */
    error ERC721InsufficientApproval(address operator, uint256 tokenId);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC721InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC721InvalidOperator(address operator);
}

/**
 * @dev Standard ERC1155 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens.
 */
interface IERC1155Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     * @param tokenId Identifier number of a token.
     */
    error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC1155InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC1155InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param owner Address of the current owner of a token.
     */
    error ERC1155MissingApprovalForAll(address operator, address owner);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC1155InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC1155InvalidOperator(address operator);

    /**
     * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
     * Used in batch transfers.
     * @param idsLength Length of the array of token identifiers
     * @param valuesLength Length of the array of token amounts
     */
    error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}

// File: @openzeppelin/contracts/utils/Context.sol


// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

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

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol


// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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 Returns the value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the value of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 value) 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 a `value` amount of tokens 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 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 value) external returns (bool);
}

// File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol


// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.20;


/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

// File: @openzeppelin/contracts/token/ERC20/ERC20.sol


// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.20;





/**
 * @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}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * The default value of {decimals} is 18. To change this, you should override
 * this function so it returns a different value.
 *
 * 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.
 */
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
    mapping(address account => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * 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 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 default value returned by this function, unless
     * it's 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 returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `value`.
     */
    function transfer(address to, uint256 value) public virtual returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, value);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `value` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 value) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, value);
        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}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `value`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `value`.
     */
    function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, value);
        _transfer(from, to, value);
        return true;
    }

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to`.
     *
     * 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.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _transfer(address from, address to, uint256 value) internal {
        if (from == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        if (to == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(from, to, value);
    }

    /**
     * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
     * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
     * this function.
     *
     * Emits a {Transfer} event.
     */
    function _update(address from, address to, uint256 value) internal virtual {
        if (from == address(0)) {
            // Overflow check required: The rest of the code assumes that totalSupply never overflows
            _totalSupply += value;
        } else {
            uint256 fromBalance = _balances[from];
            if (fromBalance < value) {
                revert ERC20InsufficientBalance(from, fromBalance, value);
            }
            unchecked {
                // Overflow not possible: value <= fromBalance <= totalSupply.
                _balances[from] = fromBalance - value;
            }
        }

        if (to == address(0)) {
            unchecked {
                // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
                _totalSupply -= value;
            }
        } else {
            unchecked {
                // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
                _balances[to] += value;
            }
        }

        emit Transfer(from, to, value);
    }

    /**
     * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
     * Relies on the `_update` mechanism
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _mint(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(address(0), account, value);
    }

    /**
     * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
     * Relies on the `_update` mechanism.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead
     */
    function _burn(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        _update(account, address(0), value);
    }

    /**
     * @dev Sets `value` 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.
     *
     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
     */
    function _approve(address owner, address spender, uint256 value) internal {
        _approve(owner, spender, value, true);
    }

    /**
     * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
     *
     * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
     * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any
     * `Approval` event during `transferFrom` operations.
     *
     * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
     * true using the following override:
     * ```
     * function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
     *     super._approve(owner, spender, value, true);
     * }
     * ```
     *
     * Requirements are the same as {_approve}.
     */
    function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
        if (owner == address(0)) {
            revert ERC20InvalidApprover(address(0));
        }
        if (spender == address(0)) {
            revert ERC20InvalidSpender(address(0));
        }
        _allowances[owner][spender] = value;
        if (emitEvent) {
            emit Approval(owner, spender, value);
        }
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `value`.
     *
     * Does not update the allowance value in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Does not emit an {Approval} event.
     */
    function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            if (currentAllowance < value) {
                revert ERC20InsufficientAllowance(spender, currentAllowance, value);
            }
            unchecked {
                _approve(owner, spender, currentAllowance - value, false);
            }
        }
    }
}

// File: contracts/btc like.sol


pragma solidity ^0.8.0;



contract EvmBitcoinToken is ERC20 {
    using SafeMath for uint256;

    uint256 public mintCount;
    uint256 public maxSupply = 21_000_000 * 10**18;  // 21 million with 18 decimals
    uint256 public initialReward = 50 * 10**18;  // 50 tokens with 18 decimals
    uint256 public currentHalving = 0;
    mapping(address => uint256) public mintCountPerWallet;

    modifier maxSupplyNotReached() {
        require(totalSupply() < maxSupply, "Max supply reached");
        _;
    }

    modifier maxMintsPerWallet() {
        require(mintCountPerWallet[msg.sender] < 25, "Exceeded max mints per wallet");
        _;
    }

    event Debug(string message, uint256 value);

    constructor() ERC20("EvmBitcoinToken", "E.BTC") {
        // Do not mint initial supply in the constructor
    }

    function mint() external maxSupplyNotReached maxMintsPerWallet {
        uint256 reward = initialReward.div(2**currentHalving);
        require(totalSupply() + reward <= maxSupply, "Exceeds max supply");

        emit Debug("Reward before mint:", reward);

        _mint(msg.sender, reward);
        mintCount++;
        mintCountPerWallet[msg.sender]++;

        // Check if it's time for halving
        if (mintCount % 210000 == 0) {
            currentHalving++;
        }
    }
}
        

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[]},{"type":"error","name":"ERC20InsufficientAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"allowance","internalType":"uint256"},{"type":"uint256","name":"needed","internalType":"uint256"}]},{"type":"error","name":"ERC20InsufficientBalance","inputs":[{"type":"address","name":"sender","internalType":"address"},{"type":"uint256","name":"balance","internalType":"uint256"},{"type":"uint256","name":"needed","internalType":"uint256"}]},{"type":"error","name":"ERC20InvalidApprover","inputs":[{"type":"address","name":"approver","internalType":"address"}]},{"type":"error","name":"ERC20InvalidReceiver","inputs":[{"type":"address","name":"receiver","internalType":"address"}]},{"type":"error","name":"ERC20InvalidSender","inputs":[{"type":"address","name":"sender","internalType":"address"}]},{"type":"error","name":"ERC20InvalidSpender","inputs":[{"type":"address","name":"spender","internalType":"address"}]},{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"spender","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Debug","inputs":[{"type":"string","name":"message","internalType":"string","indexed":false},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"allowance","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"spender","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"approve","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"value","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"currentHalving","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"decimals","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"initialReward","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"maxSupply","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"mint","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"mintCount","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"mintCountPerWallet","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transfer","inputs":[{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"value","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"value","internalType":"uint256"}]}]
              

Contract Creation Code

Verify & Publish
0x60806040526a115eec47f6cf7e350000006006556802b5e3af16b18800006007555f60085534801562000030575f80fd5b506040518060400160405280600f81526020017f45766d426974636f696e546f6b656e00000000000000000000000000000000008152506040518060400160405280600581526020017f452e4254430000000000000000000000000000000000000000000000000000008152508160039081620000ae91906200032d565b508060049081620000c091906200032d565b50505062000411565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806200014557607f821691505b6020821081036200015b576200015a62000100565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f60088302620001bf7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000182565b620001cb868362000182565b95508019841693508086168417925050509392505050565b5f819050919050565b5f819050919050565b5f620002156200020f6200020984620001e3565b620001ec565b620001e3565b9050919050565b5f819050919050565b6200023083620001f5565b620002486200023f826200021c565b8484546200018e565b825550505050565b5f90565b6200025e62000250565b6200026b81848462000225565b505050565b5b818110156200029257620002865f8262000254565b60018101905062000271565b5050565b601f821115620002e157620002ab8162000161565b620002b68462000173565b81016020851015620002c6578190505b620002de620002d58562000173565b83018262000270565b50505b505050565b5f82821c905092915050565b5f620003035f1984600802620002e6565b1980831691505092915050565b5f6200031d8383620002f2565b9150826002028217905092915050565b6200033882620000c9565b67ffffffffffffffff811115620003545762000353620000d3565b5b6200036082546200012d565b6200036d82828562000296565b5f60209050601f831160018114620003a3575f84156200038e578287015190505b6200039a858262000310565b86555062000409565b601f198416620003b38662000161565b5f5b82811015620003dc57848901518255600182019150602085019450602081019050620003b5565b86831015620003fc5784890151620003f8601f891682620002f2565b8355505b6001600288020188555050505b505050505050565b6115ef806200041f5f395ff3fe608060405234801561000f575f80fd5b50600436106100f3575f3560e01c806395d89b4111610095578063d5abeb0111610064578063d5abeb0114610275578063dd62ed3e14610293578063e6fd42ee146102c3578063f335eac9146102e1576100f3565b806395d89b41146101eb5780639659867e14610209578063a9059cbb14610227578063abee967c14610257576100f3565b806318160ddd116100d157806318160ddd1461014f57806323b872dd1461016d578063313ce5671461019d57806370a08231146101bb576100f3565b806306fdde03146100f7578063095ea7b3146101155780631249c58b14610145575b5f80fd5b6100ff610311565b60405161010c9190610e6d565b60405180910390f35b61012f600480360381019061012a9190610f1e565b6103a1565b60405161013c9190610f76565b60405180910390f35b61014d6103c3565b005b6101576105e7565b6040516101649190610f9e565b60405180910390f35b61018760048036038101906101829190610fb7565b6105f0565b6040516101949190610f76565b60405180910390f35b6101a561061e565b6040516101b29190611022565b60405180910390f35b6101d560048036038101906101d0919061103b565b610626565b6040516101e29190610f9e565b60405180910390f35b6101f361066b565b6040516102009190610e6d565b60405180910390f35b6102116106fb565b60405161021e9190610f9e565b60405180910390f35b610241600480360381019061023c9190610f1e565b610701565b60405161024e9190610f76565b60405180910390f35b61025f610723565b60405161026c9190610f9e565b60405180910390f35b61027d610729565b60405161028a9190610f9e565b60405180910390f35b6102ad60048036038101906102a89190611066565b61072f565b6040516102ba9190610f9e565b60405180910390f35b6102cb6107b1565b6040516102d89190610f9e565b60405180910390f35b6102fb60048036038101906102f6919061103b565b6107b7565b6040516103089190610f9e565b60405180910390f35b606060038054610320906110d1565b80601f016020809104026020016040519081016040528092919081815260200182805461034c906110d1565b80156103975780601f1061036e57610100808354040283529160200191610397565b820191905f5260205f20905b81548152906001019060200180831161037a57829003601f168201915b5050505050905090565b5f806103ab6107cc565b90506103b88185856107d3565b600191505092915050565b6006546103ce6105e7565b1061040e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104059061114b565b60405180910390fd5b601960095f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20541061048e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610485906111b3565b60405180910390fd5b5f6104b260085460026104a1919061132d565b6007546107e590919063ffffffff16565b9050600654816104c06105e7565b6104ca9190611377565b111561050b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610502906113f4565b60405180910390fd5b7f3c5ad147104e56be34a9176a6692f7df8d2f4b29a5af06bc6b98970d329d65778160405161053a919061145c565b60405180910390a161054c33826107fa565b60055f81548092919061055e90611488565b919050555060095f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8154809291906105b090611488565b91905055505f620334506005546105c791906114fc565b036105e45760085f8154809291906105de90611488565b91905055505b50565b5f600254905090565b5f806105fa6107cc565b9050610607858285610879565b61061285858561090b565b60019150509392505050565b5f6012905090565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b60606004805461067a906110d1565b80601f01602080910402602001604051908101604052809291908181526020018280546106a6906110d1565b80156106f15780601f106106c8576101008083540402835291602001916106f1565b820191905f5260205f20905b8154815290600101906020018083116106d457829003601f168201915b5050505050905090565b60055481565b5f8061070b6107cc565b905061071881858561090b565b600191505092915050565b60075481565b60065481565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b60085481565b6009602052805f5260405f205f915090505481565b5f33905090565b6107e083838360016109fb565b505050565b5f81836107f2919061152c565b905092915050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361086a575f6040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610861919061156b565b60405180910390fd5b6108755f8383610bca565b5050565b5f610884848461072f565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811461090557818110156108f6578281836040517ffb8f41b20000000000000000000000000000000000000000000000000000000081526004016108ed93929190611584565b60405180910390fd5b61090484848484035f6109fb565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361097b575f6040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610972919061156b565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036109eb575f6040517fec442f050000000000000000000000000000000000000000000000000000000081526004016109e2919061156b565b60405180910390fd5b6109f6838383610bca565b505050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610a6b575f6040517fe602df05000000000000000000000000000000000000000000000000000000008152600401610a62919061156b565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610adb575f6040517f94280d62000000000000000000000000000000000000000000000000000000008152600401610ad2919061156b565b60405180910390fd5b8160015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508015610bc4578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610bbb9190610f9e565b60405180910390a35b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610c1a578060025f828254610c0e9190611377565b92505081905550610ce8565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015610ca3578381836040517fe450d38c000000000000000000000000000000000000000000000000000000008152600401610c9a93929190611584565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610d2f578060025f8282540392505081905550610d79565b805f808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610dd69190610f9e565b60405180910390a3505050565b5f81519050919050565b5f82825260208201905092915050565b5f5b83811015610e1a578082015181840152602081019050610dff565b5f8484015250505050565b5f601f19601f8301169050919050565b5f610e3f82610de3565b610e498185610ded565b9350610e59818560208601610dfd565b610e6281610e25565b840191505092915050565b5f6020820190508181035f830152610e858184610e35565b905092915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f610eba82610e91565b9050919050565b610eca81610eb0565b8114610ed4575f80fd5b50565b5f81359050610ee581610ec1565b92915050565b5f819050919050565b610efd81610eeb565b8114610f07575f80fd5b50565b5f81359050610f1881610ef4565b92915050565b5f8060408385031215610f3457610f33610e8d565b5b5f610f4185828601610ed7565b9250506020610f5285828601610f0a565b9150509250929050565b5f8115159050919050565b610f7081610f5c565b82525050565b5f602082019050610f895f830184610f67565b92915050565b610f9881610eeb565b82525050565b5f602082019050610fb15f830184610f8f565b92915050565b5f805f60608486031215610fce57610fcd610e8d565b5b5f610fdb86828701610ed7565b9350506020610fec86828701610ed7565b9250506040610ffd86828701610f0a565b9150509250925092565b5f60ff82169050919050565b61101c81611007565b82525050565b5f6020820190506110355f830184611013565b92915050565b5f602082840312156110505761104f610e8d565b5b5f61105d84828501610ed7565b91505092915050565b5f806040838503121561107c5761107b610e8d565b5b5f61108985828601610ed7565b925050602061109a85828601610ed7565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806110e857607f821691505b6020821081036110fb576110fa6110a4565b5b50919050565b7f4d617820737570706c79207265616368656400000000000000000000000000005f82015250565b5f611135601283610ded565b915061114082611101565b602082019050919050565b5f6020820190508181035f83015261116281611129565b9050919050565b7f4578636565646564206d6178206d696e7473207065722077616c6c65740000005f82015250565b5f61119d601d83610ded565b91506111a882611169565b602082019050919050565b5f6020820190508181035f8301526111ca81611191565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f8160011c9050919050565b5f808291508390505b60018511156112535780860481111561122f5761122e6111d1565b5b600185161561123e5780820291505b808102905061124c856111fe565b9450611213565b94509492505050565b5f8261126b5760019050611326565b81611278575f9050611326565b816001811461128e5760028114611298576112c7565b6001915050611326565b60ff8411156112aa576112a96111d1565b5b8360020a9150848211156112c1576112c06111d1565b5b50611326565b5060208310610133831016604e8410600b84101617156112fc5782820a9050838111156112f7576112f66111d1565b5b611326565b611309848484600161120a565b925090508184048111156113205761131f6111d1565b5b81810290505b9392505050565b5f61133782610eeb565b915061134283610eeb565b925061136f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff848461125c565b905092915050565b5f61138182610eeb565b915061138c83610eeb565b92508282019050808211156113a4576113a36111d1565b5b92915050565b7f45786365656473206d617820737570706c7900000000000000000000000000005f82015250565b5f6113de601283610ded565b91506113e9826113aa565b602082019050919050565b5f6020820190508181035f83015261140b816113d2565b9050919050565b7f526577617264206265666f7265206d696e743a000000000000000000000000005f82015250565b5f611446601383610ded565b915061145182611412565b602082019050919050565b5f6040820190508181035f8301526114738161143a565b90506114826020830184610f8f565b92915050565b5f61149282610eeb565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036114c4576114c36111d1565b5b600182019050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f61150682610eeb565b915061151183610eeb565b925082611521576115206114cf565b5b828206905092915050565b5f61153682610eeb565b915061154183610eeb565b925082611551576115506114cf565b5b828204905092915050565b61156581610eb0565b82525050565b5f60208201905061157e5f83018461155c565b92915050565b5f6060820190506115975f83018661155c565b6115a46020830185610f8f565b6115b16040830184610f8f565b94935050505056fea2646970667358221220676bd1f5b84752f7682cafe982c100c06c63e60fd9cf656d6525bb8f391f0b9864736f6c63430008180033

Deployed ByteCode

0x608060405234801561000f575f80fd5b50600436106100f3575f3560e01c806395d89b4111610095578063d5abeb0111610064578063d5abeb0114610275578063dd62ed3e14610293578063e6fd42ee146102c3578063f335eac9146102e1576100f3565b806395d89b41146101eb5780639659867e14610209578063a9059cbb14610227578063abee967c14610257576100f3565b806318160ddd116100d157806318160ddd1461014f57806323b872dd1461016d578063313ce5671461019d57806370a08231146101bb576100f3565b806306fdde03146100f7578063095ea7b3146101155780631249c58b14610145575b5f80fd5b6100ff610311565b60405161010c9190610e6d565b60405180910390f35b61012f600480360381019061012a9190610f1e565b6103a1565b60405161013c9190610f76565b60405180910390f35b61014d6103c3565b005b6101576105e7565b6040516101649190610f9e565b60405180910390f35b61018760048036038101906101829190610fb7565b6105f0565b6040516101949190610f76565b60405180910390f35b6101a561061e565b6040516101b29190611022565b60405180910390f35b6101d560048036038101906101d0919061103b565b610626565b6040516101e29190610f9e565b60405180910390f35b6101f361066b565b6040516102009190610e6d565b60405180910390f35b6102116106fb565b60405161021e9190610f9e565b60405180910390f35b610241600480360381019061023c9190610f1e565b610701565b60405161024e9190610f76565b60405180910390f35b61025f610723565b60405161026c9190610f9e565b60405180910390f35b61027d610729565b60405161028a9190610f9e565b60405180910390f35b6102ad60048036038101906102a89190611066565b61072f565b6040516102ba9190610f9e565b60405180910390f35b6102cb6107b1565b6040516102d89190610f9e565b60405180910390f35b6102fb60048036038101906102f6919061103b565b6107b7565b6040516103089190610f9e565b60405180910390f35b606060038054610320906110d1565b80601f016020809104026020016040519081016040528092919081815260200182805461034c906110d1565b80156103975780601f1061036e57610100808354040283529160200191610397565b820191905f5260205f20905b81548152906001019060200180831161037a57829003601f168201915b5050505050905090565b5f806103ab6107cc565b90506103b88185856107d3565b600191505092915050565b6006546103ce6105e7565b1061040e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104059061114b565b60405180910390fd5b601960095f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20541061048e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610485906111b3565b60405180910390fd5b5f6104b260085460026104a1919061132d565b6007546107e590919063ffffffff16565b9050600654816104c06105e7565b6104ca9190611377565b111561050b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610502906113f4565b60405180910390fd5b7f3c5ad147104e56be34a9176a6692f7df8d2f4b29a5af06bc6b98970d329d65778160405161053a919061145c565b60405180910390a161054c33826107fa565b60055f81548092919061055e90611488565b919050555060095f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8154809291906105b090611488565b91905055505f620334506005546105c791906114fc565b036105e45760085f8154809291906105de90611488565b91905055505b50565b5f600254905090565b5f806105fa6107cc565b9050610607858285610879565b61061285858561090b565b60019150509392505050565b5f6012905090565b5f805f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b60606004805461067a906110d1565b80601f01602080910402602001604051908101604052809291908181526020018280546106a6906110d1565b80156106f15780601f106106c8576101008083540402835291602001916106f1565b820191905f5260205f20905b8154815290600101906020018083116106d457829003601f168201915b5050505050905090565b60055481565b5f8061070b6107cc565b905061071881858561090b565b600191505092915050565b60075481565b60065481565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b60085481565b6009602052805f5260405f205f915090505481565b5f33905090565b6107e083838360016109fb565b505050565b5f81836107f2919061152c565b905092915050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361086a575f6040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610861919061156b565b60405180910390fd5b6108755f8383610bca565b5050565b5f610884848461072f565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811461090557818110156108f6578281836040517ffb8f41b20000000000000000000000000000000000000000000000000000000081526004016108ed93929190611584565b60405180910390fd5b61090484848484035f6109fb565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361097b575f6040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610972919061156b565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036109eb575f6040517fec442f050000000000000000000000000000000000000000000000000000000081526004016109e2919061156b565b60405180910390fd5b6109f6838383610bca565b505050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603610a6b575f6040517fe602df05000000000000000000000000000000000000000000000000000000008152600401610a62919061156b565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610adb575f6040517f94280d62000000000000000000000000000000000000000000000000000000008152600401610ad2919061156b565b60405180910390fd5b8160015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508015610bc4578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610bbb9190610f9e565b60405180910390a35b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610c1a578060025f828254610c0e9190611377565b92505081905550610ce8565b5f805f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015610ca3578381836040517fe450d38c000000000000000000000000000000000000000000000000000000008152600401610c9a93929190611584565b60405180910390fd5b8181035f808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610d2f578060025f8282540392505081905550610d79565b805f808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610dd69190610f9e565b60405180910390a3505050565b5f81519050919050565b5f82825260208201905092915050565b5f5b83811015610e1a578082015181840152602081019050610dff565b5f8484015250505050565b5f601f19601f8301169050919050565b5f610e3f82610de3565b610e498185610ded565b9350610e59818560208601610dfd565b610e6281610e25565b840191505092915050565b5f6020820190508181035f830152610e858184610e35565b905092915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f610eba82610e91565b9050919050565b610eca81610eb0565b8114610ed4575f80fd5b50565b5f81359050610ee581610ec1565b92915050565b5f819050919050565b610efd81610eeb565b8114610f07575f80fd5b50565b5f81359050610f1881610ef4565b92915050565b5f8060408385031215610f3457610f33610e8d565b5b5f610f4185828601610ed7565b9250506020610f5285828601610f0a565b9150509250929050565b5f8115159050919050565b610f7081610f5c565b82525050565b5f602082019050610f895f830184610f67565b92915050565b610f9881610eeb565b82525050565b5f602082019050610fb15f830184610f8f565b92915050565b5f805f60608486031215610fce57610fcd610e8d565b5b5f610fdb86828701610ed7565b9350506020610fec86828701610ed7565b9250506040610ffd86828701610f0a565b9150509250925092565b5f60ff82169050919050565b61101c81611007565b82525050565b5f6020820190506110355f830184611013565b92915050565b5f602082840312156110505761104f610e8d565b5b5f61105d84828501610ed7565b91505092915050565b5f806040838503121561107c5761107b610e8d565b5b5f61108985828601610ed7565b925050602061109a85828601610ed7565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806110e857607f821691505b6020821081036110fb576110fa6110a4565b5b50919050565b7f4d617820737570706c79207265616368656400000000000000000000000000005f82015250565b5f611135601283610ded565b915061114082611101565b602082019050919050565b5f6020820190508181035f83015261116281611129565b9050919050565b7f4578636565646564206d6178206d696e7473207065722077616c6c65740000005f82015250565b5f61119d601d83610ded565b91506111a882611169565b602082019050919050565b5f6020820190508181035f8301526111ca81611191565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f8160011c9050919050565b5f808291508390505b60018511156112535780860481111561122f5761122e6111d1565b5b600185161561123e5780820291505b808102905061124c856111fe565b9450611213565b94509492505050565b5f8261126b5760019050611326565b81611278575f9050611326565b816001811461128e5760028114611298576112c7565b6001915050611326565b60ff8411156112aa576112a96111d1565b5b8360020a9150848211156112c1576112c06111d1565b5b50611326565b5060208310610133831016604e8410600b84101617156112fc5782820a9050838111156112f7576112f66111d1565b5b611326565b611309848484600161120a565b925090508184048111156113205761131f6111d1565b5b81810290505b9392505050565b5f61133782610eeb565b915061134283610eeb565b925061136f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff848461125c565b905092915050565b5f61138182610eeb565b915061138c83610eeb565b92508282019050808211156113a4576113a36111d1565b5b92915050565b7f45786365656473206d617820737570706c7900000000000000000000000000005f82015250565b5f6113de601283610ded565b91506113e9826113aa565b602082019050919050565b5f6020820190508181035f83015261140b816113d2565b9050919050565b7f526577617264206265666f7265206d696e743a000000000000000000000000005f82015250565b5f611446601383610ded565b915061145182611412565b602082019050919050565b5f6040820190508181035f8301526114738161143a565b90506114826020830184610f8f565b92915050565b5f61149282610eeb565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036114c4576114c36111d1565b5b600182019050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f61150682610eeb565b915061151183610eeb565b925082611521576115206114cf565b5b828206905092915050565b5f61153682610eeb565b915061154183610eeb565b925082611551576115506114cf565b5b828204905092915050565b61156581610eb0565b82525050565b5f60208201905061157e5f83018461155c565b92915050565b5f6060820190506115975f83018661155c565b6115a46020830185610f8f565b6115b16040830184610f8f565b94935050505056fea2646970667358221220676bd1f5b84752f7682cafe982c100c06c63e60fd9cf656d6525bb8f391f0b9864736f6c63430008180033