FTM Price: $0.99 (-3.43%)
Gas: 30 GWei

Contract

0x1A8D16c2e9398BcD43DbE6Cb2d7aa846ce3D131d
 

Overview

FTM Balance

Fantom LogoFantom LogoFantom Logo2 FTM

FTM Value

$1.98 (@ $0.99/FTM)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
List Name444473042022-08-08 1:58:52599 days ago1659923932IN
0x1A8D16c2...6ce3D131d
1 FTM0.000330082.44689389
List Name443925312022-08-07 6:20:50600 days ago1659853250IN
0x1A8D16c2...6ce3D131d
1 FTM0.000297091.3278528
0x60806040439648022022-08-01 1:08:16606 days ago1659316096IN
 Create: NFTMarketplace
0 FTM0.023566457.96626688

Latest 1 internal transaction

Parent Txn Hash Block From To Value
439648022022-08-01 1:08:16606 days ago1659316096  Contract Creation0 FTM
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
NFTMarketplace

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 2 : RaveMarket.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./Rave.sol";

library StringManipulation {
  function _upper(bytes1 _b1)
      private
      pure
      returns (bytes1) {

      if (_b1 >= 0x61 && _b1 <= 0x7A) {
          return bytes1(uint8(_b1) - 32);
      }

      return _b1;
  }
  function upper(string memory _base)
      internal
      pure
      returns (string memory) {
      bytes memory _baseBytes = bytes(_base);
      for (uint i = 0; i < _baseBytes.length; i++) {
          _baseBytes[i] = _upper(_baseBytes[i]);
      }
      return string(_baseBytes);
  }
}

library StringsAgain {
  function compare(string memory _a, string memory _b) internal pure returns (int) {
        bytes memory a = bytes(_a);
        bytes memory b = bytes(_b);
        uint minLength = a.length;
        if (b.length < minLength) minLength = b.length;
        //@todo unroll the loop into increments of 32 and do full 32 byte comparisons
        for (uint i = 0; i < minLength; i ++)
            if (a[i] < b[i])
                return -1;
            else if (a[i] > b[i])
                return 1;
        if (a.length < b.length)
            return -1;
        else if (a.length > b.length)
            return 1;
        else
            return 0;
    }
    /// @dev Compares two strings and returns true iff they are equal.
    function equal(string memory _a, string memory _b) internal pure returns (bool) {
        return compare(_a, _b) == 0;
    }
}

contract RaveErrors {
  struct Error {
    uint16 code;
    string message;
  }

  Error internal PASS = Error(0, "RaveErrors (0): Passed");

  Error internal NOT_AUTHORISED = Error(401, "RaveErrors (401): Not authorised to perform this action.");
  Error internal NOT_FOUND = Error(404, "RaveErrors (404): Name not found [try querying in all-capitals]");
}

contract NFTMarketplace is RaveErrors {
  using StringManipulation for string;

  struct ErrorWithFallback {
    bool isError;
    Error error;
  }

  uint public sFee = 2; // 2%
  uint public initialFee = 1; // 1 FTM to sell your name
  address private treasury = 0x87f385d152944689f92Ed523e9e5E9Bd58Ea62ef;
  mapping(bytes32 => Listing) listings;
  mapping(bytes32 => Offer) offers;
  string[] allListings = [""];
  mapping(string => uint) listingIndex;
  FantomsArtNameSystem rave;

  // bytes32 is much better to use than string, so we pass a string value into this function and get a bytes32 back.
  function _makeHash(
    string memory input
  ) internal pure returns(bytes32) {
    return keccak256(abi.encode(input));
  }

  function _calcFee(
    uint saleValue
  ) internal view returns(uint) {
    return saleValue*(sFee/100);
  }

  struct Listing {
    string name;
    uint value;
    uint expireTimestamp;
    bool active;
  }

  struct Offer {
    string name;
    uint value;
    uint expireTimestamp;
    bool active;
    address offeree;
  }

  event Listed(string name, uint value, uint expire);
  event Delisting(string name);

  constructor(address _rave) {
    rave = FantomsArtNameSystem(_rave);
    listings[_makeHash("")] = Listing("",0,0,false);
  }

  function _verifyOwnership(
    string memory name,
    address owner
  ) internal view returns (ErrorWithFallback memory) {
    // HACKERMAN (https://betterttv.com/emotes/604e7880306b602acc59cf5e)
    (bool owned, bool isOwned) = (rave.isOwnedByMapping(name), ((rave.getOwnerOfName(name) == owner) && (StringsAgain.equal(rave.getNameFromOwner(owner), name))));
    bool success = (owned && isOwned);
    return owned ? (ErrorWithFallback(!(success), (success ? PASS : NOT_AUTHORISED))) : ErrorWithFallback(true, NOT_FOUND);
  }

  modifier mustPassOwnershipTest(
    string memory name,
    address sender
  ) {
    ErrorWithFallback memory test = _verifyOwnership(name, sender);
    require(!(test.isError), test.error.message);

    _; // proceed as normal
  }

  function listName(
    string memory name,
    uint value,
    uint expireTimestamp
  ) external mustPassOwnershipTest(name, msg.sender) payable {
    // pay more if you want ig
    //require(msg.value >= initialFee, "RaveMarket: PAY THE FEE DUMBASS");
    //payable(treasury).transfer(msg.value);
    // This notation makes for better code editing, dont usually do it.
    Listing memory listing = Listing(
      name,
      value,
      expireTimestamp,
      true
    );

    listings[_makeHash(name)] = listing;
    listingIndex[name] = allListings.length;
    allListings.push(name);

    emit Listed(name, value, expireTimestamp);
  }

  function delistName(
    string memory name
  ) external mustPassOwnershipTest(name, msg.sender) {
    listings[_makeHash(name)] = Listing(
      name,
      0,
      0,
      false
    );

    emit Delisting(name);
  }

  function buyName(
    string memory name,
    address buyer
  ) external payable {
    Listing memory listing = listings[_makeHash(name)];
    require(
      listing.active,
      "RaveMarket: Listing not active"
    );
    require(
      _verifyOwnership(name, buyer).isError,
      "RaveMarket: You cannot buy your own item"
    );
    require(
      msg.value >= listing.value,
      "RaveMarket: The value sent is below the sale price"
    );
    require(
      listing.expireTimestamp > block.timestamp,
      "RaveMarket: This offer has expired"
    );

    address owner = rave.getOwnerOfName(name);

    uint fee = _calcFee(msg.value);

    (bool success, ) = treasury.call{value: fee}("");

    require(success, "RaveMarket: Paying service fee failed.");

    (bool success1, ) = owner.call{value: (msg.value - fee)}("");

    require(success1, "RaveMarket: Paying seller failed");

    delete allListings[listingIndex[name]];
    listingIndex[name] = 0;
    rave.transferName(owner, buyer, name);
  }

  function makeOffer(
    string memory name,
    uint value,
    uint expireTimestamp,
    address offeree
  ) external payable {
    require(msg.value == value, "RaveMarket: Send the amount of FTM you are offering.");
    require(value > offers[_makeHash(name)].value, "RaveMarket: You must offer more than what the highest offer is.");

    Offer memory offer = Offer(
      name,
      value,
      expireTimestamp,
      true,
      offeree
    );

    offers[_makeHash(name)] = offer;
  }

  function acceptOffer(
    string memory name
  ) external mustPassOwnershipTest(name, msg.sender) {
    Offer memory offer = offers[_makeHash(name)];

    require(
      offer.expireTimestamp > block.timestamp,
      "RaveMarket: This offer has expired"
    );

    address owner = rave.getOwnerOfName(name);

    uint fee = _calcFee(offer.value);

    (bool success, ) = treasury.call{value: fee}("");

    require(success, "RaveMarket: Paying service fee failed.");

    (bool success1, ) = owner.call{value: (offer.value - fee)}("");

    require(success1, "RaveMarket: Paying seller failed");

    if (listingIndex[name] >= 0) {
      delete allListings[listingIndex[name]];
      listingIndex[name] = 0;
    }
    delete offers[_makeHash(name)];
    rave.transferName(owner, offer.offeree, name);
  }

  function getOffer(
    string calldata name
  ) external view returns(Offer memory) {
    return offers[_makeHash(name)];
  }

  function isListed(
    string memory name
  ) external view returns(bool) {
    return listings[_makeHash(name)].active || false;
  }

  function getListing(
    string memory name
  ) external view returns(Listing memory) {
    return listings[_makeHash(name)];
  }

  function getAllListings() external view returns(string[] memory) {
    return allListings;
  }

  // Fallback: reverts if Ether is sent to this smart-contract by mistake
  fallback () external {
    revert();
  }
}

File 2 of 2 : Rave.sol
/**
 *Submitted for verification at FtmScan.com on 2022-02-26
*/

/*
  _____                   _   _
 |  __ \                 | \ | |
 | |__) |__ ___   _____  |  \| | __ _ _ __ ___   ___  ___
 |  _  // _` \ \ / / _ \ | . ` |/ _` | '_ ` _ \ / _ \/ __|
 | | \ \ (_| |\ V /  __/ | |\  | (_| | | | | | |  __/\__ \
 |_|  \_\__,_| \_/ \___| |_| \_|\__,_|_| |_| |_|\___||___/



 .----------------.  .----------------.  .----------------.  .----------------.   .-----------------. .----------------.  .----------------.  .----------------.  .----------------.
| .--------------. || .--------------. || .--------------. || .--------------. | | .--------------. || .--------------. || .--------------. || .--------------. || .--------------. |
| |  _______     | || |      __      | || | ____   ____  | || |  _________   | | | | ____  _____  | || |      __      | || | ____    ____ | || |  _________   | || |    _______   | |
| | |_   __ \    | || |     /  \     | || ||_  _| |_  _| | || | |_   ___  |  | | | ||_   \|_   _| | || |     /  \     | || ||_   \  /   _|| || | |_   ___  |  | || |   /  ___  |  | |
| |   | |__) |   | || |    / /\ \    | || |  \ \   / /   | || |   | |_  \_|  | | | |  |   \ | |   | || |    / /\ \    | || |  |   \/   |  | || |   | |_  \_|  | || |  |  (__ \_|  | |
| |   |  __ /    | || |   / ____ \   | || |   \ \ / /    | || |   |  _|  _   | | | |  | |\ \| |   | || |   / ____ \   | || |  | |\  /| |  | || |   |  _|  _   | || |   '.___`-.   | |
| |  _| |  \ \_  | || | _/ /    \ \_ | || |    \ ' /     | || |  _| |___/ |  | | | | _| |_\   |_  | || | _/ /    \ \_ | || | _| |_\/_| |_ | || |  _| |___/ |  | || |  |`\____) |  | |
| | |____| |___| | || ||____|  |____|| || |     \_/      | || | |_________|  | | | ||_____|\____| | || ||____|  |____|| || ||_____||_____|| || | |_________|  | || |  |_______.'  | |
| |              | || |              | || |              | || |              | | | |              | || |              | || |              | || |              | || |              | |
| '--------------' || '--------------' || '--------------' || '--------------' | | '--------------' || '--------------' || '--------------' || '--------------' || '--------------' |
 '----------------'  '----------------'  '----------------'  '----------------'   '----------------'  '----------------'  '----------------'  '----------------'  '----------------'
*/

pragma solidity >=0.8.0 <0.9.0;
//SPDX-License-Identifier: Unlisence

//IERC20 interface
interface IERC20 {
    function totalSupply() external view returns (uint);
    function balanceOf(address account) external view returns (uint);
    function transfer(address recipient, uint amount) external returns (bool);
    function allowance(address owner, address spender) external view returns (uint);
    function approve(address spender, uint amount) external returns (bool);
    function transferFrom(
        address sender,
        address recipient,
        uint amount
    ) external returns (bool);
    event Transfer(address indexed from, address indexed to, uint value);
    event Approval(address indexed owner, address indexed spender, uint value);
}



library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}


library Strings2 {

    /**
     * Concat (High gas cost)
     *
     * Appends two strings together and returns a new value
     *
     * @param _base When being used for a data type this is the extended object
     *              otherwise this is the string which will be the concatenated
     *              prefix
     * @param _value The value to be the concatenated suffix
     * @return string The resulting string from combinging the base and value
     */
    function concat(string memory _base, string memory _value)
        internal
        pure
        returns (string memory) {
        bytes memory _baseBytes = bytes(_base);
        bytes memory _valueBytes = bytes(_value);

        assert(_valueBytes.length > 0);

        string memory _tmpValue = new string(_baseBytes.length +
            _valueBytes.length);
        bytes memory _newValue = bytes(_tmpValue);

        uint i;
        uint j;

        for (i = 0; i < _baseBytes.length; i++) {
            _newValue[j++] = _baseBytes[i];
        }

        for (i = 0; i < _valueBytes.length; i++) {
            _newValue[j++] = _valueBytes[i];
        }

        return string(_newValue);
    }

    /**
     * Index Of
     *
     * Locates and returns the position of a character within a string
     *
     * @param _base When being used for a data type this is the extended object
     *              otherwise this is the string acting as the haystack to be
     *              searched
     * @param _value The needle to search for, at present this is currently
     *               limited to one character
     * @return int The position of the needle starting from 0 and returning -1
     *             in the case of no matches found
     */
    function indexOf(string memory _base, string memory _value)
        internal
        pure
        returns (int) {
        return _indexOf(_base, _value, 0);
    }

    /**
     * Index Of
     *
     * Locates and returns the position of a character within a string starting
     * from a defined offset
     *
     * @param _base When being used for a data type this is the extended object
     *              otherwise this is the string acting as the haystack to be
     *              searched
     * @param _value The needle to search for, at present this is currently
     *               limited to one character
     * @param _offset The starting point to start searching from which can start
     *                from 0, but must not exceed the length of the string
     * @return int The position of the needle starting from 0 and returning -1
     *             in the case of no matches found
     */
    function _indexOf(string memory _base, string memory _value, uint _offset)
        internal
        pure
        returns (int) {
        bytes memory _baseBytes = bytes(_base);
        bytes memory _valueBytes = bytes(_value);

        assert(_valueBytes.length == 1);

        for (uint i = _offset; i < _baseBytes.length; i++) {
            if (_baseBytes[i] == _valueBytes[0]) {
                return int(i);
            }
        }

        return -1;
    }

    /**
     * Length
     *
     * Returns the length of the specified string
     *
     * @param _base When being used for a data type this is the extended object
     *              otherwise this is the string to be measured
     * @return uint The length of the passed string
     */
    function length(string memory _base)
        internal
        pure
        returns (uint) {
        bytes memory _baseBytes = bytes(_base);
        return _baseBytes.length;
    }

    /**
     * Sub String
     *
     * Extracts the beginning part of a string based on the desired length
     *
     * @param _base When being used for a data type this is the extended object
     *              otherwise this is the string that will be used for
     *              extracting the sub string from
     * @param _length The length of the sub string to be extracted from the base
     * @return string The extracted sub string
     */
    function substring(string memory _base, int _length)
        internal
        pure
        returns (string memory) {
        return _substring(_base, _length, 0);
    }

    /**
     * Sub String
     *
     * Extracts the part of a string based on the desired length and offset. The
     * offset and length must not exceed the lenth of the base string.
     *
     * @param _base When being used for a data type this is the extended object
     *              otherwise this is the string that will be used for
     *              extracting the sub string from
     * @param _length The length of the sub string to be extracted from the base
     * @param _offset The starting point to extract the sub string from
     * @return string The extracted sub string
     */
    function _substring(string memory _base, int _length, int _offset)
        internal
        pure
        returns (string memory) {
        bytes memory _baseBytes = bytes(_base);

        assert(uint(_offset + _length) <= _baseBytes.length);

        string memory _tmp = new string(uint(_length));
        bytes memory _tmpBytes = bytes(_tmp);

        uint j = 0;
        for (uint i = uint(_offset); i < uint(_offset + _length); i++) {
            _tmpBytes[j++] = _baseBytes[i];
        }

        return string(_tmpBytes);
    }

    /**
     * String Split (Very high gas cost)
     *
     * Splits a string into an array of strings based off the delimiter value.
     * Please note this can be quite a gas expensive function due to the use of
     * storage so only use if really required.
     *
     * @param _base When being used for a data type this is the extended object
     *               otherwise this is the string value to be split.
     * @param _value The delimiter to split the string on which must be a single
     *               character
     */
    function split(string memory _base, string memory _value)
        internal
        pure
        returns (string[] memory splitArr) {
        bytes memory _baseBytes = bytes(_base);

        uint _offset = 0;
        uint _splitsCount = 1;
        while (_offset < _baseBytes.length - 1) {
            int _limit = _indexOf(_base, _value, _offset);
            if (_limit == -1)
                break;
            else {
                _splitsCount++;
                _offset = uint(_limit) + 1;
            }
        }

        splitArr = new string[](_splitsCount);

        _offset = 0;
        _splitsCount = 0;
        while (_offset < _baseBytes.length - 1) {

            int _limit = _indexOf(_base, _value, _offset);
            if (_limit == - 1) {
                _limit = int(_baseBytes.length);
            }

            string memory _tmp = new string(uint(_limit) - _offset);
            bytes memory _tmpBytes = bytes(_tmp);

            uint j = 0;
            for (uint i = _offset; i < uint(_limit); i++) {
                _tmpBytes[j++] = _baseBytes[i];
            }
            _offset = uint(_limit) + 1;
            splitArr[_splitsCount++] = string(_tmpBytes);
        }
        return splitArr;
    }

    /**
     * Compare To
     *
     * Compares the characters of two strings, to ensure that they have an
     * identical footprint
     *
     * @param _base When being used for a data type this is the extended object
     *               otherwise this is the string base to compare against
     * @param _value The string the base is being compared to
     * @return bool Simply notates if the two string have an equivalent
     */
    function compareTo(string memory _base, string memory _value)
        internal
        pure
        returns (bool) {
        bytes memory _baseBytes = bytes(_base);
        bytes memory _valueBytes = bytes(_value);

        if (_baseBytes.length != _valueBytes.length) {
            return false;
        }

        for (uint i = 0; i < _baseBytes.length; i++) {
            if (_baseBytes[i] != _valueBytes[i]) {
                return false;
            }
        }

        return true;
    }

    /**
     * Compare To Ignore Case (High gas cost)
     *
     * Compares the characters of two strings, converting them to the same case
     * where applicable to alphabetic characters to distinguish if the values
     * match.
     *
     * @param _base When being used for a data type this is the extended object
     *               otherwise this is the string base to compare against
     * @param _value The string the base is being compared to
     * @return bool Simply notates if the two string have an equivalent value
     *              discarding case
     */
    function compareToIgnoreCase(string memory _base, string memory _value)
        internal
        pure
        returns (bool) {
        bytes memory _baseBytes = bytes(_base);
        bytes memory _valueBytes = bytes(_value);

        if (_baseBytes.length != _valueBytes.length) {
            return false;
        }

        for (uint i = 0; i < _baseBytes.length; i++) {
            if (_baseBytes[i] != _valueBytes[i] &&
            _upper(_baseBytes[i]) != _upper(_valueBytes[i])) {
                return false;
            }
        }

        return true;
    }

    /**
     * Upper
     *
     * Converts all the values of a string to their corresponding upper case
     * value.
     *
     * @param _base When being used for a data type this is the extended object
     *              otherwise this is the string base to convert to upper case
     * @return string
     */
    function upper(string memory _base)
        internal
        pure
        returns (string memory) {
        bytes memory _baseBytes = bytes(_base);
        for (uint i = 0; i < _baseBytes.length; i++) {
            _baseBytes[i] = _upper(_baseBytes[i]);
        }
        return string(_baseBytes);
    }

    /**
     * Lower
     *
     * Converts all the values of a string to their corresponding lower case
     * value.
     *
     * @param _base When being used for a data type this is the extended object
     *              otherwise this is the string base to convert to lower case
     * @return string
     */
    function lower(string memory _base)
        internal
        pure
        returns (string memory) {
        bytes memory _baseBytes = bytes(_base);
        for (uint i = 0; i < _baseBytes.length; i++) {
            _baseBytes[i] = _lower(_baseBytes[i]);
        }
        return string(_baseBytes);
    }

    /**
     * Upper
     *
     * Convert an alphabetic character to upper case and return the original
     * value when not alphabetic
     *
     * @param _b1 The byte to be converted to upper case
     * @return bytes1 The converted value if the passed value was alphabetic
     *                and in a lower case otherwise returns the original value
     */
    function _upper(bytes1 _b1)
        private
        pure
        returns (bytes1) {

        if (_b1 >= 0x61 && _b1 <= 0x7A) {
            return bytes1(uint8(_b1) - 32);
        }

        return _b1;
    }

    /**
     * Lower
     *
     * Convert an alphabetic character to lower case and return the original
     * value when not alphabetic
     *
     * @param _b1 The byte to be converted to lower case
     * @return bytes1 The converted value if the passed value was alphabetic
     *                and in a upper case otherwise returns the original value
     */
    function _lower(bytes1 _b1)
        private
        pure
        returns (bytes1) {

        if (_b1 >= 0x41 && _b1 <= 0x5A) {
            return bytes1(uint8(_b1) + 32);
        }

        return _b1;
    }
}



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

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

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

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

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

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal 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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}


abstract contract Ownable is Context {
    address private _owner;

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

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

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

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

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

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

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

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


library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}


abstract contract ERC165Storage is ERC165 {
    /**
     * @dev Mapping of interface ids to whether or not it's supported.
     */
    mapping(bytes4 => bool) private _supportedInterfaces;

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return super.supportsInterface(interfaceId) || _supportedInterfaces[interfaceId];
    }

    /**
     * @dev Registers the contract as an implementer of the interface defined by
     * `interfaceId`. Support of the actual ERC165 interface is automatic and
     * registering its interface id is not required.
     *
     * See {IERC165-supportsInterface}.
     *
     * Requirements:
     *
     * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).
     */
    function _registerInterface(bytes4 interfaceId) internal virtual {
        require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
        _supportedInterfaces[interfaceId] = true;
    }
}


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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

interface IWrappedFantom {
  // deposit wraps received FTM tokens as wFTM in 1:1 ratio by minting
  // the received amount of FTMs in wFTM on the sender's address.
  function deposit() external payable returns (uint256);
}

interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

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

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}


contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` 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 tokenId
    ) internal virtual {}
}


abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) {
        return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

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

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

interface IERC2981 is IERC165 {
  // ERC165 bytes to add to interface array - set in parent contract
  // implementing this standard
  //
  // bytes4(keccak256("royaltyInfo(uint256,uint256)")) == 0x2a55205a
  // bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a;
  // _registerInterface(_INTERFACE_ID_ERC2981);

  // @notice Called with the sale price to determine how much royalty
  //  is owed and to whom.
  // @param _tokenId - the NFT asset queried for royalty information
  // @param _salePrice - the sale price of the NFT asset specified by _tokenId
  // @return receiver - address of who should be sent the royalty payment
  // @return royaltyAmount - the royalty payment amount for _salePrice

  function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view returns (address receiver, uint256 royaltyAmount);

}


abstract contract ERC2981Collection is IERC2981 {

  // Bytes4 Code for EIP-2981
  bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a;

  // Mappings _tokenID -> values
  address private recieverTemp;
  mapping(uint256 => address) receiverAddresses;
  mapping(uint256 => uint256) royaltyPercentage;

  // Set to be internal function _setReceiver
  function _setReceiver(uint256 _tokenId, address _address) internal {
    receiverAddresses[_tokenId] = _address;
  }

  // Set to be internal function _setRoyaltyPercentage
  function _setRoyaltyPercentage(uint256 _tokenId, uint256 _royaltyPercentage) internal {
    royaltyPercentage[_tokenId] = _royaltyPercentage;
  }

  // Override for royaltyInfo(uint256, uint256)
  // royaltyInfo(uint256,uint256) => 0x2a55205a
  function royaltyInfo(
    uint256 _tokenId,
    uint256 _salePrice
  ) external view override(IERC2981) returns (
    address receiver,
    uint256 royaltyAmount
  ) {
    receiver = receiverAddresses[_tokenId];

    // This sets percentages by price * percentage / 100
    royaltyAmount = _salePrice * royaltyPercentage[_tokenId] / 100;
  }
}

contract FantomsArtNameSystem is ERC721Enumerable, ERC165Storage, Ownable {
  using Counters for Counters.Counter;
  //using Address for address;
  Counters.Counter private _tokenIdCounter;
  address private constant wFTMa = 0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83;
  IWrappedFantom private constant wFTMc = IWrappedFantom(0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83);
  IERC20 private constant wFTM = IERC20(0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83);


  address private constant MULTISIG_TREASURY = 0x87f385d152944689f92Ed523e9e5E9Bd58Ea62ef;
  address private constant deployer =  0x3e522051A9B1958Aa1e828AC24Afba4a551DF37d;

  uint256 public FEE_AMT = 0 ether;

  // bytes4 constants for ERC165
  bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd;
  //event UpdatedFees(uint256 _newFee);
  event UpdatedURI(string _newURI);
  event NameTransferred(string _name, address _from, address _to);
  //event ConsoleLog(string _msg);
  event LinkUpdated(string _name, string _lnk);
  event AvatarUpdated(string _name, string _avatarLink);


  constructor() ERC721("fantoms.art Basic Fantom Name System", "FNS") {
    // ERC165 Interfaces Supported
    _registerInterface(_INTERFACE_ID_ERC721);
  }

  struct FantomsArtName {
    string _name;
    uint256 _tokenId;
    address _owner;
    bool _exists;
    string _IPFSAttrLink;
    string _avatar;
    //mapping(string => string) _more;
  }

  struct NameApproval {
    string _name;
    address _user;
  }

  mapping(uint256 => FantomsArtName) private _tokenIdToStruct;
  mapping(string => uint256) private _reverseSearch;
  mapping(address => string) private _search;
  mapping(address => bool) private _exists2;
  mapping(string => bool) private _nameExists;
  mapping(string => address) private _rSearch2;
  mapping(string => NameApproval) private _approvals;

  //function changeFee(uint256 _newFee) public onlyOwner {
  //  FEE_AMT = _newFee;
  //  emit UpdatedFees(_newFee);
  //}

  function changeFee(uint256 _newFee) public onlyOwner {
    FEE_AMT = _newFee;
  }

  function getNameFromOwner(address _owner) public view returns(string memory) {
    return _search[_owner];
  }

  function getTokenIdFromName(string memory _name) public view returns(uint256) {
    return _reverseSearch[_name];
  }

  function isOwnedByMapping(string memory _name) public view returns(bool) {
    return _nameExists[_name];
  }

  function getOwnerOfName(string memory _name) public view returns(address) {
    _name = Strings2.upper(_name);
    uint256 _searchFor = _reverseSearch[_name];
    FantomsArtName memory x = _tokenIdToStruct[_searchFor];
    return x._owner;
  }

  function invertBool(bool _bool) private pure returns(bool) {
    if (_bool) {
      return false;
    } else {
      return true;
    }
  }


  // check why _nameExists[_name] isnt set to true
  function registerName(string memory _name) public payable {
    _name = Strings2.upper(_name);
    require(msg.value == FEE_AMT, "FNS: You need to pay the right amount >:(");//                   VvV
    require(invertBool(_nameExists[_name]), "FNS: You cant take other peoples name");
    require(invertBool(_exists2[msg.sender]), "FNS: You cant own more than one name"); // the answer is --> NO <--
    //wFTMc.deposit{value: msg.value}();                                         //                   /\
    //wFTM.transfer(MULTISIG_TREASURY, wFTM.balanceOf(address(this)));
    FantomsArtName memory _tempName = FantomsArtName(_name,_tokenIdCounter.current(),msg.sender,true,"","");
    _search[msg.sender] = _name;
    _rSearch2[_name] = msg.sender;
    _nameExists[_name] = true;
    _exists2[msg.sender] = true;
    _tokenIdToStruct[_tokenIdCounter.current()] = _tempName;
    _reverseSearch[_name] = _tokenIdCounter.current();
    _safeMint(msg.sender, _tokenIdCounter.current());
    _tokenIdCounter.increment();
  }

  function approveName(string memory _name, address owner, address spender) public {
    address nOwner = _rSearch2[_name];
    require(msg.sender == owner, "FNS: err. code 0002");
    require(nOwner == owner, "FNS: err. code 0003");
    NameApproval memory _tempApproval = NameApproval(_name,spender);
    _approvals[_name] = _tempApproval;
  }

  function isApprovedTo(string memory _name, address _to) public view returns(bool) {
    return (_approvals[_name]._user == _to);
  }

  /*
  function basicNameApproval(string memory _name, address _owner, address _spender) public {
    address nOwner = _rSearch2[_name];
    require(msg.sender == owner);
    require(nOwner == owner);
    approveName(_name,_owner,_spender,block.timestamp + 30);
  }
  */

  //function getOwnerOfTokenId(uint256 _tokenID) public view returns(address) {
  //  return ownerOf(_tokenID);
  //}

  function sendFTMToName(string memory _name) public payable {
    _name = Strings2.upper(_name);
    payable(getOwnerOfName(_name)).transfer(msg.value);
  }

  function sendERC20ToName(address _token, uint256 _amount, string memory _name) public {
    _name = Strings2.upper(_name);
    IERC20(_token).transferFrom(msg.sender,getOwnerOfName(_name),_amount);
  }

  function sendERC721ToName(address _token, uint256 _tokenId, string memory _name) public {
    _name = Strings2.upper(_name);
    IERC721(_token).safeTransferFrom(msg.sender,getOwnerOfName(_name),_tokenId);
  }

  function transferName(address _from, address _to, string memory _name) public {
    require(invertBool(_exists2[_to]),"FNS: You cant overwrite someones name, idiot");
    address nOwner = getOwnerOfName(_name);
    if (_approvals[_name]._user == msg.sender) { // do nothing
    } else {
      require(msg.sender == nOwner, "FNS: err. code 0003");
    }
    string memory _searchFromOld = _search[_from];
    uint256 _reverseFromOld = _reverseSearch[_searchFromOld];
    //address _rSearch2Old = _rSearch2[_name];
    //FantomsArtName memory _idk = _tokenIdToStruct[_reverseFromOld];

    _rSearch2[_name] = _to;
    _exists2[_from] = false;
    _exists2[_to] = true;

    _search[_to] = _search[_from];
    _search[_from] = string(abi.encodePacked(uint(0)));

    _tokenIdToStruct[_reverseSearch[_search[_to]]] = _tokenIdToStruct[_reverseFromOld];
    _tokenIdToStruct[_reverseFromOld] = FantomsArtName(_name,_reverseSearch[_search[_to]],_to,true,"","");

    transferFrom(_from,_to,_reverseFromOld);
    emit NameTransferred(_name,_from,_to);
  }

  function setIPFSAttrLink(string memory _name, string memory _lnk) public {
    require(_nameExists[_name],"FNS: You cant set a link for a non-existing name");
    require(_tokenIdToStruct[_reverseSearch[_name]]._owner == msg.sender);
    _tokenIdToStruct[_reverseSearch[_name]]._IPFSAttrLink = _lnk;
    emit LinkUpdated(_name,_lnk);
  }

  function getAttrLink(string memory _name) public view returns(string memory) {
    return _tokenIdToStruct[_reverseSearch[_name]]._IPFSAttrLink;
  }

  function setAvatar(string memory _name, string memory _avatar) public {
    require(_nameExists[_name],"FNS: You cant set a link for a non-existing name");
    require(_tokenIdToStruct[_reverseSearch[_name]]._owner == msg.sender);
    _tokenIdToStruct[_reverseSearch[_name]]._avatar = _avatar;
    emit AvatarUpdated(_name,_avatar);
  }

  function getAvatar(string memory _name) public view returns(string memory) {
      return _tokenIdToStruct[_reverseSearch[_name]]._avatar;
  }

  //function safeTransferFrom(address _from, address _to, string memory _name) public {
  //  transferName(_from,_to,_name);
  //}

  // @notice solidity required override for supportsInterface(bytes4)
  function supportsInterface(bytes4 interfaceId) public view override(ERC165Storage,ERC721Enumerable) returns (bool) {
    return super.supportsInterface(interfaceId);
  }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_rave","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"name","type":"string"}],"name":"Delisting","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"expire","type":"uint256"}],"name":"Listed","type":"event"},{"stateMutability":"nonpayable","type":"fallback"},{"inputs":[{"internalType":"string","name":"name","type":"string"}],"name":"acceptOffer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"address","name":"buyer","type":"address"}],"name":"buyName","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"}],"name":"delistName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAllListings","outputs":[{"internalType":"string[]","name":"","type":"string[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"}],"name":"getListing","outputs":[{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"expireTimestamp","type":"uint256"},{"internalType":"bool","name":"active","type":"bool"}],"internalType":"struct NFTMarketplace.Listing","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"}],"name":"getOffer","outputs":[{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"expireTimestamp","type":"uint256"},{"internalType":"bool","name":"active","type":"bool"},{"internalType":"address","name":"offeree","type":"address"}],"internalType":"struct NFTMarketplace.Offer","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"}],"name":"isListed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"expireTimestamp","type":"uint256"}],"name":"listName","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"expireTimestamp","type":"uint256"},{"internalType":"address","name":"offeree","type":"address"}],"name":"makeOffer","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"sFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60806040526040518060400160405280600061ffff1681526020016040518060400160405280601681526020017f526176654572726f7273202830293a20506173736564000000000000000000008152508152506000808201518160000160006101000a81548161ffff021916908361ffff16021790555060208201518160010190805190602001906200009592919062000386565b505050604051806040016040528061019161ffff1681526020016040518060600160405280603881526020016200352b60389139815250600260008201518160000160006101000a81548161ffff021916908361ffff16021790555060208201518160010190805190602001906200010f92919062000386565b505050604051806040016040528061019461ffff1681526020016040518060600160405280603f815260200162003563603f9139815250600460008201518160000160006101000a81548161ffff021916908361ffff16021790555060208201518160010190805190602001906200018992919062000386565b505050600260065560016007557387f385d152944689f92ed523e9e5e9bd58ea62ef600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550604051806020016040528060405180602001604052806000815250815250600b9060016200021b92919062000417565b503480156200022957600080fd5b50604051620035a2380380620035a283398181016040528101906200024f919062000522565b80600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550604051806080016040528060405180602001604052806000815250815260200160008152602001600081526020016000151581525060096000620002e9604051806020016040528060008152506200035460201b60201c565b815260200190815260200160002060008201518160000190805190602001906200031592919062000386565b50602082015181600101556040820151816002015560608201518160030160006101000a81548160ff02191690831515021790555090505050620006c9565b6000816040516020016200036991906200058f565b604051602081830303815290604052805190602001209050919050565b828054620003949062000639565b90600052602060002090601f016020900481019282620003b8576000855562000404565b82601f10620003d357805160ff191683800117855562000404565b8280016001018555821562000404579182015b8281111562000403578251825591602001919060010190620003e6565b5b5090506200041391906200047e565b5090565b8280548282559060005260206000209081019282156200046b579160200282015b828111156200046a5782518290805190602001906200045992919062000386565b509160200191906001019062000438565b5b5090506200047a91906200049d565b5090565b5b80821115620004995760008160009055506001016200047f565b5090565b5b80821115620004c15760008181620004b79190620004c5565b506001016200049e565b5090565b508054620004d39062000639565b6000825580601f10620004e7575062000508565b601f0160209004906000526020600020908101906200050791906200047e565b5b50565b6000815190506200051c81620006af565b92915050565b6000602082840312156200053557600080fd5b600062000545848285016200050b565b91505092915050565b60006200055b82620005b3565b620005678185620005be565b93506200057981856020860162000603565b62000584816200069e565b840191505092915050565b60006020820190508181036000830152620005ab81846200054e565b905092915050565b600081519050919050565b600082825260208201905092915050565b6000620005dc82620005e3565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60005b838110156200062357808201518184015260208101905062000606565b8381111562000633576000848401525b50505050565b600060028204905060018216806200065257607f821691505b602082108114156200066957620006686200066f565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000601f19601f8301169050919050565b620006ba81620005cf565b8114620006c657600080fd5b50565b612e5280620006d96000396000f3fe6080604052600436106100a05760003560e01c80639c00316e116100645780639c00316e1461019b578063ae73ccec146101c6578063b42828f5146101f1578063c4c23aab1461020d578063eefb3ad614610229578063f251234814610266576100a1565b806314bd3d87146100b35780634ae9ec30146100dc5780634c6c39bb1461011957806368e314cd146101425780637a5101161461015e576100a1565b5b3480156100ad57600080fd5b50600080fd5b3480156100bf57600080fd5b506100da60048036038101906100d591906120d3565b610291565b005b3480156100e857600080fd5b5061010360048036038101906100fe91906120d3565b610894565b6040516101109190612a0a565b60405180910390f35b34801561012557600080fd5b50610140600480360381019061013b91906120d3565b61098a565b005b61015c60048036038101906101579190612210565b610abd565b005b34801561016a57600080fd5b506101856004803603810190610180919061208e565b610c61565b6040516101929190612a2c565b60405180910390f35b3480156101a757600080fd5b506101b0610df2565b6040516101bd9190612a4e565b60405180910390f35b3480156101d257600080fd5b506101db610df8565b6040516101e8919061286d565b60405180910390f35b61020b600480360381019061020691906121a9565b610ed1565b005b61022760048036038101906102229190612155565b611072565b005b34801561023557600080fd5b50610250600480360381019061024b91906120d3565b6115e8565b60405161025d919061288f565b60405180910390f35b34801561027257600080fd5b5061027b611626565b6040516102889190612a4e565b60405180910390f35b8033600061029f838361162c565b9050806000015115816020015160200151906102f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102e891906128aa565b60405180910390fd5b506000600a600061030187611a5d565b81526020019081526020016000206040518060a001604052908160008201805461032a90612c8f565b80601f016020809104026020016040519081016040528092919081815260200182805461035690612c8f565b80156103a35780601f10610378576101008083540402835291602001916103a3565b820191906000526020600020905b81548152906001019060200180831161038657829003601f168201915b5050505050815260200160018201548152602001600282015481526020016003820160009054906101000a900460ff161515151581526020016003820160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050905042816040015111610479576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610470906129aa565b60405180910390fd5b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b465fe7e876040518263ffffffff1660e01b81526004016104d691906128aa565b60206040518083038186803b1580156104ee57600080fd5b505afa158015610502573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610526919061203c565b905060006105378360200151611a8d565b90506000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1682604051610581906127ff565b60006040518083038185875af1925050503d80600081146105be576040519150601f19603f3d011682016040523d82523d6000602084013e6105c3565b606091505b5050905080610607576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105fe9061292a565b60405180910390fd5b60008373ffffffffffffffffffffffffffffffffffffffff168386602001516106309190612bd1565b60405161063c906127ff565b60006040518083038185875af1925050503d8060008114610679576040519150601f19603f3d011682016040523d82523d6000602084013e61067e565b606091505b50509050806106c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106b9906129ca565b60405180910390fd5b6000600c8a6040516106d491906127e8565b9081526020016040518091039020541061077b57600b600c8a6040516106fa91906127e8565b90815260200160405180910390205481548110610740577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160006107569190611d3a565b6000600c8a60405161076891906127e8565b9081526020016040518091039020819055505b600a60006107888b611a5d565b8152602001908152602001600020600080820160006107a79190611d3a565b600182016000905560028201600090556003820160006101000a81549060ff02191690556003820160016101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690555050600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633706da3d8587608001518c6040518463ffffffff1660e01b81526004016108579392919061282f565b600060405180830381600087803b15801561087157600080fd5b505af1158015610885573d6000803e3d6000fd5b50505050505050505050505050565b61089c611d7a565b600960006108a984611a5d565b81526020019081526020016000206040518060800160405290816000820180546108d290612c8f565b80601f01602080910402602001604051908101604052809291908181526020018280546108fe90612c8f565b801561094b5780601f106109205761010080835404028352916020019161094b565b820191906000526020600020905b81548152906001019060200180831161092e57829003601f168201915b5050505050815260200160018201548152602001600282015481526020016003820160009054906101000a900460ff1615151515815250509050919050565b80336000610998838361162c565b9050806000015115816020015160200151906109ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109e191906128aa565b60405180910390fd5b50604051806080016040528085815260200160008152602001600081526020016000151581525060096000610a1e87611a5d565b81526020019081526020016000206000820151816000019080519060200190610a48929190611da4565b50602082015181600101556040820151816002015560608201518160030160006101000a81548160ff0219169083151502179055509050507f51364611d78aca4e791aa6d524c2511b4807d4b8505d5eee2026d6318fea622084604051610aaf91906128aa565b60405180910390a150505050565b823414610aff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af69061290a565b60405180910390fd5b600a6000610b0c86611a5d565b8152602001908152602001600020600101548311610b5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b569061296a565b60405180910390fd5b60006040518060a001604052808681526020018581526020018481526020016001151581526020018373ffffffffffffffffffffffffffffffffffffffff16815250905080600a6000610bb188611a5d565b81526020019081526020016000206000820151816000019080519060200190610bdb929190611da4565b50602082015181600101556040820151816002015560608201518160030160006101000a81548160ff02191690831515021790555060808201518160030160016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055509050505050505050565b610c69611e2a565b600a6000610cba85858080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050611a5d565b81526020019081526020016000206040518060a0016040529081600082018054610ce390612c8f565b80601f0160208091040260200160405190810160405280929190818152602001828054610d0f90612c8f565b8015610d5c5780601f10610d3157610100808354040283529160200191610d5c565b820191906000526020600020905b815481529060010190602001808311610d3f57829003601f168201915b5050505050815260200160018201548152602001600282015481526020016003820160009054906101000a900460ff161515151581526020016003820160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050905092915050565b60075481565b6060600b805480602002602001604051908101604052809291908181526020016000905b82821015610ec8578382906000526020600020018054610e3b90612c8f565b80601f0160208091040260200160405190810160405280929190818152602001828054610e6790612c8f565b8015610eb45780601f10610e8957610100808354040283529160200191610eb4565b820191906000526020600020905b815481529060010190602001808311610e9757829003601f168201915b505050505081526020019060010190610e1c565b50505050905090565b82336000610edf838361162c565b905080600001511581602001516020015190610f31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f2891906128aa565b60405180910390fd5b50600060405180608001604052808881526020018781526020018681526020016001151581525090508060096000610f688a611a5d565b81526020019081526020016000206000820151816000019080519060200190610f92929190611da4565b50602082015181600101556040820151816002015560608201518160030160006101000a81548160ff021916908315150217905550905050600b80549050600c88604051610fe091906127e8565b908152602001604051809103902081905550600b8790806001815401808255809150506001900390600052602060002001600090919091909150908051906020019061102d929190611da4565b507fbef41a89ede581d3a764962f0c1e503257619b7af2280009264c6afe6a0a6c6f878787604051611061939291906128cc565b60405180910390a150505050505050565b60006009600061108185611a5d565b81526020019081526020016000206040518060800160405290816000820180546110aa90612c8f565b80601f01602080910402602001604051908101604052809291908181526020018280546110d690612c8f565b80156111235780601f106110f857610100808354040283529160200191611123565b820191906000526020600020905b81548152906001019060200180831161110657829003601f168201915b5050505050815260200160018201548152602001600282015481526020016003820160009054906101000a900460ff161515151581525050905080606001516111a1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111989061298a565b60405180910390fd5b6111ab838361162c565b600001516111ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111e59061294a565b60405180910390fd5b8060200151341015611235576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122c906129ea565b60405180910390fd5b4281604001511161127b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611272906129aa565b60405180910390fd5b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b465fe7e856040518263ffffffff1660e01b81526004016112d891906128aa565b60206040518083038186803b1580156112f057600080fd5b505afa158015611304573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611328919061203c565b9050600061133534611a8d565b90506000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168260405161137f906127ff565b60006040518083038185875af1925050503d80600081146113bc576040519150601f19603f3d011682016040523d82523d6000602084013e6113c1565b606091505b5050905080611405576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113fc9061292a565b60405180910390fd5b60008373ffffffffffffffffffffffffffffffffffffffff16833461142a9190612bd1565b604051611436906127ff565b60006040518083038185875af1925050503d8060008114611473576040519150601f19603f3d011682016040523d82523d6000602084013e611478565b606091505b50509050806114bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114b3906129ca565b60405180910390fd5b600b600c886040516114ce91906127e8565b90815260200160405180910390205481548110611514577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001600061152a9190611d3a565b6000600c8860405161153c91906127e8565b908152602001604051809103902081905550600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633706da3d85888a6040518463ffffffff1660e01b81526004016115ad9392919061282f565b600060405180830381600087803b1580156115c757600080fd5b505af11580156115db573d6000803e3d6000fd5b5050505050505050505050565b6000600960006115f784611a5d565b815260200190815260200160002060030160009054906101000a900460ff168061161f575060005b9050919050565b60065481565b611634611e71565b600080600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630fc2ccc0866040518263ffffffff1660e01b815260040161169291906128aa565b60206040518083038186803b1580156116aa57600080fd5b505afa1580156116be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116e29190612065565b8473ffffffffffffffffffffffffffffffffffffffff16600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b465fe7e886040518263ffffffff1660e01b815260040161175491906128aa565b60206040518083038186803b15801561176c57600080fd5b505afa158015611780573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117a4919061203c565b73ffffffffffffffffffffffffffffffffffffffff1614801561187c575061187b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166381758129876040518263ffffffff1660e01b81526004016118209190612814565b60006040518083038186803b15801561183857600080fd5b505afa15801561184c573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906118759190612114565b87611ab0565b5b91509150600082801561188c5750815b90508261196e57604051806040016040528060011515815260200160046040518060400160405290816000820160009054906101000a900461ffff1661ffff1661ffff1681526020016001820180546118e490612c8f565b80601f016020809104026020016040519081016040528092919081815260200182805461191090612c8f565b801561195d5780601f106119325761010080835404028352916020019161195d565b820191906000526020600020905b81548152906001019060200180831161194057829003601f168201915b505050505081525050815250611a52565b60405180604001604052808215151581526020018261198e576002611991565b60005b6040518060400160405290816000820160009054906101000a900461ffff1661ffff1661ffff1681526020016001820180546119cc90612c8f565b80601f01602080910402602001604051908101604052809291908181526020018280546119f890612c8f565b8015611a455780601f10611a1a57610100808354040283529160200191611a45565b820191906000526020600020905b815481529060010190602001808311611a2857829003601f168201915b5050505050815250508152505b935050505092915050565b600081604051602001611a7091906128aa565b604051602081830303815290604052805190602001209050919050565b60006064600654611a9e9190612b46565b82611aa99190612b77565b9050919050565b600080611abd8484611ac6565b14905092915050565b60008083905060008390506000825190508082511015611ae557815190505b60005b81811015611ce057828181518110611b29577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916848281518110611b8f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161015611bee577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff945050505050611d34565b828181518110611c27577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916848281518110611c8d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161115611ccd576001945050505050611d34565b8080611cd890612cc1565b915050611ae8565b50815183511015611d16577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9350505050611d34565b815183511115611d2c5760019350505050611d34565b600093505050505b92915050565b508054611d4690612c8f565b6000825580601f10611d585750611d77565b601f016020900490600052602060002090810190611d769190611e93565b5b50565b60405180608001604052806060815260200160008152602001600081526020016000151581525090565b828054611db090612c8f565b90600052602060002090601f016020900481019282611dd25760008555611e19565b82601f10611deb57805160ff1916838001178555611e19565b82800160010185558215611e19579182015b82811115611e18578251825591602001919060010190611dfd565b5b509050611e269190611e93565b5090565b6040518060a00160405280606081526020016000815260200160008152602001600015158152602001600073ffffffffffffffffffffffffffffffffffffffff1681525090565b6040518060400160405280600015158152602001611e8d611eb0565b81525090565b5b80821115611eac576000816000905550600101611e94565b5090565b6040518060400160405280600061ffff168152602001606081525090565b6000611ee1611edc84612a9a565b612a69565b905082815260208101848484011115611ef957600080fd5b611f04848285612c4d565b509392505050565b6000611f1f611f1a84612a9a565b612a69565b905082815260208101848484011115611f3757600080fd5b611f42848285612c5c565b509392505050565b600081359050611f5981612dd7565b92915050565b600081519050611f6e81612dd7565b92915050565b600081519050611f8381612dee565b92915050565b60008083601f840112611f9b57600080fd5b8235905067ffffffffffffffff811115611fb457600080fd5b602083019150836001820283011115611fcc57600080fd5b9250929050565b600082601f830112611fe457600080fd5b8135611ff4848260208601611ece565b91505092915050565b600082601f83011261200e57600080fd5b815161201e848260208601611f0c565b91505092915050565b60008135905061203681612e05565b92915050565b60006020828403121561204e57600080fd5b600061205c84828501611f5f565b91505092915050565b60006020828403121561207757600080fd5b600061208584828501611f74565b91505092915050565b600080602083850312156120a157600080fd5b600083013567ffffffffffffffff8111156120bb57600080fd5b6120c785828601611f89565b92509250509250929050565b6000602082840312156120e557600080fd5b600082013567ffffffffffffffff8111156120ff57600080fd5b61210b84828501611fd3565b91505092915050565b60006020828403121561212657600080fd5b600082015167ffffffffffffffff81111561214057600080fd5b61214c84828501611ffd565b91505092915050565b6000806040838503121561216857600080fd5b600083013567ffffffffffffffff81111561218257600080fd5b61218e85828601611fd3565b925050602061219f85828601611f4a565b9150509250929050565b6000806000606084860312156121be57600080fd5b600084013567ffffffffffffffff8111156121d857600080fd5b6121e486828701611fd3565b93505060206121f586828701612027565b925050604061220686828701612027565b9150509250925092565b6000806000806080858703121561222657600080fd5b600085013567ffffffffffffffff81111561224057600080fd5b61224c87828801611fd3565b945050602061225d87828801612027565b935050604061226e87828801612027565b925050606061227f87828801611f4a565b91505092959194509250565b60006122978383612350565b905092915050565b6122a881612c05565b82525050565b6122b781612c05565b82525050565b60006122c882612ada565b6122d28185612afd565b9350836020820285016122e485612aca565b8060005b858110156123205784840389528151612301858261228b565b945061230c83612af0565b925060208a019950506001810190506122e8565b50829750879550505050505092915050565b61233b81612c17565b82525050565b61234a81612c17565b82525050565b600061235b82612ae5565b6123658185612b19565b9350612375818560208601612c5c565b61237e81612dc6565b840191505092915050565b600061239482612ae5565b61239e8185612b2a565b93506123ae818560208601612c5c565b6123b781612dc6565b840191505092915050565b60006123cd82612ae5565b6123d78185612b3b565b93506123e7818560208601612c5c565b80840191505092915050565b6000612400603483612b2a565b91507f526176654d61726b65743a2053656e642074686520616d6f756e74206f66204660008301527f544d20796f7520617265206f66666572696e672e0000000000000000000000006020830152604082019050919050565b6000612466602683612b2a565b91507f526176654d61726b65743a20506179696e67207365727669636520666565206660008301527f61696c65642e00000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006124cc602883612b2a565b91507f526176654d61726b65743a20596f752063616e6e6f742062757920796f75722060008301527f6f776e206974656d0000000000000000000000000000000000000000000000006020830152604082019050919050565b6000612532603f83612b2a565b91507f526176654d61726b65743a20596f75206d757374206f66666572206d6f72652060008301527f7468616e2077686174207468652068696768657374206f666665722069732e006020830152604082019050919050565b6000612598601e83612b2a565b91507f526176654d61726b65743a204c697374696e67206e6f742061637469766500006000830152602082019050919050565b60006125d8600083612b0e565b9150600082019050919050565b60006125f2602283612b2a565b91507f526176654d61726b65743a2054686973206f666665722068617320657870697260008301527f65640000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000612658602083612b2a565b91507f526176654d61726b65743a20506179696e672073656c6c6572206661696c65646000830152602082019050919050565b6000612698603283612b2a565b91507f526176654d61726b65743a205468652076616c75652073656e7420697320626560008301527f6c6f77207468652073616c6520707269636500000000000000000000000000006020830152604082019050919050565b6000608083016000830151848203600086015261270e8282612350565b915050602083015161272360208601826127ca565b50604083015161273660408601826127ca565b5060608301516127496060860182612332565b508091505092915050565b600060a08301600083015184820360008601526127718282612350565b915050602083015161278660208601826127ca565b50604083015161279960408601826127ca565b5060608301516127ac6060860182612332565b5060808301516127bf608086018261229f565b508091505092915050565b6127d381612c43565b82525050565b6127e281612c43565b82525050565b60006127f482846123c2565b915081905092915050565b600061280a826125cb565b9150819050919050565b600060208201905061282960008301846122ae565b92915050565b600060608201905061284460008301866122ae565b61285160208301856122ae565b81810360408301526128638184612389565b9050949350505050565b6000602082019050818103600083015261288781846122bd565b905092915050565b60006020820190506128a46000830184612341565b92915050565b600060208201905081810360008301526128c48184612389565b905092915050565b600060608201905081810360008301526128e68186612389565b90506128f560208301856127d9565b61290260408301846127d9565b949350505050565b60006020820190508181036000830152612923816123f3565b9050919050565b6000602082019050818103600083015261294381612459565b9050919050565b60006020820190508181036000830152612963816124bf565b9050919050565b6000602082019050818103600083015261298381612525565b9050919050565b600060208201905081810360008301526129a38161258b565b9050919050565b600060208201905081810360008301526129c3816125e5565b9050919050565b600060208201905081810360008301526129e38161264b565b9050919050565b60006020820190508181036000830152612a038161268b565b9050919050565b60006020820190508181036000830152612a2481846126f1565b905092915050565b60006020820190508181036000830152612a468184612754565b905092915050565b6000602082019050612a6360008301846127d9565b92915050565b6000604051905081810181811067ffffffffffffffff82111715612a9057612a8f612d97565b5b8060405250919050565b600067ffffffffffffffff821115612ab557612ab4612d97565b5b601f19601f8301169050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000612b5182612c43565b9150612b5c83612c43565b925082612b6c57612b6b612d39565b5b828204905092915050565b6000612b8282612c43565b9150612b8d83612c43565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612bc657612bc5612d0a565b5b828202905092915050565b6000612bdc82612c43565b9150612be783612c43565b925082821015612bfa57612bf9612d0a565b5b828203905092915050565b6000612c1082612c23565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015612c7a578082015181840152602081019050612c5f565b83811115612c89576000848401525b50505050565b60006002820490506001821680612ca757607f821691505b60208210811415612cbb57612cba612d68565b5b50919050565b6000612ccc82612c43565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612cff57612cfe612d0a565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b612de081612c05565b8114612deb57600080fd5b50565b612df781612c17565b8114612e0257600080fd5b50565b612e0e81612c43565b8114612e1957600080fd5b5056fea2646970667358221220770322693af044e3ee8d4ee022111c0e7cc514492a0aac6fead43a1fe71b4e6d64736f6c63430008000033526176654572726f72732028343031293a204e6f7420617574686f726973656420746f20706572666f726d207468697320616374696f6e2e526176654572726f72732028343034293a204e616d65206e6f7420666f756e64205b747279207175657279696e6720696e20616c6c2d6361706974616c735d0000000000000000000000006a403ffbbf8545ee0d99a63a72e5f335dfcae2bd

Deployed Bytecode

0x6080604052600436106100a05760003560e01c80639c00316e116100645780639c00316e1461019b578063ae73ccec146101c6578063b42828f5146101f1578063c4c23aab1461020d578063eefb3ad614610229578063f251234814610266576100a1565b806314bd3d87146100b35780634ae9ec30146100dc5780634c6c39bb1461011957806368e314cd146101425780637a5101161461015e576100a1565b5b3480156100ad57600080fd5b50600080fd5b3480156100bf57600080fd5b506100da60048036038101906100d591906120d3565b610291565b005b3480156100e857600080fd5b5061010360048036038101906100fe91906120d3565b610894565b6040516101109190612a0a565b60405180910390f35b34801561012557600080fd5b50610140600480360381019061013b91906120d3565b61098a565b005b61015c60048036038101906101579190612210565b610abd565b005b34801561016a57600080fd5b506101856004803603810190610180919061208e565b610c61565b6040516101929190612a2c565b60405180910390f35b3480156101a757600080fd5b506101b0610df2565b6040516101bd9190612a4e565b60405180910390f35b3480156101d257600080fd5b506101db610df8565b6040516101e8919061286d565b60405180910390f35b61020b600480360381019061020691906121a9565b610ed1565b005b61022760048036038101906102229190612155565b611072565b005b34801561023557600080fd5b50610250600480360381019061024b91906120d3565b6115e8565b60405161025d919061288f565b60405180910390f35b34801561027257600080fd5b5061027b611626565b6040516102889190612a4e565b60405180910390f35b8033600061029f838361162c565b9050806000015115816020015160200151906102f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102e891906128aa565b60405180910390fd5b506000600a600061030187611a5d565b81526020019081526020016000206040518060a001604052908160008201805461032a90612c8f565b80601f016020809104026020016040519081016040528092919081815260200182805461035690612c8f565b80156103a35780601f10610378576101008083540402835291602001916103a3565b820191906000526020600020905b81548152906001019060200180831161038657829003601f168201915b5050505050815260200160018201548152602001600282015481526020016003820160009054906101000a900460ff161515151581526020016003820160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050905042816040015111610479576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610470906129aa565b60405180910390fd5b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b465fe7e876040518263ffffffff1660e01b81526004016104d691906128aa565b60206040518083038186803b1580156104ee57600080fd5b505afa158015610502573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610526919061203c565b905060006105378360200151611a8d565b90506000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1682604051610581906127ff565b60006040518083038185875af1925050503d80600081146105be576040519150601f19603f3d011682016040523d82523d6000602084013e6105c3565b606091505b5050905080610607576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105fe9061292a565b60405180910390fd5b60008373ffffffffffffffffffffffffffffffffffffffff168386602001516106309190612bd1565b60405161063c906127ff565b60006040518083038185875af1925050503d8060008114610679576040519150601f19603f3d011682016040523d82523d6000602084013e61067e565b606091505b50509050806106c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106b9906129ca565b60405180910390fd5b6000600c8a6040516106d491906127e8565b9081526020016040518091039020541061077b57600b600c8a6040516106fa91906127e8565b90815260200160405180910390205481548110610740577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160006107569190611d3a565b6000600c8a60405161076891906127e8565b9081526020016040518091039020819055505b600a60006107888b611a5d565b8152602001908152602001600020600080820160006107a79190611d3a565b600182016000905560028201600090556003820160006101000a81549060ff02191690556003820160016101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690555050600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633706da3d8587608001518c6040518463ffffffff1660e01b81526004016108579392919061282f565b600060405180830381600087803b15801561087157600080fd5b505af1158015610885573d6000803e3d6000fd5b50505050505050505050505050565b61089c611d7a565b600960006108a984611a5d565b81526020019081526020016000206040518060800160405290816000820180546108d290612c8f565b80601f01602080910402602001604051908101604052809291908181526020018280546108fe90612c8f565b801561094b5780601f106109205761010080835404028352916020019161094b565b820191906000526020600020905b81548152906001019060200180831161092e57829003601f168201915b5050505050815260200160018201548152602001600282015481526020016003820160009054906101000a900460ff1615151515815250509050919050565b80336000610998838361162c565b9050806000015115816020015160200151906109ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109e191906128aa565b60405180910390fd5b50604051806080016040528085815260200160008152602001600081526020016000151581525060096000610a1e87611a5d565b81526020019081526020016000206000820151816000019080519060200190610a48929190611da4565b50602082015181600101556040820151816002015560608201518160030160006101000a81548160ff0219169083151502179055509050507f51364611d78aca4e791aa6d524c2511b4807d4b8505d5eee2026d6318fea622084604051610aaf91906128aa565b60405180910390a150505050565b823414610aff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af69061290a565b60405180910390fd5b600a6000610b0c86611a5d565b8152602001908152602001600020600101548311610b5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b569061296a565b60405180910390fd5b60006040518060a001604052808681526020018581526020018481526020016001151581526020018373ffffffffffffffffffffffffffffffffffffffff16815250905080600a6000610bb188611a5d565b81526020019081526020016000206000820151816000019080519060200190610bdb929190611da4565b50602082015181600101556040820151816002015560608201518160030160006101000a81548160ff02191690831515021790555060808201518160030160016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055509050505050505050565b610c69611e2a565b600a6000610cba85858080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050611a5d565b81526020019081526020016000206040518060a0016040529081600082018054610ce390612c8f565b80601f0160208091040260200160405190810160405280929190818152602001828054610d0f90612c8f565b8015610d5c5780601f10610d3157610100808354040283529160200191610d5c565b820191906000526020600020905b815481529060010190602001808311610d3f57829003601f168201915b5050505050815260200160018201548152602001600282015481526020016003820160009054906101000a900460ff161515151581526020016003820160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050905092915050565b60075481565b6060600b805480602002602001604051908101604052809291908181526020016000905b82821015610ec8578382906000526020600020018054610e3b90612c8f565b80601f0160208091040260200160405190810160405280929190818152602001828054610e6790612c8f565b8015610eb45780601f10610e8957610100808354040283529160200191610eb4565b820191906000526020600020905b815481529060010190602001808311610e9757829003601f168201915b505050505081526020019060010190610e1c565b50505050905090565b82336000610edf838361162c565b905080600001511581602001516020015190610f31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f2891906128aa565b60405180910390fd5b50600060405180608001604052808881526020018781526020018681526020016001151581525090508060096000610f688a611a5d565b81526020019081526020016000206000820151816000019080519060200190610f92929190611da4565b50602082015181600101556040820151816002015560608201518160030160006101000a81548160ff021916908315150217905550905050600b80549050600c88604051610fe091906127e8565b908152602001604051809103902081905550600b8790806001815401808255809150506001900390600052602060002001600090919091909150908051906020019061102d929190611da4565b507fbef41a89ede581d3a764962f0c1e503257619b7af2280009264c6afe6a0a6c6f878787604051611061939291906128cc565b60405180910390a150505050505050565b60006009600061108185611a5d565b81526020019081526020016000206040518060800160405290816000820180546110aa90612c8f565b80601f01602080910402602001604051908101604052809291908181526020018280546110d690612c8f565b80156111235780601f106110f857610100808354040283529160200191611123565b820191906000526020600020905b81548152906001019060200180831161110657829003601f168201915b5050505050815260200160018201548152602001600282015481526020016003820160009054906101000a900460ff161515151581525050905080606001516111a1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111989061298a565b60405180910390fd5b6111ab838361162c565b600001516111ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111e59061294a565b60405180910390fd5b8060200151341015611235576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122c906129ea565b60405180910390fd5b4281604001511161127b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611272906129aa565b60405180910390fd5b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b465fe7e856040518263ffffffff1660e01b81526004016112d891906128aa565b60206040518083038186803b1580156112f057600080fd5b505afa158015611304573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611328919061203c565b9050600061133534611a8d565b90506000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168260405161137f906127ff565b60006040518083038185875af1925050503d80600081146113bc576040519150601f19603f3d011682016040523d82523d6000602084013e6113c1565b606091505b5050905080611405576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113fc9061292a565b60405180910390fd5b60008373ffffffffffffffffffffffffffffffffffffffff16833461142a9190612bd1565b604051611436906127ff565b60006040518083038185875af1925050503d8060008114611473576040519150601f19603f3d011682016040523d82523d6000602084013e611478565b606091505b50509050806114bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114b3906129ca565b60405180910390fd5b600b600c886040516114ce91906127e8565b90815260200160405180910390205481548110611514577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001600061152a9190611d3a565b6000600c8860405161153c91906127e8565b908152602001604051809103902081905550600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633706da3d85888a6040518463ffffffff1660e01b81526004016115ad9392919061282f565b600060405180830381600087803b1580156115c757600080fd5b505af11580156115db573d6000803e3d6000fd5b5050505050505050505050565b6000600960006115f784611a5d565b815260200190815260200160002060030160009054906101000a900460ff168061161f575060005b9050919050565b60065481565b611634611e71565b600080600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630fc2ccc0866040518263ffffffff1660e01b815260040161169291906128aa565b60206040518083038186803b1580156116aa57600080fd5b505afa1580156116be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116e29190612065565b8473ffffffffffffffffffffffffffffffffffffffff16600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b465fe7e886040518263ffffffff1660e01b815260040161175491906128aa565b60206040518083038186803b15801561176c57600080fd5b505afa158015611780573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117a4919061203c565b73ffffffffffffffffffffffffffffffffffffffff1614801561187c575061187b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166381758129876040518263ffffffff1660e01b81526004016118209190612814565b60006040518083038186803b15801561183857600080fd5b505afa15801561184c573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906118759190612114565b87611ab0565b5b91509150600082801561188c5750815b90508261196e57604051806040016040528060011515815260200160046040518060400160405290816000820160009054906101000a900461ffff1661ffff1661ffff1681526020016001820180546118e490612c8f565b80601f016020809104026020016040519081016040528092919081815260200182805461191090612c8f565b801561195d5780601f106119325761010080835404028352916020019161195d565b820191906000526020600020905b81548152906001019060200180831161194057829003601f168201915b505050505081525050815250611a52565b60405180604001604052808215151581526020018261198e576002611991565b60005b6040518060400160405290816000820160009054906101000a900461ffff1661ffff1661ffff1681526020016001820180546119cc90612c8f565b80601f01602080910402602001604051908101604052809291908181526020018280546119f890612c8f565b8015611a455780601f10611a1a57610100808354040283529160200191611a45565b820191906000526020600020905b815481529060010190602001808311611a2857829003601f168201915b5050505050815250508152505b935050505092915050565b600081604051602001611a7091906128aa565b604051602081830303815290604052805190602001209050919050565b60006064600654611a9e9190612b46565b82611aa99190612b77565b9050919050565b600080611abd8484611ac6565b14905092915050565b60008083905060008390506000825190508082511015611ae557815190505b60005b81811015611ce057828181518110611b29577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916848281518110611b8f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161015611bee577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff945050505050611d34565b828181518110611c27577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916848281518110611c8d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161115611ccd576001945050505050611d34565b8080611cd890612cc1565b915050611ae8565b50815183511015611d16577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9350505050611d34565b815183511115611d2c5760019350505050611d34565b600093505050505b92915050565b508054611d4690612c8f565b6000825580601f10611d585750611d77565b601f016020900490600052602060002090810190611d769190611e93565b5b50565b60405180608001604052806060815260200160008152602001600081526020016000151581525090565b828054611db090612c8f565b90600052602060002090601f016020900481019282611dd25760008555611e19565b82601f10611deb57805160ff1916838001178555611e19565b82800160010185558215611e19579182015b82811115611e18578251825591602001919060010190611dfd565b5b509050611e269190611e93565b5090565b6040518060a00160405280606081526020016000815260200160008152602001600015158152602001600073ffffffffffffffffffffffffffffffffffffffff1681525090565b6040518060400160405280600015158152602001611e8d611eb0565b81525090565b5b80821115611eac576000816000905550600101611e94565b5090565b6040518060400160405280600061ffff168152602001606081525090565b6000611ee1611edc84612a9a565b612a69565b905082815260208101848484011115611ef957600080fd5b611f04848285612c4d565b509392505050565b6000611f1f611f1a84612a9a565b612a69565b905082815260208101848484011115611f3757600080fd5b611f42848285612c5c565b509392505050565b600081359050611f5981612dd7565b92915050565b600081519050611f6e81612dd7565b92915050565b600081519050611f8381612dee565b92915050565b60008083601f840112611f9b57600080fd5b8235905067ffffffffffffffff811115611fb457600080fd5b602083019150836001820283011115611fcc57600080fd5b9250929050565b600082601f830112611fe457600080fd5b8135611ff4848260208601611ece565b91505092915050565b600082601f83011261200e57600080fd5b815161201e848260208601611f0c565b91505092915050565b60008135905061203681612e05565b92915050565b60006020828403121561204e57600080fd5b600061205c84828501611f5f565b91505092915050565b60006020828403121561207757600080fd5b600061208584828501611f74565b91505092915050565b600080602083850312156120a157600080fd5b600083013567ffffffffffffffff8111156120bb57600080fd5b6120c785828601611f89565b92509250509250929050565b6000602082840312156120e557600080fd5b600082013567ffffffffffffffff8111156120ff57600080fd5b61210b84828501611fd3565b91505092915050565b60006020828403121561212657600080fd5b600082015167ffffffffffffffff81111561214057600080fd5b61214c84828501611ffd565b91505092915050565b6000806040838503121561216857600080fd5b600083013567ffffffffffffffff81111561218257600080fd5b61218e85828601611fd3565b925050602061219f85828601611f4a565b9150509250929050565b6000806000606084860312156121be57600080fd5b600084013567ffffffffffffffff8111156121d857600080fd5b6121e486828701611fd3565b93505060206121f586828701612027565b925050604061220686828701612027565b9150509250925092565b6000806000806080858703121561222657600080fd5b600085013567ffffffffffffffff81111561224057600080fd5b61224c87828801611fd3565b945050602061225d87828801612027565b935050604061226e87828801612027565b925050606061227f87828801611f4a565b91505092959194509250565b60006122978383612350565b905092915050565b6122a881612c05565b82525050565b6122b781612c05565b82525050565b60006122c882612ada565b6122d28185612afd565b9350836020820285016122e485612aca565b8060005b858110156123205784840389528151612301858261228b565b945061230c83612af0565b925060208a019950506001810190506122e8565b50829750879550505050505092915050565b61233b81612c17565b82525050565b61234a81612c17565b82525050565b600061235b82612ae5565b6123658185612b19565b9350612375818560208601612c5c565b61237e81612dc6565b840191505092915050565b600061239482612ae5565b61239e8185612b2a565b93506123ae818560208601612c5c565b6123b781612dc6565b840191505092915050565b60006123cd82612ae5565b6123d78185612b3b565b93506123e7818560208601612c5c565b80840191505092915050565b6000612400603483612b2a565b91507f526176654d61726b65743a2053656e642074686520616d6f756e74206f66204660008301527f544d20796f7520617265206f66666572696e672e0000000000000000000000006020830152604082019050919050565b6000612466602683612b2a565b91507f526176654d61726b65743a20506179696e67207365727669636520666565206660008301527f61696c65642e00000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006124cc602883612b2a565b91507f526176654d61726b65743a20596f752063616e6e6f742062757920796f75722060008301527f6f776e206974656d0000000000000000000000000000000000000000000000006020830152604082019050919050565b6000612532603f83612b2a565b91507f526176654d61726b65743a20596f75206d757374206f66666572206d6f72652060008301527f7468616e2077686174207468652068696768657374206f666665722069732e006020830152604082019050919050565b6000612598601e83612b2a565b91507f526176654d61726b65743a204c697374696e67206e6f742061637469766500006000830152602082019050919050565b60006125d8600083612b0e565b9150600082019050919050565b60006125f2602283612b2a565b91507f526176654d61726b65743a2054686973206f666665722068617320657870697260008301527f65640000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000612658602083612b2a565b91507f526176654d61726b65743a20506179696e672073656c6c6572206661696c65646000830152602082019050919050565b6000612698603283612b2a565b91507f526176654d61726b65743a205468652076616c75652073656e7420697320626560008301527f6c6f77207468652073616c6520707269636500000000000000000000000000006020830152604082019050919050565b6000608083016000830151848203600086015261270e8282612350565b915050602083015161272360208601826127ca565b50604083015161273660408601826127ca565b5060608301516127496060860182612332565b508091505092915050565b600060a08301600083015184820360008601526127718282612350565b915050602083015161278660208601826127ca565b50604083015161279960408601826127ca565b5060608301516127ac6060860182612332565b5060808301516127bf608086018261229f565b508091505092915050565b6127d381612c43565b82525050565b6127e281612c43565b82525050565b60006127f482846123c2565b915081905092915050565b600061280a826125cb565b9150819050919050565b600060208201905061282960008301846122ae565b92915050565b600060608201905061284460008301866122ae565b61285160208301856122ae565b81810360408301526128638184612389565b9050949350505050565b6000602082019050818103600083015261288781846122bd565b905092915050565b60006020820190506128a46000830184612341565b92915050565b600060208201905081810360008301526128c48184612389565b905092915050565b600060608201905081810360008301526128e68186612389565b90506128f560208301856127d9565b61290260408301846127d9565b949350505050565b60006020820190508181036000830152612923816123f3565b9050919050565b6000602082019050818103600083015261294381612459565b9050919050565b60006020820190508181036000830152612963816124bf565b9050919050565b6000602082019050818103600083015261298381612525565b9050919050565b600060208201905081810360008301526129a38161258b565b9050919050565b600060208201905081810360008301526129c3816125e5565b9050919050565b600060208201905081810360008301526129e38161264b565b9050919050565b60006020820190508181036000830152612a038161268b565b9050919050565b60006020820190508181036000830152612a2481846126f1565b905092915050565b60006020820190508181036000830152612a468184612754565b905092915050565b6000602082019050612a6360008301846127d9565b92915050565b6000604051905081810181811067ffffffffffffffff82111715612a9057612a8f612d97565b5b8060405250919050565b600067ffffffffffffffff821115612ab557612ab4612d97565b5b601f19601f8301169050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000612b5182612c43565b9150612b5c83612c43565b925082612b6c57612b6b612d39565b5b828204905092915050565b6000612b8282612c43565b9150612b8d83612c43565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612bc657612bc5612d0a565b5b828202905092915050565b6000612bdc82612c43565b9150612be783612c43565b925082821015612bfa57612bf9612d0a565b5b828203905092915050565b6000612c1082612c23565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015612c7a578082015181840152602081019050612c5f565b83811115612c89576000848401525b50505050565b60006002820490506001821680612ca757607f821691505b60208210811415612cbb57612cba612d68565b5b50919050565b6000612ccc82612c43565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612cff57612cfe612d0a565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b612de081612c05565b8114612deb57600080fd5b50565b612df781612c17565b8114612e0257600080fd5b50565b612e0e81612c43565b8114612e1957600080fd5b5056fea2646970667358221220770322693af044e3ee8d4ee022111c0e7cc514492a0aac6fead43a1fe71b4e6d64736f6c63430008000033

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

0000000000000000000000006a403ffbbf8545ee0d99a63a72e5f335dfcae2bd

-----Decoded View---------------
Arg [0] : _rave (address): 0x6A403FFbBF8545EE0d99a63A72e5f335dFCaE2Bd

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000006a403ffbbf8545ee0d99a63a72e5f335dfcae2bd


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

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]
[ 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.