ETH Price: $2,680.74 (-2.49%)

Contract

0xf645D9B7ceFf958A34A1e78eC091f82bD086f691
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Release199253302024-05-22 12:10:11267 days ago1716379811IN
0xf645D9B7...bD086f691
0 ETH0.0008756414.2
Release198919772024-05-17 20:09:35272 days ago1715976575IN
0xf645D9B7...bD086f691
0 ETH0.000254674.12991859
Release195307012024-03-28 6:03:35322 days ago1711605815IN
0xf645D9B7...bD086f691
0 ETH0.0019052520.46261558
Release195221392024-03-27 0:27:35324 days ago1711499255IN
0xf645D9B7...bD086f691
0 ETH0.0019053925.07200581
Release195141342024-03-25 21:24:23325 days ago1711401863IN
0xf645D9B7...bD086f691
0 ETH0.0032383934.78064664
Release195047642024-03-24 13:41:35326 days ago1711287695IN
0xf645D9B7...bD086f691
0 ETH0.0023215624.93388962
Release194811492024-03-21 6:06:11329 days ago1711001171IN
0xf645D9B7...bD086f691
0 ETH0.002379629.27442571
Release194641912024-03-18 20:56:47332 days ago1710795407IN
0xf645D9B7...bD086f691
0 ETH0.0035825544.0734827
Release194428812024-03-15 20:59:59335 days ago1710536399IN
0xf645D9B7...bD086f691
0 ETH0.0029096135.79483413
Release194217632024-03-12 21:43:59338 days ago1710279839IN
0xf645D9B7...bD086f691
0 ETH0.0056430657.35634505
Release194205882024-03-12 17:48:11338 days ago1710265691IN
0xf645D9B7...bD086f691
0 ETH0.0073131974.33162271
Release194081202024-03-10 23:57:23340 days ago1710115043IN
0xf645D9B7...bD086f691
0 ETH0.0013762563.78340155
Release193858802024-03-07 21:08:23343 days ago1709845703IN
0xf645D9B7...bD086f691
0 ETH0.0074289991.39327676
Release193632802024-03-04 17:26:11346 days ago1709573171IN
0xf645D9B7...bD086f691
0 ETH0.00983002120.93134684
Release193579262024-03-03 23:29:23347 days ago1709508563IN
0xf645D9B7...bD086f691
0 ETH0.0040554849.89160489
Release192942482024-02-24 1:45:35355 days ago1708739135IN
0xf645D9B7...bD086f691
0 ETH0.0023658129.10480176
Release192654052024-02-20 0:41:11360 days ago1708389671IN
0xf645D9B7...bD086f691
0 ETH0.0023947829.46118465
Release192468592024-02-17 10:02:47362 days ago1708164167IN
0xf645D9B7...bD086f691
0 ETH0.0018026922.17723738
Release192285402024-02-14 20:20:47365 days ago1707942047IN
0xf645D9B7...bD086f691
0 ETH0.0033927329.38090169
Release191994422024-02-10 18:20:11369 days ago1707589211IN
0xf645D9B7...bD086f691
0 ETH0.0032956833.49746945
Release191892272024-02-09 7:56:47370 days ago1707465407IN
0xf645D9B7...bD086f691
0 ETH0.0045440648.83777038
Release191756852024-02-07 10:20:47372 days ago1707301247IN
0xf645D9B7...bD086f691
0 ETH0.0024651730.32713015
Release191727852024-02-07 0:34:11373 days ago1707266051IN
0xf645D9B7...bD086f691
0 ETH0.0022433327.59809367
Release191675862024-02-06 7:01:59373 days ago1707202919IN
0xf645D9B7...bD086f691
0 ETH0.0030566226.46752583
Release191306332024-02-01 2:30:23378 days ago1706754623IN
0xf645D9B7...bD086f691
0 ETH0.0021135526.00144302
View all transactions

Latest 2 internal transactions

Advanced mode:
Parent Transaction Hash Block
From
To
188618662023-12-25 9:29:59416 days ago1703496599
0xf645D9B7...bD086f691
4.114194 ETH
188121542023-12-18 10:02:47423 days ago1702893767
0xf645D9B7...bD086f691
1.1978 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
StrkSale

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 10 : StrkSale.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;
pragma experimental ABIEncoderV2;

import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@chainlink/contracts/src/v0.6/interfaces/AggregatorV3Interface.sol";

import "./utils/WhiteList.sol";

interface IERC20DetailedBytes is IERC20 {
	function name() external view returns (bytes32);

	function symbol() external view returns (bytes32);

	function decimals() external view returns (uint8);
}

/**
 * @title StrkSale
 */
contract StrkSale is ReentrancyGuard, Whitelist {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    // Number of pools
    uint8 public constant NUMBER_POOLS = 10;

    // Precision
    uint256 public constant PRECISION = 1E18;

    // Offering token decimal
    uint256 public constant OFFERING_DECIMALS = 18;

    // It checks if token is accepted for payment
    mapping(address => bool) public isPaymentToken;
    address[] public allPaymentTokens;

    // It maps the payment token address to price feed address
    mapping(address => address) public priceFeed;
    address public ethPriceFeed;

    // It maps the payment token address to decimal
    mapping(address => uint8) public paymentTokenDecimal;

    // It checks if token is stable coin
    mapping(address => bool) public isStableToken;
    address[] public allStableTokens;

    // The offering token
    IERC20 public offeringToken;

    // Total tokens distributed across the pools
    uint256 public totalTokensOffered;

    // Array of PoolCharacteristics of size NUMBER_POOLS
    PoolCharacteristics[NUMBER_POOLS] private _poolInformation;

    // It maps the address to pool id to UserInfo
    mapping(address => mapping(uint8 => UserInfo)) private _userInfo;

    // Struct that contains each pool characteristics
    struct PoolCharacteristics {
        uint256 startTime; // The block timestamp when pool starts
        uint256 endTime; // The block timestamp when pool ends
        uint256 offeringAmountPool; // amount of tokens offered for the pool (in offeringTokens)
        uint256 soldAmountPoolScaled; // total amount of tokens sold in the pool, scaled by PRECISION
        uint256 minBuyAmount; // min amount of tokens user can buy for every purchase (if 0, it is ignored)
        uint256 limitPerUserInUSD; // USD limit per user to deposit (if 0, it is ignored)
        uint256 usdAmountPool; // total amount deposited in pool (in USD, decimal is 18)
        uint256 shortVestingPercentage; // 60 means 0.6, rest part such as 100-60=40 means 0.4 is claimingPercentage
        uint256 longVestingPercentage; // 60 means 0.6, rest part such as 100-60=40 means 0.4 is claimingPercentage
        uint256 shortVestingDuration; // Short vesting duration
        uint256 longVestingDuration; // Long vesting duration
        uint256 shortPrice; // token price for short purchase (in USD, decimal is 18)
        uint256 longPrice; // token price for long purchase (in USD, decimal is 18)
        uint256 vestingCliff; // Vesting cliff
        uint256 vestingSlicePeriodSeconds; // Vesting slice period seconds
    }

    // Struct that contains each user information for both pools
    struct UserInfo {
        uint256 usdAmount; // How many USD the user has provided for pool
        bool claimedPool; // Whether the user has claimed (default: false) for pool
        uint256 shortAmountScaled; // Amount of tokens user bought at short vesting price, scaled by PRECISION
        uint256 longAmountScaled; // Amount of tokens user bought at long vesting price, scaled by PRECISION
    }

    enum VestingPlan { Short, Long }

    // vesting startTime, everyone will be started at same timestamp. pid => startTime
    mapping(uint256 => uint256) public vestingStartTime;

    // A flag for vesting is being revoked
    bool public vestingRevoked;

    // Struct that contains vesting schedule
    struct VestingSchedule {
        bool isVestingInitialized;
        // beneficiary of tokens after they are released
        address beneficiary;
        // pool id
        uint8 pid;
        // vesting plan
        VestingPlan vestingPlan;
        // total amount of tokens to be released at the end of the vesting
        uint256 amountTotal;
        // amount of tokens has been released
        uint256 released;
    }

    bytes32[] private vestingSchedulesIds;
    mapping(bytes32 => VestingSchedule) private vestingSchedules;
    uint256 private vestingSchedulesTotalAmount;
    mapping(address => uint256) private holdersVestingCount;

    mapping(uint8 => bool) public isWhitelistSale;

    bool public harvestAllowed;

    // Admin withdraw events
    event AdminWithdraw(uint256 amountOfferingToken, uint256 ethAmount, address[] tokens, uint256[] amounts);

    // Admin recovers token
    event AdminTokenRecovery(address tokenAddress, uint256 amountTokens);

    // Deposit event
    event Deposit(address indexed user, address token, uint256 amount, uint256 usdAmount, uint256 boughtAmount, uint256 plan, uint8 indexed pid);

    // Harvest event
    event Harvest(address indexed user, uint256 offeringAmount, uint8 indexed pid, uint256 plan);

    // Create VestingSchedule event
    event CreateVestingSchedule(address indexed user, uint256 offeringAmount, uint8 indexed pid, uint256 plan, bytes32 vestingScheduleId);

    // Event when parameters are set for one of the pools
    event PoolParametersSet(uint256 offeringAmountPool, uint8 pid);

    // Event when times are set for one of the pools
    event PoolTimeSet(uint8 pid, uint256 startTime, uint256 endTime);

    // Event when offering amount is set for one of the pools
    event PoolOfferingAmountSet(uint8 pid, uint256 offeringAmount);

    // Event when released new amount
    event Released(bytes32 vestingSchedulesId, address indexed beneficiary, uint256 amount);

    // Event when revoked
    event Revoked();

    // Event when payment token added
    event PaymentTokenAdded(address token, address feed, uint8 decimal);

    // Event when payment token revoked
    event PaymentTokenRevoked(address token);

    // Event when stable token added
    event StableTokenAdded(address token, uint8 decimal);

    // Event when stable token revoked
    event StableTokenRevoked(address token);

    // Event when whitelist sale status flipped
    event WhitelistSaleFlipped(uint8 pid, bool current);

    // Event when harvest enabled status flipped
    event HarvestAllowedFlipped(bool current);

    // Event when offering token is set
    event OfferingTokenSet(address tokenAddress);

    // Modifier to prevent contracts to participate
    modifier notContract() {
        require(!_isContract(msg.sender), "contract not allowed");
        require(msg.sender == tx.origin, "proxy contract not allowed");
        _;
    }

    // Modifier to check payment method
    modifier checkPayment(address token) {
        if (token != address(0)) {
            require(
                (
                    isStableToken[token] ||
                    (isPaymentToken[token] && priceFeed[token] != address(0))
                ) &&
                paymentTokenDecimal[token] > 0,
                "invalid token"
            );
        } else {
            require(ethPriceFeed != address(0), "price feed not set");
        }
        _;
    }

    modifier ensure(uint deadline) {
        require(deadline >= block.timestamp, 'EXPIRED');
        _;
    }

    /**
     * @notice Constructor
     */
    constructor(address _ethPriceFeed) public {
        (, int256 price, , , ) = AggregatorV3Interface(_ethPriceFeed).latestRoundData();
        require(price > 0, "invalid price feed");

        ethPriceFeed = _ethPriceFeed;
    }

    /**
     * @notice It allows users to deposit LP tokens to pool
     * @param _pid: pool id
     * @param _token: payment token
     * @param _amount: the number of payment token being deposited
     * @param _minUsdAmount: minimum USD amount that must be converted from deposit token not to revert
     * @param _plan: vesting plan
     * @param _deadline: unix timestamp after which the transaction will revert
     */
    function depositPool(uint8 _pid, address _token, uint256 _amount, uint256 _minUsdAmount, VestingPlan _plan, uint256 _deadline) external payable nonReentrant notContract ensure(_deadline) {
        // Checks whether the pool id is valid
        require(_pid < NUMBER_POOLS, "Deposit: Non valid pool id");

        // Checks that pool was set
        require(_poolInformation[_pid].offeringAmountPool > 0, "Deposit: Pool not set");

        // Checks whether the block timestamp is not too early
        require(block.timestamp > _poolInformation[_pid].startTime, "Deposit: Too early");

        // Checks whether the block timestamp is not too late
        require(block.timestamp < _poolInformation[_pid].endTime, "Deposit: Too late");

        if(_token == address(0)) {
            _amount = msg.value;
        }
        // Checks that the amount deposited is not inferior to 0
        require(_amount > 0, "Deposit: Amount must be > 0");

        require(
            !isWhitelistSale[_pid] || _isQualifiedWhitelist(msg.sender),
            "Deposit: Must be whitelisted"
        );

        if (_token != address(0)) {
            // Transfers funds to this contract
            IERC20(_token).safeTransferFrom(msg.sender, address(this), _amount);
        }

        (uint256 usdAmount, uint256 offeringAmountScaled) = computeAmounts(_token, _amount, _pid, _plan);
        require(usdAmount >= _minUsdAmount, 'Deposit: Insufficient USD amount');
        require(offeringAmountScaled >= _poolInformation[_pid].minBuyAmount.mul(PRECISION), 'Deposit: too small');
        // Update the user status
        _userInfo[msg.sender][_pid].usdAmount = _userInfo[msg.sender][_pid].usdAmount.add(usdAmount);
        if (_plan == VestingPlan.Short) {
            _userInfo[msg.sender][_pid].shortAmountScaled = _userInfo[msg.sender][_pid].shortAmountScaled.add(offeringAmountScaled);
        } else if (_plan == VestingPlan.Long) {
            _userInfo[msg.sender][_pid].longAmountScaled = _userInfo[msg.sender][_pid].longAmountScaled.add(offeringAmountScaled);
        }

        // Check if the pool has a limit per user
        if (_poolInformation[_pid].limitPerUserInUSD > 0) {
            // Checks whether the limit has been reached
            require(
                _userInfo[msg.sender][_pid].usdAmount <= _poolInformation[_pid].limitPerUserInUSD,
                "Deposit: New amount above user limit"
            );
        }

        // Updates total amount info for pool
        _poolInformation[_pid].usdAmountPool = _poolInformation[_pid].usdAmountPool.add(usdAmount);
        _poolInformation[_pid].soldAmountPoolScaled = _poolInformation[_pid].soldAmountPoolScaled.add(offeringAmountScaled);
        require(
            _poolInformation[_pid].soldAmountPoolScaled <= _poolInformation[_pid].offeringAmountPool.mul(PRECISION),
            "Deposit: Exceed pool offering amount"
        );

        emit Deposit(msg.sender, _token, _amount, usdAmount, offeringAmountScaled, uint256(_plan), _pid);
    }

    /**
     * @notice It allows users to harvest from pool
     * @param _pid: pool id
     */
    function harvestPool(uint8 _pid) external nonReentrant notContract {
        require(harvestAllowed, "Harvest: Not allowed");
        // Checks whether it is too early to harvest
        require(block.timestamp > _poolInformation[_pid].endTime, "Harvest: Too early");

        // Checks whether pool id is valid
        require(_pid < NUMBER_POOLS, "Harvest: Non valid pool id");

        // Checks whether the user has participated
        require(_userInfo[msg.sender][_pid].usdAmount > 0, "Harvest: Did not participate");

        // Checks whether the user has already harvested
        require(!_userInfo[msg.sender][_pid].claimedPool, "Harvest: Already done");

        // Updates the harvest status
        _userInfo[msg.sender][_pid].claimedPool = true;

        // Updates the vesting startTime
        if (vestingStartTime[_pid] == 0) {
            vestingStartTime[_pid] = block.timestamp;
        }

        // Transfer these tokens back to the user if quantity > 0
        if (_userInfo[msg.sender][_pid].shortAmountScaled > 0) {
            if (100 - _poolInformation[_pid].shortVestingPercentage > 0) {
                uint256 amount = _userInfo[msg.sender][_pid].shortAmountScaled.mul(100 - _poolInformation[_pid].shortVestingPercentage).div(100).div(PRECISION);

                // Transfer the tokens at TGE
                offeringToken.safeTransfer(msg.sender, amount);

                emit Harvest(msg.sender, amount, _pid, uint256(VestingPlan.Short));
            }
            // If this pool is Vesting modal, create a VestingSchedule for each user
            if (_poolInformation[_pid].shortVestingPercentage > 0) {
                uint256 amount = _userInfo[msg.sender][_pid].shortAmountScaled.mul(_poolInformation[_pid].shortVestingPercentage).div(100).div(PRECISION);

                // Create VestingSchedule object
                bytes32 vestingScheduleId = _createVestingSchedule(msg.sender, _pid, VestingPlan.Short, amount);

                emit CreateVestingSchedule(msg.sender, amount, _pid, uint256(VestingPlan.Short), vestingScheduleId);
            }
        }

        if (_userInfo[msg.sender][_pid].longAmountScaled > 0) {
            if (100 - _poolInformation[_pid].longVestingPercentage > 0) {
                uint256 amount = _userInfo[msg.sender][_pid].longAmountScaled.mul(100 - _poolInformation[_pid].longVestingPercentage).div(100).div(PRECISION);

                // Transfer the tokens at TGE
                offeringToken.safeTransfer(msg.sender, amount);

                emit Harvest(msg.sender, amount, _pid, uint256(VestingPlan.Long));
            }
            // If this pool is Vesting modal, create a VestingSchedule for each user
            if (_poolInformation[_pid].longVestingPercentage > 0) {
                uint256 amount = _userInfo[msg.sender][_pid].longAmountScaled.mul(_poolInformation[_pid].longVestingPercentage).div(100).div(PRECISION);

                // Create VestingSchedule object
                bytes32 vestingScheduleId =  _createVestingSchedule(msg.sender, _pid, VestingPlan.Long, amount);

                emit CreateVestingSchedule(msg.sender, amount, _pid, uint256(VestingPlan.Long), vestingScheduleId);
            }
        }
    }

    /**
     * @notice It allows the admin to withdraw funds
     * @param _tokens: payment token addresses
     * @param _offerAmount: the number of offering amount to withdraw
     * @dev This function is only callable by admin.
     */
    function finalWithdraw(address[] calldata _tokens, uint256 _offerAmount) external onlyOwner {
        if (_offerAmount > 0) {
            offeringToken.safeTransfer(msg.sender, _offerAmount);
        }

        uint256 ethBalance = address(this).balance;
        payable(msg.sender).transfer(ethBalance);

        uint256[] memory _amounts = new uint256[](_tokens.length);
        for (uint256 i = 0; i < _tokens.length; i++) {
            _amounts[i] = IERC20(_tokens[i]).balanceOf(address(this));
            if (_amounts[i] > 0) {
                IERC20(_tokens[i]).safeTransfer(msg.sender, _amounts[i]);
            }
        }

        emit AdminWithdraw(_offerAmount, ethBalance, _tokens, _amounts);
    }

    /**
     * @notice It allows the admin to recover wrong tokens sent to the contract
     * @param _tokenAddress: the address of the token to withdraw (18 decimals)
     * @param _tokenAmount: the number of token amount to withdraw
     * @dev This function is only callable by admin.
     */
    function recoverWrongTokens(address _tokenAddress, uint256 _tokenAmount) external onlyOwner {
        require(!isPaymentToken[_tokenAddress] && !isStableToken[_tokenAddress], "Recover: Cannot be payment token");
        require(_tokenAddress != address(offeringToken), "Recover: Cannot be offering token");

        IERC20(_tokenAddress).safeTransfer(msg.sender, _tokenAmount);

        emit AdminTokenRecovery(_tokenAddress, _tokenAmount);
    }

    /**
     * @notice It allows the admin to set offering token before sale start
     * @param _tokenAddress: the address of offering token
     * @dev This function is only callable by admin.
     */
    function setOfferingToken(address _tokenAddress) external onlyOwner {
        require(_tokenAddress != address(0), "OfferingToken: Zero address");
        require(address(offeringToken) == address(0), "OfferingToken: already set");

        offeringToken = IERC20(_tokenAddress);

        emit OfferingTokenSet(_tokenAddress);
    }

    struct PoolSetParams {
        uint8 _pid; // pool id
        uint256 _startTime; // The block timestamp when pool starts
        uint256 _endTime; // The block timestamp when pool ends
        uint256 _offeringAmountPool; // amount of tokens offered for the pool (in offeringTokens)
        uint256 _minBuyAmount; // min amount of tokens user can buy for every purchase (if 0, it is ignored)
        uint256 _limitPerUserInUSD; // limit of tokens per user (if 0, it is ignored)
        uint256 _shortVestingPercentage; // 60 means 0.6, rest part such as 100-60=40 means 0.4 is claimingPercentage
        uint256 _longVestingPercentage; // 60 means 0.6, rest part such as 100-60=40 means 0.4 is claimingPercentage
        uint256 _shortVestingDuration; // Short vesting duration
        uint256 _longVestingDuration; // Long vesting duration
        uint256 _shortPrice; // token price for short purchase (in USD, decimal is 18)
        uint256 _longPrice; // token price for long purchase (in USD, decimal is 18)
        uint256 _vestingCliff; // Vesting cliff
        uint256 _vestingSlicePeriodSeconds; // Vesting slice period seconds
    }

    /**
     * @notice It sets parameters for pool
     * @param _poolSetParams: pool set param
     * @dev This function is only callable by admin.
     */
    function setPool(
        PoolSetParams memory _poolSetParams
    ) external onlyOwner {
        require(_poolSetParams._pid < NUMBER_POOLS, "Operations: Pool does not exist");
        require(
            _poolSetParams._shortVestingPercentage >= 0 && _poolSetParams._shortVestingPercentage <= 100,
            "Operations: vesting percentage should exceeds 0 and interior 100"
        );
        require(
            _poolSetParams._longVestingPercentage >= 0 && _poolSetParams._longVestingPercentage <= 100,
            "Operations: vesting percentage should exceeds 0 and interior 100"
        );
        require(_poolSetParams._shortVestingDuration > 0, "duration must exceeds 0");
        require(_poolSetParams._longVestingDuration > 0, "duration must exceeds 0");
        require(_poolSetParams._vestingSlicePeriodSeconds >= 1, "slicePeriodSeconds must be exceeds 1");
        require(_poolSetParams._vestingSlicePeriodSeconds <= _poolSetParams._shortVestingDuration && _poolSetParams._vestingSlicePeriodSeconds <= _poolSetParams._longVestingDuration, "slicePeriodSeconds must be interior duration");
        require(_poolSetParams._endTime > _poolSetParams._startTime, "endTime must bigger than startTime");

        uint8 _pid = _poolSetParams._pid;
        _poolInformation[_pid].startTime = _poolSetParams._startTime;
        _poolInformation[_pid].endTime = _poolSetParams._endTime;
        _poolInformation[_pid].offeringAmountPool = _poolSetParams._offeringAmountPool;
        _poolInformation[_pid].minBuyAmount = _poolSetParams._minBuyAmount;
        _poolInformation[_pid].limitPerUserInUSD = _poolSetParams._limitPerUserInUSD;
        _poolInformation[_pid].shortVestingPercentage = _poolSetParams._shortVestingPercentage;
        _poolInformation[_pid].longVestingPercentage = _poolSetParams._longVestingPercentage;
        _poolInformation[_pid].shortVestingDuration = _poolSetParams._shortVestingDuration;
        _poolInformation[_pid].longVestingDuration = _poolSetParams._longVestingDuration;
        _poolInformation[_pid].shortPrice = _poolSetParams._shortPrice;
        _poolInformation[_pid].longPrice = _poolSetParams._longPrice;
        _poolInformation[_pid].vestingCliff = _poolSetParams._vestingCliff;
        _poolInformation[_pid].vestingSlicePeriodSeconds = _poolSetParams._vestingSlicePeriodSeconds;

        uint256 tokensDistributedAcrossPools;

        for (uint8 i = 0; i < NUMBER_POOLS; i++) {
            tokensDistributedAcrossPools = tokensDistributedAcrossPools.add(_poolInformation[i].offeringAmountPool);
        }

        // Update totalTokensOffered
        totalTokensOffered = tokensDistributedAcrossPools;

        emit PoolParametersSet(_poolSetParams._offeringAmountPool, _pid);
    }

    /**
     * @notice It sets times for pool
     * @param _pid: pool id
     * @dev This function is only callable by admin.
     */
    function setPoolTime(
        uint8 _pid, uint256 _startTime, uint256 _endTime
    ) external onlyOwner {
        require(_pid < NUMBER_POOLS, "Operations: Pool does not exist");
        require(_endTime > _startTime, "endTime must bigger than startTime");

        _poolInformation[_pid].startTime = _startTime;
        _poolInformation[_pid].endTime = _endTime;

        emit PoolTimeSet(_pid, _startTime, _endTime);
    }

    /**
     * @notice It sets offering amount for pool
     * @param _pid: pool id
     * @dev This function is only callable by admin.
     */
    function setPoolOfferingAmount(
        uint8 _pid, uint256 _offeringAmountPool
    ) external onlyOwner {
        require(_pid < NUMBER_POOLS, "Operations: Pool does not exist");

        _poolInformation[_pid].offeringAmountPool = _offeringAmountPool;

        emit PoolOfferingAmountSet(_pid, _offeringAmountPool);
    }

    /**
     * @notice It returns the pool information
     * @param _pid: pool id
     */
    function viewPoolInformation(uint256 _pid)
        external
        view
        returns (PoolCharacteristics memory)
    {
        return _poolInformation[_pid];
    }

    /**
     * @notice External view function to see user allocations for both pools
     * @param _user: user address
     * @param _pids[]: array of pids
     * @return
     */
    function viewUserAllocationPools(address _user, uint8[] calldata _pids)
        external
        view
        returns (uint256[] memory)
    {
        uint256[] memory allocationPools = new uint256[](_pids.length);
        for (uint8 i = 0; i < _pids.length; i++) {
            allocationPools[i] = _getUserAllocationPool(_user, _pids[i]);
        }
        return allocationPools;
    }

    /**
     * @notice External view function to see user information
     * @param _user: user address
     * @param _pids[]: array of pids
     */
    function viewUserInfo(address _user, uint8[] calldata _pids)
        external
        view
        returns (uint256[] memory, bool[] memory)
    {
        uint256[] memory amountPools = new uint256[](_pids.length);
        bool[] memory statusPools = new bool[](_pids.length);

        for (uint8 i = 0; i < _pids.length; i++) {
            amountPools[i] = _userInfo[_user][_pids[i]].usdAmount;
            statusPools[i] = _userInfo[_user][_pids[i]].claimedPool;
        }
        return (amountPools, statusPools);
    }

    struct BoughtTokens {
        uint256 short;
        uint256 long;
    }

    /**
     * @notice External view function to see user offering amounts for pools
     * @param _user: user address
     * @param _pids: array of pids
     */
    function viewUserOfferingAmountsForPools(address _user, uint8[] calldata _pids)
        external
        view
        returns (BoughtTokens[] memory)
    {
        BoughtTokens[] memory amountPools = new BoughtTokens[](_pids.length);

        for (uint8 i = 0; i < _pids.length; i++) {
            if (_poolInformation[_pids[i]].soldAmountPoolScaled > 0) {
                amountPools[i].short = _userInfo[_user][_pids[i]].shortAmountScaled;
                amountPools[i].long = _userInfo[_user][_pids[i]].longAmountScaled;
            }
        }
        return amountPools;
    }

    /**
     * @notice Returns the number of vesting schedules associated to a beneficiary
     * @return The number of vesting schedules
     */
    function getVestingSchedulesCountByBeneficiary(address _beneficiary) external view returns (uint256) {
        return holdersVestingCount[_beneficiary];
    }

    /**
     * @notice Returns the vesting schedule id at the given index
     * @return The vesting schedule id
     */
    function getVestingScheduleIdAtIndex(uint256 _index) external view returns (bytes32) {
        require(_index < getVestingSchedulesCount(), "index out of bounds");
        return vestingSchedulesIds[_index];
    }

    /**
     * @notice Returns the vesting schedule information of a given holder and index
     * @return The vesting schedule object
     */
    function getVestingScheduleByAddressAndIndex(address _holder, uint256 _index)
        external
        view
        returns (VestingSchedule memory)
    {
        return getVestingSchedule(computeVestingScheduleIdForAddressAndIndex(_holder, _index));
    }

    /**
     * @notice Returns the total amount of vesting schedules
     * @return The vesting schedule total amount
     */
    function getVestingSchedulesTotalAmount() external view returns (uint256) {
        return vestingSchedulesTotalAmount;
    }

    /**
     * @notice Release vested amount of offering tokens
     * @param _vestingScheduleId the vesting schedule identifier
     */
    function release(bytes32 _vestingScheduleId) external nonReentrant {
        require(vestingSchedules[_vestingScheduleId].isVestingInitialized == true, "vesting schedule is not exist");

        VestingSchedule storage vestingSchedule = vestingSchedules[_vestingScheduleId];
        bool isBeneficiary = msg.sender == vestingSchedule.beneficiary;
        bool isOwner = msg.sender == owner();
        require(isBeneficiary || isOwner, "only the beneficiary and owner can release vested tokens");
        uint256 vestedAmount = _computeReleasableAmount(vestingSchedule);
        require(vestedAmount > 0, "no vested tokens to release");
        vestingSchedule.released = vestingSchedule.released.add(vestedAmount);
        vestingSchedulesTotalAmount = vestingSchedulesTotalAmount.sub(vestedAmount);
        offeringToken.safeTransfer(vestingSchedule.beneficiary, vestedAmount);

        emit Released(_vestingScheduleId, vestingSchedule.beneficiary, vestedAmount);
    }

    /**
     * @notice Revokes all the vesting schedules
     */
    function revoke() external onlyOwner {
        require(!vestingRevoked, "vesting is revoked");

        vestingRevoked = true;

        emit Revoked();
    }

    /**
     * @notice Add payment token
     */
    function addPaymentToken(address _token, address _feed, uint8 _decimal) external onlyOwner {
        require(!isPaymentToken[_token], "already added");
        require(_feed != address(0), "invalid feed address");
        require(_decimal == IERC20DetailedBytes(_token).decimals(), "incorrect decimal");

        (, int256 price, , , ) = AggregatorV3Interface(_feed).latestRoundData();
        require(price > 0, "invalid price feed");

        isPaymentToken[_token] = true;
        allPaymentTokens.push(_token);
        priceFeed[_token] = _feed;
        paymentTokenDecimal[_token] = _decimal;

        emit PaymentTokenAdded(_token, _feed, _decimal);
    }

    /**
     * @notice Revoke payment token
     */
    function revokePaymentToken(address _token) external onlyOwner {
        require(isPaymentToken[_token], "not added");

        isPaymentToken[_token] = false;

        uint256 index = allPaymentTokens.length;
        for (uint256 i = 0; i < allPaymentTokens.length; i++) {
            if (allPaymentTokens[i] == _token) {
                index = i;
                break;
            }
        }
        require(index != allPaymentTokens.length, "token doesn't exist");

        allPaymentTokens[index] = allPaymentTokens[allPaymentTokens.length - 1];
        allPaymentTokens.pop();
        delete paymentTokenDecimal[_token];
        delete priceFeed[_token];

        emit PaymentTokenRevoked(_token);
    }

    /**
     * @notice Add stable token
     */
    function addStableToken(address _token, uint8 _decimal) external onlyOwner {
        require(!isStableToken[_token], "already added");
        require(_decimal == IERC20DetailedBytes(_token).decimals(), "incorrect decimal");

        isStableToken[_token] = true;
        allStableTokens.push(_token);
        paymentTokenDecimal[_token] = _decimal;

        emit StableTokenAdded(_token, _decimal);
    }

    /**
     * @notice Revoke stable token
     */
    function revokeStableToken(address _token) external onlyOwner {
        require(isStableToken[_token], "not added");

        isStableToken[_token] = false;

        uint256 index = allStableTokens.length;
        for (uint256 i = 0; i < allStableTokens.length; i++) {
            if (allStableTokens[i] == _token) {
                index = i;
                break;
            }
        }
        require(index != allStableTokens.length, "token doesn't exist");

        allStableTokens[index] = allStableTokens[allStableTokens.length - 1];
        allStableTokens.pop();
        delete paymentTokenDecimal[_token];

        emit StableTokenRevoked(_token);
    }

    /**
     * @notice Flip whitelist sale status
     */
    function flipWhitelistSaleStatus(uint8 _pid) external onlyOwner {
        isWhitelistSale[_pid] = !isWhitelistSale[_pid];

        emit WhitelistSaleFlipped(_pid, isWhitelistSale[_pid]);
    }

    /**
     * @notice Flip harvestAllowed status
     */
    function flipHarvestAllowedStatus() external onlyOwner {
        harvestAllowed = !harvestAllowed;

        emit HarvestAllowedFlipped(harvestAllowed);
    }

    /**
     * @notice Returns the number of vesting schedules managed by the contract
     * @return The number of vesting count
     */
    function getVestingSchedulesCount() public view returns (uint256) {
        return vestingSchedulesIds.length;
    }

    /**
     * @notice Returns the vested amount of tokens for the given vesting schedule identifier
     * @return The number of vested count
     */
    function computeReleasableAmount(bytes32 _vestingScheduleId) public view returns (uint256) {
        require(vestingSchedules[_vestingScheduleId].isVestingInitialized == true, "vesting schedule is not exist");

        VestingSchedule memory vestingSchedule = vestingSchedules[_vestingScheduleId];
        return _computeReleasableAmount(vestingSchedule);
    }

    /**
     * @notice Returns the vesting schedule information of a given identifier
     * @return The vesting schedule object
     */
    function getVestingSchedule(bytes32 _vestingScheduleId) public view returns (VestingSchedule memory) {
        return vestingSchedules[_vestingScheduleId];
    }

    /**
     * @notice Returns the amount of offering token that can be withdrawn by the owner
     * @return The amount of offering token
     */
    function getWithdrawableOfferingTokenAmount() public view returns (uint256) {
        return offeringToken.balanceOf(address(this)).sub(vestingSchedulesTotalAmount);
    }

    /**
     * @notice Computes the next vesting schedule identifier for a given holder address
     * @return The id string
     */
    function computeNextVestingScheduleIdForHolder(address _holder) public view returns (bytes32) {
        return computeVestingScheduleIdForAddressAndIndex(_holder, holdersVestingCount[_holder]);
    }

    /**
     * @notice Computes the next vesting schedule identifier for an address and an index
     * @return The id string
     */
    function computeVestingScheduleIdForAddressAndIndex(address _holder, uint256 _index) public pure returns (bytes32) {
        return keccak256(abi.encodePacked(_holder, _index));
    }

    /**
     * @notice Computes the next vesting schedule identifier for an address and an pid
     * @return The id string
     */
    function computeVestingScheduleIdForAddressAndPid(address _holder, uint256 _pid, VestingPlan _plan) external view returns (bytes32) {
        require(_pid < NUMBER_POOLS, "ComputeVestingScheduleId: Non valid pool id");

        for (uint8 i = 0; i < NUMBER_POOLS * 2; i++) {
            bytes32 vestingScheduleId = computeVestingScheduleIdForAddressAndIndex(_holder, i);
            VestingSchedule memory vestingSchedule = vestingSchedules[vestingScheduleId];
            if (vestingSchedule.isVestingInitialized == true && vestingSchedule.pid == _pid && vestingSchedule.vestingPlan == _plan) {
                return vestingScheduleId;
            }
        }

        return computeNextVestingScheduleIdForHolder(_holder);
    }

    /**
     * @notice Get current Time
     */
    function getCurrentTime() internal view returns (uint256) {
        return block.timestamp;
    }

    /**
     * @notice Computes the releasable amount of tokens for a vesting schedule
     * @return The amount of releasable tokens
     */
    function _computeReleasableAmount(VestingSchedule memory _vestingSchedule) internal view returns (uint256) {
        uint256 currentTime = getCurrentTime();
        if (currentTime < vestingStartTime[_vestingSchedule.pid] + _poolInformation[_vestingSchedule.pid].vestingCliff) {
            return 0;
        } else if (
            (_vestingSchedule.vestingPlan == VestingPlan.Short && currentTime >= vestingStartTime[_vestingSchedule.pid].add(_poolInformation[_vestingSchedule.pid].shortVestingDuration)) ||
            (_vestingSchedule.vestingPlan == VestingPlan.Long && currentTime >= vestingStartTime[_vestingSchedule.pid].add(_poolInformation[_vestingSchedule.pid].longVestingDuration)) ||
            vestingRevoked
        ) {
            return _vestingSchedule.amountTotal.sub(_vestingSchedule.released);
        } else {
            uint256 timeFromStart = currentTime.sub(vestingStartTime[_vestingSchedule.pid]);
            uint256 secondsPerSlice = _poolInformation[_vestingSchedule.pid].vestingSlicePeriodSeconds;
            uint256 vestedSlicePeriods = timeFromStart.div(secondsPerSlice);
            uint256 vestedSeconds = vestedSlicePeriods.mul(secondsPerSlice);
            uint256 vestedAmount = _vestingSchedule.amountTotal.mul(vestedSeconds).div(
                _vestingSchedule.vestingPlan == VestingPlan.Short ? _poolInformation[_vestingSchedule.pid].shortVestingDuration : _poolInformation[_vestingSchedule.pid].longVestingDuration
            );
            vestedAmount = vestedAmount.sub(_vestingSchedule.released);
            return vestedAmount;
        }
    }

    /**
     * @notice Creates a new vesting schedule for a beneficiary
     * @param _beneficiary address of the beneficiary to whom vested tokens are transferred
     * @param _pid the pool id
     * @param _amount total amount of tokens to be released at the end of the vesting
     */
    function _createVestingSchedule(
        address _beneficiary,
        uint8 _pid,
        VestingPlan _plan,
        uint256 _amount
    ) internal returns (bytes32) {
        require(
            getWithdrawableOfferingTokenAmount() >= _amount,
            "can not create vesting schedule with sufficient tokens"
        );

        bytes32 vestingScheduleId = computeNextVestingScheduleIdForHolder(_beneficiary);
        require(vestingSchedules[vestingScheduleId].beneficiary == address(0), "vestingScheduleId is been created");
        vestingSchedules[vestingScheduleId] = VestingSchedule(true, _beneficiary, _pid, _plan, _amount, 0);
        vestingSchedulesTotalAmount = vestingSchedulesTotalAmount.add(_amount);
        vestingSchedulesIds.push(vestingScheduleId);
        holdersVestingCount[_beneficiary]++;
        return vestingScheduleId;
    }

    /**
     * @notice It returns the user allocation for pool
     * @dev 100,000,000,000 means 0.1 (10%) / 1 means 0.0000000000001 (0.0000001%) / 1,000,000,000,000 means 1 (100%)
     * @param _user: user address
     * @param _pid: pool id
     * @return It returns the user's share of pool
     */
    function _getUserAllocationPool(address _user, uint8 _pid) internal view returns (uint256) {
        if (_poolInformation[_pid].usdAmountPool > 0) {
            return _userInfo[_user][_pid].usdAmount.mul(1e12).div(_poolInformation[_pid].usdAmountPool);
        } else {
            return 0;
        }
    }

    /**
     * @notice Check if an address is a contract
     */
    function _isContract(address _addr) internal view returns (bool) {
        uint256 size;
        assembly {
            size := extcodesize(_addr)
        }
        return size > 0;
    }

    function isQualifiedWhitelist(address _user) external view returns (bool) {
        return isWhitelisted(_user);
    }

    function _isQualifiedWhitelist(address _user) internal view returns (bool) {
        return isWhitelisted(_user);
    }

    /**
     * @notice Computes the USD amount and offering token amount from token amount
     * @return usdAmount USD amount, decimal is 18
     * @return offeringAmountScaled offering amount, scaled by PRECISION
     */
    function computeAmounts(address token, uint256 amount, uint8 pid, VestingPlan plan) public view checkPayment(token) returns (uint256 usdAmount, uint256 offeringAmountScaled) {
        uint256 tokenDecimal = token == address(0) ? 18 : uint256(paymentTokenDecimal[token]);

        if (isStableToken[token]) {
            usdAmount = amount.mul(PRECISION).div(10 ** tokenDecimal);
        } else {
            address feed = token == address(0) ? ethPriceFeed : priceFeed[token];
            (, int256 price, , , ) = AggregatorV3Interface(feed).latestRoundData();
            require(price > 0, "ChainlinkPriceFeed: invalid price");
            uint256 priceDecimal = uint256(AggregatorV3Interface(feed).decimals());

            usdAmount = amount.mul(uint256(price)).mul(PRECISION).div(10 ** (priceDecimal + tokenDecimal));
        }

        require(_poolInformation[pid].offeringAmountPool > 0, "ComputeAmounts: Pool not set");
        uint256 offeringTokenPrice = plan == VestingPlan.Short ? _poolInformation[pid].shortPrice : _poolInformation[pid].longPrice;
        offeringAmountScaled = usdAmount.mul(10 ** OFFERING_DECIMALS).mul(PRECISION).div(offeringTokenPrice);
    }
}

File 2 of 10 : AggregatorV3Interface.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;

interface AggregatorV3Interface {

  function decimals()
    external
    view
    returns (
      uint8
    );

  function description()
    external
    view
    returns (
      string memory
    );

  function version()
    external
    view
    returns (
      uint256
    );

  function getRoundData(
    uint80 _roundId
  )
    external
    view
    returns (
      uint80 roundId,
      int256 answer,
      uint256 startedAt,
      uint256 updatedAt,
      uint80 answeredInRound
    );

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

}

File 3 of 10 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <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 () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 4 of 10 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

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

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

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

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

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

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

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

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

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

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

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

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

File 5 of 10 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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

File 6 of 10 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "./IERC20.sol";
import "../../math/SafeMath.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 SafeMath for uint256;
    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'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

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

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

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(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
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 7 of 10 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 8 of 10 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <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 GSN 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 payable) {
        return msg.sender;
    }

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

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

pragma solidity >=0.6.0 <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 () internal {
        _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 make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

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

import "@openzeppelin/contracts/access/Ownable.sol";

contract Whitelist is Ownable {
    mapping(address => bool) private whitelist;

    event WhitelistedAddressAdded(address indexed _user);
    event WhitelistedAddressRemoved(address indexed _user);

    /**
     * @dev throws if user is not whitelisted.
     * @param _user address
     */
    modifier onlyIfWhitelisted(address _user) {
        require(whitelist[_user]);
        _;
    }

    /**
     * @dev add single address to whitelist
     */
    function addAddressToWhitelist(address _user) external onlyOwner {
        whitelist[_user] = true;
        emit WhitelistedAddressAdded(_user);
    }

    /**
     * @dev add addresses to whitelist
     */
    function addAddressesToWhitelist(address[] calldata _users) external onlyOwner {
        for (uint256 i = 0; i < _users.length; i++) {
            whitelist[_users[i]] = true;
            emit WhitelistedAddressAdded(_users[i]);
        }
    }

    /**
     * @dev remove single address from whitelist
     */
    function removeAddressFromWhitelist(address _user) external onlyOwner {
        whitelist[_user] = false;
        emit WhitelistedAddressRemoved(_user);
    }

    /**
     * @dev remove addresses from whitelist
     */
    function removeAddressesFromWhitelist(address[] calldata _users) external onlyOwner {
        for (uint256 i = 0; i < _users.length; i++) {
            whitelist[_users[i]] = false;
            emit WhitelistedAddressRemoved(_users[i]);
        }
    }

    /**
     * @dev getter to determine if address is in whitelist
     */
    function isWhitelisted(address _user) public view returns (bool) {
        return whitelist[_user];
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_ethPriceFeed","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountTokens","type":"uint256"}],"name":"AdminTokenRecovery","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amountOfferingToken","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethAmount","type":"uint256"},{"indexed":false,"internalType":"address[]","name":"tokens","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"AdminWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"offeringAmount","type":"uint256"},{"indexed":true,"internalType":"uint8","name":"pid","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"plan","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"vestingScheduleId","type":"bytes32"}],"name":"CreateVestingSchedule","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"usdAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"boughtAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"plan","type":"uint256"},{"indexed":true,"internalType":"uint8","name":"pid","type":"uint8"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"offeringAmount","type":"uint256"},{"indexed":true,"internalType":"uint8","name":"pid","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"plan","type":"uint256"}],"name":"Harvest","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"current","type":"bool"}],"name":"HarvestAllowedFlipped","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"tokenAddress","type":"address"}],"name":"OfferingTokenSet","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":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"feed","type":"address"},{"indexed":false,"internalType":"uint8","name":"decimal","type":"uint8"}],"name":"PaymentTokenAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"}],"name":"PaymentTokenRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"pid","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"offeringAmount","type":"uint256"}],"name":"PoolOfferingAmountSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"offeringAmountPool","type":"uint256"},{"indexed":false,"internalType":"uint8","name":"pid","type":"uint8"}],"name":"PoolParametersSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"pid","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"startTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"endTime","type":"uint256"}],"name":"PoolTimeSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"vestingSchedulesId","type":"bytes32"},{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Released","type":"event"},{"anonymous":false,"inputs":[],"name":"Revoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint8","name":"decimal","type":"uint8"}],"name":"StableTokenAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"}],"name":"StableTokenRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"pid","type":"uint8"},{"indexed":false,"internalType":"bool","name":"current","type":"bool"}],"name":"WhitelistSaleFlipped","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"}],"name":"WhitelistedAddressAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"}],"name":"WhitelistedAddressRemoved","type":"event"},{"inputs":[],"name":"NUMBER_POOLS","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OFFERING_DECIMALS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRECISION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"addAddressToWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_users","type":"address[]"}],"name":"addAddressesToWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_feed","type":"address"},{"internalType":"uint8","name":"_decimal","type":"uint8"}],"name":"addPaymentToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint8","name":"_decimal","type":"uint8"}],"name":"addStableToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"allPaymentTokens","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"allStableTokens","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint8","name":"pid","type":"uint8"},{"internalType":"enum StrkSale.VestingPlan","name":"plan","type":"uint8"}],"name":"computeAmounts","outputs":[{"internalType":"uint256","name":"usdAmount","type":"uint256"},{"internalType":"uint256","name":"offeringAmountScaled","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_holder","type":"address"}],"name":"computeNextVestingScheduleIdForHolder","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_vestingScheduleId","type":"bytes32"}],"name":"computeReleasableAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_holder","type":"address"},{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"computeVestingScheduleIdForAddressAndIndex","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_holder","type":"address"},{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"enum StrkSale.VestingPlan","name":"_plan","type":"uint8"}],"name":"computeVestingScheduleIdForAddressAndPid","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"_pid","type":"uint8"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_minUsdAmount","type":"uint256"},{"internalType":"enum StrkSale.VestingPlan","name":"_plan","type":"uint8"},{"internalType":"uint256","name":"_deadline","type":"uint256"}],"name":"depositPool","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"ethPriceFeed","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_tokens","type":"address[]"},{"internalType":"uint256","name":"_offerAmount","type":"uint256"}],"name":"finalWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipHarvestAllowedStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_pid","type":"uint8"}],"name":"flipWhitelistSaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_vestingScheduleId","type":"bytes32"}],"name":"getVestingSchedule","outputs":[{"components":[{"internalType":"bool","name":"isVestingInitialized","type":"bool"},{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"uint8","name":"pid","type":"uint8"},{"internalType":"enum StrkSale.VestingPlan","name":"vestingPlan","type":"uint8"},{"internalType":"uint256","name":"amountTotal","type":"uint256"},{"internalType":"uint256","name":"released","type":"uint256"}],"internalType":"struct StrkSale.VestingSchedule","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_holder","type":"address"},{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"getVestingScheduleByAddressAndIndex","outputs":[{"components":[{"internalType":"bool","name":"isVestingInitialized","type":"bool"},{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"uint8","name":"pid","type":"uint8"},{"internalType":"enum StrkSale.VestingPlan","name":"vestingPlan","type":"uint8"},{"internalType":"uint256","name":"amountTotal","type":"uint256"},{"internalType":"uint256","name":"released","type":"uint256"}],"internalType":"struct StrkSale.VestingSchedule","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"getVestingScheduleIdAtIndex","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getVestingSchedulesCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_beneficiary","type":"address"}],"name":"getVestingSchedulesCountByBeneficiary","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getVestingSchedulesTotalAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWithdrawableOfferingTokenAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"harvestAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"_pid","type":"uint8"}],"name":"harvestPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isPaymentToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"isQualifiedWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isStableToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"isWhitelistSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"offeringToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"paymentTokenDecimal","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"priceFeed","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"uint256","name":"_tokenAmount","type":"uint256"}],"name":"recoverWrongTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_vestingScheduleId","type":"bytes32"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"removeAddressFromWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_users","type":"address[]"}],"name":"removeAddressesFromWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revoke","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"revokePaymentToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"revokeStableToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"}],"name":"setOfferingToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint8","name":"_pid","type":"uint8"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"},{"internalType":"uint256","name":"_offeringAmountPool","type":"uint256"},{"internalType":"uint256","name":"_minBuyAmount","type":"uint256"},{"internalType":"uint256","name":"_limitPerUserInUSD","type":"uint256"},{"internalType":"uint256","name":"_shortVestingPercentage","type":"uint256"},{"internalType":"uint256","name":"_longVestingPercentage","type":"uint256"},{"internalType":"uint256","name":"_shortVestingDuration","type":"uint256"},{"internalType":"uint256","name":"_longVestingDuration","type":"uint256"},{"internalType":"uint256","name":"_shortPrice","type":"uint256"},{"internalType":"uint256","name":"_longPrice","type":"uint256"},{"internalType":"uint256","name":"_vestingCliff","type":"uint256"},{"internalType":"uint256","name":"_vestingSlicePeriodSeconds","type":"uint256"}],"internalType":"struct StrkSale.PoolSetParams","name":"_poolSetParams","type":"tuple"}],"name":"setPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_pid","type":"uint8"},{"internalType":"uint256","name":"_offeringAmountPool","type":"uint256"}],"name":"setPoolOfferingAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_pid","type":"uint8"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"}],"name":"setPoolTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalTokensOffered","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":[],"name":"vestingRevoked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"vestingStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"viewPoolInformation","outputs":[{"components":[{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"uint256","name":"offeringAmountPool","type":"uint256"},{"internalType":"uint256","name":"soldAmountPoolScaled","type":"uint256"},{"internalType":"uint256","name":"minBuyAmount","type":"uint256"},{"internalType":"uint256","name":"limitPerUserInUSD","type":"uint256"},{"internalType":"uint256","name":"usdAmountPool","type":"uint256"},{"internalType":"uint256","name":"shortVestingPercentage","type":"uint256"},{"internalType":"uint256","name":"longVestingPercentage","type":"uint256"},{"internalType":"uint256","name":"shortVestingDuration","type":"uint256"},{"internalType":"uint256","name":"longVestingDuration","type":"uint256"},{"internalType":"uint256","name":"shortPrice","type":"uint256"},{"internalType":"uint256","name":"longPrice","type":"uint256"},{"internalType":"uint256","name":"vestingCliff","type":"uint256"},{"internalType":"uint256","name":"vestingSlicePeriodSeconds","type":"uint256"}],"internalType":"struct StrkSale.PoolCharacteristics","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint8[]","name":"_pids","type":"uint8[]"}],"name":"viewUserAllocationPools","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint8[]","name":"_pids","type":"uint8[]"}],"name":"viewUserInfo","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bool[]","name":"","type":"bool[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint8[]","name":"_pids","type":"uint8[]"}],"name":"viewUserOfferingAmountsForPools","outputs":[{"components":[{"internalType":"uint256","name":"short","type":"uint256"},{"internalType":"uint256","name":"long","type":"uint256"}],"internalType":"struct StrkSale.BoughtTokens[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b5060405162005cb138038062005cb1833981016040819052620000349162000185565b600160009081556200004562000163565b600180546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506000816001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a06040518083038186803b158015620000cf57600080fd5b505afa158015620000e4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200010a9190620001b5565b505050915050600081136200013c5760405162461bcd60e51b815260040162000133906200020b565b60405180910390fd5b50600680546001600160a01b0319166001600160a01b039290921691909117905562000237565b3390565b80516001600160501b03811681146200017f57600080fd5b92915050565b60006020828403121562000197578081fd5b81516001600160a01b0381168114620001ae578182fd5b9392505050565b600080600080600060a08688031215620001cd578081fd5b620001d9878762000167565b9450602086015193506040860151925060608601519150620001ff876080880162000167565b90509295509295909350565b6020808252601290820152711a5b9d985b1a59081c1c9a58d9481999595960721b604082015260600190565b615a6a80620002476000396000f3fe6080604052600436106103765760003560e01c8063760b3180116101d1578063af7665ce11610102578063ec779b91116100a0578063f2fde38b1161006f578063f2fde38b146109eb578063f51321d714610a0b578063f7c469f014610a2b578063f9cd5c1214610a4b57610376565b8063ec779b911461096b578063ecf4aba01461098b578063eeda2ab9146109ab578063efccd9ac146109cb57610376565b8063b7813607116100dc578063b781360714610903578063c41978e714610918578063e2ec6ec31461092b578063ea1bb3d51461094b57610376565b8063af7665ce146108b9578063b430990f146108ce578063b6549f75146108ee57610376565b80638da5cb5b1161016f5780639e010ea8116101495780639e010ea81461082a5780639ef346b414610857578063a376391e14610884578063aaf5eb68146108a457610376565b80638da5cb5b146107d5578063923fe2a2146107ea578063930eaddc1461080a57610376565b80637e5734e7116101ab5780637e5734e71461076b578063867f3d301461078b5780638af104da146107a05780638b8615cf146107c057610376565b8063760b31801461072157806379795108146107365780637b9417c81461074b57610376565b80633af32abf116102ab5780635c7604db11610249578063679e87ae11610223578063679e87ae146106ac57806367d42a8b146106cc5780636e2e6b2b146106ec578063715018a61461070c57610376565b80635c7604db14610649578063634328ad1461065e578063671216ed1461067e57610376565b806348deb4711161028557806348deb471146105c65780634af3c9b7146105db5780634e34f26b146106095780635a7bb69a1461062957610376565b80633af32abf146105595780633f138d4b1461057957806346ab91bf1461059957610376565b8063229d54dc1161031857806324953eaa116102f257806324953eaa146104e4578063286dd3f51461050457806328fddfaf146105245780633a29257b1461053957610376565b8063229d54dc146104825780632374876c146104a257806323f93574146104c257610376565b80630b598473116103545780630b59847314610400578063130836171461042d57806316baee09146104425780631fd48b9a1461046257610376565b806304e3ccd61461037b57806306bc96d4146103b157806306cec857146103d3575b600080fd5b34801561038757600080fd5b5061039b610396366004614779565b610a78565b6040516103a89190614ba5565b60405180910390f35b3480156103bd57600080fd5b506103d16103cc366004614791565b610ac9565b005b3480156103df57600080fd5b506103f36103ee366004614520565b610e81565b6040516103a89190614b9a565b34801561040c57600080fd5b5061042061041b366004614779565b610e92565b6040516103a89190614a1f565b34801561043957600080fd5b5061039b610eb9565b34801561044e57600080fd5b5061039b61045d3660046145ff565b610ebf565b34801561046e57600080fd5b5061042061047d366004614520565b610fff565b34801561048e57600080fd5b506103d161049d36600461453b565b61101a565b3480156104ae57600080fd5b506103d16104bd36600461486b565b6112bb565b3480156104ce57600080fd5b506104d761180a565b6040516103a8919061597e565b3480156104f057600080fd5b506103d16104ff3660046146cf565b61180f565b34801561051057600080fd5b506103d161051f366004614520565b61190b565b34801561053057600080fd5b506103f3611993565b34801561054557600080fd5b506103d1610554366004614698565b61199c565b34801561056557600080fd5b506103f3610574366004614520565b611b64565b34801561058557600080fd5b506103d16105943660046145d5565b611b82565b3480156105a557600080fd5b506105b96105b4366004614779565b611c92565b6040516103a891906157e8565b3480156105d257600080fd5b5061039b611d54565b3480156105e757600080fd5b506105fb6105f6366004614583565b611d5a565b6040516103a8929190614b42565b34801561061557600080fd5b506103f3610624366004614520565b611f03565b34801561063557600080fd5b5061039b610644366004614520565b611f18565b34801561065557600080fd5b506103d1611f33565b34801561066a57600080fd5b506103f361067936600461486b565b611fc0565b34801561068a57600080fd5b5061069e610699366004614648565b611fd5565b6040516103a8929190614bae565b3480156106b857600080fd5b506103d16106c736600461470f565b61235b565b3480156106d857600080fd5b506103d16106e7366004614779565b6125a0565b3480156106f857600080fd5b506103d161070736600461486b565b6127a4565b34801561071857600080fd5b506103d1612845565b34801561072d57600080fd5b5061039b6128ce565b34801561074257600080fd5b5061039b6128d4565b34801561075757600080fd5b506103d1610766366004614520565b61296b565b34801561077757600080fd5b50610420610786366004614779565b6129f6565b34801561079757600080fd5b506103f3612a03565b3480156107ac57600080fd5b5061039b6107bb3660046145d5565b612a0c565b3480156107cc57600080fd5b5061039b612a3f565b3480156107e157600080fd5b50610420612a44565b3480156107f657600080fd5b506103d1610805366004614520565b612a53565b34801561081657600080fd5b506103f3610825366004614520565b612c41565b34801561083657600080fd5b5061084a610845366004614583565b612c56565b6040516103a89190614ae0565b34801561086357600080fd5b50610877610872366004614779565b612df8565b6040516103a89190615889565b34801561089057600080fd5b506103d161089f366004614973565b612e8e565b3480156108b057600080fd5b5061039b612f74565b3480156108c557600080fd5b50610420612f80565b3480156108da57600080fd5b5061039b6108e9366004614779565b612f8f565b3480156108fa57600080fd5b506103d1612fa1565b34801561090f57600080fd5b5061042061303b565b6103d16109263660046148f4565b61304a565b34801561093757600080fd5b506103d16109463660046146cf565b613588565b34801561095757600080fd5b5061039b610966366004614779565b61367f565b34801561097757600080fd5b506103d1610986366004614956565b61374d565b34801561099757600080fd5b506104d76109a6366004614520565b6137fc565b3480156109b757600080fd5b506103d16109c6366004614520565b613811565b3480156109d757600080fd5b506103d16109e6366004614520565b613a0f565b3480156109f757600080fd5b506103d1610a06366004614520565b613ae8565b348015610a1757600080fd5b50610877610a263660046145d5565b613ba9565b348015610a3757600080fd5b5061039b610a46366004614520565b613bbe565b348015610a5757600080fd5b50610a6b610a66366004614583565b613be2565b6040516103a89190614b2f565b6000610a82610eb9565b8210610aa95760405162461bcd60e51b8152600401610aa0906156b0565b60405180910390fd5b60a58281548110610ab657fe5b906000526020600020015490505b919050565b610ad1613c86565b6001600160a01b0316610ae2612a44565b6001600160a01b031614610b085760405162461bcd60e51b8152600401610aa0906151f4565b8051600a60ff90911610610b2e5760405162461bcd60e51b8152600401610aa090614f8f565b60648160c001511115610b535760405162461bcd60e51b8152600401610aa090615749565b60648160e001511115610b785760405162461bcd60e51b8152600401610aa090615749565b600081610100015111610b9d5760405162461bcd60e51b8152600401610aa090615257565b600081610120015111610bc25760405162461bcd60e51b8152600401610aa090615257565b6001816101a001511015610be85760405162461bcd60e51b8152600401610aa090614bef565b806101000151816101a0015111158015610c0c5750806101200151816101a0015111155b610c285760405162461bcd60e51b8152600401610aa090614e07565b8060200151816040015111610c4f5760405162461bcd60e51b8152600401610aa090614eef565b80516020820151600c60ff8316600a8110610c6657fe5b600f0201556040820151600c60ff8316600a8110610c8057fe5b600f0201600101819055508160600151600c8260ff16600a8110610ca057fe5b600f0201600201819055508160800151600c8260ff16600a8110610cc057fe5b600f0201600401819055508160a00151600c8260ff16600a8110610ce057fe5b600f0201600501819055508160c00151600c8260ff16600a8110610d0057fe5b600f0201600701819055508160e00151600c8260ff16600a8110610d2057fe5b600f020160080181905550816101000151600c8260ff16600a8110610d4157fe5b600f020160090181905550816101200151600c8260ff16600a8110610d6257fe5b600f0201600a0181905550816101400151600c8260ff16600a8110610d8357fe5b600f0201600b0181905550816101600151600c8260ff16600a8110610da457fe5b600f0201600c0181905550816101800151600c8260ff16600a8110610dc557fe5b600f0201600d0181905550816101a00151600c8260ff16600a8110610de657fe5b600f0201600e0181905550600080600090505b600a60ff82161015610e3957610e2f600c8260ff16600a8110610e1857fe5b600f02016002015483613c8a90919063ffffffff16565b9150600101610df9565b50600b81905560608301516040517f0337fe1bfa5f3181c99d7eba7c45ff9337293653f9b8d32750e83fda65a15cdd91610e7491859061596d565b60405180910390a1505050565b6000610e8c82611b64565b92915050565b60098181548110610e9f57fe5b6000918252602090912001546001600160a01b0316905081565b60a55490565b6000600a8310610ee15760405162461bcd60e51b8152600401610aa090614c6a565b60005b601460ff82161015610feb576000610eff868360ff16612a0c565b9050610f096143c6565b600082815260a66020908152604091829020825160c081018452815460ff808216151583526001600160a01b0361010083041694830194909452600160a81b81048416948201949094529290916060840191600160b01b9004166001811115610f6e57fe5b6001811115610f7957fe5b815260018281015460208301526002909201546040909101528151919250901515148015610fad575085816040015160ff16145b8015610fd25750846001811115610fc057fe5b81606001516001811115610fd057fe5b145b15610fe157509150610ff89050565b5050600101610ee4565b50610ff584613bbe565b90505b9392505050565b6005602052600090815260409020546001600160a01b031681565b611022613c86565b6001600160a01b0316611033612a44565b6001600160a01b0316146110595760405162461bcd60e51b8152600401610aa0906151f4565b6001600160a01b03831660009081526003602052604090205460ff16156110925760405162461bcd60e51b8152600401610aa090614f68565b6001600160a01b0382166110b85760405162461bcd60e51b8152600401610aa090614e53565b826001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b1580156110f157600080fd5b505afa158015611105573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061112991906148d8565b60ff168160ff161461114d5760405162461bcd60e51b8152600401610aa0906155e0565b6000826001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a06040518083038186803b15801561118857600080fd5b505afa15801561119c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111c09190614887565b505050915050600081136111e65760405162461bcd60e51b8152600401610aa090615063565b6001600160a01b0384811660008181526003602090815260408083208054600160ff1991821681179092556004805492830190557f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b90910180546001600160a01b031990811690961790556005835281842080549095169589169590951790935560079052819020805490921660ff851617909155517f9ab7d78b094d546af0a8ba58718267d8c9da73297086650a15ac147bf262beb8906112ad90869086908690614a57565b60405180910390a150505050565b600260005414156112de5760405162461bcd60e51b8152600401610aa09061560b565b60026000556112ec33613caf565b156113095760405162461bcd60e51b8152600401610aa090615229565b3332146113285760405162461bcd60e51b8152600401610aa090614c33565b60aa5460ff1661134a5760405162461bcd60e51b8152600401610aa090614d25565b600c8160ff16600a811061135a57fe5b600f02016001015442116113805760405162461bcd60e51b8152600401610aa090615037565b600a60ff8216106113a35760405162461bcd60e51b8152600401610aa090615712565b33600090815260a26020908152604080832060ff851684529091529020546113dd5760405162461bcd60e51b8152600401610aa09061508f565b33600090815260a26020908152604080832060ff8086168552925290912060010154161561141d5760405162461bcd60e51b8152600401610aa09061519e565b33600090815260a26020908152604080832060ff8516845282528083206001908101805460ff1916909117905560a390915290205461146c5760ff8116600090815260a3602052604090204290555b33600090815260a26020908152604080832060ff851684529091529020600201541561163a576000600c8260ff16600a81106114a457fe5b600f020160070154606403111561156e576000611513670de0b6b3a764000061150d606461150d600c8760ff16600a81106114db57fe5b600f02016007015433600090815260a26020908152604080832060ff8c16845290915290206002015490606403613cb5565b90613cef565b600a5490915061152d906001600160a01b03163383613d21565b60ff8216337fc305943c3628d4dd8341bbd076d28aeea01cd21dc0b5ea5a98cc9a2260e2ad02836000604051611564929190614bae565b60405180910390a3505b6000600c8260ff16600a811061158057fe5b600f020160070154111561163a5760006115e3670de0b6b3a764000061150d606461150d600c8760ff16600a81106115b457fe5b600f02016007015433600090815260a26020908152604080832060ff8c16845290915290206002015490613cb5565b905060006115f43384600085613d77565b905060ff8316337ff884b5cb2fcc70d1bee1605845b6cc9a581420a81e54ea557e716120557b886c8460008560405161162f93929190615957565b60405180910390a350505b33600090815260a26020908152604080832060ff8516845290915290206003015415611802576000600c8260ff16600a811061167257fe5b600f02016008015460640311156117365760006116db670de0b6b3a764000061150d606461150d600c8760ff16600a81106116a957fe5b600f02016008015433600090815260a26020908152604080832060ff8c16845290915290206003015490606403613cb5565b600a549091506116f5906001600160a01b03163383613d21565b60ff8216337fc305943c3628d4dd8341bbd076d28aeea01cd21dc0b5ea5a98cc9a2260e2ad0283600160405161172c929190614bae565b60405180910390a3505b6000600c8260ff16600a811061174857fe5b600f02016008015411156118025760006117ab670de0b6b3a764000061150d606461150d600c8760ff16600a811061177c57fe5b600f02016008015433600090815260a26020908152604080832060ff8c16845290915290206003015490613cb5565b905060006117bc3384600185613d77565b905060ff8316337ff884b5cb2fcc70d1bee1605845b6cc9a581420a81e54ea557e716120557b886c846001856040516117f793929190615957565b60405180910390a350505b506001600055565b600a81565b611817613c86565b6001600160a01b0316611828612a44565b6001600160a01b03161461184e5760405162461bcd60e51b8152600401610aa0906151f4565b60005b818110156119065760006002600085858581811061186b57fe5b90506020020160208101906118809190614520565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558282828181106118b457fe5b90506020020160208101906118c99190614520565b6001600160a01b03167ff1abf01a1043b7c244d128e8595cf0c1d10743b022b03a02dffd8ca3bf729f5a60405160405180910390a2600101611851565b505050565b611913613c86565b6001600160a01b0316611924612a44565b6001600160a01b03161461194a5760405162461bcd60e51b8152600401610aa0906151f4565b6001600160a01b038116600081815260026020526040808220805460ff19169055517ff1abf01a1043b7c244d128e8595cf0c1d10743b022b03a02dffd8ca3bf729f5a9190a250565b60a45460ff1681565b6119a4613c86565b6001600160a01b03166119b5612a44565b6001600160a01b0316146119db5760405162461bcd60e51b8152600401610aa0906151f4565b6001600160a01b03821660009081526008602052604090205460ff1615611a145760405162461bcd60e51b8152600401610aa090614f68565b816001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015611a4d57600080fd5b505afa158015611a61573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a8591906148d8565b60ff168160ff1614611aa95760405162461bcd60e51b8152600401610aa0906155e0565b6001600160a01b03821660008181526008602090815260408083208054600160ff1991821681179092556009805492830190557f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af90910180546001600160a01b031916909517909455600790915290819020805490921660ff841617909155517f933a948e7b32894b583810019aab7c6389638c0ab11541029c510367b491d9d890611b589084908490614ac4565b60405180910390a15050565b6001600160a01b031660009081526002602052604090205460ff1690565b611b8a613c86565b6001600160a01b0316611b9b612a44565b6001600160a01b031614611bc15760405162461bcd60e51b8152600401610aa0906151f4565b6001600160a01b03821660009081526003602052604090205460ff16158015611c0357506001600160a01b03821660009081526008602052604090205460ff16155b611c1f5760405162461bcd60e51b8152600401610aa0906156dd565b600a546001600160a01b0383811691161415611c4d5760405162461bcd60e51b8152600401610aa0906152c5565b611c616001600160a01b0383163383613d21565b7f74545154aac348a3eac92596bd1971957ca94795f4e954ec5f613b55fab781298282604051611b58929190614a7d565b611c9a6143fc565b600c82600a8110611ca757fe5b600f0201604051806101e001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481526020016005820154815260200160068201548152602001600782015481526020016008820154815260200160098201548152602001600a8201548152602001600b8201548152602001600c8201548152602001600d8201548152602001600e820154815250509050919050565b60a75490565b606080808367ffffffffffffffff81118015611d7557600080fd5b50604051908082528060200260200182016040528015611d9f578160200160208202803683370190505b50905060608467ffffffffffffffff81118015611dbb57600080fd5b50604051908082528060200260200182016040528015611de5578160200160208202803683370190505b50905060005b60ff8116861115611ef6576001600160a01b038816600090815260a26020526040812090888860ff8516818110611e1e57fe5b9050602002016020810190611e33919061486b565b60ff1660ff16815260200190815260200160002060000154838260ff1681518110611e5a57fe5b60200260200101818152505060a26000896001600160a01b03166001600160a01b03168152602001908152602001600020600088888460ff16818110611e9c57fe5b9050602002016020810190611eb1919061486b565b60ff90811682526020820192909252604001600020600101548351908216918491908416908110611ede57fe5b91151560209283029190910190910152600101611deb565b5090969095509350505050565b60086020526000908152604090205460ff1681565b6001600160a01b0316600090815260a8602052604090205490565b611f3b613c86565b6001600160a01b0316611f4c612a44565b6001600160a01b031614611f725760405162461bcd60e51b8152600401610aa0906151f4565b60aa805460ff19811660ff9182161517918290556040517fdf75c1ae406d54b1ec8de5ba72162c5fbe8458e7191ca79dbf6d9df3a97da3eb92611fb6921690614b9a565b60405180910390a1565b60a96020526000908152604090205460ff1681565b600080856001600160a01b03811615612092576001600160a01b03811660009081526008602052604090205460ff168061204b57506001600160a01b03811660009081526003602052604090205460ff16801561204b57506001600160a01b038181166000908152600560205260409020541615155b801561207157506001600160a01b03811660009081526007602052604090205460ff1615155b61208d5760405162461bcd60e51b8152600401610aa0906151cd565b6120ba565b6006546001600160a01b03166120ba5760405162461bcd60e51b8152600401610aa09061535e565b60006001600160a01b038816156120ec576001600160a01b03881660009081526007602052604090205460ff166120ef565b60125b6001600160a01b03891660009081526008602052604090205490915060ff16156121345761212d600a82900a61150d89670de0b6b3a7640000613cb5565b93506122b0565b60006001600160a01b03891615612165576001600160a01b03808a1660009081526005602052604090205416612172565b6006546001600160a01b03165b90506000816001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a06040518083038186803b1580156121af57600080fd5b505afa1580156121c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121e79190614887565b5050509150506000811361220d5760405162461bcd60e51b8152600401610aa0906157a7565b6000826001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b15801561224857600080fd5b505afa15801561225c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061228091906148d8565b60ff1690506122aa848201600a0a61150d670de0b6b3a76400006122a48e87613cb5565b90613cb5565b96505050505b6000600c8760ff16600a81106122c257fe5b600f020160020154116122e75760405162461bcd60e51b8152600401610aa09061528e565b6000808660018111156122f657fe5b1461231857600c8760ff16600a811061230b57fe5b600f0201600c0154612331565b600c8760ff16600a811061232857fe5b600f0201600b01545b905061234d8161150d670de0b6b3a76400006122a48982613cb5565b935050505094509492505050565b612363613c86565b6001600160a01b0316612374612a44565b6001600160a01b03161461239a5760405162461bcd60e51b8152600401610aa0906151f4565b80156123b757600a546123b7906001600160a01b03163383613d21565b6040514790339082156108fc029083906000818181858888f193505050501580156123e6573d6000803e3d6000fd5b5060608367ffffffffffffffff8111801561240057600080fd5b5060405190808252806020026020018201604052801561242a578160200160208202803683370190505b50905060005b848110156125595785858281811061244457fe5b90506020020160208101906124599190614520565b6001600160a01b03166370a08231306040518263ffffffff1660e01b81526004016124849190614a1f565b60206040518083038186803b15801561249c57600080fd5b505afa1580156124b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124d49190614853565b8282815181106124e057fe5b60200260200101818152505060008282815181106124fa57fe5b60200260200101511115612551576125513383838151811061251857fe5b602002602001015188888581811061252c57fe5b90506020020160208101906125419190614520565b6001600160a01b03169190613d21565b600101612430565b507feeb6fba8e84827c168dfdff263a9cfed1ff24c528b523e0d96dbfe0b9983a42383838787856040516125919594939291906158e4565b60405180910390a15050505050565b600260005414156125c35760405162461bcd60e51b8152600401610aa09061560b565b6002600090815581815260a6602052604090205460ff1615156001146125fb5760405162461bcd60e51b8152600401610aa090614e81565b600081815260a660205260408120805490916101009091046001600160a01b0316331490612627612a44565b6001600160a01b0316336001600160a01b031614905081806126465750805b6126625760405162461bcd60e51b8152600401610aa090615583565b6040805160c081018252845460ff808216151583526001600160a01b036101008304166020840152600160a81b82048116938301939093526000926126e4929187916060840191600160b01b90041660018111156126bc57fe5b60018111156126c757fe5b815260200160018201548152602001600282015481525050613f33565b9050600081116127065760405162461bcd60e51b8152600401610aa090615306565b60028401546127159082613c8a565b600285015560a7546127279082614180565b60a7558354600a5461274c916001600160a01b03918216916101009091041683613d21565b83546040516101009091046001600160a01b0316907fc8fa66dff4b9073528c3f1bf21a8dc9a18fdf09847e88e96188bc953aef519f0906127909088908590614bae565b60405180910390a250506001600055505050565b6127ac613c86565b6001600160a01b03166127bd612a44565b6001600160a01b0316146127e35760405162461bcd60e51b8152600401610aa0906151f4565b60ff808216600090815260a9602052604090819020805460ff19811690841615179081905590517f7c3c0175a14dd28663d220c441cc04cc1aebec26736dc30e94e6cd28dfce55969261283a92859291169061598c565b60405180910390a150565b61284d613c86565b6001600160a01b031661285e612a44565b6001600160a01b0316146128845760405162461bcd60e51b8152600401610aa0906151f4565b6001546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600180546001600160a01b0319169055565b600b5481565b60a754600a546040516370a0823160e01b81526000926129669290916001600160a01b03909116906370a0823190612910903090600401614a1f565b60206040518083038186803b15801561292857600080fd5b505afa15801561293c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129609190614853565b90614180565b905090565b612973613c86565b6001600160a01b0316612984612a44565b6001600160a01b0316146129aa5760405162461bcd60e51b8152600401610aa0906151f4565b6001600160a01b038116600081815260026020526040808220805460ff19166001179055517fd1bba68c128cc3f427e5831b3c6f99f480b6efa6b9e80c757768f6124158cc3f9190a250565b60048181548110610e9f57fe5b60aa5460ff1681565b60008282604051602001612a219291906149e1565b60405160208183030381529060405280519060200120905092915050565b601281565b6001546001600160a01b031690565b612a5b613c86565b6001600160a01b0316612a6c612a44565b6001600160a01b031614612a925760405162461bcd60e51b8152600401610aa0906151f4565b6001600160a01b03811660009081526008602052604090205460ff16612aca5760405162461bcd60e51b8152600401610aa090615443565b6001600160a01b0381166000908152600860205260408120805460ff19169055600954905b600954811015612b3b57826001600160a01b031660098281548110612b1057fe5b6000918252602090912001546001600160a01b03161415612b3357809150612b3b565b600101612aef565b50600954811415612b5e5760405162461bcd60e51b8152600401610aa09061500a565b600980546000198101908110612b7057fe5b600091825260209091200154600980546001600160a01b039092169183908110612b9657fe5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506009805480612bcf57fe5b60008281526020808220830160001990810180546001600160a01b03191690559092019092556001600160a01b038416825260079052604090819020805460ff19169055517fe7f312517e7dceb43a5ab7883001f03f6e4bc288e9a65359c7bbe3eaaadfdcbb90611b58908490614a1f565b60036020526000908152604090205460ff1681565b6060808267ffffffffffffffff81118015612c7057600080fd5b50604051908082528060200260200182016040528015612caa57816020015b612c97614472565b815260200190600190039081612c8f5790505b50905060005b60ff8116841115612def576000600c86868460ff16818110612cce57fe5b9050602002016020810190612ce3919061486b565b60ff16600a8110612cf057fe5b600f0201600301541115612de7576001600160a01b038616600090815260a26020526040812090868660ff8516818110612d2657fe5b9050602002016020810190612d3b919061486b565b60ff1660ff16815260200190815260200160002060020154828260ff1681518110612d6257fe5b602090810291909101810151919091526001600160a01b038716600090815260a29091526040812090868660ff8516818110612d9a57fe5b9050602002016020810190612daf919061486b565b60ff1660ff16815260200190815260200160002060030154828260ff1681518110612dd657fe5b602002602001015160200181815250505b600101612cb0565b50949350505050565b612e006143c6565b600082815260a66020908152604091829020825160c081018452815460ff808216151583526001600160a01b0361010083041694830194909452600160a81b81048416948201949094529290916060840191600160b01b9004166001811115612e6557fe5b6001811115612e7057fe5b81526001820154602082015260029091015460409091015292915050565b612e96613c86565b6001600160a01b0316612ea7612a44565b6001600160a01b031614612ecd5760405162461bcd60e51b8152600401610aa0906151f4565b600a60ff841610612ef05760405162461bcd60e51b8152600401610aa090614f8f565b818111612f0f5760405162461bcd60e51b8152600401610aa090614eef565b81600c8460ff16600a8110612f2057fe5b600f02015580600c60ff8516600a8110612f3657fe5b600f0201600101819055507f5372037da2223d5e11fe0102a9f534f52dad6a840605685d743e869c86dfea1e838383604051610e74939291906159b4565b670de0b6b3a764000081565b6006546001600160a01b031681565b60a36020526000908152604090205481565b612fa9613c86565b6001600160a01b0316612fba612a44565b6001600160a01b031614612fe05760405162461bcd60e51b8152600401610aa0906151f4565b60a45460ff16156130035760405162461bcd60e51b8152600401610aa09061550d565b60a4805460ff191660011790556040517f44825a4b2df8acb19ce4e1afba9aa850c8b65cdb7942e2078f27d0b0960efee690600090a1565b600a546001600160a01b031681565b6002600054141561306d5760405162461bcd60e51b8152600401610aa09061560b565b600260005561307b33613caf565b156130985760405162461bcd60e51b8152600401610aa090615229565b3332146130b75760405162461bcd60e51b8152600401610aa090614c33565b80428110156130d85760405162461bcd60e51b8152600401610aa09061533d565b600a60ff8816106130fb5760405162461bcd60e51b8152600401610aa090615167565b6000600c8860ff16600a811061310d57fe5b600f020160020154116131325760405162461bcd60e51b8152600401610aa090615466565b600c8760ff16600a811061314257fe5b600f02015442116131655760405162461bcd60e51b8152600401610aa090614cf9565b600c8760ff16600a811061317557fe5b600f020160010154421061319b5760405162461bcd60e51b8152600401610aa0906150c6565b6001600160a01b0386166131ad573494505b600085116131cd5760405162461bcd60e51b8152600401610aa090615679565b60ff808816600090815260a960205260409020541615806131f257506131f233610e81565b61320e5760405162461bcd60e51b8152600401610aa090614dd0565b6001600160a01b03861615613232576132326001600160a01b0387163330886141a8565b60008061324188888b88611fd5565b91509150858210156132655760405162461bcd60e51b8152600401610aa0906150f1565b613297670de0b6b3a7640000600c8b60ff16600a811061328157fe5b600f020160040154613cb590919063ffffffff16565b8110156132b65760405162461bcd60e51b8152600401610aa090615417565b33600090815260a26020908152604080832060ff8d1684529091529020546132de9083613c8a565b33600090815260a26020908152604080832060ff8e16845290915281209190915585600181111561330b57fe5b14156133625733600090815260a26020908152604080832060ff8d16845290915290206002015461333c9082613c8a565b33600090815260a26020908152604080832060ff8e1684529091529020600201556133c3565b600185600181111561337057fe5b14156133c35733600090815260a26020908152604080832060ff8d1684529091529020600301546133a19082613c8a565b33600090815260a26020908152604080832060ff8e1684529091529020600301555b6000600c8a60ff16600a81106133d557fe5b600f020160050154111561343757600c8960ff16600a81106133f357fe5b600f02016005015433600090815260a26020908152604080832060ff8e16845290915290205411156134375760405162461bcd60e51b8152600401610aa090614fc6565b61346182600c8b60ff16600a811061344b57fe5b600f020160060154613c8a90919063ffffffff16565b600c8a60ff16600a811061347157fe5b600f0201600601819055506134a681600c8b60ff16600a811061349057fe5b600f020160030154613c8a90919063ffffffff16565b600c8a60ff16600a81106134b657fe5b600f0201600301819055506134f3670de0b6b3a7640000600c8b60ff16600a81106134dd57fe5b600f020160020154613cb590919063ffffffff16565b600c8a60ff16600a811061350357fe5b600f02016003015411156135295760405162461bcd60e51b8152600401610aa090614cb5565b60ff8916337f1c4a8d4f1ddd407e59551cf66b700eecbd0c335af3e8f9b417f0970b88da375b8a8a86868b600181111561355f57fe5b604051613570959493929190614a96565b60405180910390a35050600160005550505050505050565b613590613c86565b6001600160a01b03166135a1612a44565b6001600160a01b0316146135c75760405162461bcd60e51b8152600401610aa0906151f4565b60005b81811015611906576001600260008585858181106135e457fe5b90506020020160208101906135f99190614520565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905582828281811061362d57fe5b90506020020160208101906136429190614520565b6001600160a01b03167fd1bba68c128cc3f427e5831b3c6f99f480b6efa6b9e80c757768f6124158cc3f60405160405180910390a26001016135ca565b600081815260a6602052604081205460ff1615156001146136b25760405162461bcd60e51b8152600401610aa090614e81565b6136ba6143c6565b600083815260a66020908152604091829020825160c081018452815460ff808216151583526001600160a01b0361010083041694830194909452600160a81b81048416948201949094529290916060840191600160b01b900416600181111561371f57fe5b600181111561372a57fe5b8152602001600182015481526020016002820154815250509050610ff881613f33565b613755613c86565b6001600160a01b0316613766612a44565b6001600160a01b03161461378c5760405162461bcd60e51b8152600401610aa0906151f4565b600a60ff8316106137af5760405162461bcd60e51b8152600401610aa090614f8f565b80600c8360ff16600a81106137c057fe5b600f0201600201819055507f9f932351fe5c5d712cc480a47b51e36ba8f85171f857227891f28bcba7a2ad718282604051611b589291906159a1565b60076020526000908152604090205460ff1681565b613819613c86565b6001600160a01b031661382a612a44565b6001600160a01b0316146138505760405162461bcd60e51b8152600401610aa0906151f4565b6001600160a01b03811660009081526003602052604090205460ff166138885760405162461bcd60e51b8152600401610aa090615443565b6001600160a01b0381166000908152600360205260408120805460ff19169055600454905b6004548110156138f957826001600160a01b0316600482815481106138ce57fe5b6000918252602090912001546001600160a01b031614156138f1578091506138f9565b6001016138ad565b5060045481141561391c5760405162461bcd60e51b8152600401610aa09061500a565b60048054600019810190811061392e57fe5b600091825260209091200154600480546001600160a01b03909216918390811061395457fe5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600480548061398d57fe5b60008281526020808220830160001990810180546001600160a01b031990811690915593019093556001600160a01b0385168152600783526040808220805460ff19169055600590935282902080549091169055517f3c528cf383dc76a2d8cd891430b35002aff6dd37e81ae797363846e6e596fc9c90611b58908490614a1f565b613a17613c86565b6001600160a01b0316613a28612a44565b6001600160a01b031614613a4e5760405162461bcd60e51b8152600401610aa0906151f4565b6001600160a01b038116613a745760405162461bcd60e51b8152600401610aa090615642565b600a546001600160a01b031615613a9d5760405162461bcd60e51b8152600401610aa0906154d6565b600a80546001600160a01b0319166001600160a01b0383161790556040517f53be4bd4a6ecb59cb3e1a8e5e03499a324ebba81edc64729e18d07baf30038e69061283a908390614a1f565b613af0613c86565b6001600160a01b0316613b01612a44565b6001600160a01b031614613b275760405162461bcd60e51b8152600401610aa0906151f4565b6001600160a01b038116613b4d5760405162461bcd60e51b8152600401610aa090614d53565b6001546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600180546001600160a01b0319166001600160a01b0392909216919091179055565b613bb16143c6565b610ff86108728484612a0c565b6001600160a01b038116600090815260a86020526040812054610e8c908390612a0c565b6060808267ffffffffffffffff81118015613bfc57600080fd5b50604051908082528060200260200182016040528015613c26578160200160208202803683370190505b50905060005b60ff8116841115612def57613c648686868460ff16818110613c4a57fe5b9050602002016020810190613c5f919061486b565b6141cf565b828260ff1681518110613c7357fe5b6020908102919091010152600101613c2c565b3390565b600082820183811015610ff85760405162461bcd60e51b8152600401610aa090614d99565b3b151590565b600082613cc457506000610e8c565b82820282848281613cd157fe5b0414610ff85760405162461bcd60e51b8152600401610aa090615126565b6000808211613d105760405162461bcd60e51b8152600401610aa090614f31565b818381613d1957fe5b049392505050565b6119068363a9059cbb60e01b8484604051602401613d40929190614a7d565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152614250565b600081613d826128d4565b1015613da05760405162461bcd60e51b8152600401610aa09061538a565b6000613dab86613bbe565b600081815260a6602052604090205490915061010090046001600160a01b031615613de85760405162461bcd60e51b8152600401610aa090615495565b6040518060c00160405280600115158152602001876001600160a01b031681526020018660ff168152602001856001811115613e2057fe5b815260208082018690526000604092830181905284815260a6825282902083518154928501519385015160ff1990931690151517610100600160a81b0319166101006001600160a01b03909416939093029290921760ff60a81b1916600160a81b60ff9092169190910217808255606083015190829060ff60b01b1916600160b01b836001811115613eae57fe5b02179055506080820151600182015560a09091015160029091015560a754613ed69084613c8a565b60a75560a5805460018181019092557fb29a2b3b6f2ff1b765777a231725941da5072cc4fcc30ac4a2ce09706e8ddeff018290556001600160a01b038716600090815260a860205260409020805490910190559050949350505050565b600080613f3e6142df565b9050600c836040015160ff16600a8110613f5457fe5b600f0201600d015460a36000856040015160ff1681526020019081526020016000205401811015613f89576000915050610ac4565b600083606001516001811115613f9b57fe5b148015613fef5750613feb600c846040015160ff16600a8110613fba57fe5b600f02016009015460a36000866040015160ff16815260200190815260200160002054613c8a90919063ffffffff16565b8110155b8061405b575060018360600151600181111561400757fe5b14801561405b5750614057600c846040015160ff16600a811061402657fe5b600f0201600a015460a36000866040015160ff16815260200190815260200160002054613c8a90919063ffffffff16565b8110155b80614068575060a45460ff165b156140885760a0830151608084015161408091614180565b915050610ac4565b60408084015160ff16600090815260a3602052908120546140aa908390614180565b90506000600c856040015160ff16600a81106140c257fe5b600f0201600e0154905060006140e18284613cef90919063ffffffff16565b905060006140ef8284613cb5565b90506000614159818960600151600181111561410757fe5b1461412d57600c896040015160ff16600a811061412057fe5b600f0201600a015461414a565b600c896040015160ff16600a811061414157fe5b600f0201600901545b60808a015161150d9085613cb5565b90506141728860a001518261418090919063ffffffff16565b9650610ac495505050505050565b6000828211156141a25760405162461bcd60e51b8152600401610aa090614eb8565b50900390565b6141c9846323b872dd60e01b858585604051602401613d4093929190614a33565b50505050565b600080600c8360ff16600a81106141e257fe5b600f020160060154111561424857614241600c8360ff16600a811061420357fe5b600f0201600601546001600160a01b038516600090815260a26020908152604080832060ff8816845290915290205461150d9064e8d4a51000613cb5565b9050610e8c565b506000610e8c565b60606142a5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166142e39092919063ffffffff16565b80519091501561190657808060200190518101906142c39190614759565b6119065760405162461bcd60e51b8152600401610aa090615539565b4290565b6060610ff58484600085856142f785613caf565b6143135760405162461bcd60e51b8152600401610aa0906153e0565b60006060866001600160a01b031685876040516143309190614a03565b60006040518083038185875af1925050503d806000811461436d576040519150601f19603f3d011682016040523d82523d6000602084013e614372565b606091505b509150915061438282828661438d565b979650505050505050565b6060831561439c575081610ff8565b8251156143ac5782518084602001fd5b8160405162461bcd60e51b8152600401610aa09190614bbc565b6040805160c081018252600080825260208201819052918101829052906060820190815260200160008152602001600081525090565b604051806101e001604052806000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b604051806040016040528060008152602001600081525090565b80356001600160a01b0381168114610e8c57600080fd5b60008083601f8401126144b4578182fd5b50813567ffffffffffffffff8111156144cb578182fd5b60208301915083602080830285010111156144e557600080fd5b9250929050565b803560028110610e8c57600080fd5b8035610e8c81615a22565b805169ffffffffffffffffffff81168114610e8c57600080fd5b600060208284031215614531578081fd5b610ff8838361448c565b60008060006060848603121561454f578182fd5b614559858561448c565b9250614568856020860161448c565b9150604084013561457881615a22565b809150509250925092565b600080600060408486031215614597578283fd5b6145a1858561448c565b9250602084013567ffffffffffffffff8111156145bc578283fd5b6145c8868287016144a3565b9497909650939450505050565b600080604083850312156145e7578182fd5b6145f1848461448c565b946020939093013593505050565b600080600060608486031215614613578283fd5b83356001600160a01b0381168114614629578384fd5b92506020840135915061463f85604086016144ec565b90509250925092565b6000806000806080858703121561465d578081fd5b614667868661448c565b935060208501359250604085013561467e81615a22565b915061468d86606087016144ec565b905092959194509250565b600080604083850312156146aa578182fd5b6146b4848461448c565b915060208301356146c481615a22565b809150509250929050565b600080602083850312156146e1578182fd5b823567ffffffffffffffff8111156146f7578283fd5b614703858286016144a3565b90969095509350505050565b600080600060408486031215614723578081fd5b833567ffffffffffffffff811115614739578182fd5b614745868287016144a3565b909790965060209590950135949350505050565b60006020828403121561476a578081fd5b81518015158114610ff8578182fd5b60006020828403121561478a578081fd5b5035919050565b60006101c08083850312156147a4578182fd5b6147ad816159cf565b90506147b984846144fb565b81526020830135602082015260408301356040820152606083013560608201526080830135608082015260a083013560a082015260c083013560c082015260e083013560e08201526101008084013581830152506101208084013581830152506101408084013581830152506101608084013581830152506101808084013581830152506101a08084013581830152508091505092915050565b600060208284031215614864578081fd5b5051919050565b60006020828403121561487c578081fd5b8135610ff881615a22565b600080600080600060a0868803121561489e578283fd5b6148a88787614506565b94506020860151935060408601519250606086015191506148cc8760808801614506565b90509295509295909350565b6000602082840312156148e9578081fd5b8151610ff881615a22565b60008060008060008060c0878903121561490c578384fd5b863561491781615a22565b9550614926886020890161448c565b9450604087013593506060870135925061494388608089016144ec565b915060a087013590509295509295509295565b60008060408385031215614968578182fd5b82356145f181615a22565b600080600060608486031215614987578081fd5b833561499281615a22565b95602085013595506040909401359392505050565b6000815180845260208085019450808401835b838110156149d6578151875295820195908201906001016149ba565b509495945050505050565b60609290921b6bffffffffffffffffffffffff19168252601482015260340190565b60008251614a158184602087016159f6565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03938416815291909216602082015260ff909116604082015260600190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b03959095168552602085019390935260408401919091526060830152608082015260a00190565b6001600160a01b0392909216825260ff16602082015260400190565b602080825282518282018190526000919060409081850190868401855b82811015614b2257815180518552860151868501529284019290850190600101614afd565b5091979650505050505050565b600060208252610ff860208301846149a7565b600060408252614b5560408301856149a7565b828103602084810191909152845180835285820192820190845b81811015614b8d578451151583529383019391830191600101614b6f565b5090979650505050505050565b901515815260200190565b90815260200190565b918252602082015260400190565b6000602082528251806020840152614bdb8160408501602087016159f6565b601f01601f19169190910160400192915050565b60208082526024908201527f736c696365506572696f645365636f6e6473206d7573742062652065786365656040820152636473203160e01b606082015260800190565b6020808252601a908201527f70726f787920636f6e7472616374206e6f7420616c6c6f776564000000000000604082015260600190565b6020808252602b908201527f436f6d7075746556657374696e675363686564756c6549643a204e6f6e20766160408201526a1b1a59081c1bdbdb081a5960aa1b606082015260800190565b60208082526024908201527f4465706f7369743a2045786365656420706f6f6c206f66666572696e6720616d6040820152631bdd5b9d60e21b606082015260800190565b6020808252601290820152714465706f7369743a20546f6f206561726c7960701b604082015260600190565b60208082526014908201527312185c9d995cdd0e88139bdd08185b1b1bddd95960621b604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252601c908201527f4465706f7369743a204d7573742062652077686974656c697374656400000000604082015260600190565b6020808252602c908201527f736c696365506572696f645365636f6e6473206d75737420626520696e74657260408201526b34b7b910323ab930ba34b7b760a11b606082015260800190565b602080825260149082015273696e76616c69642066656564206164647265737360601b604082015260600190565b6020808252601d908201527f76657374696e67207363686564756c65206973206e6f74206578697374000000604082015260600190565b6020808252601e908201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604082015260600190565b60208082526022908201527f656e6454696d65206d75737420626967676572207468616e20737461727454696040820152616d6560f01b606082015260800190565b6020808252601a908201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604082015260600190565b6020808252600d908201526c185b1c9958591e481859191959609a1b604082015260600190565b6020808252601f908201527f4f7065726174696f6e733a20506f6f6c20646f6573206e6f7420657869737400604082015260600190565b60208082526024908201527f4465706f7369743a204e657720616d6f756e742061626f76652075736572206c6040820152631a5b5a5d60e21b606082015260800190565b6020808252601390820152721d1bdad95b88191bd95cdb89dd08195e1a5cdd606a1b604082015260600190565b602080825260129082015271486172766573743a20546f6f206561726c7960701b604082015260600190565b6020808252601290820152711a5b9d985b1a59081c1c9a58d9481999595960721b604082015260600190565b6020808252601c908201527f486172766573743a20446964206e6f7420706172746963697061746500000000604082015260600190565b6020808252601190820152704465706f7369743a20546f6f206c61746560781b604082015260600190565b6020808252818101527f4465706f7369743a20496e73756666696369656e742055534420616d6f756e74604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252601a908201527f4465706f7369743a204e6f6e2076616c696420706f6f6c206964000000000000604082015260600190565b602080825260159082015274486172766573743a20416c726561647920646f6e6560581b604082015260600190565b6020808252600d908201526c34b73b30b634b2103a37b5b2b760991b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526014908201527318dbdb9d1c9858dd081b9bdd08185b1b1bddd95960621b604082015260600190565b60208082526017908201527f6475726174696f6e206d75737420657863656564732030000000000000000000604082015260600190565b6020808252601c908201527f436f6d70757465416d6f756e74733a20506f6f6c206e6f742073657400000000604082015260600190565b60208082526021908201527f5265636f7665723a2043616e6e6f74206265206f66666572696e6720746f6b656040820152603760f91b606082015260800190565b6020808252601b908201527f6e6f2076657374656420746f6b656e7320746f2072656c656173650000000000604082015260600190565b6020808252600790820152661156141254915160ca1b604082015260600190565b6020808252601290820152711c1c9a58d94819995959081b9bdd081cd95d60721b604082015260600190565b60208082526036908201527f63616e206e6f74206372656174652076657374696e67207363686564756c6520604082015275776974682073756666696369656e7420746f6b656e7360501b606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b60208082526012908201527111195c1bdcda5d0e881d1bdbc81cdb585b1b60721b604082015260600190565b6020808252600990820152681b9bdd08185919195960ba1b604082015260600190565b60208082526015908201527411195c1bdcda5d0e88141bdbdb081b9bdd081cd95d605a1b604082015260600190565b60208082526021908201527f76657374696e675363686564756c654964206973206265656e206372656174656040820152601960fa1b606082015260800190565b6020808252601a908201527f4f66666572696e67546f6b656e3a20616c726561647920736574000000000000604082015260600190565b6020808252601290820152711d995cdd1a5b99c81a5cc81c995d9bdad95960721b604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b60208082526038908201527f6f6e6c79207468652062656e656669636961727920616e64206f776e6572206360408201527f616e2072656c656173652076657374656420746f6b656e730000000000000000606082015260800190565b6020808252601190820152701a5b98dbdc9c9958dd08191958da5b585b607a1b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252601b908201527f4f66666572696e67546f6b656e3a205a65726f20616464726573730000000000604082015260600190565b6020808252601b908201527f4465706f7369743a20416d6f756e74206d757374206265203e20300000000000604082015260600190565b602080825260139082015272696e646578206f7574206f6620626f756e647360681b604082015260600190565b6020808252818101527f5265636f7665723a2043616e6e6f74206265207061796d656e7420746f6b656e604082015260600190565b6020808252601a908201527f486172766573743a204e6f6e2076616c696420706f6f6c206964000000000000604082015260600190565b602080825260409082018190527f4f7065726174696f6e733a2076657374696e672070657263656e746167652073908201527f686f756c642065786365656473203020616e6420696e746572696f7220313030606082015260800190565b60208082526021908201527f436861696e6c696e6b5072696365466565643a20696e76616c696420707269636040820152606560f81b606082015260800190565b815181526020808301519082015260408083015190820152606080830151908201526080808301519082015260a0808301519082015260c0808301519082015260e08083015190820152610100808301519082015261012080830151908201526101408083015190820152610160808301519082015261018080830151908201526101a080830151908201526101c091820151918101919091526101e00190565b8151151581526020808301516001600160a01b03169082015260408083015160ff1690820152606082015160c0820190600281106158c357fe5b806060840152506080830151608083015260a083015160a083015292915050565b85815260208082018690526080604083018190528201849052600090859060a08401835b87811015615936578383016001600160a01b03615925828761448c565b168352935090820190600101615908565b50848103606086015261594981876149a7565b9a9950505050505050505050565b9283526020830191909152604082015260600190565b91825260ff16602082015260400190565b60ff91909116815260200190565b60ff9290921682521515602082015260400190565b60ff929092168252602082015260400190565b60ff9390931683526020830191909152604082015260600190565b60405181810167ffffffffffffffff811182821017156159ee57600080fd5b604052919050565b60005b83811015615a115781810151838201526020016159f9565b838111156141c95750506000910152565b60ff81168114615a3157600080fd5b5056fea2646970667358221220ab1f229b3395644e5eabc533d58afd8f1620958afa7108f6b5391516eced792064736f6c634300060c00330000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b8419

Deployed Bytecode

0x6080604052600436106103765760003560e01c8063760b3180116101d1578063af7665ce11610102578063ec779b91116100a0578063f2fde38b1161006f578063f2fde38b146109eb578063f51321d714610a0b578063f7c469f014610a2b578063f9cd5c1214610a4b57610376565b8063ec779b911461096b578063ecf4aba01461098b578063eeda2ab9146109ab578063efccd9ac146109cb57610376565b8063b7813607116100dc578063b781360714610903578063c41978e714610918578063e2ec6ec31461092b578063ea1bb3d51461094b57610376565b8063af7665ce146108b9578063b430990f146108ce578063b6549f75146108ee57610376565b80638da5cb5b1161016f5780639e010ea8116101495780639e010ea81461082a5780639ef346b414610857578063a376391e14610884578063aaf5eb68146108a457610376565b80638da5cb5b146107d5578063923fe2a2146107ea578063930eaddc1461080a57610376565b80637e5734e7116101ab5780637e5734e71461076b578063867f3d301461078b5780638af104da146107a05780638b8615cf146107c057610376565b8063760b31801461072157806379795108146107365780637b9417c81461074b57610376565b80633af32abf116102ab5780635c7604db11610249578063679e87ae11610223578063679e87ae146106ac57806367d42a8b146106cc5780636e2e6b2b146106ec578063715018a61461070c57610376565b80635c7604db14610649578063634328ad1461065e578063671216ed1461067e57610376565b806348deb4711161028557806348deb471146105c65780634af3c9b7146105db5780634e34f26b146106095780635a7bb69a1461062957610376565b80633af32abf146105595780633f138d4b1461057957806346ab91bf1461059957610376565b8063229d54dc1161031857806324953eaa116102f257806324953eaa146104e4578063286dd3f51461050457806328fddfaf146105245780633a29257b1461053957610376565b8063229d54dc146104825780632374876c146104a257806323f93574146104c257610376565b80630b598473116103545780630b59847314610400578063130836171461042d57806316baee09146104425780631fd48b9a1461046257610376565b806304e3ccd61461037b57806306bc96d4146103b157806306cec857146103d3575b600080fd5b34801561038757600080fd5b5061039b610396366004614779565b610a78565b6040516103a89190614ba5565b60405180910390f35b3480156103bd57600080fd5b506103d16103cc366004614791565b610ac9565b005b3480156103df57600080fd5b506103f36103ee366004614520565b610e81565b6040516103a89190614b9a565b34801561040c57600080fd5b5061042061041b366004614779565b610e92565b6040516103a89190614a1f565b34801561043957600080fd5b5061039b610eb9565b34801561044e57600080fd5b5061039b61045d3660046145ff565b610ebf565b34801561046e57600080fd5b5061042061047d366004614520565b610fff565b34801561048e57600080fd5b506103d161049d36600461453b565b61101a565b3480156104ae57600080fd5b506103d16104bd36600461486b565b6112bb565b3480156104ce57600080fd5b506104d761180a565b6040516103a8919061597e565b3480156104f057600080fd5b506103d16104ff3660046146cf565b61180f565b34801561051057600080fd5b506103d161051f366004614520565b61190b565b34801561053057600080fd5b506103f3611993565b34801561054557600080fd5b506103d1610554366004614698565b61199c565b34801561056557600080fd5b506103f3610574366004614520565b611b64565b34801561058557600080fd5b506103d16105943660046145d5565b611b82565b3480156105a557600080fd5b506105b96105b4366004614779565b611c92565b6040516103a891906157e8565b3480156105d257600080fd5b5061039b611d54565b3480156105e757600080fd5b506105fb6105f6366004614583565b611d5a565b6040516103a8929190614b42565b34801561061557600080fd5b506103f3610624366004614520565b611f03565b34801561063557600080fd5b5061039b610644366004614520565b611f18565b34801561065557600080fd5b506103d1611f33565b34801561066a57600080fd5b506103f361067936600461486b565b611fc0565b34801561068a57600080fd5b5061069e610699366004614648565b611fd5565b6040516103a8929190614bae565b3480156106b857600080fd5b506103d16106c736600461470f565b61235b565b3480156106d857600080fd5b506103d16106e7366004614779565b6125a0565b3480156106f857600080fd5b506103d161070736600461486b565b6127a4565b34801561071857600080fd5b506103d1612845565b34801561072d57600080fd5b5061039b6128ce565b34801561074257600080fd5b5061039b6128d4565b34801561075757600080fd5b506103d1610766366004614520565b61296b565b34801561077757600080fd5b50610420610786366004614779565b6129f6565b34801561079757600080fd5b506103f3612a03565b3480156107ac57600080fd5b5061039b6107bb3660046145d5565b612a0c565b3480156107cc57600080fd5b5061039b612a3f565b3480156107e157600080fd5b50610420612a44565b3480156107f657600080fd5b506103d1610805366004614520565b612a53565b34801561081657600080fd5b506103f3610825366004614520565b612c41565b34801561083657600080fd5b5061084a610845366004614583565b612c56565b6040516103a89190614ae0565b34801561086357600080fd5b50610877610872366004614779565b612df8565b6040516103a89190615889565b34801561089057600080fd5b506103d161089f366004614973565b612e8e565b3480156108b057600080fd5b5061039b612f74565b3480156108c557600080fd5b50610420612f80565b3480156108da57600080fd5b5061039b6108e9366004614779565b612f8f565b3480156108fa57600080fd5b506103d1612fa1565b34801561090f57600080fd5b5061042061303b565b6103d16109263660046148f4565b61304a565b34801561093757600080fd5b506103d16109463660046146cf565b613588565b34801561095757600080fd5b5061039b610966366004614779565b61367f565b34801561097757600080fd5b506103d1610986366004614956565b61374d565b34801561099757600080fd5b506104d76109a6366004614520565b6137fc565b3480156109b757600080fd5b506103d16109c6366004614520565b613811565b3480156109d757600080fd5b506103d16109e6366004614520565b613a0f565b3480156109f757600080fd5b506103d1610a06366004614520565b613ae8565b348015610a1757600080fd5b50610877610a263660046145d5565b613ba9565b348015610a3757600080fd5b5061039b610a46366004614520565b613bbe565b348015610a5757600080fd5b50610a6b610a66366004614583565b613be2565b6040516103a89190614b2f565b6000610a82610eb9565b8210610aa95760405162461bcd60e51b8152600401610aa0906156b0565b60405180910390fd5b60a58281548110610ab657fe5b906000526020600020015490505b919050565b610ad1613c86565b6001600160a01b0316610ae2612a44565b6001600160a01b031614610b085760405162461bcd60e51b8152600401610aa0906151f4565b8051600a60ff90911610610b2e5760405162461bcd60e51b8152600401610aa090614f8f565b60648160c001511115610b535760405162461bcd60e51b8152600401610aa090615749565b60648160e001511115610b785760405162461bcd60e51b8152600401610aa090615749565b600081610100015111610b9d5760405162461bcd60e51b8152600401610aa090615257565b600081610120015111610bc25760405162461bcd60e51b8152600401610aa090615257565b6001816101a001511015610be85760405162461bcd60e51b8152600401610aa090614bef565b806101000151816101a0015111158015610c0c5750806101200151816101a0015111155b610c285760405162461bcd60e51b8152600401610aa090614e07565b8060200151816040015111610c4f5760405162461bcd60e51b8152600401610aa090614eef565b80516020820151600c60ff8316600a8110610c6657fe5b600f0201556040820151600c60ff8316600a8110610c8057fe5b600f0201600101819055508160600151600c8260ff16600a8110610ca057fe5b600f0201600201819055508160800151600c8260ff16600a8110610cc057fe5b600f0201600401819055508160a00151600c8260ff16600a8110610ce057fe5b600f0201600501819055508160c00151600c8260ff16600a8110610d0057fe5b600f0201600701819055508160e00151600c8260ff16600a8110610d2057fe5b600f020160080181905550816101000151600c8260ff16600a8110610d4157fe5b600f020160090181905550816101200151600c8260ff16600a8110610d6257fe5b600f0201600a0181905550816101400151600c8260ff16600a8110610d8357fe5b600f0201600b0181905550816101600151600c8260ff16600a8110610da457fe5b600f0201600c0181905550816101800151600c8260ff16600a8110610dc557fe5b600f0201600d0181905550816101a00151600c8260ff16600a8110610de657fe5b600f0201600e0181905550600080600090505b600a60ff82161015610e3957610e2f600c8260ff16600a8110610e1857fe5b600f02016002015483613c8a90919063ffffffff16565b9150600101610df9565b50600b81905560608301516040517f0337fe1bfa5f3181c99d7eba7c45ff9337293653f9b8d32750e83fda65a15cdd91610e7491859061596d565b60405180910390a1505050565b6000610e8c82611b64565b92915050565b60098181548110610e9f57fe5b6000918252602090912001546001600160a01b0316905081565b60a55490565b6000600a8310610ee15760405162461bcd60e51b8152600401610aa090614c6a565b60005b601460ff82161015610feb576000610eff868360ff16612a0c565b9050610f096143c6565b600082815260a66020908152604091829020825160c081018452815460ff808216151583526001600160a01b0361010083041694830194909452600160a81b81048416948201949094529290916060840191600160b01b9004166001811115610f6e57fe5b6001811115610f7957fe5b815260018281015460208301526002909201546040909101528151919250901515148015610fad575085816040015160ff16145b8015610fd25750846001811115610fc057fe5b81606001516001811115610fd057fe5b145b15610fe157509150610ff89050565b5050600101610ee4565b50610ff584613bbe565b90505b9392505050565b6005602052600090815260409020546001600160a01b031681565b611022613c86565b6001600160a01b0316611033612a44565b6001600160a01b0316146110595760405162461bcd60e51b8152600401610aa0906151f4565b6001600160a01b03831660009081526003602052604090205460ff16156110925760405162461bcd60e51b8152600401610aa090614f68565b6001600160a01b0382166110b85760405162461bcd60e51b8152600401610aa090614e53565b826001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b1580156110f157600080fd5b505afa158015611105573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061112991906148d8565b60ff168160ff161461114d5760405162461bcd60e51b8152600401610aa0906155e0565b6000826001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a06040518083038186803b15801561118857600080fd5b505afa15801561119c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111c09190614887565b505050915050600081136111e65760405162461bcd60e51b8152600401610aa090615063565b6001600160a01b0384811660008181526003602090815260408083208054600160ff1991821681179092556004805492830190557f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b90910180546001600160a01b031990811690961790556005835281842080549095169589169590951790935560079052819020805490921660ff851617909155517f9ab7d78b094d546af0a8ba58718267d8c9da73297086650a15ac147bf262beb8906112ad90869086908690614a57565b60405180910390a150505050565b600260005414156112de5760405162461bcd60e51b8152600401610aa09061560b565b60026000556112ec33613caf565b156113095760405162461bcd60e51b8152600401610aa090615229565b3332146113285760405162461bcd60e51b8152600401610aa090614c33565b60aa5460ff1661134a5760405162461bcd60e51b8152600401610aa090614d25565b600c8160ff16600a811061135a57fe5b600f02016001015442116113805760405162461bcd60e51b8152600401610aa090615037565b600a60ff8216106113a35760405162461bcd60e51b8152600401610aa090615712565b33600090815260a26020908152604080832060ff851684529091529020546113dd5760405162461bcd60e51b8152600401610aa09061508f565b33600090815260a26020908152604080832060ff8086168552925290912060010154161561141d5760405162461bcd60e51b8152600401610aa09061519e565b33600090815260a26020908152604080832060ff8516845282528083206001908101805460ff1916909117905560a390915290205461146c5760ff8116600090815260a3602052604090204290555b33600090815260a26020908152604080832060ff851684529091529020600201541561163a576000600c8260ff16600a81106114a457fe5b600f020160070154606403111561156e576000611513670de0b6b3a764000061150d606461150d600c8760ff16600a81106114db57fe5b600f02016007015433600090815260a26020908152604080832060ff8c16845290915290206002015490606403613cb5565b90613cef565b600a5490915061152d906001600160a01b03163383613d21565b60ff8216337fc305943c3628d4dd8341bbd076d28aeea01cd21dc0b5ea5a98cc9a2260e2ad02836000604051611564929190614bae565b60405180910390a3505b6000600c8260ff16600a811061158057fe5b600f020160070154111561163a5760006115e3670de0b6b3a764000061150d606461150d600c8760ff16600a81106115b457fe5b600f02016007015433600090815260a26020908152604080832060ff8c16845290915290206002015490613cb5565b905060006115f43384600085613d77565b905060ff8316337ff884b5cb2fcc70d1bee1605845b6cc9a581420a81e54ea557e716120557b886c8460008560405161162f93929190615957565b60405180910390a350505b33600090815260a26020908152604080832060ff8516845290915290206003015415611802576000600c8260ff16600a811061167257fe5b600f02016008015460640311156117365760006116db670de0b6b3a764000061150d606461150d600c8760ff16600a81106116a957fe5b600f02016008015433600090815260a26020908152604080832060ff8c16845290915290206003015490606403613cb5565b600a549091506116f5906001600160a01b03163383613d21565b60ff8216337fc305943c3628d4dd8341bbd076d28aeea01cd21dc0b5ea5a98cc9a2260e2ad0283600160405161172c929190614bae565b60405180910390a3505b6000600c8260ff16600a811061174857fe5b600f02016008015411156118025760006117ab670de0b6b3a764000061150d606461150d600c8760ff16600a811061177c57fe5b600f02016008015433600090815260a26020908152604080832060ff8c16845290915290206003015490613cb5565b905060006117bc3384600185613d77565b905060ff8316337ff884b5cb2fcc70d1bee1605845b6cc9a581420a81e54ea557e716120557b886c846001856040516117f793929190615957565b60405180910390a350505b506001600055565b600a81565b611817613c86565b6001600160a01b0316611828612a44565b6001600160a01b03161461184e5760405162461bcd60e51b8152600401610aa0906151f4565b60005b818110156119065760006002600085858581811061186b57fe5b90506020020160208101906118809190614520565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558282828181106118b457fe5b90506020020160208101906118c99190614520565b6001600160a01b03167ff1abf01a1043b7c244d128e8595cf0c1d10743b022b03a02dffd8ca3bf729f5a60405160405180910390a2600101611851565b505050565b611913613c86565b6001600160a01b0316611924612a44565b6001600160a01b03161461194a5760405162461bcd60e51b8152600401610aa0906151f4565b6001600160a01b038116600081815260026020526040808220805460ff19169055517ff1abf01a1043b7c244d128e8595cf0c1d10743b022b03a02dffd8ca3bf729f5a9190a250565b60a45460ff1681565b6119a4613c86565b6001600160a01b03166119b5612a44565b6001600160a01b0316146119db5760405162461bcd60e51b8152600401610aa0906151f4565b6001600160a01b03821660009081526008602052604090205460ff1615611a145760405162461bcd60e51b8152600401610aa090614f68565b816001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015611a4d57600080fd5b505afa158015611a61573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a8591906148d8565b60ff168160ff1614611aa95760405162461bcd60e51b8152600401610aa0906155e0565b6001600160a01b03821660008181526008602090815260408083208054600160ff1991821681179092556009805492830190557f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af90910180546001600160a01b031916909517909455600790915290819020805490921660ff841617909155517f933a948e7b32894b583810019aab7c6389638c0ab11541029c510367b491d9d890611b589084908490614ac4565b60405180910390a15050565b6001600160a01b031660009081526002602052604090205460ff1690565b611b8a613c86565b6001600160a01b0316611b9b612a44565b6001600160a01b031614611bc15760405162461bcd60e51b8152600401610aa0906151f4565b6001600160a01b03821660009081526003602052604090205460ff16158015611c0357506001600160a01b03821660009081526008602052604090205460ff16155b611c1f5760405162461bcd60e51b8152600401610aa0906156dd565b600a546001600160a01b0383811691161415611c4d5760405162461bcd60e51b8152600401610aa0906152c5565b611c616001600160a01b0383163383613d21565b7f74545154aac348a3eac92596bd1971957ca94795f4e954ec5f613b55fab781298282604051611b58929190614a7d565b611c9a6143fc565b600c82600a8110611ca757fe5b600f0201604051806101e001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481526020016005820154815260200160068201548152602001600782015481526020016008820154815260200160098201548152602001600a8201548152602001600b8201548152602001600c8201548152602001600d8201548152602001600e820154815250509050919050565b60a75490565b606080808367ffffffffffffffff81118015611d7557600080fd5b50604051908082528060200260200182016040528015611d9f578160200160208202803683370190505b50905060608467ffffffffffffffff81118015611dbb57600080fd5b50604051908082528060200260200182016040528015611de5578160200160208202803683370190505b50905060005b60ff8116861115611ef6576001600160a01b038816600090815260a26020526040812090888860ff8516818110611e1e57fe5b9050602002016020810190611e33919061486b565b60ff1660ff16815260200190815260200160002060000154838260ff1681518110611e5a57fe5b60200260200101818152505060a26000896001600160a01b03166001600160a01b03168152602001908152602001600020600088888460ff16818110611e9c57fe5b9050602002016020810190611eb1919061486b565b60ff90811682526020820192909252604001600020600101548351908216918491908416908110611ede57fe5b91151560209283029190910190910152600101611deb565b5090969095509350505050565b60086020526000908152604090205460ff1681565b6001600160a01b0316600090815260a8602052604090205490565b611f3b613c86565b6001600160a01b0316611f4c612a44565b6001600160a01b031614611f725760405162461bcd60e51b8152600401610aa0906151f4565b60aa805460ff19811660ff9182161517918290556040517fdf75c1ae406d54b1ec8de5ba72162c5fbe8458e7191ca79dbf6d9df3a97da3eb92611fb6921690614b9a565b60405180910390a1565b60a96020526000908152604090205460ff1681565b600080856001600160a01b03811615612092576001600160a01b03811660009081526008602052604090205460ff168061204b57506001600160a01b03811660009081526003602052604090205460ff16801561204b57506001600160a01b038181166000908152600560205260409020541615155b801561207157506001600160a01b03811660009081526007602052604090205460ff1615155b61208d5760405162461bcd60e51b8152600401610aa0906151cd565b6120ba565b6006546001600160a01b03166120ba5760405162461bcd60e51b8152600401610aa09061535e565b60006001600160a01b038816156120ec576001600160a01b03881660009081526007602052604090205460ff166120ef565b60125b6001600160a01b03891660009081526008602052604090205490915060ff16156121345761212d600a82900a61150d89670de0b6b3a7640000613cb5565b93506122b0565b60006001600160a01b03891615612165576001600160a01b03808a1660009081526005602052604090205416612172565b6006546001600160a01b03165b90506000816001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a06040518083038186803b1580156121af57600080fd5b505afa1580156121c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121e79190614887565b5050509150506000811361220d5760405162461bcd60e51b8152600401610aa0906157a7565b6000826001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b15801561224857600080fd5b505afa15801561225c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061228091906148d8565b60ff1690506122aa848201600a0a61150d670de0b6b3a76400006122a48e87613cb5565b90613cb5565b96505050505b6000600c8760ff16600a81106122c257fe5b600f020160020154116122e75760405162461bcd60e51b8152600401610aa09061528e565b6000808660018111156122f657fe5b1461231857600c8760ff16600a811061230b57fe5b600f0201600c0154612331565b600c8760ff16600a811061232857fe5b600f0201600b01545b905061234d8161150d670de0b6b3a76400006122a48982613cb5565b935050505094509492505050565b612363613c86565b6001600160a01b0316612374612a44565b6001600160a01b03161461239a5760405162461bcd60e51b8152600401610aa0906151f4565b80156123b757600a546123b7906001600160a01b03163383613d21565b6040514790339082156108fc029083906000818181858888f193505050501580156123e6573d6000803e3d6000fd5b5060608367ffffffffffffffff8111801561240057600080fd5b5060405190808252806020026020018201604052801561242a578160200160208202803683370190505b50905060005b848110156125595785858281811061244457fe5b90506020020160208101906124599190614520565b6001600160a01b03166370a08231306040518263ffffffff1660e01b81526004016124849190614a1f565b60206040518083038186803b15801561249c57600080fd5b505afa1580156124b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124d49190614853565b8282815181106124e057fe5b60200260200101818152505060008282815181106124fa57fe5b60200260200101511115612551576125513383838151811061251857fe5b602002602001015188888581811061252c57fe5b90506020020160208101906125419190614520565b6001600160a01b03169190613d21565b600101612430565b507feeb6fba8e84827c168dfdff263a9cfed1ff24c528b523e0d96dbfe0b9983a42383838787856040516125919594939291906158e4565b60405180910390a15050505050565b600260005414156125c35760405162461bcd60e51b8152600401610aa09061560b565b6002600090815581815260a6602052604090205460ff1615156001146125fb5760405162461bcd60e51b8152600401610aa090614e81565b600081815260a660205260408120805490916101009091046001600160a01b0316331490612627612a44565b6001600160a01b0316336001600160a01b031614905081806126465750805b6126625760405162461bcd60e51b8152600401610aa090615583565b6040805160c081018252845460ff808216151583526001600160a01b036101008304166020840152600160a81b82048116938301939093526000926126e4929187916060840191600160b01b90041660018111156126bc57fe5b60018111156126c757fe5b815260200160018201548152602001600282015481525050613f33565b9050600081116127065760405162461bcd60e51b8152600401610aa090615306565b60028401546127159082613c8a565b600285015560a7546127279082614180565b60a7558354600a5461274c916001600160a01b03918216916101009091041683613d21565b83546040516101009091046001600160a01b0316907fc8fa66dff4b9073528c3f1bf21a8dc9a18fdf09847e88e96188bc953aef519f0906127909088908590614bae565b60405180910390a250506001600055505050565b6127ac613c86565b6001600160a01b03166127bd612a44565b6001600160a01b0316146127e35760405162461bcd60e51b8152600401610aa0906151f4565b60ff808216600090815260a9602052604090819020805460ff19811690841615179081905590517f7c3c0175a14dd28663d220c441cc04cc1aebec26736dc30e94e6cd28dfce55969261283a92859291169061598c565b60405180910390a150565b61284d613c86565b6001600160a01b031661285e612a44565b6001600160a01b0316146128845760405162461bcd60e51b8152600401610aa0906151f4565b6001546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600180546001600160a01b0319169055565b600b5481565b60a754600a546040516370a0823160e01b81526000926129669290916001600160a01b03909116906370a0823190612910903090600401614a1f565b60206040518083038186803b15801561292857600080fd5b505afa15801561293c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129609190614853565b90614180565b905090565b612973613c86565b6001600160a01b0316612984612a44565b6001600160a01b0316146129aa5760405162461bcd60e51b8152600401610aa0906151f4565b6001600160a01b038116600081815260026020526040808220805460ff19166001179055517fd1bba68c128cc3f427e5831b3c6f99f480b6efa6b9e80c757768f6124158cc3f9190a250565b60048181548110610e9f57fe5b60aa5460ff1681565b60008282604051602001612a219291906149e1565b60405160208183030381529060405280519060200120905092915050565b601281565b6001546001600160a01b031690565b612a5b613c86565b6001600160a01b0316612a6c612a44565b6001600160a01b031614612a925760405162461bcd60e51b8152600401610aa0906151f4565b6001600160a01b03811660009081526008602052604090205460ff16612aca5760405162461bcd60e51b8152600401610aa090615443565b6001600160a01b0381166000908152600860205260408120805460ff19169055600954905b600954811015612b3b57826001600160a01b031660098281548110612b1057fe5b6000918252602090912001546001600160a01b03161415612b3357809150612b3b565b600101612aef565b50600954811415612b5e5760405162461bcd60e51b8152600401610aa09061500a565b600980546000198101908110612b7057fe5b600091825260209091200154600980546001600160a01b039092169183908110612b9657fe5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506009805480612bcf57fe5b60008281526020808220830160001990810180546001600160a01b03191690559092019092556001600160a01b038416825260079052604090819020805460ff19169055517fe7f312517e7dceb43a5ab7883001f03f6e4bc288e9a65359c7bbe3eaaadfdcbb90611b58908490614a1f565b60036020526000908152604090205460ff1681565b6060808267ffffffffffffffff81118015612c7057600080fd5b50604051908082528060200260200182016040528015612caa57816020015b612c97614472565b815260200190600190039081612c8f5790505b50905060005b60ff8116841115612def576000600c86868460ff16818110612cce57fe5b9050602002016020810190612ce3919061486b565b60ff16600a8110612cf057fe5b600f0201600301541115612de7576001600160a01b038616600090815260a26020526040812090868660ff8516818110612d2657fe5b9050602002016020810190612d3b919061486b565b60ff1660ff16815260200190815260200160002060020154828260ff1681518110612d6257fe5b602090810291909101810151919091526001600160a01b038716600090815260a29091526040812090868660ff8516818110612d9a57fe5b9050602002016020810190612daf919061486b565b60ff1660ff16815260200190815260200160002060030154828260ff1681518110612dd657fe5b602002602001015160200181815250505b600101612cb0565b50949350505050565b612e006143c6565b600082815260a66020908152604091829020825160c081018452815460ff808216151583526001600160a01b0361010083041694830194909452600160a81b81048416948201949094529290916060840191600160b01b9004166001811115612e6557fe5b6001811115612e7057fe5b81526001820154602082015260029091015460409091015292915050565b612e96613c86565b6001600160a01b0316612ea7612a44565b6001600160a01b031614612ecd5760405162461bcd60e51b8152600401610aa0906151f4565b600a60ff841610612ef05760405162461bcd60e51b8152600401610aa090614f8f565b818111612f0f5760405162461bcd60e51b8152600401610aa090614eef565b81600c8460ff16600a8110612f2057fe5b600f02015580600c60ff8516600a8110612f3657fe5b600f0201600101819055507f5372037da2223d5e11fe0102a9f534f52dad6a840605685d743e869c86dfea1e838383604051610e74939291906159b4565b670de0b6b3a764000081565b6006546001600160a01b031681565b60a36020526000908152604090205481565b612fa9613c86565b6001600160a01b0316612fba612a44565b6001600160a01b031614612fe05760405162461bcd60e51b8152600401610aa0906151f4565b60a45460ff16156130035760405162461bcd60e51b8152600401610aa09061550d565b60a4805460ff191660011790556040517f44825a4b2df8acb19ce4e1afba9aa850c8b65cdb7942e2078f27d0b0960efee690600090a1565b600a546001600160a01b031681565b6002600054141561306d5760405162461bcd60e51b8152600401610aa09061560b565b600260005561307b33613caf565b156130985760405162461bcd60e51b8152600401610aa090615229565b3332146130b75760405162461bcd60e51b8152600401610aa090614c33565b80428110156130d85760405162461bcd60e51b8152600401610aa09061533d565b600a60ff8816106130fb5760405162461bcd60e51b8152600401610aa090615167565b6000600c8860ff16600a811061310d57fe5b600f020160020154116131325760405162461bcd60e51b8152600401610aa090615466565b600c8760ff16600a811061314257fe5b600f02015442116131655760405162461bcd60e51b8152600401610aa090614cf9565b600c8760ff16600a811061317557fe5b600f020160010154421061319b5760405162461bcd60e51b8152600401610aa0906150c6565b6001600160a01b0386166131ad573494505b600085116131cd5760405162461bcd60e51b8152600401610aa090615679565b60ff808816600090815260a960205260409020541615806131f257506131f233610e81565b61320e5760405162461bcd60e51b8152600401610aa090614dd0565b6001600160a01b03861615613232576132326001600160a01b0387163330886141a8565b60008061324188888b88611fd5565b91509150858210156132655760405162461bcd60e51b8152600401610aa0906150f1565b613297670de0b6b3a7640000600c8b60ff16600a811061328157fe5b600f020160040154613cb590919063ffffffff16565b8110156132b65760405162461bcd60e51b8152600401610aa090615417565b33600090815260a26020908152604080832060ff8d1684529091529020546132de9083613c8a565b33600090815260a26020908152604080832060ff8e16845290915281209190915585600181111561330b57fe5b14156133625733600090815260a26020908152604080832060ff8d16845290915290206002015461333c9082613c8a565b33600090815260a26020908152604080832060ff8e1684529091529020600201556133c3565b600185600181111561337057fe5b14156133c35733600090815260a26020908152604080832060ff8d1684529091529020600301546133a19082613c8a565b33600090815260a26020908152604080832060ff8e1684529091529020600301555b6000600c8a60ff16600a81106133d557fe5b600f020160050154111561343757600c8960ff16600a81106133f357fe5b600f02016005015433600090815260a26020908152604080832060ff8e16845290915290205411156134375760405162461bcd60e51b8152600401610aa090614fc6565b61346182600c8b60ff16600a811061344b57fe5b600f020160060154613c8a90919063ffffffff16565b600c8a60ff16600a811061347157fe5b600f0201600601819055506134a681600c8b60ff16600a811061349057fe5b600f020160030154613c8a90919063ffffffff16565b600c8a60ff16600a81106134b657fe5b600f0201600301819055506134f3670de0b6b3a7640000600c8b60ff16600a81106134dd57fe5b600f020160020154613cb590919063ffffffff16565b600c8a60ff16600a811061350357fe5b600f02016003015411156135295760405162461bcd60e51b8152600401610aa090614cb5565b60ff8916337f1c4a8d4f1ddd407e59551cf66b700eecbd0c335af3e8f9b417f0970b88da375b8a8a86868b600181111561355f57fe5b604051613570959493929190614a96565b60405180910390a35050600160005550505050505050565b613590613c86565b6001600160a01b03166135a1612a44565b6001600160a01b0316146135c75760405162461bcd60e51b8152600401610aa0906151f4565b60005b81811015611906576001600260008585858181106135e457fe5b90506020020160208101906135f99190614520565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905582828281811061362d57fe5b90506020020160208101906136429190614520565b6001600160a01b03167fd1bba68c128cc3f427e5831b3c6f99f480b6efa6b9e80c757768f6124158cc3f60405160405180910390a26001016135ca565b600081815260a6602052604081205460ff1615156001146136b25760405162461bcd60e51b8152600401610aa090614e81565b6136ba6143c6565b600083815260a66020908152604091829020825160c081018452815460ff808216151583526001600160a01b0361010083041694830194909452600160a81b81048416948201949094529290916060840191600160b01b900416600181111561371f57fe5b600181111561372a57fe5b8152602001600182015481526020016002820154815250509050610ff881613f33565b613755613c86565b6001600160a01b0316613766612a44565b6001600160a01b03161461378c5760405162461bcd60e51b8152600401610aa0906151f4565b600a60ff8316106137af5760405162461bcd60e51b8152600401610aa090614f8f565b80600c8360ff16600a81106137c057fe5b600f0201600201819055507f9f932351fe5c5d712cc480a47b51e36ba8f85171f857227891f28bcba7a2ad718282604051611b589291906159a1565b60076020526000908152604090205460ff1681565b613819613c86565b6001600160a01b031661382a612a44565b6001600160a01b0316146138505760405162461bcd60e51b8152600401610aa0906151f4565b6001600160a01b03811660009081526003602052604090205460ff166138885760405162461bcd60e51b8152600401610aa090615443565b6001600160a01b0381166000908152600360205260408120805460ff19169055600454905b6004548110156138f957826001600160a01b0316600482815481106138ce57fe5b6000918252602090912001546001600160a01b031614156138f1578091506138f9565b6001016138ad565b5060045481141561391c5760405162461bcd60e51b8152600401610aa09061500a565b60048054600019810190811061392e57fe5b600091825260209091200154600480546001600160a01b03909216918390811061395457fe5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600480548061398d57fe5b60008281526020808220830160001990810180546001600160a01b031990811690915593019093556001600160a01b0385168152600783526040808220805460ff19169055600590935282902080549091169055517f3c528cf383dc76a2d8cd891430b35002aff6dd37e81ae797363846e6e596fc9c90611b58908490614a1f565b613a17613c86565b6001600160a01b0316613a28612a44565b6001600160a01b031614613a4e5760405162461bcd60e51b8152600401610aa0906151f4565b6001600160a01b038116613a745760405162461bcd60e51b8152600401610aa090615642565b600a546001600160a01b031615613a9d5760405162461bcd60e51b8152600401610aa0906154d6565b600a80546001600160a01b0319166001600160a01b0383161790556040517f53be4bd4a6ecb59cb3e1a8e5e03499a324ebba81edc64729e18d07baf30038e69061283a908390614a1f565b613af0613c86565b6001600160a01b0316613b01612a44565b6001600160a01b031614613b275760405162461bcd60e51b8152600401610aa0906151f4565b6001600160a01b038116613b4d5760405162461bcd60e51b8152600401610aa090614d53565b6001546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600180546001600160a01b0319166001600160a01b0392909216919091179055565b613bb16143c6565b610ff86108728484612a0c565b6001600160a01b038116600090815260a86020526040812054610e8c908390612a0c565b6060808267ffffffffffffffff81118015613bfc57600080fd5b50604051908082528060200260200182016040528015613c26578160200160208202803683370190505b50905060005b60ff8116841115612def57613c648686868460ff16818110613c4a57fe5b9050602002016020810190613c5f919061486b565b6141cf565b828260ff1681518110613c7357fe5b6020908102919091010152600101613c2c565b3390565b600082820183811015610ff85760405162461bcd60e51b8152600401610aa090614d99565b3b151590565b600082613cc457506000610e8c565b82820282848281613cd157fe5b0414610ff85760405162461bcd60e51b8152600401610aa090615126565b6000808211613d105760405162461bcd60e51b8152600401610aa090614f31565b818381613d1957fe5b049392505050565b6119068363a9059cbb60e01b8484604051602401613d40929190614a7d565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152614250565b600081613d826128d4565b1015613da05760405162461bcd60e51b8152600401610aa09061538a565b6000613dab86613bbe565b600081815260a6602052604090205490915061010090046001600160a01b031615613de85760405162461bcd60e51b8152600401610aa090615495565b6040518060c00160405280600115158152602001876001600160a01b031681526020018660ff168152602001856001811115613e2057fe5b815260208082018690526000604092830181905284815260a6825282902083518154928501519385015160ff1990931690151517610100600160a81b0319166101006001600160a01b03909416939093029290921760ff60a81b1916600160a81b60ff9092169190910217808255606083015190829060ff60b01b1916600160b01b836001811115613eae57fe5b02179055506080820151600182015560a09091015160029091015560a754613ed69084613c8a565b60a75560a5805460018181019092557fb29a2b3b6f2ff1b765777a231725941da5072cc4fcc30ac4a2ce09706e8ddeff018290556001600160a01b038716600090815260a860205260409020805490910190559050949350505050565b600080613f3e6142df565b9050600c836040015160ff16600a8110613f5457fe5b600f0201600d015460a36000856040015160ff1681526020019081526020016000205401811015613f89576000915050610ac4565b600083606001516001811115613f9b57fe5b148015613fef5750613feb600c846040015160ff16600a8110613fba57fe5b600f02016009015460a36000866040015160ff16815260200190815260200160002054613c8a90919063ffffffff16565b8110155b8061405b575060018360600151600181111561400757fe5b14801561405b5750614057600c846040015160ff16600a811061402657fe5b600f0201600a015460a36000866040015160ff16815260200190815260200160002054613c8a90919063ffffffff16565b8110155b80614068575060a45460ff165b156140885760a0830151608084015161408091614180565b915050610ac4565b60408084015160ff16600090815260a3602052908120546140aa908390614180565b90506000600c856040015160ff16600a81106140c257fe5b600f0201600e0154905060006140e18284613cef90919063ffffffff16565b905060006140ef8284613cb5565b90506000614159818960600151600181111561410757fe5b1461412d57600c896040015160ff16600a811061412057fe5b600f0201600a015461414a565b600c896040015160ff16600a811061414157fe5b600f0201600901545b60808a015161150d9085613cb5565b90506141728860a001518261418090919063ffffffff16565b9650610ac495505050505050565b6000828211156141a25760405162461bcd60e51b8152600401610aa090614eb8565b50900390565b6141c9846323b872dd60e01b858585604051602401613d4093929190614a33565b50505050565b600080600c8360ff16600a81106141e257fe5b600f020160060154111561424857614241600c8360ff16600a811061420357fe5b600f0201600601546001600160a01b038516600090815260a26020908152604080832060ff8816845290915290205461150d9064e8d4a51000613cb5565b9050610e8c565b506000610e8c565b60606142a5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166142e39092919063ffffffff16565b80519091501561190657808060200190518101906142c39190614759565b6119065760405162461bcd60e51b8152600401610aa090615539565b4290565b6060610ff58484600085856142f785613caf565b6143135760405162461bcd60e51b8152600401610aa0906153e0565b60006060866001600160a01b031685876040516143309190614a03565b60006040518083038185875af1925050503d806000811461436d576040519150601f19603f3d011682016040523d82523d6000602084013e614372565b606091505b509150915061438282828661438d565b979650505050505050565b6060831561439c575081610ff8565b8251156143ac5782518084602001fd5b8160405162461bcd60e51b8152600401610aa09190614bbc565b6040805160c081018252600080825260208201819052918101829052906060820190815260200160008152602001600081525090565b604051806101e001604052806000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b604051806040016040528060008152602001600081525090565b80356001600160a01b0381168114610e8c57600080fd5b60008083601f8401126144b4578182fd5b50813567ffffffffffffffff8111156144cb578182fd5b60208301915083602080830285010111156144e557600080fd5b9250929050565b803560028110610e8c57600080fd5b8035610e8c81615a22565b805169ffffffffffffffffffff81168114610e8c57600080fd5b600060208284031215614531578081fd5b610ff8838361448c565b60008060006060848603121561454f578182fd5b614559858561448c565b9250614568856020860161448c565b9150604084013561457881615a22565b809150509250925092565b600080600060408486031215614597578283fd5b6145a1858561448c565b9250602084013567ffffffffffffffff8111156145bc578283fd5b6145c8868287016144a3565b9497909650939450505050565b600080604083850312156145e7578182fd5b6145f1848461448c565b946020939093013593505050565b600080600060608486031215614613578283fd5b83356001600160a01b0381168114614629578384fd5b92506020840135915061463f85604086016144ec565b90509250925092565b6000806000806080858703121561465d578081fd5b614667868661448c565b935060208501359250604085013561467e81615a22565b915061468d86606087016144ec565b905092959194509250565b600080604083850312156146aa578182fd5b6146b4848461448c565b915060208301356146c481615a22565b809150509250929050565b600080602083850312156146e1578182fd5b823567ffffffffffffffff8111156146f7578283fd5b614703858286016144a3565b90969095509350505050565b600080600060408486031215614723578081fd5b833567ffffffffffffffff811115614739578182fd5b614745868287016144a3565b909790965060209590950135949350505050565b60006020828403121561476a578081fd5b81518015158114610ff8578182fd5b60006020828403121561478a578081fd5b5035919050565b60006101c08083850312156147a4578182fd5b6147ad816159cf565b90506147b984846144fb565b81526020830135602082015260408301356040820152606083013560608201526080830135608082015260a083013560a082015260c083013560c082015260e083013560e08201526101008084013581830152506101208084013581830152506101408084013581830152506101608084013581830152506101808084013581830152506101a08084013581830152508091505092915050565b600060208284031215614864578081fd5b5051919050565b60006020828403121561487c578081fd5b8135610ff881615a22565b600080600080600060a0868803121561489e578283fd5b6148a88787614506565b94506020860151935060408601519250606086015191506148cc8760808801614506565b90509295509295909350565b6000602082840312156148e9578081fd5b8151610ff881615a22565b60008060008060008060c0878903121561490c578384fd5b863561491781615a22565b9550614926886020890161448c565b9450604087013593506060870135925061494388608089016144ec565b915060a087013590509295509295509295565b60008060408385031215614968578182fd5b82356145f181615a22565b600080600060608486031215614987578081fd5b833561499281615a22565b95602085013595506040909401359392505050565b6000815180845260208085019450808401835b838110156149d6578151875295820195908201906001016149ba565b509495945050505050565b60609290921b6bffffffffffffffffffffffff19168252601482015260340190565b60008251614a158184602087016159f6565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03938416815291909216602082015260ff909116604082015260600190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b03959095168552602085019390935260408401919091526060830152608082015260a00190565b6001600160a01b0392909216825260ff16602082015260400190565b602080825282518282018190526000919060409081850190868401855b82811015614b2257815180518552860151868501529284019290850190600101614afd565b5091979650505050505050565b600060208252610ff860208301846149a7565b600060408252614b5560408301856149a7565b828103602084810191909152845180835285820192820190845b81811015614b8d578451151583529383019391830191600101614b6f565b5090979650505050505050565b901515815260200190565b90815260200190565b918252602082015260400190565b6000602082528251806020840152614bdb8160408501602087016159f6565b601f01601f19169190910160400192915050565b60208082526024908201527f736c696365506572696f645365636f6e6473206d7573742062652065786365656040820152636473203160e01b606082015260800190565b6020808252601a908201527f70726f787920636f6e7472616374206e6f7420616c6c6f776564000000000000604082015260600190565b6020808252602b908201527f436f6d7075746556657374696e675363686564756c6549643a204e6f6e20766160408201526a1b1a59081c1bdbdb081a5960aa1b606082015260800190565b60208082526024908201527f4465706f7369743a2045786365656420706f6f6c206f66666572696e6720616d6040820152631bdd5b9d60e21b606082015260800190565b6020808252601290820152714465706f7369743a20546f6f206561726c7960701b604082015260600190565b60208082526014908201527312185c9d995cdd0e88139bdd08185b1b1bddd95960621b604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252601c908201527f4465706f7369743a204d7573742062652077686974656c697374656400000000604082015260600190565b6020808252602c908201527f736c696365506572696f645365636f6e6473206d75737420626520696e74657260408201526b34b7b910323ab930ba34b7b760a11b606082015260800190565b602080825260149082015273696e76616c69642066656564206164647265737360601b604082015260600190565b6020808252601d908201527f76657374696e67207363686564756c65206973206e6f74206578697374000000604082015260600190565b6020808252601e908201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604082015260600190565b60208082526022908201527f656e6454696d65206d75737420626967676572207468616e20737461727454696040820152616d6560f01b606082015260800190565b6020808252601a908201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604082015260600190565b6020808252600d908201526c185b1c9958591e481859191959609a1b604082015260600190565b6020808252601f908201527f4f7065726174696f6e733a20506f6f6c20646f6573206e6f7420657869737400604082015260600190565b60208082526024908201527f4465706f7369743a204e657720616d6f756e742061626f76652075736572206c6040820152631a5b5a5d60e21b606082015260800190565b6020808252601390820152721d1bdad95b88191bd95cdb89dd08195e1a5cdd606a1b604082015260600190565b602080825260129082015271486172766573743a20546f6f206561726c7960701b604082015260600190565b6020808252601290820152711a5b9d985b1a59081c1c9a58d9481999595960721b604082015260600190565b6020808252601c908201527f486172766573743a20446964206e6f7420706172746963697061746500000000604082015260600190565b6020808252601190820152704465706f7369743a20546f6f206c61746560781b604082015260600190565b6020808252818101527f4465706f7369743a20496e73756666696369656e742055534420616d6f756e74604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252601a908201527f4465706f7369743a204e6f6e2076616c696420706f6f6c206964000000000000604082015260600190565b602080825260159082015274486172766573743a20416c726561647920646f6e6560581b604082015260600190565b6020808252600d908201526c34b73b30b634b2103a37b5b2b760991b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526014908201527318dbdb9d1c9858dd081b9bdd08185b1b1bddd95960621b604082015260600190565b60208082526017908201527f6475726174696f6e206d75737420657863656564732030000000000000000000604082015260600190565b6020808252601c908201527f436f6d70757465416d6f756e74733a20506f6f6c206e6f742073657400000000604082015260600190565b60208082526021908201527f5265636f7665723a2043616e6e6f74206265206f66666572696e6720746f6b656040820152603760f91b606082015260800190565b6020808252601b908201527f6e6f2076657374656420746f6b656e7320746f2072656c656173650000000000604082015260600190565b6020808252600790820152661156141254915160ca1b604082015260600190565b6020808252601290820152711c1c9a58d94819995959081b9bdd081cd95d60721b604082015260600190565b60208082526036908201527f63616e206e6f74206372656174652076657374696e67207363686564756c6520604082015275776974682073756666696369656e7420746f6b656e7360501b606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b60208082526012908201527111195c1bdcda5d0e881d1bdbc81cdb585b1b60721b604082015260600190565b6020808252600990820152681b9bdd08185919195960ba1b604082015260600190565b60208082526015908201527411195c1bdcda5d0e88141bdbdb081b9bdd081cd95d605a1b604082015260600190565b60208082526021908201527f76657374696e675363686564756c654964206973206265656e206372656174656040820152601960fa1b606082015260800190565b6020808252601a908201527f4f66666572696e67546f6b656e3a20616c726561647920736574000000000000604082015260600190565b6020808252601290820152711d995cdd1a5b99c81a5cc81c995d9bdad95960721b604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b60208082526038908201527f6f6e6c79207468652062656e656669636961727920616e64206f776e6572206360408201527f616e2072656c656173652076657374656420746f6b656e730000000000000000606082015260800190565b6020808252601190820152701a5b98dbdc9c9958dd08191958da5b585b607a1b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252601b908201527f4f66666572696e67546f6b656e3a205a65726f20616464726573730000000000604082015260600190565b6020808252601b908201527f4465706f7369743a20416d6f756e74206d757374206265203e20300000000000604082015260600190565b602080825260139082015272696e646578206f7574206f6620626f756e647360681b604082015260600190565b6020808252818101527f5265636f7665723a2043616e6e6f74206265207061796d656e7420746f6b656e604082015260600190565b6020808252601a908201527f486172766573743a204e6f6e2076616c696420706f6f6c206964000000000000604082015260600190565b602080825260409082018190527f4f7065726174696f6e733a2076657374696e672070657263656e746167652073908201527f686f756c642065786365656473203020616e6420696e746572696f7220313030606082015260800190565b60208082526021908201527f436861696e6c696e6b5072696365466565643a20696e76616c696420707269636040820152606560f81b606082015260800190565b815181526020808301519082015260408083015190820152606080830151908201526080808301519082015260a0808301519082015260c0808301519082015260e08083015190820152610100808301519082015261012080830151908201526101408083015190820152610160808301519082015261018080830151908201526101a080830151908201526101c091820151918101919091526101e00190565b8151151581526020808301516001600160a01b03169082015260408083015160ff1690820152606082015160c0820190600281106158c357fe5b806060840152506080830151608083015260a083015160a083015292915050565b85815260208082018690526080604083018190528201849052600090859060a08401835b87811015615936578383016001600160a01b03615925828761448c565b168352935090820190600101615908565b50848103606086015261594981876149a7565b9a9950505050505050505050565b9283526020830191909152604082015260600190565b91825260ff16602082015260400190565b60ff91909116815260200190565b60ff9290921682521515602082015260400190565b60ff929092168252602082015260400190565b60ff9390931683526020830191909152604082015260600190565b60405181810167ffffffffffffffff811182821017156159ee57600080fd5b604052919050565b60005b83811015615a115781810151838201526020016159f9565b838111156141c95750506000910152565b60ff81168114615a3157600080fd5b5056fea2646970667358221220ab1f229b3395644e5eabc533d58afd8f1620958afa7108f6b5391516eced792064736f6c634300060c0033

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

0000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b8419

-----Decoded View---------------
Arg [0] : _ethPriceFeed (address): 0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b8419


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.