ETH Price: $2,466.31 (+1.15%)

Contract

0xCe660459085E83Df4ba75C3E32a73344473343D9
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw Usdt172888862023-05-18 20:44:11513 days ago1684442651IN
0xCe660459...4473343D9
0 ETH0.0028156552.1582407
Withdraw Usdc172888852023-05-18 20:43:59513 days ago1684442639IN
0xCe660459...4473343D9
0 ETH0.0028784450.57807467
Withdraw Eth172888842023-05-18 20:43:47513 days ago1684442627IN
0xCe660459...4473343D9
0 ETH0.0016590450.14331157
Buy Tokens USDT171055682023-04-23 0:52:11539 days ago1682211131IN
0xCe660459...4473343D9
0 ETH0.00429746.0178054
Buy Tokens ETH171055562023-04-23 0:49:35539 days ago1682210975IN
0xCe660459...4473343D9
0.005653 ETH0.0044934953.72811885
Buy Tokens USDT170613342023-04-16 18:53:11545 days ago1681671191IN
0xCe660459...4473343D9
0 ETH0.0026291923.79600281
Buy Tokens ETH169660342023-04-03 4:06:35558 days ago1680494795IN
0xCe660459...4473343D9
0.028095 ETH0.0018203418.07084876
Buy Tokens ETH169403022023-03-30 13:16:59562 days ago1680182219IN
0xCe660459...4473343D9
0.005816 ETH0.0031650429.08377346
Buy Tokens ETH169402902023-03-30 13:14:35562 days ago1680182075IN
0xCe660459...4473343D9
0.005816 ETH0.0025883630.94873717
Buy Tokens USDC169402872023-03-30 13:13:59562 days ago1680182039IN
0xCe660459...4473343D9
0 ETH0.0031598427.77588849
Buy Tokens USDT169402832023-03-30 13:13:11562 days ago1680181991IN
0xCe660459...4473343D9
0 ETH0.002894330.99585794
Buy Tokens USDT169401172023-03-30 12:39:35562 days ago1680179975IN
0xCe660459...4473343D9
0 ETH0.0039340130.83638146
Withdraw Eth169400272023-03-30 12:21:35562 days ago1680178895IN
0xCe660459...4473343D9
0 ETH0.0010617732.09124998
Withdraw Usdc169400222023-03-30 12:20:35562 days ago1680178835IN
0xCe660459...4473343D9
0 ETH0.0017366930.51601764
Withdraw Usdt169400162023-03-30 12:19:23562 days ago1680178763IN
0xCe660459...4473343D9
0 ETH0.0016840131.1953161
Buy Tokens ETH169400062023-03-30 12:17:23562 days ago1680178643IN
0xCe660459...4473343D9
0.005816 ETH0.0027404832.76763665
Buy Tokens USDC169399982023-03-30 12:15:35562 days ago1680178535IN
0xCe660459...4473343D9
0 ETH0.0032677828.72475791
Buy Tokens USDT169399942023-03-30 12:14:47562 days ago1680178487IN
0xCe660459...4473343D9
0 ETH0.0033460230.28707445
Buy Tokens USDT169393392023-03-30 10:01:35562 days ago1680170495IN
0xCe660459...4473343D9
0 ETH0.0030533827.63821441
Withdraw Usdt169354562023-03-29 20:57:59563 days ago1680123479IN
0xCe660459...4473343D9
0 ETH0.0016446630.46631885
Buy Tokens USDT169354462023-03-29 20:55:47563 days ago1680123347IN
0xCe660459...4473343D9
0 ETH0.0026841828.74568915
Buy Tokens USDT169354252023-03-29 20:51:35563 days ago1680123095IN
0xCe660459...4473343D9
0 ETH0.0039495930.95853934
Withdraw Usdt169085272023-03-26 2:07:47567 days ago1679796467IN
0xCe660459...4473343D9
0 ETH0.0008343315.45550806
Withdraw Usdc169085242023-03-26 2:07:11567 days ago1679796431IN
0xCe660459...4473343D9
0 ETH0.0008658515.21417637
Withdraw Eth169085182023-03-26 2:05:59567 days ago1679796359IN
0xCe660459...4473343D9
0 ETH0.0004722614.27391659
View all transactions

Latest 3 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
172888842023-05-18 20:43:47513 days ago1684442627
0xCe660459...4473343D9
0.04538 ETH
169400272023-03-30 12:21:35562 days ago1680178895
0xCe660459...4473343D9
0.005816 ETH
169085182023-03-26 2:05:59567 days ago1679796359
0xCe660459...4473343D9
0.025635 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
NBPresale

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 10 : NBPresale.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

import "../node_modules/@openzeppelin/contracts/access/Ownable.sol";
import "../node_modules/@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "../node_modules/@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "../node_modules/@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "../node_modules/@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

import "./IAggregatorV3.sol";

contract NBPresale is Ownable, ReentrancyGuard {
    // Allows interaction with deployed ETH Mainnet USDT contract
    using SafeERC20 for IERC20;

    bool public isPresaleActive = true;
    bool public isWithdrawingAllowed = false;

    uint256 public currentRound; // 0 = first round, 46 = last round
    uint256 public affiliateBonusPercentage;
    uint256 public minimumUsdtInvestment;

    uint256[] public tokenUnitPriceUsd; // scale is 100,000 ( 1 USD = 100,000)
    uint256[] public roundRewardPoolArray;

    uint256 public totalUsdtRaised;
    uint256 public totalTokensMinted;

    address public affiliateRewardAddress;
    address public usdtAddress;
    address public usdcAddress;

    mapping(address => uint256) public unclaimedBalance;
    mapping(address => uint256) public unclaimedRefferalBalance;
    mapping(uint256 => uint256) public amountRaisedInRound; // tokens

    IERC20 public token;
    IERC20 public usdt;
    IERC20 public usdc;

    IAggregatorV3 internal priceFeed;

    event TokensPurchased(
        address indexed buyer,
        uint256 usdAmount,
        uint256 tokenAmount
    );

    event TokensClaimed(address indexed buyer, uint256 tokenAmount);

    event ETHSurplusRefunded(uint256 ethAmount);

    /**
     * @dev Constructor functions, called once when contract is deployed
     */

    constructor(
        address _tokenAddress,
        address _usdtAddress,
        address _usdcAddress,
        address _affiliateRewardAddress,
        uint256 _affiliateBonusPercentage,
        uint256 _minimumUsdtInvestment,
        uint256[] memory _tokenUnitPriceUsd,
        uint256[] memory _roundRewardPoolArray,
        address _priceFeedAddress
    ) {
        token = IERC20(_tokenAddress);
        usdt = IERC20(_usdtAddress);
        usdc = IERC20(_usdcAddress);
        affiliateRewardAddress = _affiliateRewardAddress;
        affiliateBonusPercentage = _affiliateBonusPercentage;
        minimumUsdtInvestment = _minimumUsdtInvestment;
        tokenUnitPriceUsd = _tokenUnitPriceUsd;
        roundRewardPoolArray = _roundRewardPoolArray;
        priceFeed = IAggregatorV3(_priceFeedAddress);
    }

    /**
     * @dev Changes the contract settings
     * @param _tokenAddress The address of the token contract (NET)
     * @param _usdtAddress The address of the USDT contract
     * @param _usdcAddress The address of the USDC contract
     * @param _affiliateRewardAddress The address of the affiliate reward contract from where the rewards are sent from
     * @param _affiliateBonusPercentage The percentage of the affiliate bonus
     * @param _minimumUsdtInvestment The minimum amount of USDT that can be invested
     * @param _tokenUnitPriceUsd The price of the token in USD (scale is 100,000)
     * @param _roundRewardPoolArray The reward pool for each round (wei)
     * @param _priceFeedAddress The address of the Chainlink price feed
     */
    function changeContractSettings(
        address _tokenAddress,
        address _usdtAddress,
        address _usdcAddress,
        address _affiliateRewardAddress,
        uint256 _affiliateBonusPercentage,
        uint256 _minimumUsdtInvestment,
        uint256[] memory _tokenUnitPriceUsd,
        uint256[] memory _roundRewardPoolArray,
        address _priceFeedAddress
    ) public onlyOwner {
        token = IERC20(_tokenAddress);
        usdt = IERC20(_usdtAddress);
        usdc = IERC20(_usdcAddress);
        affiliateRewardAddress = _affiliateRewardAddress;
        affiliateBonusPercentage = _affiliateBonusPercentage;
        minimumUsdtInvestment = _minimumUsdtInvestment;
        tokenUnitPriceUsd = _tokenUnitPriceUsd;
        roundRewardPoolArray = _roundRewardPoolArray;
        priceFeed = IAggregatorV3(_priceFeedAddress);
    }

    /**
     * @dev Get the ETH price in USD from the Chainlink price feed
     * @notice The price feed returns the price in wei (18 decimals)
     */
    function getEthPrice() public view returns (uint256) {
        (, int256 price, , , ) = priceFeed.latestRoundData();
        // Reduce the scale from 8 decimals to 6 decimals
        return uint256(price) / 100;
    }

    /**
     * @dev Convert ETH to USD using the Chainlink price feed
     * @notice The price feed returns the price in wei (18 decimals)
     */
    function convertEthToUsd(
        uint256 ethIn
    ) public view returns (uint256 usdOut) {
        uint256 ethPrice = getEthPrice(); //6 digits
        usdOut = ((ethIn / 1e12) * ethPrice) / 1e6;
        return usdOut;
    }

    /**
     * @dev Convert USD to ETH using the Chainlink price feed
     * @notice The price feed returns the price in wei (18 decimals)
     */
    function convertUsdToEth(
        uint256 usdIn
    ) public view returns (uint256 ethOut) {
        uint256 ethPrice = getEthPrice();
        // The output of this result is in 6 decimals, convert it to 18 decimals
        ethOut = ((usdIn * 1e6) / ethPrice) * 10 ** 12;
        return ethOut;
    }

    /**
     * @dev Enables or disables the presale
     * @param _isPresaleActive Whether the presale is active or not
     */
    function setPresaleActive(bool _isPresaleActive) public onlyOwner {
        isPresaleActive = _isPresaleActive;
    }

    /**
     * @dev Gets the current round price in USD, scale is 100,000 ( 1 USD = 100,000)
     * @return uint256 The current round price in USD
     */
    function getCurrentRoundPrice() public view returns (uint256) {
        return tokenUnitPriceUsd[currentRound];
    }

    /**
     * @dev Gets whether the current round is the last round
     * @return bool
     */
    function isLastRound() public view returns (bool) {
        return currentRound + 1 == roundRewardPoolArray.length;
    }

    /**
     * @dev Set whether withdrawing is allowed or not.
     * @notice Also hides claiming buttons from the UI
     * @param _isWithdrawingAllowed Whether withdrawing is allowed or not
     * @return bool Whether withdrawing is allowed or not
     */
    function setIsWithdrawingAllowed(
        bool _isWithdrawingAllowed
    ) public onlyOwner returns (bool) {
        isWithdrawingAllowed = _isWithdrawingAllowed;
        return isWithdrawingAllowed;
    }

    /**
     * @dev Gets the amount of tokens you will get for a given amount of USDT in a given round
     * @param usdtIn The amount of USDT which goes in
     * @param roundIndex The round index
     * @return uint256 The amount of tokens you will get
     */
    function getTokenRewardForUsdtInRound(
        uint256 usdtIn,
        uint256 roundIndex
    ) internal view returns (uint256) {
        return (usdtIn * 100000) / tokenUnitPriceUsd[roundIndex];
    }

    /**
     * @dev Gets the amount of USDT you will get for a given amount of tokens in a given round
     * @param tokens The amount of tokens which goes in
     * @param roundIndex The round index
     * @return uint256 The amount of USDT you will get
     */
    function getUsdtValueForTokens(
        uint256 tokens,
        uint256 roundIndex
    ) internal view returns (uint256) {
        return (tokens * tokenUnitPriceUsd[roundIndex]) / 100000;
    }

    /**
     * @dev Processes (registers) an amount of tokens in the contract (also distributes bonus)
     * @param tokensToMint The amount of tokens to mint
     * @param usdtIn The amount of USDT which goes in
     * @param refferal The address of the refferal
     * @param userWallet The address of the user wallet which buys the tokens
     */
    function processTokens(
        uint256 tokensToMint,
        uint256 usdtIn,
        address refferal,
        address userWallet
    ) internal {
        // Calculate the bonus
        if (refferal != address(0)) {
            // Calculate 20% percent of the tokens to mint
            uint256 tokensToMintBonus = (tokensToMint *
                affiliateBonusPercentage) / 100;
            unclaimedRefferalBalance[refferal] += tokensToMintBonus;
        }

        unclaimedBalance[userWallet] += tokensToMint;
        totalUsdtRaised += usdtIn;
        amountRaisedInRound[currentRound] += tokensToMint;
        totalTokensMinted += tokensToMint;

        emit TokensPurchased(userWallet, usdtIn, tokensToMint);
    }

    /**
     * @dev Does all the requires checks and processes the token buying
     * @notice This function is called by the buyTokensXXX functions
     * @notice Also moves into next round when needed
     * @param currency The currency used to buy tokens, IERC20(address(0)) for ETH (for ETH surplus refunding)
     * @param usdtIn The amount of USDT which goes in
     * @param refferal The address of the refferee (if any), address(0) if none
     * @param userWallet The address of the user's wallet which buys the tokens
     */
    function initializeTokenBuying(
        IERC20 currency,
        uint256 usdtIn,
        address refferal,
        address userWallet
    ) internal {
        require(isPresaleActive, "Presale has not started yet");

        require(usdtIn > 0, "Investment is 0");

        require(
            currentRound < roundRewardPoolArray.length,
            "Presale has ended"
        );

        require(
            usdtIn >= minimumUsdtInvestment,
            "Investment is less than minimum"
        );

        require(
            userWallet != refferal,
            "Refferal cannot be the same as the user"
        );

        // Calculate tokens to mint
        uint256 tokensRewardForSentUsdt = getTokenRewardForUsdtInRound(
            usdtIn,
            currentRound
        );

        uint256 currentRemainingTokensInRound = roundRewardPoolArray[
            currentRound
        ] - amountRaisedInRound[currentRound];

        // Reward for user is less than remaining tokens in round, so we don't need to move to next round
        if (tokensRewardForSentUsdt < currentRemainingTokensInRound) {
            processTokens(
                tokensRewardForSentUsdt,
                usdtIn,
                refferal,
                userWallet
            );
        } else if (
            tokensRewardForSentUsdt > currentRemainingTokensInRound &&
            currentRound + 1 == roundRewardPoolArray.length
        ) {
            // Reward for user is more than the remaining tokens in round, but we are in the last round, so we reward all the tokens remaining and don't move to the next round
            uint256 satisifableTokenAmount = currentRemainingTokensInRound;
            uint256 satisifableTokenAmountUsd = getUsdtValueForTokens(
                satisifableTokenAmount,
                currentRound
            );

            processTokens(
                satisifableTokenAmount,
                satisifableTokenAmountUsd,
                refferal,
                userWallet
            );

            uint256 surplusUsd = usdtIn - satisifableTokenAmountUsd;

            // Get the address of the currency contract
            address currencyAddress = address(currency);

            if (currencyAddress == address(0)) {
                // If currencyAddress is address(0), the currency is ETH, we need to refund the surplus in ETH
                uint256 ethSurplus = convertUsdToEth(surplusUsd);
                (bool sent, ) = payable(userWallet).call{value: ethSurplus}("");
                require(sent, "Failed to send Ether surplus");

                emit ETHSurplusRefunded(ethSurplus);
            } else {
                // Refund the surplus in the currency picked
                currency.safeTransfer(userWallet, surplusUsd);
            }
            isPresaleActive = false;
        }
        // Reward for user is more than the remaining tokens in round, so we reward all the tokens remaining and move the others to the new round at the new rate
        else {
            uint256 satisifableTokenAmount = currentRemainingTokensInRound;
            uint256 satisifableTokenAmountUsd = getUsdtValueForTokens(
                satisifableTokenAmount,
                currentRound
            );

            uint256 surplusUsd = usdtIn - satisifableTokenAmountUsd;

            processTokens(
                satisifableTokenAmount,
                satisifableTokenAmountUsd,
                refferal,
                userWallet
            );

            currentRound += 1;

            // Start the process again with the surplus
            initializeTokenBuying(currency, surplusUsd, refferal, userWallet);
        }
    }

    /**
     * @dev Buys tokens with USDT, intialises buying process
     * @param usdtIn The amount of USDT to buy tokens with
     * @param refferal The address of the refferee (if any), address(0) if none
     */
    function buyTokensUSDT(uint256 usdtIn, address refferal) external {
        // Transfer the USDT to the contract
        usdt.safeTransferFrom(msg.sender, address(this), usdtIn);
        initializeTokenBuying(usdt, usdtIn, refferal, msg.sender);
    }

    /**
     * @dev Buys tokens with USDC, intialises buying process
     * @param usdcIn The amount of USDC to buy tokens with
     * @param refferal The address of the refferee (if any), address(0) if none
     */
    function buyTokensUSDC(uint256 usdcIn, address refferal) external {
        // Transfer the USDT to the contract
        usdc.safeTransferFrom(msg.sender, address(this), usdcIn);
        initializeTokenBuying(usdc, usdcIn, refferal, msg.sender);
    }

    /**
     * @dev Buys tokens with ETH, intialises buying process
     * @param refferal The address of the refferee (if any), address(0) if none
     * @notice The ETH sent is transformed (not swapped) to USDT and then used to buy tokens
     */
    function buyTokensETH(address refferal) external payable {
        uint256 usdtIn = convertEthToUsd(msg.value);
        initializeTokenBuying(IERC20(address(0)), usdtIn, refferal, msg.sender);
    }

    /**
     * @dev Buys tokens with Fiat, intialises buying process. Since when buying with Fiat transaction is Originating from Wert.io, msg.sender is Wert.io, so we need to pass the userWallet address
     * @param refferal The address of the refferee (if any), address(0) if none
     * @notice The ETH sent is transformed (not swapped) to USDT and then used to buy tokens
     */
    function buyTokensFiat(
        address userWallet,
        address refferal
    ) external payable {
        uint256 usdtIn = convertEthToUsd(msg.value);
        initializeTokenBuying(IERC20(address(0)), usdtIn, refferal, userWallet);
    }

    /**
     * @dev Claims tokens after the presale has ended
     * @notice The tokens are claimed to the address which bought them
     */
    function claimTokens() public nonReentrant {
        require(unclaimedBalance[msg.sender] > 0, "No tokens to claim");

        require(isWithdrawingAllowed, "Withdrawals are not allowed yet");

        uint256 tokensToClaim = unclaimedBalance[msg.sender];
        unclaimedBalance[msg.sender] = 0;

        token.safeTransfer(msg.sender, tokensToClaim);

        emit TokensClaimed(msg.sender, tokensToClaim);
    }

    /**
     * @dev Claims the refferal (affiliate) tokens after the presale has ended
     * @notice The tokens are claimed to the address which bought them
     */
    function claimRefferalTokens() public nonReentrant {
        require(unclaimedRefferalBalance[msg.sender] > 0, "No tokens to claim");

        require(isWithdrawingAllowed, "Withdrawals are not allowed yet");

        uint256 tokensToClaim = unclaimedRefferalBalance[msg.sender];
        unclaimedRefferalBalance[msg.sender] = 0;

        token.safeTransferFrom(
            affiliateRewardAddress,
            msg.sender,
            tokensToClaim
        );

        emit TokensClaimed(msg.sender, tokensToClaim);
    }

    /**
     * @dev Withdraw ETH from the contract to the sender's wallet.
     * @notice Only callable by the owner
     */
    function withdrawEth() public onlyOwner nonReentrant {
        uint256 balance = address(this).balance;
        (bool sent, ) = payable(msg.sender).call{value: balance}("");
        require(sent, "Failed to send Ether");
    }

    /**
     * @dev Withdraw USDC from the contract to the sender's wallet.
     * @notice Only callable by the owner
     */
    function withdrawUsdc() public onlyOwner nonReentrant {
        uint256 balance = usdc.balanceOf(address(this));
        usdc.safeTransfer(msg.sender, balance);
    }

    /**
     * @dev Withdraw USDT from the contract to the sender's wallet.
     * @notice Only callable by the owner
     */
    function withdrawUsdt() public onlyOwner nonReentrant {
        uint256 balance = usdt.balanceOf(address(this));
        usdt.safeTransfer(msg.sender, balance);
    }

    /**
     * @dev Withdraw NET from the contract to the sender's wallet.
     * @notice Only callable by the owner
     */
    function withdrawNet() public onlyOwner nonReentrant {
        uint256 balance = token.balanceOf(address(this));
        token.safeTransfer(msg.sender, balance);
    }
}

File 2 of 10 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The tree and the proofs can be generated using our
 * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].
 * You will find a quickstart guide in the readme.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 * OpenZeppelin's JavaScript library generates merkle trees that are safe
 * against this attack out of the box.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction
     * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
     * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
     * respectively.
     *
     * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
     * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
     * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 3 of 10 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 4 of 10 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [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 functionCallWithValue(target, data, 0, "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");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or 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 {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // 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 5 of 10 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.sol";
import "../../../utils/Address.sol";

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

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

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

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

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

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

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

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

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

File 6 of 10 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

File 7 of 10 : IERC20.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 IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

    /**
     * @dev Returns the 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 8 of 10 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 9 of 10 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 10 of 10 : IAggregatorV3.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

interface IAggregatorV3 {
  function latestRoundData()
    external
    view
    returns (
      uint80 roundId,
      int256 answer,
      uint256 startedAt,
      uint256 updatedAt,
      uint80 answeredInRound
    );
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"address","name":"_usdtAddress","type":"address"},{"internalType":"address","name":"_usdcAddress","type":"address"},{"internalType":"address","name":"_affiliateRewardAddress","type":"address"},{"internalType":"uint256","name":"_affiliateBonusPercentage","type":"uint256"},{"internalType":"uint256","name":"_minimumUsdtInvestment","type":"uint256"},{"internalType":"uint256[]","name":"_tokenUnitPriceUsd","type":"uint256[]"},{"internalType":"uint256[]","name":"_roundRewardPoolArray","type":"uint256[]"},{"internalType":"address","name":"_priceFeedAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"ethAmount","type":"uint256"}],"name":"ETHSurplusRefunded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"TokensClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"usdAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"TokensPurchased","type":"event"},{"inputs":[],"name":"affiliateBonusPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"affiliateRewardAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"amountRaisedInRound","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"refferal","type":"address"}],"name":"buyTokensETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"userWallet","type":"address"},{"internalType":"address","name":"refferal","type":"address"}],"name":"buyTokensFiat","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"usdcIn","type":"uint256"},{"internalType":"address","name":"refferal","type":"address"}],"name":"buyTokensUSDC","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"usdtIn","type":"uint256"},{"internalType":"address","name":"refferal","type":"address"}],"name":"buyTokensUSDT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"address","name":"_usdtAddress","type":"address"},{"internalType":"address","name":"_usdcAddress","type":"address"},{"internalType":"address","name":"_affiliateRewardAddress","type":"address"},{"internalType":"uint256","name":"_affiliateBonusPercentage","type":"uint256"},{"internalType":"uint256","name":"_minimumUsdtInvestment","type":"uint256"},{"internalType":"uint256[]","name":"_tokenUnitPriceUsd","type":"uint256[]"},{"internalType":"uint256[]","name":"_roundRewardPoolArray","type":"uint256[]"},{"internalType":"address","name":"_priceFeedAddress","type":"address"}],"name":"changeContractSettings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimRefferalTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"ethIn","type":"uint256"}],"name":"convertEthToUsd","outputs":[{"internalType":"uint256","name":"usdOut","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"usdIn","type":"uint256"}],"name":"convertUsdToEth","outputs":[{"internalType":"uint256","name":"ethOut","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentRound","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentRoundPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getEthPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isLastRound","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPresaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isWithdrawingAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minimumUsdtInvestment","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"roundRewardPoolArray","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_isWithdrawingAllowed","type":"bool"}],"name":"setIsWithdrawingAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isPresaleActive","type":"bool"}],"name":"setPresaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenUnitPriceUsd","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalTokensMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalUsdtRaised","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"unclaimedBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"unclaimedRefferalBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"usdc","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"usdcAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"usdt","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"usdtAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawNet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawUsdc","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawUsdt","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526001600260006101000a81548160ff0219169083151502179055506000600260016101000a81548160ff0219169083151502179055503480156200004757600080fd5b5060405162003ba938038062003ba983398181016040528101906200006d91906200058e565b6200008d620000816200022860201b60201c565b6200023060201b60201c565b6001808190555088601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555087601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555086601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555085600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084600481905550836005819055508260069080519060200190620001be929190620002f4565b508160079080519060200190620001d7929190620002f4565b5080601360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050505050505050620006ab565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b82805482825590600052602060002090810192821562000333579160200282015b828111156200033257825182559160200191906001019062000315565b5b50905062000342919062000346565b5090565b5b808211156200036157600081600090555060010162000347565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620003a68262000379565b9050919050565b620003b88162000399565b8114620003c457600080fd5b50565b600081519050620003d881620003ad565b92915050565b6000819050919050565b620003f381620003de565b8114620003ff57600080fd5b50565b6000815190506200041381620003e8565b92915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b62000469826200041e565b810181811067ffffffffffffffff821117156200048b576200048a6200042f565b5b80604052505050565b6000620004a062000365565b9050620004ae82826200045e565b919050565b600067ffffffffffffffff821115620004d157620004d06200042f565b5b602082029050602081019050919050565b600080fd5b6000620004fe620004f884620004b3565b62000494565b90508083825260208201905060208402830185811115620005245762000523620004e2565b5b835b818110156200055157806200053c888262000402565b84526020840193505060208101905062000526565b5050509392505050565b600082601f83011262000573576200057262000419565b5b815162000585848260208601620004e7565b91505092915050565b60008060008060008060008060006101208a8c031215620005b457620005b36200036f565b5b6000620005c48c828d01620003c7565b9950506020620005d78c828d01620003c7565b9850506040620005ea8c828d01620003c7565b9750506060620005fd8c828d01620003c7565b9650506080620006108c828d0162000402565b95505060a0620006238c828d0162000402565b94505060c08a015167ffffffffffffffff81111562000647576200064662000374565b5b620006558c828d016200055b565b93505060e08a015167ffffffffffffffff81111562000679576200067862000374565b5b620006878c828d016200055b565b9250506101006200069b8c828d01620003c7565b9150509295985092959850929598565b6134ee80620006bb6000396000f3fe6080604052600436106102305760003560e01c80637d549e991161012e578063d03270bb116100ab578063f2fde38b1161006f578063f2fde38b146107ec578063f84f848d14610815578063fc0c546a14610831578063fee84d4e1461085c578063ff12e6061461087357610230565b8063d03270bb146106f0578063e6db5c5214610719578063eaf02b2914610756578063ed2a601a14610772578063f1acea12146107af57610230565b80639a0fa29d116100f25780639a0fa29d146106095780639ab4a44514610634578063a0ef91df1461065f578063a3053e2a14610676578063c086381e146106b357610230565b80637d549e99146105485780638332cf23146105735780638a19c8bc1461059c5780638da5cb5b146105c7578063941dbb9f146105f257610230565b80633e413bee116101bc57806367c9b0171161018057806367c9b017146104ad5780636865b8e7146104d85780636ea33e4e146104ef5780636f877fd01461051a578063715018a61461053157610230565b80633e413bee146103ec5780633f8121a21461041757806348c54b9d14610440578063502197311461045757806360d938dc1461048257610230565b80631c1a8cc5116102035780631c1a8cc51461030357806323ba467a1461032e5780632c7b1ae7146103595780632f48ab7d1461038457806331c48b99146103af57610230565b806301cbf5fb1461023557806302d454571461027257806308042a641461029d578063104ab5a6146102da575b600080fd5b34801561024157600080fd5b5061025c60048036038101906102579190612462565b61089e565b60405161026991906124a8565b60405180910390f35b34801561027e57600080fd5b506102876108b6565b60405161029491906124d2565b60405180910390f35b3480156102a957600080fd5b506102c460048036038101906102bf9190612519565b6108dc565b6040516102d191906124a8565b60405180910390f35b3480156102e657600080fd5b5061030160048036038101906102fc9190612546565b6108f4565b005b34801561030f57600080fd5b50610318610975565b60405161032591906124a8565b60405180910390f35b34801561033a57600080fd5b5061034361099d565b60405161035091906125a1565b60405180910390f35b34801561036557600080fd5b5061036e6109ba565b60405161037b91906125a1565b60405180910390f35b34801561039057600080fd5b506103996109cd565b6040516103a6919061261b565b60405180910390f35b3480156103bb57600080fd5b506103d660048036038101906103d19190612519565b6109f3565b6040516103e391906124a8565b60405180910390f35b3480156103f857600080fd5b50610401610a17565b60405161040e919061261b565b60405180910390f35b34801561042357600080fd5b5061043e60048036038101906104399190612662565b610a3d565b005b34801561044c57600080fd5b50610455610a62565b005b34801561046357600080fd5b5061046c610c6a565b60405161047991906124a8565b60405180910390f35b34801561048e57600080fd5b50610497610c70565b6040516104a491906125a1565b60405180910390f35b3480156104b957600080fd5b506104c2610c83565b6040516104cf91906124a8565b60405180910390f35b3480156104e457600080fd5b506104ed610d30565b005b3480156104fb57600080fd5b50610504610e38565b60405161051191906124a8565b60405180910390f35b34801561052657600080fd5b5061052f610e3e565b005b34801561053d57600080fd5b50610546610f46565b005b34801561055457600080fd5b5061055d610f5a565b60405161056a91906124a8565b60405180910390f35b34801561057f57600080fd5b5061059a600480360381019061059591906127e8565b610f60565b005b3480156105a857600080fd5b506105b16110f4565b6040516105be91906124a8565b60405180910390f35b3480156105d357600080fd5b506105dc6110fa565b6040516105e991906124d2565b60405180910390f35b3480156105fe57600080fd5b50610607611123565b005b34801561061557600080fd5b5061061e61134f565b60405161062b91906124a8565b60405180910390f35b34801561064057600080fd5b50610649611355565b60405161065691906124d2565b60405180910390f35b34801561066b57600080fd5b5061067461137b565b005b34801561068257600080fd5b5061069d60048036038101906106989190612519565b611448565b6040516106aa91906124a8565b60405180910390f35b3480156106bf57600080fd5b506106da60048036038101906106d59190612519565b611487565b6040516106e791906124a8565b60405180910390f35b3480156106fc57600080fd5b5061071760048036038101906107129190612546565b6114c6565b005b34801561072557600080fd5b50610740600480360381019061073b9190612462565b611547565b60405161074d91906124a8565b60405180910390f35b610770600480360381019061076b9190612462565b61155f565b005b34801561077e57600080fd5b5061079960048036038101906107949190612662565b61157d565b6040516107a691906125a1565b60405180910390f35b3480156107bb57600080fd5b506107d660048036038101906107d19190612519565b6115b8565b6040516107e391906124a8565b60405180910390f35b3480156107f857600080fd5b50610813600480360381019061080e9190612462565b6115dc565b005b61082f600480360381019061082a91906128ea565b61165f565b005b34801561083d57600080fd5b5061084661167e565b604051610853919061261b565b60405180910390f35b34801561086857600080fd5b506108716116a4565b005b34801561087f57600080fd5b506108886117ac565b60405161089591906124d2565b60405180910390f35b600d6020528060005260406000206000915090505481565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600f6020528060005260406000206000915090505481565b610943333084601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166117d2909392919063ffffffff16565b610971601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683833361185b565b5050565b600060066003548154811061098d5761098c61292a565b5b9060005260206000200154905090565b600060078054905060016003546109b49190612988565b14905090565b600260019054906101000a900460ff1681565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60078181548110610a0357600080fd5b906000526020600020016000915090505481565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610a45611c92565b80600260006101000a81548160ff02191690831515021790555050565b610a6a611d10565b6000600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411610aec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae390612a19565b60405180910390fd5b600260019054906101000a900460ff16610b3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3290612a85565b60405180910390fd5b6000600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610c113382601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611d5f9092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f896e034966eaaf1adc54acc0f257056febbd300c9e47182cf761982cf1f5e43082604051610c5791906124a8565b60405180910390a250610c68611de5565b565b60045481565b600260009054906101000a900460ff1681565b600080601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa158015610cf3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d179190612b32565b505050915050606481610d2a9190612bdc565b91505090565b610d38611c92565b610d40611d10565b6000601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610d9d91906124d2565b602060405180830381865afa158015610dba573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dde9190612c0d565b9050610e2d3382601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611d5f9092919063ffffffff16565b50610e36611de5565b565b60085481565b610e46611c92565b610e4e611d10565b6000601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610eab91906124d2565b602060405180830381865afa158015610ec8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eec9190612c0d565b9050610f3b3382601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611d5f9092919063ffffffff16565b50610f44611de5565b565b610f4e611c92565b610f586000611dee565b565b60095481565b610f68611c92565b88601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555087601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555086601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555085600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084600481905550836005819055508260069080519060200190611090929190612386565b5081600790805190602001906110a7929190612386565b5080601360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050505050505050565b60035481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61112b611d10565b6000600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054116111ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111a490612a19565b60405180910390fd5b600260019054906101000a900460ff166111fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111f390612a85565b60405180910390fd5b6000600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506112f6600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff163383601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166117d2909392919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f896e034966eaaf1adc54acc0f257056febbd300c9e47182cf761982cf1f5e4308260405161133c91906124a8565b60405180910390a25061134d611de5565b565b60055481565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611383611c92565b61138b611d10565b600047905060003373ffffffffffffffffffffffffffffffffffffffff16826040516113b690612c6b565b60006040518083038185875af1925050503d80600081146113f3576040519150601f19603f3d011682016040523d82523d6000602084013e6113f8565b606091505b505090508061143c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143390612ccc565b60405180910390fd5b5050611446611de5565b565b600080611453610c83565b905064e8d4a5100081620f42408561146b9190612cec565b6114759190612bdc565b61147f9190612cec565b915050919050565b600080611492610c83565b9050620f42408164e8d4a51000856114aa9190612bdc565b6114b49190612cec565b6114be9190612bdc565b915050919050565b611515333084601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166117d2909392919063ffffffff16565b611543601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683833361185b565b5050565b600e6020528060005260406000206000915090505481565b600061156a34611487565b9050611579600082843361185b565b5050565b6000611587611c92565b81600260016101000a81548160ff021916908315150217905550600260019054906101000a900460ff169050919050565b600681815481106115c857600080fd5b906000526020600020016000915090505481565b6115e4611c92565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611653576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164a90612da0565b60405180910390fd5b61165c81611dee565b50565b600061166a34611487565b9050611679600082848661185b565b505050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6116ac611c92565b6116b4611d10565b6000601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161171191906124d2565b602060405180830381865afa15801561172e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117529190612c0d565b90506117a13382601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611d5f9092919063ffffffff16565b506117aa611de5565b565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611855846323b872dd60e01b8585856040516024016117f393929190612dc0565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611eb2565b50505050565b600260009054906101000a900460ff166118aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118a190612e43565b60405180910390fd5b600083116118ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118e490612eaf565b60405180910390fd5b60078054905060035410611936576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161192d90612f1b565b60405180910390fd5b60055483101561197b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161197290612f87565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036119e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119e090613019565b60405180910390fd5b60006119f784600354611f79565b90506000600f6000600354815260200190815260200160002054600760035481548110611a2757611a2661292a565b5b9060005260206000200154611a3c9190613039565b905080821015611a5757611a5282868686611fbb565b611c8a565b8082118015611a7857506007805490506001600354611a769190612988565b145b15611c2e5760008190506000611a908260035461216f565b9050611a9e82828888611fbb565b60008188611aac9190613039565b90506000899050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611bde576000611af283611448565b905060008873ffffffffffffffffffffffffffffffffffffffff1682604051611b1a90612c6b565b60006040518083038185875af1925050503d8060008114611b57576040519150601f19603f3d011682016040523d82523d6000602084013e611b5c565b606091505b5050905080611ba0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b97906130b9565b60405180910390fd5b7fd6efd96ad908adaace2572b35f11221a4277e6d482f486dcad1ecee59511381982604051611bcf91906124a8565b60405180910390a15050611c0a565b611c0987838c73ffffffffffffffffffffffffffffffffffffffff16611d5f9092919063ffffffff16565b5b6000600260006101000a81548160ff02191690831515021790555050505050611c89565b60008190506000611c418260035461216f565b905060008188611c519190613039565b9050611c5f83838989611fbb565b600160036000828254611c729190612988565b92505081905550611c858982898961185b565b5050505b5b505050505050565b611c9a6121b1565b73ffffffffffffffffffffffffffffffffffffffff16611cb86110fa565b73ffffffffffffffffffffffffffffffffffffffff1614611d0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0590613125565b60405180910390fd5b565b600260015403611d55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4c90613191565b60405180910390fd5b6002600181905550565b611de08363a9059cbb60e01b8484604051602401611d7e9291906131b1565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611eb2565b505050565b60018081905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000611f14826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166121b99092919063ffffffff16565b9050600081511115611f745780806020019051810190611f3491906131ef565b611f73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f6a9061328e565b60405180910390fd5b5b505050565b600060068281548110611f8f57611f8e61292a565b5b9060005260206000200154620186a084611fa99190612cec565b611fb39190612bdc565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146120655760006064600454866120019190612cec565b61200b9190612bdc565b905080600e60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461205c9190612988565b92505081905550505b83600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546120b49190612988565b9250508190555082600860008282546120cd9190612988565b9250508190555083600f6000600354815260200190815260200160002060008282546120f99190612988565b9250508190555083600960008282546121129190612988565b925050819055508073ffffffffffffffffffffffffffffffffffffffff167f8fafebcaf9d154343dad25669bfa277f4fbacd7ac6b0c4fed522580e040a0f3384866040516121619291906132ae565b60405180910390a250505050565b6000620186a0600683815481106121895761218861292a565b5b90600052602060002001548461219f9190612cec565b6121a99190612bdc565b905092915050565b600033905090565b60606121c884846000856121d1565b90509392505050565b606082471015612216576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161220d90613349565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161223f91906133cf565b60006040518083038185875af1925050503d806000811461227c576040519150601f19603f3d011682016040523d82523d6000602084013e612281565b606091505b50915091506122928783838761229e565b92505050949350505050565b606083156123005760008351036122f8576122b885612313565b6122f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122ee90613432565b60405180910390fd5b5b82905061230b565b61230a8383612336565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000825111156123495781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161237d9190613496565b60405180910390fd5b8280548282559060005260206000209081019282156123c2579160200282015b828111156123c15782518255916020019190600101906123a6565b5b5090506123cf91906123d3565b5090565b5b808211156123ec5760008160009055506001016123d4565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061242f82612404565b9050919050565b61243f81612424565b811461244a57600080fd5b50565b60008135905061245c81612436565b92915050565b600060208284031215612478576124776123fa565b5b60006124868482850161244d565b91505092915050565b6000819050919050565b6124a28161248f565b82525050565b60006020820190506124bd6000830184612499565b92915050565b6124cc81612424565b82525050565b60006020820190506124e760008301846124c3565b92915050565b6124f68161248f565b811461250157600080fd5b50565b600081359050612513816124ed565b92915050565b60006020828403121561252f5761252e6123fa565b5b600061253d84828501612504565b91505092915050565b6000806040838503121561255d5761255c6123fa565b5b600061256b85828601612504565b925050602061257c8582860161244d565b9150509250929050565b60008115159050919050565b61259b81612586565b82525050565b60006020820190506125b66000830184612592565b92915050565b6000819050919050565b60006125e16125dc6125d784612404565b6125bc565b612404565b9050919050565b60006125f3826125c6565b9050919050565b6000612605826125e8565b9050919050565b612615816125fa565b82525050565b6000602082019050612630600083018461260c565b92915050565b61263f81612586565b811461264a57600080fd5b50565b60008135905061265c81612636565b92915050565b600060208284031215612678576126776123fa565b5b60006126868482850161264d565b91505092915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6126dd82612694565b810181811067ffffffffffffffff821117156126fc576126fb6126a5565b5b80604052505050565b600061270f6123f0565b905061271b82826126d4565b919050565b600067ffffffffffffffff82111561273b5761273a6126a5565b5b602082029050602081019050919050565b600080fd5b600061276461275f84612720565b612705565b905080838252602082019050602084028301858111156127875761278661274c565b5b835b818110156127b0578061279c8882612504565b845260208401935050602081019050612789565b5050509392505050565b600082601f8301126127cf576127ce61268f565b5b81356127df848260208601612751565b91505092915050565b60008060008060008060008060006101208a8c03121561280b5761280a6123fa565b5b60006128198c828d0161244d565b995050602061282a8c828d0161244d565b985050604061283b8c828d0161244d565b975050606061284c8c828d0161244d565b965050608061285d8c828d01612504565b95505060a061286e8c828d01612504565b94505060c08a013567ffffffffffffffff81111561288f5761288e6123ff565b5b61289b8c828d016127ba565b93505060e08a013567ffffffffffffffff8111156128bc576128bb6123ff565b5b6128c88c828d016127ba565b9250506101006128da8c828d0161244d565b9150509295985092959850929598565b60008060408385031215612901576129006123fa565b5b600061290f8582860161244d565b92505060206129208582860161244d565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006129938261248f565b915061299e8361248f565b92508282019050808211156129b6576129b5612959565b5b92915050565b600082825260208201905092915050565b7f4e6f20746f6b656e7320746f20636c61696d0000000000000000000000000000600082015250565b6000612a036012836129bc565b9150612a0e826129cd565b602082019050919050565b60006020820190508181036000830152612a32816129f6565b9050919050565b7f5769746864726177616c7320617265206e6f7420616c6c6f7765642079657400600082015250565b6000612a6f601f836129bc565b9150612a7a82612a39565b602082019050919050565b60006020820190508181036000830152612a9e81612a62565b9050919050565b600069ffffffffffffffffffff82169050919050565b612ac481612aa5565b8114612acf57600080fd5b50565b600081519050612ae181612abb565b92915050565b6000819050919050565b612afa81612ae7565b8114612b0557600080fd5b50565b600081519050612b1781612af1565b92915050565b600081519050612b2c816124ed565b92915050565b600080600080600060a08688031215612b4e57612b4d6123fa565b5b6000612b5c88828901612ad2565b9550506020612b6d88828901612b08565b9450506040612b7e88828901612b1d565b9350506060612b8f88828901612b1d565b9250506080612ba088828901612ad2565b9150509295509295909350565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000612be78261248f565b9150612bf28361248f565b925082612c0257612c01612bad565b5b828204905092915050565b600060208284031215612c2357612c226123fa565b5b6000612c3184828501612b1d565b91505092915050565b600081905092915050565b50565b6000612c55600083612c3a565b9150612c6082612c45565b600082019050919050565b6000612c7682612c48565b9150819050919050565b7f4661696c656420746f2073656e64204574686572000000000000000000000000600082015250565b6000612cb66014836129bc565b9150612cc182612c80565b602082019050919050565b60006020820190508181036000830152612ce581612ca9565b9050919050565b6000612cf78261248f565b9150612d028361248f565b9250828202612d108161248f565b91508282048414831517612d2757612d26612959565b5b5092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000612d8a6026836129bc565b9150612d9582612d2e565b604082019050919050565b60006020820190508181036000830152612db981612d7d565b9050919050565b6000606082019050612dd560008301866124c3565b612de260208301856124c3565b612def6040830184612499565b949350505050565b7f50726573616c6520686173206e6f742073746172746564207965740000000000600082015250565b6000612e2d601b836129bc565b9150612e3882612df7565b602082019050919050565b60006020820190508181036000830152612e5c81612e20565b9050919050565b7f496e766573746d656e7420697320300000000000000000000000000000000000600082015250565b6000612e99600f836129bc565b9150612ea482612e63565b602082019050919050565b60006020820190508181036000830152612ec881612e8c565b9050919050565b7f50726573616c652068617320656e646564000000000000000000000000000000600082015250565b6000612f056011836129bc565b9150612f1082612ecf565b602082019050919050565b60006020820190508181036000830152612f3481612ef8565b9050919050565b7f496e766573746d656e74206973206c657373207468616e206d696e696d756d00600082015250565b6000612f71601f836129bc565b9150612f7c82612f3b565b602082019050919050565b60006020820190508181036000830152612fa081612f64565b9050919050565b7f526566666572616c2063616e6e6f74206265207468652073616d65206173207460008201527f6865207573657200000000000000000000000000000000000000000000000000602082015250565b60006130036027836129bc565b915061300e82612fa7565b604082019050919050565b6000602082019050818103600083015261303281612ff6565b9050919050565b60006130448261248f565b915061304f8361248f565b925082820390508181111561306757613066612959565b5b92915050565b7f4661696c656420746f2073656e6420457468657220737572706c757300000000600082015250565b60006130a3601c836129bc565b91506130ae8261306d565b602082019050919050565b600060208201905081810360008301526130d281613096565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061310f6020836129bc565b915061311a826130d9565b602082019050919050565b6000602082019050818103600083015261313e81613102565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b600061317b601f836129bc565b915061318682613145565b602082019050919050565b600060208201905081810360008301526131aa8161316e565b9050919050565b60006040820190506131c660008301856124c3565b6131d36020830184612499565b9392505050565b6000815190506131e981612636565b92915050565b600060208284031215613205576132046123fa565b5b6000613213848285016131da565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000613278602a836129bc565b91506132838261321c565b604082019050919050565b600060208201905081810360008301526132a78161326b565b9050919050565b60006040820190506132c36000830185612499565b6132d06020830184612499565b9392505050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b60006133336026836129bc565b915061333e826132d7565b604082019050919050565b6000602082019050818103600083015261336281613326565b9050919050565b600081519050919050565b60005b83811015613392578082015181840152602081019050613377565b60008484015250505050565b60006133a982613369565b6133b38185612c3a565b93506133c3818560208601613374565b80840191505092915050565b60006133db828461339e565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b600061341c601d836129bc565b9150613427826133e6565b602082019050919050565b6000602082019050818103600083015261344b8161340f565b9050919050565b600081519050919050565b600061346882613452565b61347281856129bc565b9350613482818560208601613374565b61348b81612694565b840191505092915050565b600060208201905081810360008301526134b0818461345d565b90509291505056fea264697066735822122096195565183aa24b9370f54f1953007a62848963ea4922d7fde5435d7c99698e64736f6c634300081300330000000000000000000000000d24cacefa46d8adce71694a7c6fc3d6bd518b9e000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000b43ec0ec7a9cb29865c1cf477b0f20725f6657f900000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000989680000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000007000000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b8419000000000000000000000000000000000000000000000000000000000000002e00000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000002120000000000000000000000000000000000000000000000000000000000000230000000000000000000000000000000000000000000000000000000000000024e000000000000000000000000000000000000000000000000000000000000026c000000000000000000000000000000000000000000000000000000000000028a00000000000000000000000000000000000000000000000000000000000002a800000000000000000000000000000000000000000000000000000000000002c600000000000000000000000000000000000000000000000000000000000002e400000000000000000000000000000000000000000000000000000000000003020000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000033e000000000000000000000000000000000000000000000000000000000000035c000000000000000000000000000000000000000000000000000000000000037a000000000000000000000000000000000000000000000000000000000000039800000000000000000000000000000000000000000000000000000000000003b600000000000000000000000000000000000000000000000000000000000003d400000000000000000000000000000000000000000000000000000000000003f20000000000000000000000000000000000000000000000000000000000000410000000000000000000000000000000000000000000000000000000000000042e000000000000000000000000000000000000000000000000000000000000044c000000000000000000000000000000000000000000000000000000000000046a000000000000000000000000000000000000000000000000000000000000048800000000000000000000000000000000000000000000000000000000000004a600000000000000000000000000000000000000000000000000000000000004c400000000000000000000000000000000000000000000000000000000000004e20000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000051e000000000000000000000000000000000000000000000000000000000000053c000000000000000000000000000000000000000000000000000000000000055a0000000000000000000000000000000000000000000000000000000000000578000000000000000000000000000000000000000000000000000000000000059600000000000000000000000000000000000000000000000000000000000005b400000000000000000000000000000000000000000000000000000000000005d200000000000000000000000000000000000000000000000000000000000005f0000000000000000000000000000000000000000000000000000000000000060e000000000000000000000000000000000000000000000000000000000000062c000000000000000000000000000000000000000000000000000000000000064a0000000000000000000000000000000000000000000000000000000000000668000000000000000000000000000000000000000000000000000000000000068600000000000000000000000000000000000000000000000000000000000006a400000000000000000000000000000000000000000000000000000000000006c200000000000000000000000000000000000000000000000000000000000006e000000000000000000000000000000000000000000000000000000000000006fe000000000000000000000000000000000000000000000000000000000000071c000000000000000000000000000000000000000000000000000000000000073a000000000000000000000000000000000000000000000000000000000000002e00000000000000000000000000000000000000000000000000003691d6afc0000000000000000000000000000000000000000000000000000000360e0c314e8000000000000000000000000000000000000000000000000000003598608aa4c00000000000000000000000000000000000000000000000000000357d994acbc0000000000000000000000000000000000000000000000000000035656971454000000000000000000000000000000000000000000000000000003573472331c0000000000000000000000000000000000000000000000000000035c4665971c00000000000000000000000000000000000000000000000000000360eaa9f2b000000000000000000000000000000000000000000000000000000367260034a40000000000000000000000000000000000000000000000000000036ec8d408e800000000000000000000000000000000000000000000000000000377aab54d000000000000000000000000000000000000000000000000000000038369dedd940000000000000000000000000000000000000000000000000000038e573b66700000000000000000000000000000000000000000000000000000039bcd25dd68000000000000000000000000000000000000000000000000000003b374cb2660000000000000000000000000000000000000000000000000000003ba4c9d736c000000000000000000000000000000000000000000000000000003cb1e1bae58000000000000000000000000000000000000000000000000000003ddd1822ca8000000000000000000000000000000000000000000000000000003f0d6e9e68c00000000000000000000000000000000000000000000000000000406dfbda4a40000000000000000000000000000000000000000000000000000041bb4e3843c000000000000000000000000000000000000000000000000000004334bdff8540000000000000000000000000000000000000000000000000000044aeba530040000000000000000000000000000000000000000000000000000046505a298b00000000000000000000000000000000000000000000000000000048039b52da00000000000000000000000000000000000000000000000000000049c738c8c00000000000000000000000000000000000000000000000000000004bac3cb5b74000000000000000000000000000000000000000000000000000004d9e95a833c000000000000000000000000000000000000000000000000000004faebe8fd100000000000000000000000000000000000000000000000000000051c9c34ed5c00000000000000000000000000000000000000000000000000000541034243cc00000000000000000000000000000000000000000000000000000566f0d547f40000000000000000000000000000000000000000000000000000058e4cda60f8000000000000000000000000000000000000000000000000000005b7012fc764000000000000000000000000000000000000000000000000000005e1ee874d280000000000000000000000000000000000000000000000000000060e038082a40000000000000000000000000000000000000000000000000000063c1b0ad8600000000000000000000000000000000000000000000000000000066cffc59b180000000000000000000000000000000000000000000000000000069fa72dfa58000000000000000000000000000000000000000000000000000006d3f8fa01400000000000000000000000000000000000000000000000000000070b94dc4be000000000000000000000000000000000000000000000000000000744a05b2b6000000000000000000000000000000000000000000000000000000780affc35f0000000000000000000000000000000000000000000000000000007beccd11e3c000000000000000000000000000000000000000000000000000007ffa99082780000000000000000000000000000000000000000000000000000084323fa4dbc0

Deployed Bytecode

0x6080604052600436106102305760003560e01c80637d549e991161012e578063d03270bb116100ab578063f2fde38b1161006f578063f2fde38b146107ec578063f84f848d14610815578063fc0c546a14610831578063fee84d4e1461085c578063ff12e6061461087357610230565b8063d03270bb146106f0578063e6db5c5214610719578063eaf02b2914610756578063ed2a601a14610772578063f1acea12146107af57610230565b80639a0fa29d116100f25780639a0fa29d146106095780639ab4a44514610634578063a0ef91df1461065f578063a3053e2a14610676578063c086381e146106b357610230565b80637d549e99146105485780638332cf23146105735780638a19c8bc1461059c5780638da5cb5b146105c7578063941dbb9f146105f257610230565b80633e413bee116101bc57806367c9b0171161018057806367c9b017146104ad5780636865b8e7146104d85780636ea33e4e146104ef5780636f877fd01461051a578063715018a61461053157610230565b80633e413bee146103ec5780633f8121a21461041757806348c54b9d14610440578063502197311461045757806360d938dc1461048257610230565b80631c1a8cc5116102035780631c1a8cc51461030357806323ba467a1461032e5780632c7b1ae7146103595780632f48ab7d1461038457806331c48b99146103af57610230565b806301cbf5fb1461023557806302d454571461027257806308042a641461029d578063104ab5a6146102da575b600080fd5b34801561024157600080fd5b5061025c60048036038101906102579190612462565b61089e565b60405161026991906124a8565b60405180910390f35b34801561027e57600080fd5b506102876108b6565b60405161029491906124d2565b60405180910390f35b3480156102a957600080fd5b506102c460048036038101906102bf9190612519565b6108dc565b6040516102d191906124a8565b60405180910390f35b3480156102e657600080fd5b5061030160048036038101906102fc9190612546565b6108f4565b005b34801561030f57600080fd5b50610318610975565b60405161032591906124a8565b60405180910390f35b34801561033a57600080fd5b5061034361099d565b60405161035091906125a1565b60405180910390f35b34801561036557600080fd5b5061036e6109ba565b60405161037b91906125a1565b60405180910390f35b34801561039057600080fd5b506103996109cd565b6040516103a6919061261b565b60405180910390f35b3480156103bb57600080fd5b506103d660048036038101906103d19190612519565b6109f3565b6040516103e391906124a8565b60405180910390f35b3480156103f857600080fd5b50610401610a17565b60405161040e919061261b565b60405180910390f35b34801561042357600080fd5b5061043e60048036038101906104399190612662565b610a3d565b005b34801561044c57600080fd5b50610455610a62565b005b34801561046357600080fd5b5061046c610c6a565b60405161047991906124a8565b60405180910390f35b34801561048e57600080fd5b50610497610c70565b6040516104a491906125a1565b60405180910390f35b3480156104b957600080fd5b506104c2610c83565b6040516104cf91906124a8565b60405180910390f35b3480156104e457600080fd5b506104ed610d30565b005b3480156104fb57600080fd5b50610504610e38565b60405161051191906124a8565b60405180910390f35b34801561052657600080fd5b5061052f610e3e565b005b34801561053d57600080fd5b50610546610f46565b005b34801561055457600080fd5b5061055d610f5a565b60405161056a91906124a8565b60405180910390f35b34801561057f57600080fd5b5061059a600480360381019061059591906127e8565b610f60565b005b3480156105a857600080fd5b506105b16110f4565b6040516105be91906124a8565b60405180910390f35b3480156105d357600080fd5b506105dc6110fa565b6040516105e991906124d2565b60405180910390f35b3480156105fe57600080fd5b50610607611123565b005b34801561061557600080fd5b5061061e61134f565b60405161062b91906124a8565b60405180910390f35b34801561064057600080fd5b50610649611355565b60405161065691906124d2565b60405180910390f35b34801561066b57600080fd5b5061067461137b565b005b34801561068257600080fd5b5061069d60048036038101906106989190612519565b611448565b6040516106aa91906124a8565b60405180910390f35b3480156106bf57600080fd5b506106da60048036038101906106d59190612519565b611487565b6040516106e791906124a8565b60405180910390f35b3480156106fc57600080fd5b5061071760048036038101906107129190612546565b6114c6565b005b34801561072557600080fd5b50610740600480360381019061073b9190612462565b611547565b60405161074d91906124a8565b60405180910390f35b610770600480360381019061076b9190612462565b61155f565b005b34801561077e57600080fd5b5061079960048036038101906107949190612662565b61157d565b6040516107a691906125a1565b60405180910390f35b3480156107bb57600080fd5b506107d660048036038101906107d19190612519565b6115b8565b6040516107e391906124a8565b60405180910390f35b3480156107f857600080fd5b50610813600480360381019061080e9190612462565b6115dc565b005b61082f600480360381019061082a91906128ea565b61165f565b005b34801561083d57600080fd5b5061084661167e565b604051610853919061261b565b60405180910390f35b34801561086857600080fd5b506108716116a4565b005b34801561087f57600080fd5b506108886117ac565b60405161089591906124d2565b60405180910390f35b600d6020528060005260406000206000915090505481565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600f6020528060005260406000206000915090505481565b610943333084601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166117d2909392919063ffffffff16565b610971601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683833361185b565b5050565b600060066003548154811061098d5761098c61292a565b5b9060005260206000200154905090565b600060078054905060016003546109b49190612988565b14905090565b600260019054906101000a900460ff1681565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60078181548110610a0357600080fd5b906000526020600020016000915090505481565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610a45611c92565b80600260006101000a81548160ff02191690831515021790555050565b610a6a611d10565b6000600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411610aec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae390612a19565b60405180910390fd5b600260019054906101000a900460ff16610b3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3290612a85565b60405180910390fd5b6000600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610c113382601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611d5f9092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f896e034966eaaf1adc54acc0f257056febbd300c9e47182cf761982cf1f5e43082604051610c5791906124a8565b60405180910390a250610c68611de5565b565b60045481565b600260009054906101000a900460ff1681565b600080601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa158015610cf3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d179190612b32565b505050915050606481610d2a9190612bdc565b91505090565b610d38611c92565b610d40611d10565b6000601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610d9d91906124d2565b602060405180830381865afa158015610dba573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dde9190612c0d565b9050610e2d3382601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611d5f9092919063ffffffff16565b50610e36611de5565b565b60085481565b610e46611c92565b610e4e611d10565b6000601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610eab91906124d2565b602060405180830381865afa158015610ec8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610eec9190612c0d565b9050610f3b3382601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611d5f9092919063ffffffff16565b50610f44611de5565b565b610f4e611c92565b610f586000611dee565b565b60095481565b610f68611c92565b88601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555087601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555086601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555085600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084600481905550836005819055508260069080519060200190611090929190612386565b5081600790805190602001906110a7929190612386565b5080601360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050505050505050565b60035481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61112b611d10565b6000600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054116111ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111a490612a19565b60405180910390fd5b600260019054906101000a900460ff166111fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111f390612a85565b60405180910390fd5b6000600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506112f6600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff163383601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166117d2909392919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f896e034966eaaf1adc54acc0f257056febbd300c9e47182cf761982cf1f5e4308260405161133c91906124a8565b60405180910390a25061134d611de5565b565b60055481565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611383611c92565b61138b611d10565b600047905060003373ffffffffffffffffffffffffffffffffffffffff16826040516113b690612c6b565b60006040518083038185875af1925050503d80600081146113f3576040519150601f19603f3d011682016040523d82523d6000602084013e6113f8565b606091505b505090508061143c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143390612ccc565b60405180910390fd5b5050611446611de5565b565b600080611453610c83565b905064e8d4a5100081620f42408561146b9190612cec565b6114759190612bdc565b61147f9190612cec565b915050919050565b600080611492610c83565b9050620f42408164e8d4a51000856114aa9190612bdc565b6114b49190612cec565b6114be9190612bdc565b915050919050565b611515333084601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166117d2909392919063ffffffff16565b611543601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683833361185b565b5050565b600e6020528060005260406000206000915090505481565b600061156a34611487565b9050611579600082843361185b565b5050565b6000611587611c92565b81600260016101000a81548160ff021916908315150217905550600260019054906101000a900460ff169050919050565b600681815481106115c857600080fd5b906000526020600020016000915090505481565b6115e4611c92565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611653576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164a90612da0565b60405180910390fd5b61165c81611dee565b50565b600061166a34611487565b9050611679600082848661185b565b505050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6116ac611c92565b6116b4611d10565b6000601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161171191906124d2565b602060405180830381865afa15801561172e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117529190612c0d565b90506117a13382601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611d5f9092919063ffffffff16565b506117aa611de5565b565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611855846323b872dd60e01b8585856040516024016117f393929190612dc0565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611eb2565b50505050565b600260009054906101000a900460ff166118aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118a190612e43565b60405180910390fd5b600083116118ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118e490612eaf565b60405180910390fd5b60078054905060035410611936576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161192d90612f1b565b60405180910390fd5b60055483101561197b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161197290612f87565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036119e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119e090613019565b60405180910390fd5b60006119f784600354611f79565b90506000600f6000600354815260200190815260200160002054600760035481548110611a2757611a2661292a565b5b9060005260206000200154611a3c9190613039565b905080821015611a5757611a5282868686611fbb565b611c8a565b8082118015611a7857506007805490506001600354611a769190612988565b145b15611c2e5760008190506000611a908260035461216f565b9050611a9e82828888611fbb565b60008188611aac9190613039565b90506000899050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611bde576000611af283611448565b905060008873ffffffffffffffffffffffffffffffffffffffff1682604051611b1a90612c6b565b60006040518083038185875af1925050503d8060008114611b57576040519150601f19603f3d011682016040523d82523d6000602084013e611b5c565b606091505b5050905080611ba0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b97906130b9565b60405180910390fd5b7fd6efd96ad908adaace2572b35f11221a4277e6d482f486dcad1ecee59511381982604051611bcf91906124a8565b60405180910390a15050611c0a565b611c0987838c73ffffffffffffffffffffffffffffffffffffffff16611d5f9092919063ffffffff16565b5b6000600260006101000a81548160ff02191690831515021790555050505050611c89565b60008190506000611c418260035461216f565b905060008188611c519190613039565b9050611c5f83838989611fbb565b600160036000828254611c729190612988565b92505081905550611c858982898961185b565b5050505b5b505050505050565b611c9a6121b1565b73ffffffffffffffffffffffffffffffffffffffff16611cb86110fa565b73ffffffffffffffffffffffffffffffffffffffff1614611d0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0590613125565b60405180910390fd5b565b600260015403611d55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4c90613191565b60405180910390fd5b6002600181905550565b611de08363a9059cbb60e01b8484604051602401611d7e9291906131b1565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611eb2565b505050565b60018081905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000611f14826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166121b99092919063ffffffff16565b9050600081511115611f745780806020019051810190611f3491906131ef565b611f73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f6a9061328e565b60405180910390fd5b5b505050565b600060068281548110611f8f57611f8e61292a565b5b9060005260206000200154620186a084611fa99190612cec565b611fb39190612bdc565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146120655760006064600454866120019190612cec565b61200b9190612bdc565b905080600e60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461205c9190612988565b92505081905550505b83600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546120b49190612988565b9250508190555082600860008282546120cd9190612988565b9250508190555083600f6000600354815260200190815260200160002060008282546120f99190612988565b9250508190555083600960008282546121129190612988565b925050819055508073ffffffffffffffffffffffffffffffffffffffff167f8fafebcaf9d154343dad25669bfa277f4fbacd7ac6b0c4fed522580e040a0f3384866040516121619291906132ae565b60405180910390a250505050565b6000620186a0600683815481106121895761218861292a565b5b90600052602060002001548461219f9190612cec565b6121a99190612bdc565b905092915050565b600033905090565b60606121c884846000856121d1565b90509392505050565b606082471015612216576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161220d90613349565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161223f91906133cf565b60006040518083038185875af1925050503d806000811461227c576040519150601f19603f3d011682016040523d82523d6000602084013e612281565b606091505b50915091506122928783838761229e565b92505050949350505050565b606083156123005760008351036122f8576122b885612313565b6122f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122ee90613432565b60405180910390fd5b5b82905061230b565b61230a8383612336565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000825111156123495781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161237d9190613496565b60405180910390fd5b8280548282559060005260206000209081019282156123c2579160200282015b828111156123c15782518255916020019190600101906123a6565b5b5090506123cf91906123d3565b5090565b5b808211156123ec5760008160009055506001016123d4565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061242f82612404565b9050919050565b61243f81612424565b811461244a57600080fd5b50565b60008135905061245c81612436565b92915050565b600060208284031215612478576124776123fa565b5b60006124868482850161244d565b91505092915050565b6000819050919050565b6124a28161248f565b82525050565b60006020820190506124bd6000830184612499565b92915050565b6124cc81612424565b82525050565b60006020820190506124e760008301846124c3565b92915050565b6124f68161248f565b811461250157600080fd5b50565b600081359050612513816124ed565b92915050565b60006020828403121561252f5761252e6123fa565b5b600061253d84828501612504565b91505092915050565b6000806040838503121561255d5761255c6123fa565b5b600061256b85828601612504565b925050602061257c8582860161244d565b9150509250929050565b60008115159050919050565b61259b81612586565b82525050565b60006020820190506125b66000830184612592565b92915050565b6000819050919050565b60006125e16125dc6125d784612404565b6125bc565b612404565b9050919050565b60006125f3826125c6565b9050919050565b6000612605826125e8565b9050919050565b612615816125fa565b82525050565b6000602082019050612630600083018461260c565b92915050565b61263f81612586565b811461264a57600080fd5b50565b60008135905061265c81612636565b92915050565b600060208284031215612678576126776123fa565b5b60006126868482850161264d565b91505092915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6126dd82612694565b810181811067ffffffffffffffff821117156126fc576126fb6126a5565b5b80604052505050565b600061270f6123f0565b905061271b82826126d4565b919050565b600067ffffffffffffffff82111561273b5761273a6126a5565b5b602082029050602081019050919050565b600080fd5b600061276461275f84612720565b612705565b905080838252602082019050602084028301858111156127875761278661274c565b5b835b818110156127b0578061279c8882612504565b845260208401935050602081019050612789565b5050509392505050565b600082601f8301126127cf576127ce61268f565b5b81356127df848260208601612751565b91505092915050565b60008060008060008060008060006101208a8c03121561280b5761280a6123fa565b5b60006128198c828d0161244d565b995050602061282a8c828d0161244d565b985050604061283b8c828d0161244d565b975050606061284c8c828d0161244d565b965050608061285d8c828d01612504565b95505060a061286e8c828d01612504565b94505060c08a013567ffffffffffffffff81111561288f5761288e6123ff565b5b61289b8c828d016127ba565b93505060e08a013567ffffffffffffffff8111156128bc576128bb6123ff565b5b6128c88c828d016127ba565b9250506101006128da8c828d0161244d565b9150509295985092959850929598565b60008060408385031215612901576129006123fa565b5b600061290f8582860161244d565b92505060206129208582860161244d565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006129938261248f565b915061299e8361248f565b92508282019050808211156129b6576129b5612959565b5b92915050565b600082825260208201905092915050565b7f4e6f20746f6b656e7320746f20636c61696d0000000000000000000000000000600082015250565b6000612a036012836129bc565b9150612a0e826129cd565b602082019050919050565b60006020820190508181036000830152612a32816129f6565b9050919050565b7f5769746864726177616c7320617265206e6f7420616c6c6f7765642079657400600082015250565b6000612a6f601f836129bc565b9150612a7a82612a39565b602082019050919050565b60006020820190508181036000830152612a9e81612a62565b9050919050565b600069ffffffffffffffffffff82169050919050565b612ac481612aa5565b8114612acf57600080fd5b50565b600081519050612ae181612abb565b92915050565b6000819050919050565b612afa81612ae7565b8114612b0557600080fd5b50565b600081519050612b1781612af1565b92915050565b600081519050612b2c816124ed565b92915050565b600080600080600060a08688031215612b4e57612b4d6123fa565b5b6000612b5c88828901612ad2565b9550506020612b6d88828901612b08565b9450506040612b7e88828901612b1d565b9350506060612b8f88828901612b1d565b9250506080612ba088828901612ad2565b9150509295509295909350565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000612be78261248f565b9150612bf28361248f565b925082612c0257612c01612bad565b5b828204905092915050565b600060208284031215612c2357612c226123fa565b5b6000612c3184828501612b1d565b91505092915050565b600081905092915050565b50565b6000612c55600083612c3a565b9150612c6082612c45565b600082019050919050565b6000612c7682612c48565b9150819050919050565b7f4661696c656420746f2073656e64204574686572000000000000000000000000600082015250565b6000612cb66014836129bc565b9150612cc182612c80565b602082019050919050565b60006020820190508181036000830152612ce581612ca9565b9050919050565b6000612cf78261248f565b9150612d028361248f565b9250828202612d108161248f565b91508282048414831517612d2757612d26612959565b5b5092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000612d8a6026836129bc565b9150612d9582612d2e565b604082019050919050565b60006020820190508181036000830152612db981612d7d565b9050919050565b6000606082019050612dd560008301866124c3565b612de260208301856124c3565b612def6040830184612499565b949350505050565b7f50726573616c6520686173206e6f742073746172746564207965740000000000600082015250565b6000612e2d601b836129bc565b9150612e3882612df7565b602082019050919050565b60006020820190508181036000830152612e5c81612e20565b9050919050565b7f496e766573746d656e7420697320300000000000000000000000000000000000600082015250565b6000612e99600f836129bc565b9150612ea482612e63565b602082019050919050565b60006020820190508181036000830152612ec881612e8c565b9050919050565b7f50726573616c652068617320656e646564000000000000000000000000000000600082015250565b6000612f056011836129bc565b9150612f1082612ecf565b602082019050919050565b60006020820190508181036000830152612f3481612ef8565b9050919050565b7f496e766573746d656e74206973206c657373207468616e206d696e696d756d00600082015250565b6000612f71601f836129bc565b9150612f7c82612f3b565b602082019050919050565b60006020820190508181036000830152612fa081612f64565b9050919050565b7f526566666572616c2063616e6e6f74206265207468652073616d65206173207460008201527f6865207573657200000000000000000000000000000000000000000000000000602082015250565b60006130036027836129bc565b915061300e82612fa7565b604082019050919050565b6000602082019050818103600083015261303281612ff6565b9050919050565b60006130448261248f565b915061304f8361248f565b925082820390508181111561306757613066612959565b5b92915050565b7f4661696c656420746f2073656e6420457468657220737572706c757300000000600082015250565b60006130a3601c836129bc565b91506130ae8261306d565b602082019050919050565b600060208201905081810360008301526130d281613096565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061310f6020836129bc565b915061311a826130d9565b602082019050919050565b6000602082019050818103600083015261313e81613102565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b600061317b601f836129bc565b915061318682613145565b602082019050919050565b600060208201905081810360008301526131aa8161316e565b9050919050565b60006040820190506131c660008301856124c3565b6131d36020830184612499565b9392505050565b6000815190506131e981612636565b92915050565b600060208284031215613205576132046123fa565b5b6000613213848285016131da565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000613278602a836129bc565b91506132838261321c565b604082019050919050565b600060208201905081810360008301526132a78161326b565b9050919050565b60006040820190506132c36000830185612499565b6132d06020830184612499565b9392505050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b60006133336026836129bc565b915061333e826132d7565b604082019050919050565b6000602082019050818103600083015261336281613326565b9050919050565b600081519050919050565b60005b83811015613392578082015181840152602081019050613377565b60008484015250505050565b60006133a982613369565b6133b38185612c3a565b93506133c3818560208601613374565b80840191505092915050565b60006133db828461339e565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b600061341c601d836129bc565b9150613427826133e6565b602082019050919050565b6000602082019050818103600083015261344b8161340f565b9050919050565b600081519050919050565b600061346882613452565b61347281856129bc565b9350613482818560208601613374565b61348b81612694565b840191505092915050565b600060208201905081810360008301526134b0818461345d565b90509291505056fea264697066735822122096195565183aa24b9370f54f1953007a62848963ea4922d7fde5435d7c99698e64736f6c63430008130033

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

0000000000000000000000000d24cacefa46d8adce71694a7c6fc3d6bd518b9e000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000b43ec0ec7a9cb29865c1cf477b0f20725f6657f900000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000989680000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000007000000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b8419000000000000000000000000000000000000000000000000000000000000002e00000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000002120000000000000000000000000000000000000000000000000000000000000230000000000000000000000000000000000000000000000000000000000000024e000000000000000000000000000000000000000000000000000000000000026c000000000000000000000000000000000000000000000000000000000000028a00000000000000000000000000000000000000000000000000000000000002a800000000000000000000000000000000000000000000000000000000000002c600000000000000000000000000000000000000000000000000000000000002e400000000000000000000000000000000000000000000000000000000000003020000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000033e000000000000000000000000000000000000000000000000000000000000035c000000000000000000000000000000000000000000000000000000000000037a000000000000000000000000000000000000000000000000000000000000039800000000000000000000000000000000000000000000000000000000000003b600000000000000000000000000000000000000000000000000000000000003d400000000000000000000000000000000000000000000000000000000000003f20000000000000000000000000000000000000000000000000000000000000410000000000000000000000000000000000000000000000000000000000000042e000000000000000000000000000000000000000000000000000000000000044c000000000000000000000000000000000000000000000000000000000000046a000000000000000000000000000000000000000000000000000000000000048800000000000000000000000000000000000000000000000000000000000004a600000000000000000000000000000000000000000000000000000000000004c400000000000000000000000000000000000000000000000000000000000004e20000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000051e000000000000000000000000000000000000000000000000000000000000053c000000000000000000000000000000000000000000000000000000000000055a0000000000000000000000000000000000000000000000000000000000000578000000000000000000000000000000000000000000000000000000000000059600000000000000000000000000000000000000000000000000000000000005b400000000000000000000000000000000000000000000000000000000000005d200000000000000000000000000000000000000000000000000000000000005f0000000000000000000000000000000000000000000000000000000000000060e000000000000000000000000000000000000000000000000000000000000062c000000000000000000000000000000000000000000000000000000000000064a0000000000000000000000000000000000000000000000000000000000000668000000000000000000000000000000000000000000000000000000000000068600000000000000000000000000000000000000000000000000000000000006a400000000000000000000000000000000000000000000000000000000000006c200000000000000000000000000000000000000000000000000000000000006e000000000000000000000000000000000000000000000000000000000000006fe000000000000000000000000000000000000000000000000000000000000071c000000000000000000000000000000000000000000000000000000000000073a000000000000000000000000000000000000000000000000000000000000002e00000000000000000000000000000000000000000000000000003691d6afc0000000000000000000000000000000000000000000000000000000360e0c314e8000000000000000000000000000000000000000000000000000003598608aa4c00000000000000000000000000000000000000000000000000000357d994acbc0000000000000000000000000000000000000000000000000000035656971454000000000000000000000000000000000000000000000000000003573472331c0000000000000000000000000000000000000000000000000000035c4665971c00000000000000000000000000000000000000000000000000000360eaa9f2b000000000000000000000000000000000000000000000000000000367260034a40000000000000000000000000000000000000000000000000000036ec8d408e800000000000000000000000000000000000000000000000000000377aab54d000000000000000000000000000000000000000000000000000000038369dedd940000000000000000000000000000000000000000000000000000038e573b66700000000000000000000000000000000000000000000000000000039bcd25dd68000000000000000000000000000000000000000000000000000003b374cb2660000000000000000000000000000000000000000000000000000003ba4c9d736c000000000000000000000000000000000000000000000000000003cb1e1bae58000000000000000000000000000000000000000000000000000003ddd1822ca8000000000000000000000000000000000000000000000000000003f0d6e9e68c00000000000000000000000000000000000000000000000000000406dfbda4a40000000000000000000000000000000000000000000000000000041bb4e3843c000000000000000000000000000000000000000000000000000004334bdff8540000000000000000000000000000000000000000000000000000044aeba530040000000000000000000000000000000000000000000000000000046505a298b00000000000000000000000000000000000000000000000000000048039b52da00000000000000000000000000000000000000000000000000000049c738c8c00000000000000000000000000000000000000000000000000000004bac3cb5b74000000000000000000000000000000000000000000000000000004d9e95a833c000000000000000000000000000000000000000000000000000004faebe8fd100000000000000000000000000000000000000000000000000000051c9c34ed5c00000000000000000000000000000000000000000000000000000541034243cc00000000000000000000000000000000000000000000000000000566f0d547f40000000000000000000000000000000000000000000000000000058e4cda60f8000000000000000000000000000000000000000000000000000005b7012fc764000000000000000000000000000000000000000000000000000005e1ee874d280000000000000000000000000000000000000000000000000000060e038082a40000000000000000000000000000000000000000000000000000063c1b0ad8600000000000000000000000000000000000000000000000000000066cffc59b180000000000000000000000000000000000000000000000000000069fa72dfa58000000000000000000000000000000000000000000000000000006d3f8fa01400000000000000000000000000000000000000000000000000000070b94dc4be000000000000000000000000000000000000000000000000000000744a05b2b6000000000000000000000000000000000000000000000000000000780affc35f0000000000000000000000000000000000000000000000000000007beccd11e3c000000000000000000000000000000000000000000000000000007ffa99082780000000000000000000000000000000000000000000000000000084323fa4dbc0

-----Decoded View---------------
Arg [0] : _tokenAddress (address): 0x0D24CACEfa46D8AdCe71694a7c6fc3d6bD518b9e
Arg [1] : _usdtAddress (address): 0xdAC17F958D2ee523a2206206994597C13D831ec7
Arg [2] : _usdcAddress (address): 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
Arg [3] : _affiliateRewardAddress (address): 0xb43ec0Ec7A9Cb29865C1cF477B0F20725F6657F9
Arg [4] : _affiliateBonusPercentage (uint256): 20
Arg [5] : _minimumUsdtInvestment (uint256): 10000000
Arg [6] : _tokenUnitPriceUsd (uint256[]): 500,530,560,590,620,650,680,710,740,770,800,830,860,890,920,950,980,1010,1040,1070,1100,1130,1160,1190,1220,1250,1280,1310,1340,1370,1400,1430,1460,1490,1520,1550,1580,1610,1640,1670,1700,1730,1760,1790,1820,1850
Arg [7] : _roundRewardPoolArray (uint256[]): 60000000000000,59433962000000,58928571000000,58813559000000,58709677000000,58769231000000,59117647000000,59436620000000,59864865000000,60389610000000,61000000000000,61807229000000,62558140000000,63483146000000,65108696000000,65578947000000,66734694000000,68019802000000,69326923000000,70841121000000,72272727000000,73893805000000,75517241000000,77310924000000,79180328000000,81120000000000,83203125000000,85343511000000,87611940000000,89927007000000,92428571000000,95034965000000,97739726000000,100536913000000,103486842000000,106516129000000,109683544000000,113043478000000,116524390000000,120119760000000,123941176000000,127861272000000,131988636000000,136256983000000,140714286000000,145351351000000
Arg [8] : _priceFeedAddress (address): 0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419

-----Encoded View---------------
103 Constructor Arguments found :
Arg [0] : 0000000000000000000000000d24cacefa46d8adce71694a7c6fc3d6bd518b9e
Arg [1] : 000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7
Arg [2] : 000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
Arg [3] : 000000000000000000000000b43ec0ec7a9cb29865c1cf477b0f20725f6657f9
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000014
Arg [5] : 0000000000000000000000000000000000000000000000000000000000989680
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000700
Arg [8] : 0000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b8419
Arg [9] : 000000000000000000000000000000000000000000000000000000000000002e
Arg [10] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000212
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000230
Arg [13] : 000000000000000000000000000000000000000000000000000000000000024e
Arg [14] : 000000000000000000000000000000000000000000000000000000000000026c
Arg [15] : 000000000000000000000000000000000000000000000000000000000000028a
Arg [16] : 00000000000000000000000000000000000000000000000000000000000002a8
Arg [17] : 00000000000000000000000000000000000000000000000000000000000002c6
Arg [18] : 00000000000000000000000000000000000000000000000000000000000002e4
Arg [19] : 0000000000000000000000000000000000000000000000000000000000000302
Arg [20] : 0000000000000000000000000000000000000000000000000000000000000320
Arg [21] : 000000000000000000000000000000000000000000000000000000000000033e
Arg [22] : 000000000000000000000000000000000000000000000000000000000000035c
Arg [23] : 000000000000000000000000000000000000000000000000000000000000037a
Arg [24] : 0000000000000000000000000000000000000000000000000000000000000398
Arg [25] : 00000000000000000000000000000000000000000000000000000000000003b6
Arg [26] : 00000000000000000000000000000000000000000000000000000000000003d4
Arg [27] : 00000000000000000000000000000000000000000000000000000000000003f2
Arg [28] : 0000000000000000000000000000000000000000000000000000000000000410
Arg [29] : 000000000000000000000000000000000000000000000000000000000000042e
Arg [30] : 000000000000000000000000000000000000000000000000000000000000044c
Arg [31] : 000000000000000000000000000000000000000000000000000000000000046a
Arg [32] : 0000000000000000000000000000000000000000000000000000000000000488
Arg [33] : 00000000000000000000000000000000000000000000000000000000000004a6
Arg [34] : 00000000000000000000000000000000000000000000000000000000000004c4
Arg [35] : 00000000000000000000000000000000000000000000000000000000000004e2
Arg [36] : 0000000000000000000000000000000000000000000000000000000000000500
Arg [37] : 000000000000000000000000000000000000000000000000000000000000051e
Arg [38] : 000000000000000000000000000000000000000000000000000000000000053c
Arg [39] : 000000000000000000000000000000000000000000000000000000000000055a
Arg [40] : 0000000000000000000000000000000000000000000000000000000000000578
Arg [41] : 0000000000000000000000000000000000000000000000000000000000000596
Arg [42] : 00000000000000000000000000000000000000000000000000000000000005b4
Arg [43] : 00000000000000000000000000000000000000000000000000000000000005d2
Arg [44] : 00000000000000000000000000000000000000000000000000000000000005f0
Arg [45] : 000000000000000000000000000000000000000000000000000000000000060e
Arg [46] : 000000000000000000000000000000000000000000000000000000000000062c
Arg [47] : 000000000000000000000000000000000000000000000000000000000000064a
Arg [48] : 0000000000000000000000000000000000000000000000000000000000000668
Arg [49] : 0000000000000000000000000000000000000000000000000000000000000686
Arg [50] : 00000000000000000000000000000000000000000000000000000000000006a4
Arg [51] : 00000000000000000000000000000000000000000000000000000000000006c2
Arg [52] : 00000000000000000000000000000000000000000000000000000000000006e0
Arg [53] : 00000000000000000000000000000000000000000000000000000000000006fe
Arg [54] : 000000000000000000000000000000000000000000000000000000000000071c
Arg [55] : 000000000000000000000000000000000000000000000000000000000000073a
Arg [56] : 000000000000000000000000000000000000000000000000000000000000002e
Arg [57] : 00000000000000000000000000000000000000000000000000003691d6afc000
Arg [58] : 0000000000000000000000000000000000000000000000000000360e0c314e80
Arg [59] : 00000000000000000000000000000000000000000000000000003598608aa4c0
Arg [60] : 0000000000000000000000000000000000000000000000000000357d994acbc0
Arg [61] : 0000000000000000000000000000000000000000000000000000356569714540
Arg [62] : 00000000000000000000000000000000000000000000000000003573472331c0
Arg [63] : 000000000000000000000000000000000000000000000000000035c4665971c0
Arg [64] : 0000000000000000000000000000000000000000000000000000360eaa9f2b00
Arg [65] : 0000000000000000000000000000000000000000000000000000367260034a40
Arg [66] : 000000000000000000000000000000000000000000000000000036ec8d408e80
Arg [67] : 0000000000000000000000000000000000000000000000000000377aab54d000
Arg [68] : 000000000000000000000000000000000000000000000000000038369dedd940
Arg [69] : 000000000000000000000000000000000000000000000000000038e573b66700
Arg [70] : 000000000000000000000000000000000000000000000000000039bcd25dd680
Arg [71] : 00000000000000000000000000000000000000000000000000003b374cb26600
Arg [72] : 00000000000000000000000000000000000000000000000000003ba4c9d736c0
Arg [73] : 00000000000000000000000000000000000000000000000000003cb1e1bae580
Arg [74] : 00000000000000000000000000000000000000000000000000003ddd1822ca80
Arg [75] : 00000000000000000000000000000000000000000000000000003f0d6e9e68c0
Arg [76] : 0000000000000000000000000000000000000000000000000000406dfbda4a40
Arg [77] : 000000000000000000000000000000000000000000000000000041bb4e3843c0
Arg [78] : 00000000000000000000000000000000000000000000000000004334bdff8540
Arg [79] : 000000000000000000000000000000000000000000000000000044aeba530040
Arg [80] : 000000000000000000000000000000000000000000000000000046505a298b00
Arg [81] : 000000000000000000000000000000000000000000000000000048039b52da00
Arg [82] : 000000000000000000000000000000000000000000000000000049c738c8c000
Arg [83] : 00000000000000000000000000000000000000000000000000004bac3cb5b740
Arg [84] : 00000000000000000000000000000000000000000000000000004d9e95a833c0
Arg [85] : 00000000000000000000000000000000000000000000000000004faebe8fd100
Arg [86] : 000000000000000000000000000000000000000000000000000051c9c34ed5c0
Arg [87] : 0000000000000000000000000000000000000000000000000000541034243cc0
Arg [88] : 0000000000000000000000000000000000000000000000000000566f0d547f40
Arg [89] : 000000000000000000000000000000000000000000000000000058e4cda60f80
Arg [90] : 00000000000000000000000000000000000000000000000000005b7012fc7640
Arg [91] : 00000000000000000000000000000000000000000000000000005e1ee874d280
Arg [92] : 000000000000000000000000000000000000000000000000000060e038082a40
Arg [93] : 000000000000000000000000000000000000000000000000000063c1b0ad8600
Arg [94] : 000000000000000000000000000000000000000000000000000066cffc59b180
Arg [95] : 000000000000000000000000000000000000000000000000000069fa72dfa580
Arg [96] : 00000000000000000000000000000000000000000000000000006d3f8fa01400
Arg [97] : 000000000000000000000000000000000000000000000000000070b94dc4be00
Arg [98] : 0000000000000000000000000000000000000000000000000000744a05b2b600
Arg [99] : 0000000000000000000000000000000000000000000000000000780affc35f00
Arg [100] : 00000000000000000000000000000000000000000000000000007beccd11e3c0
Arg [101] : 00000000000000000000000000000000000000000000000000007ffa99082780
Arg [102] : 000000000000000000000000000000000000000000000000000084323fa4dbc0


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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