APE Price: $1.26 (+7.54%)

Contract

0xd224d48F34058a089885B6E8F0Babfd8803B32F2

Overview

APE Balance

Apechain LogoApechain LogoApechain Logo0 APE

APE Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

Parent Transaction Hash Block From To
View All Internal Transactions

Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Cryptosender

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
london EvmVersion
File 1 of 15 : Cryptosender.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;

import "../../node_modules/@openzeppelin/contracts-upgradeable/utils/math/SafeMathUpgradeable.sol";
import "../../node_modules/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "../../node_modules/@openzeppelin/contracts-upgradeable/access/AccessControlEnumerableUpgradeable.sol";
import "../../node_modules/@openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol";
import "../../node_modules/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";
                                                                                                    
/**
                        _                           _           _       
                       | |                         | |         (_)      
   ___ _ __ _   _ _ __ | |_ ___  ___  ___ _ __   __| | ___ _ __ _  ___  
  / __| '__| | | | '_ \| __/ _ \/ __|/ _ \ '_ \ / _` |/ _ \ '__| |/ _ \ 
 | (__| |  | |_| | |_) | || (_) \__ \  __/ | | | (_| |  __/ |_ | | (_) |
  \___|_|   \__, | .__/ \__\___/|___/\___|_| |_|\__,_|\___|_(_)|_|\___/ 
             __/ | |                                                    
            |___/|_|             

 https://cryptosender.io

 Send tokens to multiple addresses at once with a reduced  
*/
contract Cryptosender is Initializable, ContextUpgradeable, AccessControlEnumerableUpgradeable { 

    struct VipLevel{
        uint256 level;        
        uint256 fee;
        uint256 price;
        uint256 vipTime;
    }
    // Relation between user address and purchased vip level
    mapping(address => uint256)  _purchasedVipLevel;
    // Relation between user address and purchased vip level date
    mapping(address => uint256)  _purchasedOn;    
    // Vip level settings
    mapping(uint256 => VipLevel) _vipLevels;
    // Team wallet ( developer )
    address team;           
    
    function initialize() public initializer { 
        __AccessControl_init();        
        __AccessControlEnumerable_init();
        __Context_init();
        __ERC165_init();        
        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
        team = _msgSender();
        addVipLevel(0, 55 ether, 0 ether, 0 days);
        addVipLevel(1, 0 ether, 150 ether, 1 days);
        addVipLevel(2, 0 ether, 250 ether, 7 days);
        addVipLevel(3, 0 ether, 400 ether, 30 days);
        addVipLevel(4, 0 ether, 750 ether, 90 days);
    }

    /**
     * Add new vip level to the system. 
     * This is used on creation of contract to configure the vip levels of system.
     */
    function addVipLevel(uint256 level, uint256 fee, uint256 price, uint256 vipTime) public {
        require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender));
        _vipLevels[level] = VipLevel(level, fee, price, vipTime);
    }
    function addVipsLevel(uint256[] memory level, uint256[] memory fee, uint256[] memory price, uint256[] memory vipTime) public {
        require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender));
        uint length = level.length;
        for(uint i = 0; i < length; i++){
            _vipLevels[level[i]] = VipLevel(level[i], fee[i], price[i], vipTime[i]);        
        }
    }
    /**
     * Utility method to sum array of uints     
     */
    function _sumAmounts(uint256[] memory amounts) internal pure returns(uint256){
        uint sum = 0;
        uint length = amounts.length;
        for(uint i = 0; i < length; i++){
            sum += amounts[i];
        }
        return sum;
    }

    /**
     * Returns the current purchased vip level of user
     */
    function currentLevel(address user) public view returns(VipLevel memory){
        uint256 _pOn     = _purchasedOn[user];
        uint256 _endDate = _pOn + _vipLevels[_purchasedVipLevel[user]].vipTime;
        bool _offerEnabled = false;
        if(_offerEnabled == true){
            VipLevel memory _offerVipLevel = VipLevel(99, 0, 0, block.timestamp + 30 days);
            return _offerVipLevel;
        }
        if(block.timestamp > _endDate){
            return _vipLevels[0];
        }
        return _vipLevels[_purchasedVipLevel[user]];
    }

    /**
     * Process a purchase vip level
     */
    function purchaseVip(uint256 level) public payable {
        VipLevel memory vipLevel = _vipLevels[level];   
        uint256 _price = vipLevel.price;
        require(currentLevel(msg.sender).level < level, "No level");
        require(msg.value >= _price, "Insufficient balance");
        _purchasedVipLevel[msg.sender] = level;
        _purchasedOn[msg.sender] = block.timestamp;        
        _sendEther(team, msg.value);
    }

    /**
     * Distribute ERC-20 tokens
     */
    function distribute(
        address token,
        address[] memory destiny, 
        uint256[] memory amounts
    ) public payable{        
        uint256 _fee = currentLevel(msg.sender).fee;         
        bool _offerEnabled = false;
        if(_offerEnabled){
            _fee = 0;
        }
        _checkDistribution(_fee, destiny.length, amounts.length);
        uint length = destiny.length;
        for(uint i = 0; i < length; i++){            
            IERC20Upgradeable(token).transferFrom(msg.sender, destiny[i], amounts[i]);
        }        
        _sendEther(team, _fee);
    }

    /**
     * Distribute Native chain tokens
     */
    function distributeEther(
        address[] memory destiny, 
        uint256[] memory amounts
    ) public payable{        
        uint256 _fee  = currentLevel(msg.sender).fee;        
        bool _offerEnabled = false;
        if(_offerEnabled){
            _fee = 0;
        }
        _checkDistribution(_fee + _sumAmounts(amounts) , destiny.length, amounts.length);
        uint length = destiny.length;
        for(uint i = 0; i < length; i++){
            _sendEther(destiny[i], amounts[i]);
        }        
        _sendEther(team, _fee);
    }

    /**
     * Distribute multiple ERC20 tokens to one address. Need previous approve of all tokens
     */
    function distributeMultipleERC20ToOneAddress(
        address[] memory tokens, 
        uint256[] memory amounts,
        address destiny
    ) public payable{
        uint256 _fee  = currentLevel(msg.sender).fee;        
        bool _offerEnabled = false;
        if(_offerEnabled){
            _fee = 0;
        }
        _checkDistribution(_fee + _sumAmounts(amounts), tokens.length, amounts.length);
        uint length = tokens.length;
        for(uint i = 0; i < length; i++){
            IERC20Upgradeable(tokens[i]).transferFrom(msg.sender, destiny, amounts[i]);
        }
        _sendEther(team, _fee);
    }
    /**
     * Distribute multiple ERC20 tokens to multiple addresses. Need previous approve of all tokens
     */
    function distributeMultipleERC20ToMultipleAddress(        
        address[] memory tokens, 
        uint256[] memory amounts,
        address[] memory destinies
    ) public payable{
        uint256 _fee  = currentLevel(msg.sender).fee;        
        bool _offerEnabled = false;
        if(_offerEnabled){
            _fee = 0;
        }
        _checkDistribution(_fee + _sumAmounts(amounts), tokens.length, amounts.length);
        require(tokens.length == destinies.length, "invalid input");
        uint length = tokens.length;
        for(uint i = 0; i < length; i++){
            IERC20Upgradeable(tokens[i]).transferFrom(msg.sender, destinies[i], amounts[i]);
        }
        _sendEther(team, _fee);
    }
    /**
     * Returns the current fee of user
     */
    function distributionFee(address from) public view returns(uint256){
        bool _offerEnabled = false;
        if(_offerEnabled){
            return 0;
        }
        return _vipLevels[_purchasedVipLevel[from]].fee;
    }
    /**
     * Returns vip price of level
     */
    function vipPrice(uint256 level) public view returns(uint256){
        return _vipLevels[level].price;
    }
    /**
     * Distribute multiple NFTS to multiple addresses
     */
    function distributeNFT(
        address[] memory destinies,
        address[] memory tokenAddresses,
        uint256[] memory tokenIds
    ) public payable{
        uint256 _fee  = currentLevel(msg.sender).fee; 
        uint length = destinies.length;
        _checkDistribution(_fee , tokenIds.length, tokenAddresses.length);
        for(uint i = 0; i < length; i++){
            uint256 tokenId      = tokenIds[i];
            address tokenAddress = tokenAddresses[i];
            address destiny      = destinies[i];
            IERC721Upgradeable(tokenAddress).transferFrom(msg.sender, destiny, tokenId);
        }
        _sendEther(team, _fee);        
    }    
    /**
     * Assertions for fistribution
     */
    function _checkDistribution(
        uint256 _fee, 
        uint256 _destiny, 
        uint256 _amounts        
    ) internal{        
        require(_destiny == _amounts, "invalid lengths");        
        require(msg.value >= _fee, "insufficient fee");            
    }
    /**
     * Utility method for send native chain token
     */
    function _sendEther(address to, uint256 amount) internal {
        (bool sended,) = payable(to).call{value: amount}("");
        require(sended == true);
    }
    function changeFreePlanFee(uint256 amount) public{
        require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender));
        _vipLevels[0] = VipLevel(0, amount, 0 ether, 0 days);
    }
    function getURL() public pure returns(string memory){
        return "https://cryptosender.io";
    }
}

File 2 of 15 : EnumerableSetUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 *
 * [WARNING]
 * ====
 *  Trying to delete such a structure from storage will likely result in data corruption, rendering the structure unusable.
 *  See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
 *
 *  In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an array of EnumerableSet.
 * ====
 */
library EnumerableSetUpgradeable {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastValue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastValue;
                // Update the index for the moved value
                set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }
}

File 3 of 15 : SafeMathUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 4 of 15 : IERC165Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 5 of 15 : ERC165Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165Upgradeable.sol";
import "../../proxy/utils/Initializable.sol";

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

    function __ERC165_init_unchained() internal onlyInitializing {
    }
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165Upgradeable).interfaceId;
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

File 6 of 15 : StringsUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library StringsUpgradeable {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

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

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 7 of 15 : ContextUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

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

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract ContextUpgradeable is Initializable {
    function __Context_init() internal onlyInitializing {
    }

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

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

File 8 of 15 : AddressUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library AddressUpgradeable {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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 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
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 9 of 15 : IERC721Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165Upgradeable.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721Upgradeable is IERC165Upgradeable {
    /**
     * @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`.
     *
     * 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;

    /**
     * @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 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 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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

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

File 10 of 15 : IERC20Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20Upgradeable {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

File 11 of 15 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.2;

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

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
 * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
 * case an upgrade adds a module that needs to be initialized.
 *
 * For example:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * contract MyToken is ERC20Upgradeable {
 *     function initialize() initializer public {
 *         __ERC20_init("MyToken", "MTK");
 *     }
 * }
 * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
 *     function initializeV2() reinitializer(2) public {
 *         __ERC20Permit_init("MyToken");
 *     }
 * }
 * ```
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
 * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() {
 *     _disableInitializers();
 * }
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     * @custom:oz-retyped-from bool
     */
    uint8 private _initialized;

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

    /**
     * @dev Triggered when the contract has been initialized or reinitialized.
     */
    event Initialized(uint8 version);

    /**
     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
     * `onlyInitializing` functions can be used to initialize parent contracts. Equivalent to `reinitializer(1)`.
     */
    modifier initializer() {
        bool isTopLevelCall = !_initializing;
        require(
            (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),
            "Initializable: contract is already initialized"
        );
        _initialized = 1;
        if (isTopLevelCall) {
            _initializing = true;
        }
        _;
        if (isTopLevelCall) {
            _initializing = false;
            emit Initialized(1);
        }
    }

    /**
     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
     * used to initialize parent contracts.
     *
     * `initializer` is equivalent to `reinitializer(1)`, so a reinitializer may be used after the original
     * initialization step. This is essential to configure modules that are added through upgrades and that require
     * initialization.
     *
     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
     * a contract, executing them in the right order is up to the developer or operator.
     */
    modifier reinitializer(uint8 version) {
        require(!_initializing && _initialized < version, "Initializable: contract is already initialized");
        _initialized = version;
        _initializing = true;
        _;
        _initializing = false;
        emit Initialized(version);
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} and {reinitializer} modifiers, directly or indirectly.
     */
    modifier onlyInitializing() {
        require(_initializing, "Initializable: contract is not initializing");
        _;
    }

    /**
     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called
     * through proxies.
     */
    function _disableInitializers() internal virtual {
        require(!_initializing, "Initializable: contract is initializing");
        if (_initialized < type(uint8).max) {
            _initialized = type(uint8).max;
            emit Initialized(type(uint8).max);
        }
    }
}

File 12 of 15 : IAccessControlUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControlUpgradeable {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

File 13 of 15 : IAccessControlEnumerableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControlEnumerable.sol)

pragma solidity ^0.8.0;

import "./IAccessControlUpgradeable.sol";

/**
 * @dev External interface of AccessControlEnumerable declared to support ERC165 detection.
 */
interface IAccessControlEnumerableUpgradeable is IAccessControlUpgradeable {
    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) external view returns (address);

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) external view returns (uint256);
}

File 14 of 15 : AccessControlUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControlUpgradeable.sol";
import "../utils/ContextUpgradeable.sol";
import "../utils/StringsUpgradeable.sol";
import "../utils/introspection/ERC165Upgradeable.sol";
import "../proxy/utils/Initializable.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControlUpgradeable is Initializable, ContextUpgradeable, IAccessControlUpgradeable, ERC165Upgradeable {
    function __AccessControl_init() internal onlyInitializing {
    }

    function __AccessControl_init_unchained() internal onlyInitializing {
    }
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        StringsUpgradeable.toHexString(uint160(account), 20),
                        " is missing role ",
                        StringsUpgradeable.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleGranted} event.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleRevoked} event.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     *
     * May emit a {RoleRevoked} event.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * May emit a {RoleGranted} event.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

File 15 of 15 : AccessControlEnumerableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControlEnumerable.sol)

pragma solidity ^0.8.0;

import "./IAccessControlEnumerableUpgradeable.sol";
import "./AccessControlUpgradeable.sol";
import "../utils/structs/EnumerableSetUpgradeable.sol";
import "../proxy/utils/Initializable.sol";

/**
 * @dev Extension of {AccessControl} that allows enumerating the members of each role.
 */
abstract contract AccessControlEnumerableUpgradeable is Initializable, IAccessControlEnumerableUpgradeable, AccessControlUpgradeable {
    function __AccessControlEnumerable_init() internal onlyInitializing {
    }

    function __AccessControlEnumerable_init_unchained() internal onlyInitializing {
    }
    using EnumerableSetUpgradeable for EnumerableSetUpgradeable.AddressSet;

    mapping(bytes32 => EnumerableSetUpgradeable.AddressSet) private _roleMembers;

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

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view virtual override returns (address) {
        return _roleMembers[role].at(index);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view virtual override returns (uint256) {
        return _roleMembers[role].length();
    }

    /**
     * @dev Overload {_grantRole} to track enumerable memberships
     */
    function _grantRole(bytes32 role, address account) internal virtual override {
        super._grantRole(role, account);
        _roleMembers[role].add(account);
    }

    /**
     * @dev Overload {_revokeRole} to track enumerable memberships
     */
    function _revokeRole(bytes32 role, address account) internal virtual override {
        super._revokeRole(role, account);
        _roleMembers[role].remove(account);
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

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

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"level","type":"uint256"},{"internalType":"uint256","name":"fee","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"vipTime","type":"uint256"}],"name":"addVipLevel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"level","type":"uint256[]"},{"internalType":"uint256[]","name":"fee","type":"uint256[]"},{"internalType":"uint256[]","name":"price","type":"uint256[]"},{"internalType":"uint256[]","name":"vipTime","type":"uint256[]"}],"name":"addVipsLevel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"changeFreePlanFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"currentLevel","outputs":[{"components":[{"internalType":"uint256","name":"level","type":"uint256"},{"internalType":"uint256","name":"fee","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"vipTime","type":"uint256"}],"internalType":"struct Cryptosender.VipLevel","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address[]","name":"destiny","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"distribute","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"destiny","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"distributeEther","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokens","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"address[]","name":"destinies","type":"address[]"}],"name":"distributeMultipleERC20ToMultipleAddress","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokens","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"address","name":"destiny","type":"address"}],"name":"distributeMultipleERC20ToOneAddress","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"destinies","type":"address[]"},{"internalType":"address[]","name":"tokenAddresses","type":"address[]"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"distributeNFT","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"}],"name":"distributionFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getURL","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"level","type":"uint256"}],"name":"purchaseVip","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"level","type":"uint256"}],"name":"vipPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b50611f8d806100206000396000f3fe6080604052600436106101405760003560e01c806375bb1971116100b6578063a217fddf1161006f578063a217fddf146103e2578063b9203881146103f7578063bea28b7f1461043d578063ca15c87314610450578063d2cb6c9414610470578063d547741f1461048357600080fd5b806375bb19711461032257806378a5f67f146103425780638129fc1c146103625780639010d07c1461037757806391d14854146103af5780639e7934db146103cf57600080fd5b806336568abe1161010857806336568abe1461021d57806338bcdc1c1461023d57806346770afa146102895780634cab824c1461029c5780635581ed26146102af578063691a037a146102cf57600080fd5b806301ffc9a7146101455780630b75360c1461017a57806315270ace146101b8578063248a9ca3146101cd5780632f2ff15d146101fd575b600080fd5b34801561015157600080fd5b5061016561016036600461187f565b6104a3565b60405190151581526020015b60405180910390f35b34801561018657600080fd5b506101aa6101953660046118a9565b600090815260cb602052604090206002015490565b604051908152602001610171565b6101cb6101c6366004611a16565b6104ce565b005b3480156101d957600080fd5b506101aa6101e83660046118a9565b60009081526065602052604090206001015490565b34801561020957600080fd5b506101cb610218366004611a8a565b6105e1565b34801561022957600080fd5b506101cb610238366004611a8a565b61060b565b34801561024957600080fd5b50604080518082018252601781527f68747470733a2f2f63727970746f73656e6465722e696f000000000000000000602082015290516101719190611ae6565b6101cb610297366004611b19565b61068e565b6101cb6102aa3660046118a9565b610794565b3480156102bb57600080fd5b506101cb6102ca366004611b8d565b610892565b3480156102db57600080fd5b506102ef6102ea366004611bbf565b6108ed565b60405161017191908151815260208083015190820152604080830151908201526060918201519181019190915260800190565b34801561032e57600080fd5b506101cb61033d3660046118a9565b610a75565b34801561034e57600080fd5b506101cb61035d366004611bda565b610b45565b34801561036e57600080fd5b506101cb610c55565b34801561038357600080fd5b50610397610392366004611c87565b610e19565b6040516001600160a01b039091168152602001610171565b3480156103bb57600080fd5b506101656103ca366004611a8a565b610e38565b6101cb6103dd366004611ca9565b610e63565b3480156103ee57600080fd5b506101aa600081565b34801561040357600080fd5b506101aa610412366004611bbf565b6001600160a01b0316600090815260c96020908152604080832054835260cb90915290206001015490565b6101cb61044b366004611d0d565b610f0e565b34801561045c57600080fd5b506101aa61046b3660046118a9565b611026565b6101cb61047e366004611d5c565b61103d565b34801561048f57600080fd5b506101cb61049e366004611a8a565b61118a565b60006001600160e01b03198216635a05180f60e01b14806104c857506104c8826111af565b92915050565b60006104d9336108ed565b60200151905060006104ee82855185516111e4565b835160005b818110156105c257866001600160a01b03166323b872dd3388848151811061051d5761051d611dda565b602002602001015188858151811061053757610537611dda565b60200260200101516040518463ffffffff1660e01b815260040161055d93929190611df0565b602060405180830381600087803b15801561057757600080fd5b505af115801561058b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105af9190611e14565b50806105ba81611e4c565b9150506104f3565b5060cc546105d9906001600160a01b031684611268565b505050505050565b6000828152606560205260409020600101546105fc816112ce565b61060683836112d8565b505050565b6001600160a01b03811633146106805760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b61068a82826112fa565b5050565b6000610699336108ed565b60200151905060006106c06106ad8561131c565b6106b79084611e67565b865186516111e4565b845160005b818110156105c2578681815181106106df576106df611dda565b60200260200101516001600160a01b03166323b872dd338789858151811061070957610709611dda565b60200260200101516040518463ffffffff1660e01b815260040161072f93929190611df0565b602060405180830381600087803b15801561074957600080fd5b505af115801561075d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107819190611e14565b508061078c81611e4c565b9150506106c5565b600081815260cb6020908152604091829020825160808101845281548152600182015492810192909252600281015492820183905260030154606082015290826107dd336108ed565b51106108165760405162461bcd60e51b8152602060048201526008602482015267139bc81b195d995b60c21b6044820152606401610677565b8034101561085d5760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b6044820152606401610677565b33600090815260c96020908152604080832086905560ca909152902042905560cc54610606906001600160a01b031634611268565b61089d600033610e38565b6108a657600080fd5b60408051608081018252858152602080820195865281830194855260608201938452600096875260cb90529420935184559151600184015551600283015551600390910155565b6109186040518060800160405280600081526020016000815260200160008152602001600081525090565b6001600160a01b038216600090815260ca602090815260408083205460c9835281842054845260cb9092528220600301549091906109569083611e67565b9050600081421115610a1a57505060008052505060cb6020908152604080516080810182527f4239c2c8c3d9b94feb214b0f54d7c869ce1ceb63517be57644336cda4967a4685481527f4239c2c8c3d9b94feb214b0f54d7c869ce1ceb63517be57644336cda4967a46954928101929092527f4239c2c8c3d9b94feb214b0f54d7c869ce1ceb63517be57644336cda4967a46a54908201527f4239c2c8c3d9b94feb214b0f54d7c869ce1ceb63517be57644336cda4967a46b546060820152919050565b505050506001600160a01b0316600090815260c96020908152604080832054835260cb825291829020825160808101845281548152600182015492810192909252600281015492820192909252600390910154606082015290565b610a80600033610e38565b610a8957600080fd5b60408051608081018252600080825260208083019485529282018181526060830182815291805260cb90935290517f4239c2c8c3d9b94feb214b0f54d7c869ce1ceb63517be57644336cda4967a4685591517f4239c2c8c3d9b94feb214b0f54d7c869ce1ceb63517be57644336cda4967a46955517f4239c2c8c3d9b94feb214b0f54d7c869ce1ceb63517be57644336cda4967a46a55517f4239c2c8c3d9b94feb214b0f54d7c869ce1ceb63517be57644336cda4967a46b55565b610b50600033610e38565b610b5957600080fd5b835160005b818110156105d9576040518060800160405280878381518110610b8357610b83611dda565b60200260200101518152602001868381518110610ba257610ba2611dda565b60200260200101518152602001858381518110610bc157610bc1611dda565b60200260200101518152602001848381518110610be057610be0611dda565b602002602001015181525060cb6000888481518110610c0157610c01611dda565b60200260200101518152602001908152602001600020600082015181600001556020820151816001015560408201518160020155606082015181600301559050508080610c4d90611e4c565b915050610b5e565b600054610100900460ff1615808015610c755750600054600160ff909116105b80610c8f5750303b158015610c8f575060005460ff166001145b610cf25760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610677565b6000805460ff191660011790558015610d15576000805461ff0019166101001790555b610d1d61136f565b610d2561136f565b610d2d61136f565b610d3561136f565b610d406000336113dc565b60cc80546001600160a01b03191633179055610d6860006802fb474098f67c00008180610892565b610d8260016000680821ab0d441498000062015180610892565b610d9c60026000680d8d726b7177a8000062093a80610892565b610db6600360006815af1d78b58c40000062278d00610892565b610dd0600460006828a857425466f800006276a700610892565b8015610e16576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50565b6000828152609760205260408120610e3190836113e6565b9392505050565b60009182526065602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6000610e6e336108ed565b6020015190506000610e95610e828461131c565b610e8c9084611e67565b855185516111e4565b835160005b81811015610ef057610ede868281518110610eb757610eb7611dda565b6020026020010151868381518110610ed157610ed1611dda565b6020026020010151611268565b80610ee881611e4c565b915050610e9a565b5060cc54610f07906001600160a01b031684611268565b5050505050565b6000610f19336108ed565b602001519050600084519050610f3282845186516111e4565b60005b8181101561100f576000848281518110610f5157610f51611dda565b602002602001015190506000868381518110610f6f57610f6f611dda565b602002602001015190506000888481518110610f8d57610f8d611dda565b60200260200101519050816001600160a01b03166323b872dd3383866040518463ffffffff1660e01b8152600401610fc793929190611df0565b600060405180830381600087803b158015610fe157600080fd5b505af1158015610ff5573d6000803e3d6000fd5b50505050505050808061100790611e4c565b915050610f35565b5060cc54610f07906001600160a01b031683611268565b60008181526097602052604081206104c8906113f2565b6000611048336108ed565b602001519050600061105c6106ad8561131c565b825185511461109d5760405162461bcd60e51b815260206004820152600d60248201526c1a5b9d985b1a59081a5b9c1d5d609a1b6044820152606401610677565b845160005b818110156105c2578681815181106110bc576110bc611dda565b60200260200101516001600160a01b03166323b872dd338784815181106110e5576110e5611dda565b60200260200101518985815181106110ff576110ff611dda565b60200260200101516040518463ffffffff1660e01b815260040161112593929190611df0565b602060405180830381600087803b15801561113f57600080fd5b505af1158015611153573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111779190611e14565b508061118281611e4c565b9150506110a2565b6000828152606560205260409020600101546111a5816112ce565b61060683836112fa565b60006001600160e01b03198216637965db0b60e01b14806104c857506301ffc9a760e01b6001600160e01b03198316146104c8565b8082146112255760405162461bcd60e51b815260206004820152600f60248201526e696e76616c6964206c656e6774687360881b6044820152606401610677565b823410156106065760405162461bcd60e51b815260206004820152601060248201526f696e73756666696369656e742066656560801b6044820152606401610677565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146112b5576040519150601f19603f3d011682016040523d82523d6000602084013e6112ba565b606091505b509091505060018115151461060657600080fd5b610e1681336113fc565b6112e28282611460565b600082815260976020526040902061060690826114e6565b61130482826114fb565b60008281526097602052604090206106069082611562565b80516000908190815b818110156113665784818151811061133f5761133f611dda565b6020026020010151836113529190611e67565b92508061135e81611e4c565b915050611325565b50909392505050565b600054610100900460ff166113da5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610677565b565b61068a82826112d8565b6000610e318383611577565b60006104c8825490565b6114068282610e38565b61068a5761141e816001600160a01b031660146115a1565b6114298360206115a1565b60405160200161143a929190611e7f565b60408051601f198184030181529082905262461bcd60e51b825261067791600401611ae6565b61146a8282610e38565b61068a5760008281526065602090815260408083206001600160a01b03851684529091529020805460ff191660011790556114a23390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000610e31836001600160a01b03841661173d565b6115058282610e38565b1561068a5760008281526065602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000610e31836001600160a01b03841661178c565b600082600001828154811061158e5761158e611dda565b9060005260206000200154905092915050565b606060006115b0836002611ef4565b6115bb906002611e67565b67ffffffffffffffff8111156115d3576115d36118de565b6040519080825280601f01601f1916602001820160405280156115fd576020820181803683370190505b509050600360fc1b8160008151811061161857611618611dda565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061164757611647611dda565b60200101906001600160f81b031916908160001a905350600061166b846002611ef4565b611676906001611e67565b90505b60018111156116ee576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106116aa576116aa611dda565b1a60f81b8282815181106116c0576116c0611dda565b60200101906001600160f81b031916908160001a90535060049490941c936116e781611f13565b9050611679565b508315610e315760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610677565b6000818152600183016020526040812054611784575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556104c8565b5060006104c8565b600081815260018301602052604081205480156118755760006117b0600183611f2a565b85549091506000906117c490600190611f2a565b90508181146118295760008660000182815481106117e4576117e4611dda565b906000526020600020015490508087600001848154811061180757611807611dda565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061183a5761183a611f41565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506104c8565b60009150506104c8565b60006020828403121561189157600080fd5b81356001600160e01b031981168114610e3157600080fd5b6000602082840312156118bb57600080fd5b5035919050565b80356001600160a01b03811681146118d957600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561191d5761191d6118de565b604052919050565b600067ffffffffffffffff82111561193f5761193f6118de565b5060051b60200190565b600082601f83011261195a57600080fd5b8135602061196f61196a83611925565b6118f4565b82815260059290921b8401810191818101908684111561198e57600080fd5b8286015b848110156119b0576119a3816118c2565b8352918301918301611992565b509695505050505050565b600082601f8301126119cc57600080fd5b813560206119dc61196a83611925565b82815260059290921b840181019181810190868411156119fb57600080fd5b8286015b848110156119b057803583529183019183016119ff565b600080600060608486031215611a2b57600080fd5b611a34846118c2565b9250602084013567ffffffffffffffff80821115611a5157600080fd5b611a5d87838801611949565b93506040860135915080821115611a7357600080fd5b50611a80868287016119bb565b9150509250925092565b60008060408385031215611a9d57600080fd5b82359150611aad602084016118c2565b90509250929050565b60005b83811015611ad1578181015183820152602001611ab9565b83811115611ae0576000848401525b50505050565b6020815260008251806020840152611b05816040850160208701611ab6565b601f01601f19169190910160400192915050565b600080600060608486031215611b2e57600080fd5b833567ffffffffffffffff80821115611b4657600080fd5b611b5287838801611949565b94506020860135915080821115611b6857600080fd5b50611b75868287016119bb565b925050611b84604085016118c2565b90509250925092565b60008060008060808587031215611ba357600080fd5b5050823594602084013594506040840135936060013592509050565b600060208284031215611bd157600080fd5b610e31826118c2565b60008060008060808587031215611bf057600080fd5b843567ffffffffffffffff80821115611c0857600080fd5b611c14888389016119bb565b95506020870135915080821115611c2a57600080fd5b611c36888389016119bb565b94506040870135915080821115611c4c57600080fd5b611c58888389016119bb565b93506060870135915080821115611c6e57600080fd5b50611c7b878288016119bb565b91505092959194509250565b60008060408385031215611c9a57600080fd5b50508035926020909101359150565b60008060408385031215611cbc57600080fd5b823567ffffffffffffffff80821115611cd457600080fd5b611ce086838701611949565b93506020850135915080821115611cf657600080fd5b50611d03858286016119bb565b9150509250929050565b600080600060608486031215611d2257600080fd5b833567ffffffffffffffff80821115611d3a57600080fd5b611d4687838801611949565b94506020860135915080821115611a5157600080fd5b600080600060608486031215611d7157600080fd5b833567ffffffffffffffff80821115611d8957600080fd5b611d9587838801611949565b94506020860135915080821115611dab57600080fd5b611db7878388016119bb565b93506040860135915080821115611dcd57600080fd5b50611a8086828701611949565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b039384168152919092166020820152604081019190915260600190565b600060208284031215611e2657600080fd5b81518015158114610e3157600080fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415611e6057611e60611e36565b5060010190565b60008219821115611e7a57611e7a611e36565b500190565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611eb7816017850160208801611ab6565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611ee8816028840160208801611ab6565b01602801949350505050565b6000816000190483118215151615611f0e57611f0e611e36565b500290565b600081611f2257611f22611e36565b506000190190565b600082821015611f3c57611f3c611e36565b500390565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220caa2595688d90c20994da66e2db912cefa62bd81ac2c27fab25a255444bee4b464736f6c63430008090033

Deployed Bytecode

0x6080604052600436106101405760003560e01c806375bb1971116100b6578063a217fddf1161006f578063a217fddf146103e2578063b9203881146103f7578063bea28b7f1461043d578063ca15c87314610450578063d2cb6c9414610470578063d547741f1461048357600080fd5b806375bb19711461032257806378a5f67f146103425780638129fc1c146103625780639010d07c1461037757806391d14854146103af5780639e7934db146103cf57600080fd5b806336568abe1161010857806336568abe1461021d57806338bcdc1c1461023d57806346770afa146102895780634cab824c1461029c5780635581ed26146102af578063691a037a146102cf57600080fd5b806301ffc9a7146101455780630b75360c1461017a57806315270ace146101b8578063248a9ca3146101cd5780632f2ff15d146101fd575b600080fd5b34801561015157600080fd5b5061016561016036600461187f565b6104a3565b60405190151581526020015b60405180910390f35b34801561018657600080fd5b506101aa6101953660046118a9565b600090815260cb602052604090206002015490565b604051908152602001610171565b6101cb6101c6366004611a16565b6104ce565b005b3480156101d957600080fd5b506101aa6101e83660046118a9565b60009081526065602052604090206001015490565b34801561020957600080fd5b506101cb610218366004611a8a565b6105e1565b34801561022957600080fd5b506101cb610238366004611a8a565b61060b565b34801561024957600080fd5b50604080518082018252601781527f68747470733a2f2f63727970746f73656e6465722e696f000000000000000000602082015290516101719190611ae6565b6101cb610297366004611b19565b61068e565b6101cb6102aa3660046118a9565b610794565b3480156102bb57600080fd5b506101cb6102ca366004611b8d565b610892565b3480156102db57600080fd5b506102ef6102ea366004611bbf565b6108ed565b60405161017191908151815260208083015190820152604080830151908201526060918201519181019190915260800190565b34801561032e57600080fd5b506101cb61033d3660046118a9565b610a75565b34801561034e57600080fd5b506101cb61035d366004611bda565b610b45565b34801561036e57600080fd5b506101cb610c55565b34801561038357600080fd5b50610397610392366004611c87565b610e19565b6040516001600160a01b039091168152602001610171565b3480156103bb57600080fd5b506101656103ca366004611a8a565b610e38565b6101cb6103dd366004611ca9565b610e63565b3480156103ee57600080fd5b506101aa600081565b34801561040357600080fd5b506101aa610412366004611bbf565b6001600160a01b0316600090815260c96020908152604080832054835260cb90915290206001015490565b6101cb61044b366004611d0d565b610f0e565b34801561045c57600080fd5b506101aa61046b3660046118a9565b611026565b6101cb61047e366004611d5c565b61103d565b34801561048f57600080fd5b506101cb61049e366004611a8a565b61118a565b60006001600160e01b03198216635a05180f60e01b14806104c857506104c8826111af565b92915050565b60006104d9336108ed565b60200151905060006104ee82855185516111e4565b835160005b818110156105c257866001600160a01b03166323b872dd3388848151811061051d5761051d611dda565b602002602001015188858151811061053757610537611dda565b60200260200101516040518463ffffffff1660e01b815260040161055d93929190611df0565b602060405180830381600087803b15801561057757600080fd5b505af115801561058b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105af9190611e14565b50806105ba81611e4c565b9150506104f3565b5060cc546105d9906001600160a01b031684611268565b505050505050565b6000828152606560205260409020600101546105fc816112ce565b61060683836112d8565b505050565b6001600160a01b03811633146106805760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b61068a82826112fa565b5050565b6000610699336108ed565b60200151905060006106c06106ad8561131c565b6106b79084611e67565b865186516111e4565b845160005b818110156105c2578681815181106106df576106df611dda565b60200260200101516001600160a01b03166323b872dd338789858151811061070957610709611dda565b60200260200101516040518463ffffffff1660e01b815260040161072f93929190611df0565b602060405180830381600087803b15801561074957600080fd5b505af115801561075d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107819190611e14565b508061078c81611e4c565b9150506106c5565b600081815260cb6020908152604091829020825160808101845281548152600182015492810192909252600281015492820183905260030154606082015290826107dd336108ed565b51106108165760405162461bcd60e51b8152602060048201526008602482015267139bc81b195d995b60c21b6044820152606401610677565b8034101561085d5760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b6044820152606401610677565b33600090815260c96020908152604080832086905560ca909152902042905560cc54610606906001600160a01b031634611268565b61089d600033610e38565b6108a657600080fd5b60408051608081018252858152602080820195865281830194855260608201938452600096875260cb90529420935184559151600184015551600283015551600390910155565b6109186040518060800160405280600081526020016000815260200160008152602001600081525090565b6001600160a01b038216600090815260ca602090815260408083205460c9835281842054845260cb9092528220600301549091906109569083611e67565b9050600081421115610a1a57505060008052505060cb6020908152604080516080810182527f4239c2c8c3d9b94feb214b0f54d7c869ce1ceb63517be57644336cda4967a4685481527f4239c2c8c3d9b94feb214b0f54d7c869ce1ceb63517be57644336cda4967a46954928101929092527f4239c2c8c3d9b94feb214b0f54d7c869ce1ceb63517be57644336cda4967a46a54908201527f4239c2c8c3d9b94feb214b0f54d7c869ce1ceb63517be57644336cda4967a46b546060820152919050565b505050506001600160a01b0316600090815260c96020908152604080832054835260cb825291829020825160808101845281548152600182015492810192909252600281015492820192909252600390910154606082015290565b610a80600033610e38565b610a8957600080fd5b60408051608081018252600080825260208083019485529282018181526060830182815291805260cb90935290517f4239c2c8c3d9b94feb214b0f54d7c869ce1ceb63517be57644336cda4967a4685591517f4239c2c8c3d9b94feb214b0f54d7c869ce1ceb63517be57644336cda4967a46955517f4239c2c8c3d9b94feb214b0f54d7c869ce1ceb63517be57644336cda4967a46a55517f4239c2c8c3d9b94feb214b0f54d7c869ce1ceb63517be57644336cda4967a46b55565b610b50600033610e38565b610b5957600080fd5b835160005b818110156105d9576040518060800160405280878381518110610b8357610b83611dda565b60200260200101518152602001868381518110610ba257610ba2611dda565b60200260200101518152602001858381518110610bc157610bc1611dda565b60200260200101518152602001848381518110610be057610be0611dda565b602002602001015181525060cb6000888481518110610c0157610c01611dda565b60200260200101518152602001908152602001600020600082015181600001556020820151816001015560408201518160020155606082015181600301559050508080610c4d90611e4c565b915050610b5e565b600054610100900460ff1615808015610c755750600054600160ff909116105b80610c8f5750303b158015610c8f575060005460ff166001145b610cf25760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610677565b6000805460ff191660011790558015610d15576000805461ff0019166101001790555b610d1d61136f565b610d2561136f565b610d2d61136f565b610d3561136f565b610d406000336113dc565b60cc80546001600160a01b03191633179055610d6860006802fb474098f67c00008180610892565b610d8260016000680821ab0d441498000062015180610892565b610d9c60026000680d8d726b7177a8000062093a80610892565b610db6600360006815af1d78b58c40000062278d00610892565b610dd0600460006828a857425466f800006276a700610892565b8015610e16576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50565b6000828152609760205260408120610e3190836113e6565b9392505050565b60009182526065602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6000610e6e336108ed565b6020015190506000610e95610e828461131c565b610e8c9084611e67565b855185516111e4565b835160005b81811015610ef057610ede868281518110610eb757610eb7611dda565b6020026020010151868381518110610ed157610ed1611dda565b6020026020010151611268565b80610ee881611e4c565b915050610e9a565b5060cc54610f07906001600160a01b031684611268565b5050505050565b6000610f19336108ed565b602001519050600084519050610f3282845186516111e4565b60005b8181101561100f576000848281518110610f5157610f51611dda565b602002602001015190506000868381518110610f6f57610f6f611dda565b602002602001015190506000888481518110610f8d57610f8d611dda565b60200260200101519050816001600160a01b03166323b872dd3383866040518463ffffffff1660e01b8152600401610fc793929190611df0565b600060405180830381600087803b158015610fe157600080fd5b505af1158015610ff5573d6000803e3d6000fd5b50505050505050808061100790611e4c565b915050610f35565b5060cc54610f07906001600160a01b031683611268565b60008181526097602052604081206104c8906113f2565b6000611048336108ed565b602001519050600061105c6106ad8561131c565b825185511461109d5760405162461bcd60e51b815260206004820152600d60248201526c1a5b9d985b1a59081a5b9c1d5d609a1b6044820152606401610677565b845160005b818110156105c2578681815181106110bc576110bc611dda565b60200260200101516001600160a01b03166323b872dd338784815181106110e5576110e5611dda565b60200260200101518985815181106110ff576110ff611dda565b60200260200101516040518463ffffffff1660e01b815260040161112593929190611df0565b602060405180830381600087803b15801561113f57600080fd5b505af1158015611153573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111779190611e14565b508061118281611e4c565b9150506110a2565b6000828152606560205260409020600101546111a5816112ce565b61060683836112fa565b60006001600160e01b03198216637965db0b60e01b14806104c857506301ffc9a760e01b6001600160e01b03198316146104c8565b8082146112255760405162461bcd60e51b815260206004820152600f60248201526e696e76616c6964206c656e6774687360881b6044820152606401610677565b823410156106065760405162461bcd60e51b815260206004820152601060248201526f696e73756666696369656e742066656560801b6044820152606401610677565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146112b5576040519150601f19603f3d011682016040523d82523d6000602084013e6112ba565b606091505b509091505060018115151461060657600080fd5b610e1681336113fc565b6112e28282611460565b600082815260976020526040902061060690826114e6565b61130482826114fb565b60008281526097602052604090206106069082611562565b80516000908190815b818110156113665784818151811061133f5761133f611dda565b6020026020010151836113529190611e67565b92508061135e81611e4c565b915050611325565b50909392505050565b600054610100900460ff166113da5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610677565b565b61068a82826112d8565b6000610e318383611577565b60006104c8825490565b6114068282610e38565b61068a5761141e816001600160a01b031660146115a1565b6114298360206115a1565b60405160200161143a929190611e7f565b60408051601f198184030181529082905262461bcd60e51b825261067791600401611ae6565b61146a8282610e38565b61068a5760008281526065602090815260408083206001600160a01b03851684529091529020805460ff191660011790556114a23390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000610e31836001600160a01b03841661173d565b6115058282610e38565b1561068a5760008281526065602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000610e31836001600160a01b03841661178c565b600082600001828154811061158e5761158e611dda565b9060005260206000200154905092915050565b606060006115b0836002611ef4565b6115bb906002611e67565b67ffffffffffffffff8111156115d3576115d36118de565b6040519080825280601f01601f1916602001820160405280156115fd576020820181803683370190505b509050600360fc1b8160008151811061161857611618611dda565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061164757611647611dda565b60200101906001600160f81b031916908160001a905350600061166b846002611ef4565b611676906001611e67565b90505b60018111156116ee576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106116aa576116aa611dda565b1a60f81b8282815181106116c0576116c0611dda565b60200101906001600160f81b031916908160001a90535060049490941c936116e781611f13565b9050611679565b508315610e315760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610677565b6000818152600183016020526040812054611784575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556104c8565b5060006104c8565b600081815260018301602052604081205480156118755760006117b0600183611f2a565b85549091506000906117c490600190611f2a565b90508181146118295760008660000182815481106117e4576117e4611dda565b906000526020600020015490508087600001848154811061180757611807611dda565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061183a5761183a611f41565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506104c8565b60009150506104c8565b60006020828403121561189157600080fd5b81356001600160e01b031981168114610e3157600080fd5b6000602082840312156118bb57600080fd5b5035919050565b80356001600160a01b03811681146118d957600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561191d5761191d6118de565b604052919050565b600067ffffffffffffffff82111561193f5761193f6118de565b5060051b60200190565b600082601f83011261195a57600080fd5b8135602061196f61196a83611925565b6118f4565b82815260059290921b8401810191818101908684111561198e57600080fd5b8286015b848110156119b0576119a3816118c2565b8352918301918301611992565b509695505050505050565b600082601f8301126119cc57600080fd5b813560206119dc61196a83611925565b82815260059290921b840181019181810190868411156119fb57600080fd5b8286015b848110156119b057803583529183019183016119ff565b600080600060608486031215611a2b57600080fd5b611a34846118c2565b9250602084013567ffffffffffffffff80821115611a5157600080fd5b611a5d87838801611949565b93506040860135915080821115611a7357600080fd5b50611a80868287016119bb565b9150509250925092565b60008060408385031215611a9d57600080fd5b82359150611aad602084016118c2565b90509250929050565b60005b83811015611ad1578181015183820152602001611ab9565b83811115611ae0576000848401525b50505050565b6020815260008251806020840152611b05816040850160208701611ab6565b601f01601f19169190910160400192915050565b600080600060608486031215611b2e57600080fd5b833567ffffffffffffffff80821115611b4657600080fd5b611b5287838801611949565b94506020860135915080821115611b6857600080fd5b50611b75868287016119bb565b925050611b84604085016118c2565b90509250925092565b60008060008060808587031215611ba357600080fd5b5050823594602084013594506040840135936060013592509050565b600060208284031215611bd157600080fd5b610e31826118c2565b60008060008060808587031215611bf057600080fd5b843567ffffffffffffffff80821115611c0857600080fd5b611c14888389016119bb565b95506020870135915080821115611c2a57600080fd5b611c36888389016119bb565b94506040870135915080821115611c4c57600080fd5b611c58888389016119bb565b93506060870135915080821115611c6e57600080fd5b50611c7b878288016119bb565b91505092959194509250565b60008060408385031215611c9a57600080fd5b50508035926020909101359150565b60008060408385031215611cbc57600080fd5b823567ffffffffffffffff80821115611cd457600080fd5b611ce086838701611949565b93506020850135915080821115611cf657600080fd5b50611d03858286016119bb565b9150509250929050565b600080600060608486031215611d2257600080fd5b833567ffffffffffffffff80821115611d3a57600080fd5b611d4687838801611949565b94506020860135915080821115611a5157600080fd5b600080600060608486031215611d7157600080fd5b833567ffffffffffffffff80821115611d8957600080fd5b611d9587838801611949565b94506020860135915080821115611dab57600080fd5b611db7878388016119bb565b93506040860135915080821115611dcd57600080fd5b50611a8086828701611949565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b039384168152919092166020820152604081019190915260600190565b600060208284031215611e2657600080fd5b81518015158114610e3157600080fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415611e6057611e60611e36565b5060010190565b60008219821115611e7a57611e7a611e36565b500190565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611eb7816017850160208801611ab6565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611ee8816028840160208801611ab6565b01602801949350505050565b6000816000190483118215151615611f0e57611f0e611e36565b500290565b600081611f2257611f22611e36565b506000190190565b600082821015611f3c57611f3c611e36565b500390565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220caa2595688d90c20994da66e2db912cefa62bd81ac2c27fab25a255444bee4b464736f6c63430008090033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits

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.