ETH Price: $3,482.05 (+2.64%)

Contract

0x4ad0cc4bFa295ecD75ce133cddA89cB09380F185
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Initialize157934342022-10-21 2:16:11796 days ago1666318571IN
0x4ad0cc4b...09380F185
0 ETH0.0035875422.27235155

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
EFIToken

Compiler Version
v0.8.2+commit.661d1103

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 9 : EFIToken.sol
//SPDX-License-Identifier: Apache License Version 2.0
pragma solidity ^0.8.0;

import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol";
import "./interfaces/IERC20Receiver.sol";

/// @title EFI Token
/// @author Enjin
contract EFIToken is ERC20Upgradeable {
    using AddressUpgradeable for address;
    using SafeERC20Upgradeable for IERC20Upgradeable;

    /// @notice address of the invited owner
    address public invitedOwner;

    /// @notice the address of the current owner of the contract
    address public owner;

    event NewOwnerInvited(
        address indexed currentOwner,
        address indexed invitedOwner
    );

    event InvitationRevoked(
        address indexed currentOwner,
        address indexed invitedOwner
    );

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

    /// @param initialSupply the initial supply of tokens
    /// @param _owner Address owning the total supply
    function initialize(uint256 initialSupply, address _owner) public initializer {
        __ERC20_init("Efinity Token", "EFI");
        _mint(_owner, initialSupply);
        owner = _owner;
        emit OwnershipTransferred(address(0), _owner);
    }

    modifier onlyOwner {
        require(msg.sender == owner, "Efinity Token: caller is not the owner");

        _;
    }

    /// @notice As Owner, invite another account to take ownership of the contract
    /// @param _invitedOwner address of the invited owner
    function inviteNewOwner(address _invitedOwner) external virtual onlyOwner {
        invitedOwner = _invitedOwner;

        emit NewOwnerInvited(owner, _invitedOwner);
    }

    /// @notice As Owner, revoke the invitation sent to an account
    /// @param _invitedOwner address of the invited owner
    function revokeInvitation(address _invitedOwner)
        external
        virtual
        onlyOwner
    {
        require(
            invitedOwner == _invitedOwner,
            "Efinity Token: not invited owner"
        );

        delete invitedOwner;

        emit InvitationRevoked(owner, _invitedOwner);
    }

    /// @notice As the Invited Owner, accept the invitation to take ownership of the contract
    function acceptOwnership() external virtual {
        require(
            msg.sender == invitedOwner,
            "Efinity Token: caller is not invited owner"
        );

        delete invitedOwner;

        emit OwnershipTransferred(owner, msg.sender);

        owner = msg.sender;
    }

    /// @notice As Owner, withdraw tokens sent to this account
    /// @param _token address of the token contract
    /// @param _to recipient address
    /// @param _amount number of tokens to transfer
    /// @return true if successful
    function withdrawTokens(
        address _token,
        address _to,
        uint256 _amount
    ) external virtual onlyOwner returns (bool) {
        IERC20Upgradeable(_token).safeTransfer(_to, _amount);

        return true;
    }

    /// @notice safely transfer tokens to externally-owned accounts or contracts
    /// @param recipient recipient address
    /// @param amount number of tokens to transfer
    /// @return true if successful
    function safeTransfer(address recipient, uint256 amount)
        public
        virtual
        returns (bool)
    {
        super.transfer(recipient, amount);

        address operator = msg.sender;

        _doSafeTransferAcceptanceCheck(
            operator,
            operator,
            recipient,
            amount,
            ""
        );

        return true;
    }

    /// @notice safely transfer tokens to externally-owned accounts or contracts
    /// @dev for transfers that include arbitrary data for the recipient
    /// @param recipient recipient address
    /// @param amount number of tokens to transfer
    /// @param data arbitrary data for the recipient
    /// @return true if successful
    function safeTransfer(
        address recipient,
        uint256 amount,
        bytes memory data
    ) public virtual returns (bool) {
        super.transfer(recipient, amount);

        address operator = msg.sender;

        _doSafeTransferAcceptanceCheck(
            operator,
            operator,
            recipient,
            amount,
            data
        );

        return true;
    }

    /// @notice safely transfer tokens from one account to another externally-owned account or contract
    /// @param recipient recipient address
    /// @param amount number of tokens to transfer
    /// @return true if successful
    function safeTransferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual returns (bool) {
        super.transferFrom(sender, recipient, amount);

        address operator = msg.sender;

        _doSafeTransferAcceptanceCheck(operator, sender, recipient, amount, "");

        return true;
    }

    /// @notice safely transfer tokens from one account to another externally-owned account or contract
    /// @dev for transfers that include arbitrary data for the recipient
    /// @param recipient recipient address
    /// @param amount number of tokens to transfer
    /// @param data arbitrary data for the recipient
    /// @return true if successful
    function safeTransferFrom(
        address sender,
        address recipient,
        uint256 amount,
        bytes memory data
    ) public virtual returns (bool) {
        super.transferFrom(sender, recipient, amount);

        address operator = msg.sender;

        _doSafeTransferAcceptanceCheck(
            operator,
            sender,
            recipient,
            amount,
            data
        );

        return true;
    }

    /// @notice check that recipient contract account implements onERC20Received
    /// @param operator the msg.sender
    /// @param from transfer from account
    /// @param to transfer to account
    /// @param amount number of tokens to transfer
    /// @param data arbitrary data for the recipient
    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try
                IERC20Receiver(to).onERC20Received(operator, from, amount, data)
            returns (bytes4 response) {
                if (response != IERC20Receiver(to).onERC20Received.selector) {
                    revert("ERC20: ERC20Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC20: transfer to non ERC20Receiver implementer");
            }
        }
    }
}

File 2 of 9 : ERC20Upgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC20Upgradeable.sol";
import "../../utils/ContextUpgradeable.sol";
import "../../proxy/utils/Initializable.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20Upgradeable is Initializable, ContextUpgradeable, IERC20Upgradeable {
    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 defaut value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    function __ERC20_init(string memory name_, string memory symbol_) internal initializer {
        __Context_init_unchained();
        __ERC20_init_unchained(name_, symbol_);
    }

    function __ERC20_init_unchained(string memory name_, string memory symbol_) internal initializer {
        _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 value {ERC20} uses, unless this function is
     * overloaded;
     *
     * 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 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");
        _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");
        _approve(_msgSender(), spender, currentAllowance - subtractedValue);

        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(address sender, address recipient, uint256 amount) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        _balances[sender] = senderBalance - amount;
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

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

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

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

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

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        _balances[account] = accountBalance - amount;
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

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

File 3 of 9 : IERC20Upgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20Upgradeable {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

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

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 4 of 9 : SafeERC20Upgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20Upgradeable.sol";
import "../../../utils/AddressUpgradeable.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20Upgradeable {
    using AddressUpgradeable for address;

    function safeTransfer(IERC20Upgradeable token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IERC20Upgradeable token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20Upgradeable token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20Upgradeable token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20Upgradeable token, address spender, uint256 value) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20Upgradeable token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 5 of 9 : AddressUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library AddressUpgradeable {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
      return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 6 of 9 : IERC20Receiver.sol
//SPDX-License-Identifier: Apache License Version 2.0
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/introspection/IERC165.sol";

interface IERC20Receiver is IERC165 {
    /**
        @dev Handles the receipt of a single ERC20 token type. This function is
        called at the end of a `safeTransferFrom` after the balance has been updated.
        To accept the transfer, this must return
        `bytes4(keccak256("onERC20Received(address,address,uint256,bytes)"))`
        (i.e. its own function selector).
        @param operator The address which initiated the transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param value The amount of tokens being transferred
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC20Received(address,address,uint256,bytes)"))` if transfer is allowed
    */
    function onERC20Received(
        address operator,
        address from,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);
}

File 7 of 9 : ContextUpgradeable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

/*
 * @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 ContextUpgradeable is Initializable {
    function __Context_init() internal initializer {
        __Context_init_unchained();
    }

    function __Context_init_unchained() internal initializer {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

File 8 of 9 : Initializable.sol
// SPDX-License-Identifier: MIT

// solhint-disable-next-line compiler-version
pragma solidity ^0.8.0;

import "../../utils/AddressUpgradeable.sol";

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {UpgradeableProxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 */
abstract contract Initializable {

    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        require(_initializing || !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }
}

File 9 of 9 : IERC165.sol
// SPDX-License-Identifier: MIT

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

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"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":"currentOwner","type":"address"},{"indexed":true,"internalType":"address","name":"invitedOwner","type":"address"}],"name":"InvitationRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"currentOwner","type":"address"},{"indexed":true,"internalType":"address","name":"invitedOwner","type":"address"}],"name":"NewOwnerInvited","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":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"initialSupply","type":"uint256"},{"internalType":"address","name":"_owner","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_invitedOwner","type":"address"}],"name":"inviteNewOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"invitedOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":[{"internalType":"address","name":"_invitedOwner","type":"address"}],"name":"revokeInvitation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"safeTransfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransfer","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":"safeTransferFrom","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"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50611953806100206000396000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c806379ba5097116100b8578063b33dad6b1161007c578063b33dad6b14610291578063b88d4fde146102a4578063da35a26f146102b7578063dd62ed3e146102ca578063eb79554914610303578063f256815d1461031657610142565b806379ba5097146102305780638da5cb5b1461023857806395d89b4114610263578063a457c2d71461026b578063a9059cbb1461027e57610142565b8063395093511161010a57806339509351146101bc578063423f6cef146101cf57806342842e0e146101e25780634c0a52e7146101f55780635e35359e1461020a57806370a082311461021d57610142565b806306fdde0314610147578063095ea7b31461016557806318160ddd1461018857806323b872dd1461019a578063313ce567146101ad575b600080fd5b61014f610329565b60405161015c91906116da565b60405180910390f35b61017861017336600461156d565b6103bc565b604051901515815260200161015c565b6035545b60405190815260200161015c565b6101786101a83660046114cc565b6103d2565b6040516012815260200161015c565b6101786101ca36600461156d565b61048a565b6101786101dd36600461156d565b6104c1565b6101786101f03660046114cc565b6104f9565b610208610203366004611480565b610528565b005b6101786102183660046114cc565b6105a4565b61018c61022b366004611480565b6105e5565b610208610604565b60665461024b906001600160a01b031681565b6040516001600160a01b03909116815260200161015c565b61014f6106cd565b61017861027936600461156d565b6106dc565b61017861028c36600461156d565b61076d565b61020861029f366004611480565b61077a565b6101786102b2366004611507565b61084e565b6102086102c5366004611633565b610876565b61018c6102d836600461149a565b6001600160a01b03918216600090815260346020908152604080832093909416825291909152205490565b610178610311366004611596565b61098a565b60655461024b906001600160a01b031681565b606060368054610338906117e0565b80601f0160208091040260200160405190810160405280929190818152602001828054610364906117e0565b80156103b15780601f10610386576101008083540402835291602001916103b1565b820191906000526020600020905b81548152906001019060200180831161039457829003601f168201915b505050505090505b90565b60006103c93384846109a5565b50600192915050565b60006103df848484610ac9565b6001600160a01b0384166000908152603460209081526040808320338452909152902054828110156104695760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b61047d85336104788685611799565b6109a5565b60019150505b9392505050565b3360008181526034602090815260408083206001600160a01b038716845290915281205490916103c9918590610478908690611781565b60006104cd838361076d565b5060003390506104ef8182868660405180602001604052806000815250610ca1565b5060019392505050565b60006105068484846103d2565b50600033905061047d8186868660405180602001604052806000815250610ca1565b6066546001600160a01b031633146105525760405162461bcd60e51b81526004016104609061173b565b606580546001600160a01b0319166001600160a01b03838116918217909255606654604051919216907f455436701ce5cb42df29df6975ceebf62ce66857835b26cfad88817800c9e90390600090a350565b6066546000906001600160a01b031633146105d15760405162461bcd60e51b81526004016104609061173b565b6104ef6001600160a01b0385168484610e4b565b6001600160a01b0381166000908152603360205260409020545b919050565b6065546001600160a01b031633146106715760405162461bcd60e51b815260206004820152602a60248201527f4566696e69747920546f6b656e3a2063616c6c6572206973206e6f7420696e7660448201526934ba32b21037bbb732b960b11b6064820152608401610460565b606580546001600160a01b031916905560665460405133916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3606680546001600160a01b03191633179055565b606060378054610338906117e0565b3360009081526034602090815260408083206001600160a01b03861684529091528120548281101561075e5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610460565b6104ef33856104788685611799565b60006103c9338484610ac9565b6066546001600160a01b031633146107a45760405162461bcd60e51b81526004016104609061173b565b6065546001600160a01b038281169116146108015760405162461bcd60e51b815260206004820181905260248201527f4566696e69747920546f6b656e3a206e6f7420696e7669746564206f776e65726044820152606401610460565b606580546001600160a01b03191690556066546040516001600160a01b038381169216907f68b79e5f8aa24d3ebadc98d2cc2e1945dd5f56a06a31652fd124b79bf41c2f1690600090a350565b600061085b8585856103d2565b503361086a8187878787610ca1565b50600195945050505050565b600054610100900460ff168061088f575060005460ff16155b6108ab5760405162461bcd60e51b8152600401610460906116ed565b600054610100900460ff161580156108d6576000805460ff1961ff0019909116610100171660011790555b6109206040518060400160405280600d81526020016c22b334b734ba3c902a37b5b2b760991b8152506040518060400160405280600381526020016245464960e81b815250610e9d565b61092a8284610f25565b606680546001600160a01b0319166001600160a01b0384169081179091556040516000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a38015610985576000805461ff00191690555b505050565b6000610996848461076d565b503361047d8180878787610ca1565b6001600160a01b038316610a075760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610460565b6001600160a01b038216610a685760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610460565b6001600160a01b0383811660008181526034602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038316610b2d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610460565b6001600160a01b038216610b8f5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610460565b6001600160a01b03831660009081526033602052604090205481811015610c075760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610460565b610c118282611799565b6001600160a01b038086166000908152603360205260408082209390935590851681529081208054849290610c47908490611781565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610c9391815260200190565b60405180910390a350505050565b6001600160a01b0383163b15610e4457604051634fc3585960e01b81526001600160a01b03841690634fc3585990610ce390889088908790879060040161169d565b602060405180830381600087803b158015610cfd57600080fd5b505af1925050508015610d2d575060408051601f3d908101601f19168201909252610d2a9181019061160b565b60015b610dd657610d39611874565b806308c379a01415610d735750610d4e61188b565b80610d595750610d75565b8060405162461bcd60e51b815260040161046091906116da565b505b60405162461bcd60e51b815260206004820152603060248201527f45524332303a207472616e7366657220746f206e6f6e2045524332305265636560448201526f34bb32b91034b6b83632b6b2b73a32b960811b6064820152608401610460565b6001600160e01b03198116634fc3585960e01b14610e425760405162461bcd60e51b8152602060048201526024808201527f45524332303a20455243323052656365697665722072656a656374656420746f6044820152636b656e7360e01b6064820152608401610460565b505b5050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610985908490611004565b600054610100900460ff1680610eb6575060005460ff16155b610ed25760405162461bcd60e51b8152600401610460906116ed565b600054610100900460ff16158015610efd576000805460ff1961ff0019909116610100171660011790555b610f056110d6565b610f0f838361114b565b8015610985576000805461ff0019169055505050565b6001600160a01b038216610f7b5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610460565b8060356000828254610f8d9190611781565b90915550506001600160a01b03821660009081526033602052604081208054839290610fba908490611781565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6000611059826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166111e99092919063ffffffff16565b805190915015610985578080602001905181019061107791906115eb565b6109855760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610460565b600054610100900460ff16806110ef575060005460ff16155b61110b5760405162461bcd60e51b8152600401610460906116ed565b600054610100900460ff16158015611136576000805460ff1961ff0019909116610100171660011790555b8015611148576000805461ff00191690555b50565b600054610100900460ff1680611164575060005460ff16155b6111805760405162461bcd60e51b8152600401610460906116ed565b600054610100900460ff161580156111ab576000805460ff1961ff0019909116610100171660011790555b82516111be906036906020860190611361565b5081516111d2906037906020850190611361565b508015610985576000805461ff0019169055505050565b60606111f88484600085611200565b949350505050565b6060824710156112615760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610460565b843b6112af5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610460565b600080866001600160a01b031685876040516112cb9190611681565b60006040518083038185875af1925050503d8060008114611308576040519150601f19603f3d011682016040523d82523d6000602084013e61130d565b606091505b509150915061131d828286611328565b979650505050505050565b60608315611337575081610483565b8251156113475782518084602001fd5b8160405162461bcd60e51b815260040161046091906116da565b82805461136d906117e0565b90600052602060002090601f01602090048101928261138f57600085556113d5565b82601f106113a857805160ff19168380011785556113d5565b828001600101855582156113d5579182015b828111156113d55782518255916020019190600101906113ba565b506113e19291506113e5565b5090565b5b808211156113e157600081556001016113e6565b80356001600160a01b03811681146105ff57600080fd5b600082601f830112611421578081fd5b813567ffffffffffffffff81111561143b5761143b61185e565b604051611452601f8301601f19166020018261181b565b818152846020838601011115611466578283fd5b816020850160208301379081016020019190915292915050565b600060208284031215611491578081fd5b610483826113fa565b600080604083850312156114ac578081fd5b6114b5836113fa565b91506114c3602084016113fa565b90509250929050565b6000806000606084860312156114e0578081fd5b6114e9846113fa565b92506114f7602085016113fa565b9150604084013590509250925092565b6000806000806080858703121561151c578081fd5b611525856113fa565b9350611533602086016113fa565b925060408501359150606085013567ffffffffffffffff811115611555578182fd5b61156187828801611411565b91505092959194509250565b6000806040838503121561157f578182fd5b611588836113fa565b946020939093013593505050565b6000806000606084860312156115aa578283fd5b6115b3846113fa565b925060208401359150604084013567ffffffffffffffff8111156115d5578182fd5b6115e186828701611411565b9150509250925092565b6000602082840312156115fc578081fd5b81518015158114610483578182fd5b60006020828403121561161c578081fd5b81516001600160e01b031981168114610483578182fd5b60008060408385031215611645578182fd5b823591506114c3602084016113fa565b6000815180845261166d8160208601602086016117b0565b601f01601f19169290920160200192915050565b600082516116938184602087016117b0565b9190910192915050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906116d090830184611655565b9695505050505050565b6000602082526104836020830184611655565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b60208082526026908201527f4566696e69747920546f6b656e3a2063616c6c6572206973206e6f74207468656040820152651037bbb732b960d11b606082015260800190565b6000821982111561179457611794611848565b500190565b6000828210156117ab576117ab611848565b500390565b60005b838110156117cb5781810151838201526020016117b3565b838111156117da576000848401525b50505050565b6002810460018216806117f457607f821691505b6020821081141561181557634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f1916810167ffffffffffffffff811182821017156118415761184161185e565b6040525050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d11156103b957600481823e5160e01c90565b600060443d101561189b576103b9565b6040516003193d81016004833e81513d67ffffffffffffffff81602484011181841117156118cd5750505050506103b9565b82850191508151818111156118e7575050505050506103b9565b843d8701016020828501011115611903575050505050506103b9565b6119126020828601018761181b565b50909450505050509056fea264697066735822122068e7158f3b42a5f3c5a26ef9fc394b9abebeba38ff40642f53adc3ed2ef3dc0e64736f6c63430008020033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101425760003560e01c806379ba5097116100b8578063b33dad6b1161007c578063b33dad6b14610291578063b88d4fde146102a4578063da35a26f146102b7578063dd62ed3e146102ca578063eb79554914610303578063f256815d1461031657610142565b806379ba5097146102305780638da5cb5b1461023857806395d89b4114610263578063a457c2d71461026b578063a9059cbb1461027e57610142565b8063395093511161010a57806339509351146101bc578063423f6cef146101cf57806342842e0e146101e25780634c0a52e7146101f55780635e35359e1461020a57806370a082311461021d57610142565b806306fdde0314610147578063095ea7b31461016557806318160ddd1461018857806323b872dd1461019a578063313ce567146101ad575b600080fd5b61014f610329565b60405161015c91906116da565b60405180910390f35b61017861017336600461156d565b6103bc565b604051901515815260200161015c565b6035545b60405190815260200161015c565b6101786101a83660046114cc565b6103d2565b6040516012815260200161015c565b6101786101ca36600461156d565b61048a565b6101786101dd36600461156d565b6104c1565b6101786101f03660046114cc565b6104f9565b610208610203366004611480565b610528565b005b6101786102183660046114cc565b6105a4565b61018c61022b366004611480565b6105e5565b610208610604565b60665461024b906001600160a01b031681565b6040516001600160a01b03909116815260200161015c565b61014f6106cd565b61017861027936600461156d565b6106dc565b61017861028c36600461156d565b61076d565b61020861029f366004611480565b61077a565b6101786102b2366004611507565b61084e565b6102086102c5366004611633565b610876565b61018c6102d836600461149a565b6001600160a01b03918216600090815260346020908152604080832093909416825291909152205490565b610178610311366004611596565b61098a565b60655461024b906001600160a01b031681565b606060368054610338906117e0565b80601f0160208091040260200160405190810160405280929190818152602001828054610364906117e0565b80156103b15780601f10610386576101008083540402835291602001916103b1565b820191906000526020600020905b81548152906001019060200180831161039457829003601f168201915b505050505090505b90565b60006103c93384846109a5565b50600192915050565b60006103df848484610ac9565b6001600160a01b0384166000908152603460209081526040808320338452909152902054828110156104695760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b61047d85336104788685611799565b6109a5565b60019150505b9392505050565b3360008181526034602090815260408083206001600160a01b038716845290915281205490916103c9918590610478908690611781565b60006104cd838361076d565b5060003390506104ef8182868660405180602001604052806000815250610ca1565b5060019392505050565b60006105068484846103d2565b50600033905061047d8186868660405180602001604052806000815250610ca1565b6066546001600160a01b031633146105525760405162461bcd60e51b81526004016104609061173b565b606580546001600160a01b0319166001600160a01b03838116918217909255606654604051919216907f455436701ce5cb42df29df6975ceebf62ce66857835b26cfad88817800c9e90390600090a350565b6066546000906001600160a01b031633146105d15760405162461bcd60e51b81526004016104609061173b565b6104ef6001600160a01b0385168484610e4b565b6001600160a01b0381166000908152603360205260409020545b919050565b6065546001600160a01b031633146106715760405162461bcd60e51b815260206004820152602a60248201527f4566696e69747920546f6b656e3a2063616c6c6572206973206e6f7420696e7660448201526934ba32b21037bbb732b960b11b6064820152608401610460565b606580546001600160a01b031916905560665460405133916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3606680546001600160a01b03191633179055565b606060378054610338906117e0565b3360009081526034602090815260408083206001600160a01b03861684529091528120548281101561075e5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610460565b6104ef33856104788685611799565b60006103c9338484610ac9565b6066546001600160a01b031633146107a45760405162461bcd60e51b81526004016104609061173b565b6065546001600160a01b038281169116146108015760405162461bcd60e51b815260206004820181905260248201527f4566696e69747920546f6b656e3a206e6f7420696e7669746564206f776e65726044820152606401610460565b606580546001600160a01b03191690556066546040516001600160a01b038381169216907f68b79e5f8aa24d3ebadc98d2cc2e1945dd5f56a06a31652fd124b79bf41c2f1690600090a350565b600061085b8585856103d2565b503361086a8187878787610ca1565b50600195945050505050565b600054610100900460ff168061088f575060005460ff16155b6108ab5760405162461bcd60e51b8152600401610460906116ed565b600054610100900460ff161580156108d6576000805460ff1961ff0019909116610100171660011790555b6109206040518060400160405280600d81526020016c22b334b734ba3c902a37b5b2b760991b8152506040518060400160405280600381526020016245464960e81b815250610e9d565b61092a8284610f25565b606680546001600160a01b0319166001600160a01b0384169081179091556040516000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a38015610985576000805461ff00191690555b505050565b6000610996848461076d565b503361047d8180878787610ca1565b6001600160a01b038316610a075760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610460565b6001600160a01b038216610a685760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610460565b6001600160a01b0383811660008181526034602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038316610b2d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610460565b6001600160a01b038216610b8f5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610460565b6001600160a01b03831660009081526033602052604090205481811015610c075760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610460565b610c118282611799565b6001600160a01b038086166000908152603360205260408082209390935590851681529081208054849290610c47908490611781565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610c9391815260200190565b60405180910390a350505050565b6001600160a01b0383163b15610e4457604051634fc3585960e01b81526001600160a01b03841690634fc3585990610ce390889088908790879060040161169d565b602060405180830381600087803b158015610cfd57600080fd5b505af1925050508015610d2d575060408051601f3d908101601f19168201909252610d2a9181019061160b565b60015b610dd657610d39611874565b806308c379a01415610d735750610d4e61188b565b80610d595750610d75565b8060405162461bcd60e51b815260040161046091906116da565b505b60405162461bcd60e51b815260206004820152603060248201527f45524332303a207472616e7366657220746f206e6f6e2045524332305265636560448201526f34bb32b91034b6b83632b6b2b73a32b960811b6064820152608401610460565b6001600160e01b03198116634fc3585960e01b14610e425760405162461bcd60e51b8152602060048201526024808201527f45524332303a20455243323052656365697665722072656a656374656420746f6044820152636b656e7360e01b6064820152608401610460565b505b5050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610985908490611004565b600054610100900460ff1680610eb6575060005460ff16155b610ed25760405162461bcd60e51b8152600401610460906116ed565b600054610100900460ff16158015610efd576000805460ff1961ff0019909116610100171660011790555b610f056110d6565b610f0f838361114b565b8015610985576000805461ff0019169055505050565b6001600160a01b038216610f7b5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610460565b8060356000828254610f8d9190611781565b90915550506001600160a01b03821660009081526033602052604081208054839290610fba908490611781565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6000611059826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166111e99092919063ffffffff16565b805190915015610985578080602001905181019061107791906115eb565b6109855760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610460565b600054610100900460ff16806110ef575060005460ff16155b61110b5760405162461bcd60e51b8152600401610460906116ed565b600054610100900460ff16158015611136576000805460ff1961ff0019909116610100171660011790555b8015611148576000805461ff00191690555b50565b600054610100900460ff1680611164575060005460ff16155b6111805760405162461bcd60e51b8152600401610460906116ed565b600054610100900460ff161580156111ab576000805460ff1961ff0019909116610100171660011790555b82516111be906036906020860190611361565b5081516111d2906037906020850190611361565b508015610985576000805461ff0019169055505050565b60606111f88484600085611200565b949350505050565b6060824710156112615760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610460565b843b6112af5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610460565b600080866001600160a01b031685876040516112cb9190611681565b60006040518083038185875af1925050503d8060008114611308576040519150601f19603f3d011682016040523d82523d6000602084013e61130d565b606091505b509150915061131d828286611328565b979650505050505050565b60608315611337575081610483565b8251156113475782518084602001fd5b8160405162461bcd60e51b815260040161046091906116da565b82805461136d906117e0565b90600052602060002090601f01602090048101928261138f57600085556113d5565b82601f106113a857805160ff19168380011785556113d5565b828001600101855582156113d5579182015b828111156113d55782518255916020019190600101906113ba565b506113e19291506113e5565b5090565b5b808211156113e157600081556001016113e6565b80356001600160a01b03811681146105ff57600080fd5b600082601f830112611421578081fd5b813567ffffffffffffffff81111561143b5761143b61185e565b604051611452601f8301601f19166020018261181b565b818152846020838601011115611466578283fd5b816020850160208301379081016020019190915292915050565b600060208284031215611491578081fd5b610483826113fa565b600080604083850312156114ac578081fd5b6114b5836113fa565b91506114c3602084016113fa565b90509250929050565b6000806000606084860312156114e0578081fd5b6114e9846113fa565b92506114f7602085016113fa565b9150604084013590509250925092565b6000806000806080858703121561151c578081fd5b611525856113fa565b9350611533602086016113fa565b925060408501359150606085013567ffffffffffffffff811115611555578182fd5b61156187828801611411565b91505092959194509250565b6000806040838503121561157f578182fd5b611588836113fa565b946020939093013593505050565b6000806000606084860312156115aa578283fd5b6115b3846113fa565b925060208401359150604084013567ffffffffffffffff8111156115d5578182fd5b6115e186828701611411565b9150509250925092565b6000602082840312156115fc578081fd5b81518015158114610483578182fd5b60006020828403121561161c578081fd5b81516001600160e01b031981168114610483578182fd5b60008060408385031215611645578182fd5b823591506114c3602084016113fa565b6000815180845261166d8160208601602086016117b0565b601f01601f19169290920160200192915050565b600082516116938184602087016117b0565b9190910192915050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906116d090830184611655565b9695505050505050565b6000602082526104836020830184611655565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b60208082526026908201527f4566696e69747920546f6b656e3a2063616c6c6572206973206e6f74207468656040820152651037bbb732b960d11b606082015260800190565b6000821982111561179457611794611848565b500190565b6000828210156117ab576117ab611848565b500390565b60005b838110156117cb5781810151838201526020016117b3565b838111156117da576000848401525b50505050565b6002810460018216806117f457607f821691505b6020821081141561181557634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f1916810167ffffffffffffffff811182821017156118415761184161185e565b6040525050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d11156103b957600481823e5160e01c90565b600060443d101561189b576103b9565b6040516003193d81016004833e81513d67ffffffffffffffff81602484011181841117156118cd5750505050506103b9565b82850191508151818111156118e7575050505050506103b9565b843d8701016020828501011115611903575050505050506103b9565b6119126020828601018761181b565b50909450505050509056fea264697066735822122068e7158f3b42a5f3c5a26ef9fc394b9abebeba38ff40642f53adc3ed2ef3dc0e64736f6c63430008020033

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.