ETH Price: $2,683.16 (+10.25%)
Gas: 1 Gwei

Contract

0xf1ABbb4053954429AAe4FB8fbb8769B9DF970f5A
 

Overview

ETH Balance

2.222621670282720898 ETH

Eth Value

$5,965.64 (@ $2,684.06/ETH)

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Deposit Pool189369732024-01-04 22:37:59217 days ago1704407879IN
0xf1ABbb40...9DF970f5A
0.01 ETH0.0016670317.67010104
Deposit Pool189223342024-01-02 21:20:35219 days ago1704230435IN
0xf1ABbb40...9DF970f5A
0.02961106 ETH0.0027696824.85044405
Set Pool188726672023-12-26 21:53:35226 days ago1703627615IN
0xf1ABbb40...9DF970f5A
0 ETH0.0033186615.91480128
Set Pool188726632023-12-26 21:52:47226 days ago1703627567IN
0xf1ABbb40...9DF970f5A
0 ETH0.0033040115.84547343
Set Pool188726592023-12-26 21:51:59226 days ago1703627519IN
0xf1ABbb40...9DF970f5A
0 ETH0.0034705316.64213789
Set Pool188726512023-12-26 21:50:23226 days ago1703627423IN
0xf1ABbb40...9DF970f5A
0 ETH0.0035913717.2235618
Set Pool188726472023-12-26 21:49:35226 days ago1703627375IN
0xf1ABbb40...9DF970f5A
0 ETH0.0014132717.57997938
Deposit Pool188062692023-12-17 14:14:11235 days ago1702822451IN
0xf1ABbb40...9DF970f5A
0.00232158 ETH0.003271942.36576148
Set Pool187192342023-12-05 9:24:23247 days ago1701768263IN
0xf1ABbb40...9DF970f5A
0 ETH0.0031101343.19456041
Set Pool187191932023-12-05 9:16:11247 days ago1701767771IN
0xf1ABbb40...9DF970f5A
0 ETH0.0031776945.91851915
Deposit Pool186936092023-12-01 19:20:35251 days ago1701458435IN
0xf1ABbb40...9DF970f5A
0.01 ETH0.00407452.75162654
Deposit Pool186773322023-11-29 12:40:35253 days ago1701261635IN
0xf1ABbb40...9DF970f5A
0.003 ETH0.0021551627.91008819
Deposit Pool186617742023-11-27 8:25:23255 days ago1701073523IN
0xf1ABbb40...9DF970f5A
0.0037316 ETH0.0030324832.15172164
Deposit Pool186598242023-11-27 1:51:35256 days ago1701049895IN
0xf1ABbb40...9DF970f5A
0.00343521 ETH0.0023782525.21208675
Deposit Pool186513882023-11-25 21:28:35257 days ago1700947715IN
0xf1ABbb40...9DF970f5A
0.03 ETH0.0028797430.52845662
Deposit Pool186426822023-11-24 16:13:23258 days ago1700842403IN
0xf1ABbb40...9DF970f5A
0.08 ETH0.004530348.02613971
Deposit Pool186425622023-11-24 15:49:23258 days ago1700840963IN
0xf1ABbb40...9DF970f5A
0.04 ETH0.0046764549.57551241
Deposit Pool186409702023-11-24 10:28:23258 days ago1700821703IN
0xf1ABbb40...9DF970f5A
0.01 ETH0.0031916433.83490454
Deposit Pool186385302023-11-24 2:15:35259 days ago1700792135IN
0xf1ABbb40...9DF970f5A
0.00483371 ETH0.0018280623.67045841
Deposit Pool186379382023-11-24 0:15:59259 days ago1700784959IN
0xf1ABbb40...9DF970f5A
0.12127982 ETH0.0021896923.21017547
Flip Whitelist S...186349942023-11-23 14:21:35259 days ago1700749295IN
0xf1ABbb40...9DF970f5A
0 ETH0.0009256936.28197363
Add Address To W...186283592023-11-22 16:06:59260 days ago1700669219IN
0xf1ABbb40...9DF970f5A
0 ETH0.0031338266.1284437
Add Address To W...186280212023-11-22 14:58:47260 days ago1700665127IN
0xf1ABbb40...9DF970f5A
0 ETH0.0029089461.38304224
Deposit Pool186262732023-11-22 9:05:23260 days ago1700643923IN
0xf1ABbb40...9DF970f5A
0.04 ETH0.0026830527.77691609
Add Address To W...186252152023-11-22 5:31:11261 days ago1700631071IN
0xf1ABbb40...9DF970f5A
0 ETH0.0011837324.97860676
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x3b86EB90...CD7cf5229
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
IvstSale

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 10 : IvstSale.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 IvstSale
 */
contract IvstSale is ReentrancyGuard, Whitelist {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

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

    // 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 raisingAmountPool; // amount of tokens raised for the pool (in USD, decimal is 18)
        uint256 offeringAmountPool; // amount of tokens offered for the pool (in offeringTokens)
        uint256 limitPerUserInLP; // limit of tokens per user (if 0, it is ignored)
        uint256 totalAmountPool; // total amount pool deposited (in USD, decimal is 18)
        uint256 vestingPercentage; // 60 means 0.6, rest part such as 100-60=40 means 0.4 is claimingPercentage
        uint256 vestingCliff; // Vesting cliff
        uint256 vestingDuration; // Vesting duration
        uint256 vestingSlicePeriodSeconds; // Vesting slice period seconds
    }

    // Struct that contains each user information for both pools
    struct UserInfo {
        uint256 amountPool; // How many tokens the user has provided for pool
        bool claimedPool; // Whether the user has claimed (default: false) for pool
    }

    // 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;
        // 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, uint8 indexed pid);

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

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

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

    // Event when released new amount
    event Released(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 _deadline: unix timestamp after which the transaction will revert
     */
    function depositPool(uint8 _pid, address _token, uint256 _amount, uint256 _minUsdAmount, 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 && _poolInformation[_pid].raisingAmountPool > 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 = computeUSDAmount(_token, _amount);
        require(usdAmount >= _minUsdAmount, 'Deposit: Insufficient USD amount');
        // Update the user status
        _userInfo[msg.sender][_pid].amountPool = _userInfo[msg.sender][_pid].amountPool.add(usdAmount);

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

        // Updates the totalAmount for pool
        _poolInformation[_pid].totalAmountPool = _poolInformation[_pid].totalAmountPool.add(usdAmount);
        require(
            _poolInformation[_pid].totalAmountPool <= _poolInformation[_pid].raisingAmountPool,
            "Deposit: Exceed pool raising amount"
        );

        emit Deposit(msg.sender, _token, _amount, usdAmount, _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].amountPool > 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;
        }

        uint256 offeringTokenAmount = _calculateOfferingAmountPool(msg.sender, _pid);

        // Transfer these tokens back to the user if quantity > 0
        if (offeringTokenAmount > 0) {
            if (100 - _poolInformation[_pid].vestingPercentage > 0) {
                uint256 amount = offeringTokenAmount.mul(100 - _poolInformation[_pid].vestingPercentage).div(100);

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

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

                // Create VestingSchedule object
                _createVestingSchedule(msg.sender, _pid, amount);

                emit CreateVestingSchedule(msg.sender, amount, _pid);
            }
        }
    }

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

    /**
     * @notice It sets parameters for pool
     * @param _startTime: pool start time
     * @param _endTime: pool end time
     * @param _offeringAmountPool: offering amount (in tokens)
     * @param _raisingAmountPool: raising amount (in USD)
     * @param _limitPerUserInLP: limit per user (in USD)
     * @param _pid: pool id
     * @param _vestingPercentage: percentage for vesting remain tokens after end IFO
     * @param _vestingCliff: cliff of vesting
     * @param _vestingDuration: duration of vesting
     * @param _vestingSlicePeriodSeconds: slice period seconds of vesting
     * @dev This function is only callable by admin.
     */
    function setPool(
        uint256 _startTime,
        uint256 _endTime,
        uint256 _offeringAmountPool,
        uint256 _raisingAmountPool,
        uint256 _limitPerUserInLP,
        uint8 _pid,
        uint256 _vestingPercentage,
        uint256 _vestingCliff,
        uint256 _vestingDuration,
        uint256 _vestingSlicePeriodSeconds
    ) external onlyOwner {
        require(_pid < NUMBER_POOLS, "Operations: Pool does not exist");
        require(
            _vestingPercentage >= 0 && _vestingPercentage <= 100,
            "Operations: vesting percentage should exceeds 0 and interior 100"
        );
        require(_vestingDuration > 0, "duration must exceeds 0");
        require(_vestingSlicePeriodSeconds >= 1, "slicePeriodSeconds must be exceeds 1");
        require(_vestingSlicePeriodSeconds <= _vestingDuration, "slicePeriodSeconds must be interior duration");
        require(block.timestamp < _startTime && _startTime < _endTime, "invalid time");

        _poolInformation[_pid].startTime = _startTime;
        _poolInformation[_pid].endTime = _endTime;
        _poolInformation[_pid].offeringAmountPool = _offeringAmountPool;
        _poolInformation[_pid].raisingAmountPool = _raisingAmountPool;
        _poolInformation[_pid].limitPerUserInLP = _limitPerUserInLP;
        _poolInformation[_pid].vestingPercentage = _vestingPercentage;
        _poolInformation[_pid].vestingCliff = _vestingCliff;
        _poolInformation[_pid].vestingDuration = _vestingDuration;
        _poolInformation[_pid].vestingSlicePeriodSeconds = _vestingSlicePeriodSeconds;

        uint256 tokensDistributedAcrossPools;

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

        // Update totalTokensOffered
        totalTokensOffered = tokensDistributedAcrossPools;

        emit PoolParametersSet(_offeringAmountPool, _raisingAmountPool, _pid);
    }

    /**
     * @notice It returns the pool information
     * @param _pid: pool id
     * @return startTime: pool start time
     * @return endTime: pool end time
     * @return raisingAmountPool: amount of LP tokens raised (in LP tokens)
     * @return offeringAmountPool: amount of tokens offered for the pool (in offeringTokens)
     * @return limitPerUserInLP; // limit of tokens per user (if 0, it is ignored)
     * @return totalAmountPool: total amount pool deposited (in USD)
     */
    function viewPoolInformation(uint256 _pid)
        external
        view
        returns (
            uint256,
            uint256,
            uint256,
            uint256,
            uint256,
            uint256
        )
    {
        return (
            _poolInformation[_pid].startTime,
            _poolInformation[_pid].endTime,
            _poolInformation[_pid].raisingAmountPool,
            _poolInformation[_pid].offeringAmountPool,
            _poolInformation[_pid].limitPerUserInLP,
            _poolInformation[_pid].totalAmountPool
        );
    }

    /**
     * @notice It returns the pool vesting information
     * @param _pid: pool id
     * @return vestingPercentage: the percentage of vesting part, claimingPercentage + vestingPercentage should be 100
     * @return vestingCliff: the cliff of vesting
     * @return vestingDuration: the duration of vesting
     * @return vestingSlicePeriodSeconds: the slice period seconds of vesting
     */
    function viewPoolVestingInformation(uint256 _pid)
        external
        view
        returns (
            uint256,
            uint256,
            uint256,
            uint256
        )
    {
        return (
            _poolInformation[_pid].vestingPercentage,
            _poolInformation[_pid].vestingCliff,
            _poolInformation[_pid].vestingDuration,
            _poolInformation[_pid].vestingSlicePeriodSeconds
        );
    }

    /**
     * @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]].amountPool;
            statusPools[i] = _userInfo[_user][_pids[i]].claimedPool;
        }
        return (amountPools, statusPools);
    }

    /**
     * @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 (uint256[] memory)
    {
        uint256[] memory amountPools = new uint256[](_pids.length);

        for (uint8 i = 0; i < _pids.length; i++) {
            uint256 userOfferingAmountPool;

            if (_poolInformation[_pids[i]].raisingAmountPool > 0) {
                userOfferingAmountPool = _calculateOfferingAmountPool(_user, _pids[i]);
            }

            amountPools[i] = userOfferingAmountPool;
        }
        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(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) external view returns (bytes32) {
        require(_pid < NUMBER_POOLS, "ComputeVestingScheduleId: Non valid pool id");

        for (uint8 i = 0; i < NUMBER_POOLS; i++) {
            bytes32 vestingScheduleId = computeVestingScheduleIdForAddressAndIndex(_holder, i);
            VestingSchedule memory vestingSchedule = vestingSchedules[vestingScheduleId];
            if (vestingSchedule.isVestingInitialized == true && vestingSchedule.pid == _pid) {
                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 (
            currentTime >= vestingStartTime[_vestingSchedule.pid].add(_poolInformation[_vestingSchedule.pid].vestingDuration) ||
            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(
                _poolInformation[_vestingSchedule.pid].vestingDuration
            );
            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,
        uint256 _amount
    ) internal {
        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, _amount, 0);
        vestingSchedulesTotalAmount = vestingSchedulesTotalAmount.add(_amount);
        vestingSchedulesIds.push(vestingScheduleId);
        holdersVestingCount[_beneficiary]++;
    }

    /**
     * @notice It calculates the offering amount for a user and the number of LP tokens to transfer back.
     * @param _user: user address
     * @param _pid: pool id
     * @return It returns the offering amount
     */
    function _calculateOfferingAmountPool(address _user, uint8 _pid)
        internal
        view
        returns (uint256)
    {
        // _userInfo[_user] / (raisingAmount / offeringAmount)
        uint256 userOfferingAmount = _userInfo[_user][_pid].amountPool.mul(_poolInformation[_pid].offeringAmountPool).div(
            _poolInformation[_pid].raisingAmountPool
        );
        return userOfferingAmount;
    }

    /**
     * @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].totalAmountPool > 0) {
            return _userInfo[_user][_pid].amountPool.mul(1e12).div(_poolInformation[_pid].totalAmountPool);
        } 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 from token amount
     * @return USD amount
     */
    function computeUSDAmount(address token, uint256 amount) public view checkPayment(token) returns (uint256) {
        uint256 tokenDecimal = token == address(0) ? 18 : uint256(paymentTokenDecimal[token]);

        if (isStableToken[token]) {
            return amount.mul(10 ** 18).div(10 ** tokenDecimal);    
        }

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

        return amount.mul(uint256(price)).mul(10 ** 18).div(10 ** (priceDecimal + tokenDecimal));
    }
}

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"}],"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":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"}],"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":"uint256","name":"offeringAmountPool","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"raisingAmountPool","type":"uint256"},{"indexed":false,"internalType":"uint8","name":"pid","type":"uint8"}],"name":"PoolParametersSet","type":"event"},{"anonymous":false,"inputs":[{"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":[{"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":"_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":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"computeUSDAmount","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"}],"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":"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":"uint256","name":"amountTotal","type":"uint256"},{"internalType":"uint256","name":"released","type":"uint256"}],"internalType":"struct IvstSale.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":"uint256","name":"amountTotal","type":"uint256"},{"internalType":"uint256","name":"released","type":"uint256"}],"internalType":"struct IvstSale.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":[{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"},{"internalType":"uint256","name":"_offeringAmountPool","type":"uint256"},{"internalType":"uint256","name":"_raisingAmountPool","type":"uint256"},{"internalType":"uint256","name":"_limitPerUserInLP","type":"uint256"},{"internalType":"uint8","name":"_pid","type":"uint8"},{"internalType":"uint256","name":"_vestingPercentage","type":"uint256"},{"internalType":"uint256","name":"_vestingCliff","type":"uint256"},{"internalType":"uint256","name":"_vestingDuration","type":"uint256"},{"internalType":"uint256","name":"_vestingSlicePeriodSeconds","type":"uint256"}],"name":"setPool","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":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"viewPoolVestingInformation","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"}]

Deployed Bytecode

0x6080604052600436106103355760003560e01c806379795108116101ab578063af7665ce116100f7578063ecf4aba011610095578063f2fde38b1161006f578063f2fde38b14610967578063f51321d714610987578063f7c469f0146109a7578063f9cd5c12146109c757610335565b8063ecf4aba014610907578063eeda2ab914610927578063efccd9ac1461094757610335565b8063b7813607116100d1578063b781360714610882578063b86c6f1414610897578063e2ec6ec3146108c7578063ea1bb3d5146108e757610335565b8063af7665ce14610838578063b430990f1461084d578063b6549f751461086d57610335565b8063923fe2a2116101645780639b94e9d61161013e5780639b94e9d6146107ab5780639e010ea8146107be5780639ef346b4146107eb578063ad0828741461081857610335565b8063923fe2a21461074b578063930eaddc1461076b57806397eaf4f81461078b57610335565b806379795108146106ac5780637b9417c8146106c15780637e5734e7146106e1578063867f3d30146107015780638af104da146107165780638da5cb5b1461073657610335565b80633af32abf116102855780635c7604db1161022357806367d42a8b116101fd57806367d42a8b146106425780636e2e6b2b14610662578063715018a614610682578063760b31801461069757610335565b80635c7604db146105ed578063634328ad14610602578063679e87ae1461062257610335565b806348deb4711161025f57806348deb4711461056a5780634af3c9b71461057f5780634e34f26b146105ad5780635a7bb69a146105cd57610335565b80633af32abf146104f85780633f138d4b1461051857806346ab91bf1461053857610335565b8063229d54dc116102f257806324953eaa116102cc57806324953eaa14610483578063286dd3f5146104a357806328fddfaf146104c35780633a29257b146104d857610335565b8063229d54dc1461041f5780632374876c1461044157806323f935741461046157610335565b806304e3ccd61461033a57806306cec857146103705780630b5984731461039d5780630ef01eb3146103ca57806313083617146103ea5780631fd48b9a146103ff575b600080fd5b34801561034657600080fd5b5061035a610355366004613cdf565b6109e7565b6040516103679190614005565b60405180910390f35b34801561037c57600080fd5b5061039061038b366004613b1f565b610a38565b6040516103679190613ffa565b3480156103a957600080fd5b506103bd6103b8366004613cdf565b610a49565b6040516103679190613edb565b3480156103d657600080fd5b5061035a6103e5366004613bd4565b610a70565b3480156103f657600080fd5b5061035a610d59565b34801561040b57600080fd5b506103bd61041a366004613b1f565b610d5f565b34801561042b57600080fd5b5061043f61043a366004613b3a565b610d7a565b005b34801561044d57600080fd5b5061043f61045c366004613d8b565b61101b565b34801561046d57600080fd5b50610476611346565b6040516103679190614ccc565b34801561048f57600080fd5b5061043f61049e366004613c35565b61134b565b3480156104af57600080fd5b5061043f6104be366004613b1f565b611447565b3480156104cf57600080fd5b506103906114cf565b3480156104e457600080fd5b5061043f6104f3366004613bfe565b6114d8565b34801561050457600080fd5b50610390610513366004613b1f565b6116a0565b34801561052457600080fd5b5061043f610533366004613bd4565b6116be565b34801561054457600080fd5b50610558610553366004613cdf565b6117ce565b60405161036796959493929190614c8b565b34801561057657600080fd5b5061035a611867565b34801561058b57600080fd5b5061059f61059a366004613b82565b61186d565b604051610367929190613fa2565b3480156105b957600080fd5b506103906105c8366004613b1f565b611a16565b3480156105d957600080fd5b5061035a6105e8366004613b1f565b611a2b565b3480156105f957600080fd5b5061043f611a46565b34801561060e57600080fd5b5061039061061d366004613d8b565b611ad3565b34801561062e57600080fd5b5061043f61063d366004613c75565b611ae8565b34801561064e57600080fd5b5061043f61065d366004613cdf565b611d2d565b34801561066e57600080fd5b5061043f61067d366004613d8b565b611f05565b34801561068e57600080fd5b5061043f611fa6565b3480156106a357600080fd5b5061035a61202f565b3480156106b857600080fd5b5061035a612035565b3480156106cd57600080fd5b5061043f6106dc366004613b1f565b6120cc565b3480156106ed57600080fd5b506103bd6106fc366004613cdf565b612157565b34801561070d57600080fd5b50610390612164565b34801561072257600080fd5b5061035a610731366004613bd4565b61216d565b34801561074257600080fd5b506103bd6121a0565b34801561075757600080fd5b5061043f610766366004613b1f565b6121af565b34801561077757600080fd5b50610390610786366004613b1f565b61239d565b34801561079757600080fd5b5061043f6107a6366004613d0f565b6123b2565b61043f6107b9366004613e14565b61264d565b3480156107ca57600080fd5b506107de6107d9366004613b82565b612a29565b6040516103679190613f8f565b3480156107f757600080fd5b5061080b610806366004613cdf565b612b21565b6040516103679190614bba565b34801561082457600080fd5b5061035a610833366004613bd4565b612b8f565b34801561084457600080fd5b506103bd612c71565b34801561085957600080fd5b5061035a610868366004613cdf565b612c80565b34801561087957600080fd5b5061043f612c92565b34801561088e57600080fd5b506103bd612d2c565b3480156108a357600080fd5b506108b76108b2366004613cdf565b612d3b565b6040516103679493929190614c70565b3480156108d357600080fd5b5061043f6108e2366004613c35565b612da4565b3480156108f357600080fd5b5061035a610902366004613cdf565b612e9b565b34801561091357600080fd5b50610476610922366004613b1f565b612f42565b34801561093357600080fd5b5061043f610942366004613b1f565b612f57565b34801561095357600080fd5b5061043f610962366004613b1f565b613155565b34801561097357600080fd5b5061043f610982366004613b1f565b61322e565b34801561099357600080fd5b5061080b6109a2366004613bd4565b6132ef565b3480156109b357600080fd5b5061035a6109c2366004613b1f565b613304565b3480156109d357600080fd5b506107de6109e2366004613b82565b613328565b60006109f1610d59565b8210610a185760405162461bcd60e51b8152600401610a0f90614a5c565b60405180910390fd5b605f8281548110610a2557fe5b906000526020600020015490505b919050565b6000610a43826116a0565b92915050565b60098181548110610a5657fe5b6000918252602090912001546001600160a01b0316905081565b6000826001600160a01b03811615610b2c576001600160a01b03811660009081526008602052604090205460ff1680610ae557506001600160a01b03811660009081526003602052604090205460ff168015610ae557506001600160a01b038181166000908152600560205260409020541615155b8015610b0b57506001600160a01b03811660009081526007602052604090205460ff1615155b610b275760405162461bcd60e51b8152600401610a0f906145dc565b610b54565b6006546001600160a01b0316610b545760405162461bcd60e51b8152600401610a0f90614736565b60006001600160a01b03851615610b86576001600160a01b03851660009081526007602052604090205460ff16610b89565b60125b6001600160a01b03861660009081526008602052604090205490915060ff1615610bd557610bcd600a82900a610bc786670de0b6b3a76400006133cc565b90613406565b925050610d52565b60006001600160a01b03861615610c06576001600160a01b0380871660009081526005602052604090205416610c13565b6006546001600160a01b03165b90506000816001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a06040518083038186803b158015610c5057600080fd5b505afa158015610c64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c889190613da7565b50505091505060008113610cae5760405162461bcd60e51b8152600401610a0f90614b79565b6000826001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015610ce957600080fd5b505afa158015610cfd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d219190613df8565b60ff169050610d4b848201600a0a610bc7670de0b6b3a7640000610d458b876133cc565b906133cc565b9550505050505b5092915050565b605f5490565b6005602052600090815260409020546001600160a01b031681565b610d82613438565b6001600160a01b0316610d936121a0565b6001600160a01b031614610db95760405162461bcd60e51b8152600401610a0f90614603565b6001600160a01b03831660009081526003602052604090205460ff1615610df25760405162461bcd60e51b8152600401610a0f90614377565b6001600160a01b038216610e185760405162461bcd60e51b8152600401610a0f906142a4565b826001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015610e5157600080fd5b505afa158015610e65573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e899190613df8565b60ff168160ff1614610ead5760405162461bcd60e51b8152600401610a0f9061498c565b6000826001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a06040518083038186803b158015610ee857600080fd5b505afa158015610efc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f209190613da7565b50505091505060008113610f465760405162461bcd60e51b8152600401610a0f90614472565b6001600160a01b0384811660008181526003602090815260408083208054600160ff1991821681179092556004805492830190557f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b90910180546001600160a01b031990811690961790556005835281842080549095169589169590951790935560079052819020805490921660ff851617909155517f9ab7d78b094d546af0a8ba58718267d8c9da73297086650a15ac147bf262beb89061100d90869086908690613f13565b60405180910390a150505050565b6002600054141561103e5760405162461bcd60e51b8152600401610a0f906149b7565b600260005561104c3361343c565b156110695760405162461bcd60e51b8152600401610a0f90614638565b3332146110885760405162461bcd60e51b8152600401610a0f90614085565b60645460ff166110aa5760405162461bcd60e51b8152600401610a0f90614133565b600c8160ff16600881106110ba57fe5b600a02016001015442116110e05760405162461bcd60e51b8152600401610a0f90614446565b600860ff8216106111035760405162461bcd60e51b8152600401610a0f90614ae4565b336000908152605c6020908152604080832060ff8516845290915290205461113d5760405162461bcd60e51b8152600401610a0f9061449e565b336000908152605c6020908152604080832060ff8086168552925290912060010154161561117d5760405162461bcd60e51b8152600401610a0f906145ad565b336000908152605c6020908152604080832060ff8516845282528083206001908101805460ff19169091179055605d9091529020546111cc5760ff81166000908152605d602052604090204290555b60006111d83383613442565b9050801561133d576000600c8360ff16600881106111f257fe5b600a02016006015460640311156112985760006112376064610bc7600c8660ff166008811061121d57fe5b600a020160060154606403856133cc90919063ffffffff16565b600a54909150611251906001600160a01b031633836134b0565b8260ff16336001600160a01b03167f3a802e0bbfedb4846dec65b439a1a38693d3c610178b73f295d7549110d688d28360405161128e9190614005565b60405180910390a3505b6000600c8360ff16600881106112aa57fe5b600a020160060154111561133d5760006112e96064610bc7600c8660ff16600881106112d257fe5b600a020160060154856133cc90919063ffffffff16565b90506112f6338483613506565b8260ff16336001600160a01b03167f0b784c454fa8f7f22ca5aa85a6a21b6a7ddd67b8408e1f3185cf7188c4d509ce836040516113339190614005565b60405180910390a3505b50506001600055565b600881565b611353613438565b6001600160a01b03166113646121a0565b6001600160a01b03161461138a5760405162461bcd60e51b8152600401610a0f90614603565b60005b81811015611442576000600260008585858181106113a757fe5b90506020020160208101906113bc9190613b1f565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558282828181106113f057fe5b90506020020160208101906114059190613b1f565b6001600160a01b03167ff1abf01a1043b7c244d128e8595cf0c1d10743b022b03a02dffd8ca3bf729f5a60405160405180910390a260010161138d565b505050565b61144f613438565b6001600160a01b03166114606121a0565b6001600160a01b0316146114865760405162461bcd60e51b8152600401610a0f90614603565b6001600160a01b038116600081815260026020526040808220805460ff19169055517ff1abf01a1043b7c244d128e8595cf0c1d10743b022b03a02dffd8ca3bf729f5a9190a250565b605e5460ff1681565b6114e0613438565b6001600160a01b03166114f16121a0565b6001600160a01b0316146115175760405162461bcd60e51b8152600401610a0f90614603565b6001600160a01b03821660009081526008602052604090205460ff16156115505760405162461bcd60e51b8152600401610a0f90614377565b816001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b15801561158957600080fd5b505afa15801561159d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115c19190613df8565b60ff168160ff16146115e55760405162461bcd60e51b8152600401610a0f9061498c565b6001600160a01b03821660008181526008602090815260408083208054600160ff1991821681179092556009805492830190557f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af90910180546001600160a01b031916909517909455600790915290819020805490921660ff841617909155517f933a948e7b32894b583810019aab7c6389638c0ab11541029c510367b491d9d8906116949084908490613f73565b60405180910390a15050565b6001600160a01b031660009081526002602052604090205460ff1690565b6116c6613438565b6001600160a01b03166116d76121a0565b6001600160a01b0316146116fd5760405162461bcd60e51b8152600401610a0f90614603565b6001600160a01b03821660009081526003602052604090205460ff1615801561173f57506001600160a01b03821660009081526008602052604090205460ff16155b61175b5760405162461bcd60e51b8152600401610a0f90614a89565b600a546001600160a01b03838116911614156117895760405162461bcd60e51b8152600401610a0f9061469d565b61179d6001600160a01b03831633836134b0565b7f74545154aac348a3eac92596bd1971957ca94795f4e954ec5f613b55fab781298282604051611694929190613f39565b600080600080600080600c87600881106117e457fe5b600a020154600c88600881106117f657fe5b600a020160010154600c896008811061180b57fe5b600a020160020154600c8a6008811061182057fe5b600a020160030154600c8b6008811061183557fe5b600a020160040154600c8c6008811061184a57fe5b600a02016005015495509550955095509550955091939550919395565b60615490565b606080808367ffffffffffffffff8111801561188857600080fd5b506040519080825280602002602001820160405280156118b2578160200160208202803683370190505b50905060608467ffffffffffffffff811180156118ce57600080fd5b506040519080825280602002602001820160405280156118f8578160200160208202803683370190505b50905060005b60ff8116861115611a09576001600160a01b0388166000908152605c6020526040812090888860ff851681811061193157fe5b90506020020160208101906119469190613d8b565b60ff1660ff16815260200190815260200160002060000154838260ff168151811061196d57fe5b602002602001018181525050605c6000896001600160a01b03166001600160a01b03168152602001908152602001600020600088888460ff168181106119af57fe5b90506020020160208101906119c49190613d8b565b60ff908116825260208201929092526040016000206001015483519082169184919084169081106119f157fe5b911515602092830291909101909101526001016118fe565b5090969095509350505050565b60086020526000908152604090205460ff1681565b6001600160a01b031660009081526062602052604090205490565b611a4e613438565b6001600160a01b0316611a5f6121a0565b6001600160a01b031614611a855760405162461bcd60e51b8152600401610a0f90614603565b6064805460ff19811660ff9182161517918290556040517fdf75c1ae406d54b1ec8de5ba72162c5fbe8458e7191ca79dbf6d9df3a97da3eb92611ac9921690613ffa565b60405180910390a1565b60636020526000908152604090205460ff1681565b611af0613438565b6001600160a01b0316611b016121a0565b6001600160a01b031614611b275760405162461bcd60e51b8152600401610a0f90614603565b8015611b4457600a54611b44906001600160a01b031633836134b0565b6040514790339082156108fc029083906000818181858888f19350505050158015611b73573d6000803e3d6000fd5b5060608367ffffffffffffffff81118015611b8d57600080fd5b50604051908082528060200260200182016040528015611bb7578160200160208202803683370190505b50905060005b84811015611ce657858582818110611bd157fe5b9050602002016020810190611be69190613b1f565b6001600160a01b03166370a08231306040518263ffffffff1660e01b8152600401611c119190613edb565b60206040518083038186803b158015611c2957600080fd5b505afa158015611c3d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c619190613cf7565b828281518110611c6d57fe5b6020026020010181815250506000828281518110611c8757fe5b60200260200101511115611cde57611cde33838381518110611ca557fe5b6020026020010151888885818110611cb957fe5b9050602002016020810190611cce9190613b1f565b6001600160a01b031691906134b0565b600101611bbd565b507feeb6fba8e84827c168dfdff263a9cfed1ff24c528b523e0d96dbfe0b9983a4238383878785604051611d1e959493929190614bfd565b60405180910390a15050505050565b60026000541415611d505760405162461bcd60e51b8152600401610a0f906149b7565b600260009081558181526060602052604090205460ff161515600114611d885760405162461bcd60e51b8152600401610a0f906142d2565b6000818152606060205260408120805490916101009091046001600160a01b0316331490611db46121a0565b6001600160a01b0316336001600160a01b03161490508180611dd35750805b611def5760405162461bcd60e51b8152600401610a0f9061492f565b6040805160a081018252845460ff808216151583526001600160a01b036101008304166020840152600160a81b90910416918101919091526001840154606082015260028401546080820152600090611e4790613676565b905060008111611e695760405162461bcd60e51b8152600401610a0f906146de565b6002840154611e78908261380c565b6002850155606154611e8a9082613831565b6061558354600a54611eaf916001600160a01b039182169161010090910416836134b0565b83546040516101009091046001600160a01b0316907fb21fb52d5749b80f3182f8c6992236b5e5576681880914484d7f4c9b062e619e90611ef1908490614005565b60405180910390a250506001600055505050565b611f0d613438565b6001600160a01b0316611f1e6121a0565b6001600160a01b031614611f445760405162461bcd60e51b8152600401610a0f90614603565b60ff80821660009081526063602052604090819020805460ff19811690841615179081905590517f7c3c0175a14dd28663d220c441cc04cc1aebec26736dc30e94e6cd28dfce559692611f9b928592911690614cda565b60405180910390a150565b611fae613438565b6001600160a01b0316611fbf6121a0565b6001600160a01b031614611fe55760405162461bcd60e51b8152600401610a0f90614603565b6001546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600180546001600160a01b0319169055565b600b5481565b606154600a546040516370a0823160e01b81526000926120c79290916001600160a01b03909116906370a0823190612071903090600401613edb565b60206040518083038186803b15801561208957600080fd5b505afa15801561209d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120c19190613cf7565b90613831565b905090565b6120d4613438565b6001600160a01b03166120e56121a0565b6001600160a01b03161461210b5760405162461bcd60e51b8152600401610a0f90614603565b6001600160a01b038116600081815260026020526040808220805460ff19166001179055517fd1bba68c128cc3f427e5831b3c6f99f480b6efa6b9e80c757768f6124158cc3f9190a250565b60048181548110610a5657fe5b60645460ff1681565b60008282604051602001612182929190613e9d565b60405160208183030381529060405280519060200120905092915050565b6001546001600160a01b031690565b6121b7613438565b6001600160a01b03166121c86121a0565b6001600160a01b0316146121ee5760405162461bcd60e51b8152600401610a0f90614603565b6001600160a01b03811660009081526008602052604090205460ff166122265760405162461bcd60e51b8152600401610a0f906147ef565b6001600160a01b0381166000908152600860205260408120805460ff19169055600954905b60095481101561229757826001600160a01b03166009828154811061226c57fe5b6000918252602090912001546001600160a01b0316141561228f57809150612297565b60010161224b565b506009548114156122ba5760405162461bcd60e51b8152600401610a0f90614419565b6009805460001981019081106122cc57fe5b600091825260209091200154600980546001600160a01b0390921691839081106122f257fe5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600980548061232b57fe5b60008281526020808220830160001990810180546001600160a01b03191690559092019092556001600160a01b038416825260079052604090819020805460ff19169055517fe7f312517e7dceb43a5ab7883001f03f6e4bc288e9a65359c7bbe3eaaadfdcbb90611694908490613edb565b60036020526000908152604090205460ff1681565b6123ba613438565b6001600160a01b03166123cb6121a0565b6001600160a01b0316146123f15760405162461bcd60e51b8152600401610a0f90614603565b600860ff8616106124145760405162461bcd60e51b8152600401610a0f9061439e565b60648411156124355760405162461bcd60e51b8152600401610a0f90614b1b565b600082116124555760405162461bcd60e51b8152600401610a0f90614666565b60018110156124765760405162461bcd60e51b8152600401610a0f90614041565b818111156124965760405162461bcd60e51b8152600401610a0f90614258565b89421080156124a45750888a105b6124c05760405162461bcd60e51b8152600401610a0f90614abe565b89600c8660ff16600881106124d157fe5b600a02015588600c60ff8716600881106124e757fe5b600a02016001018190555087600c8660ff166008811061250357fe5b600a02016003018190555086600c8660ff166008811061251f57fe5b600a02016002018190555085600c8660ff166008811061253b57fe5b600a02016004018190555083600c8660ff166008811061255757fe5b600a02016006018190555082600c8660ff166008811061257357fe5b600a02016007018190555081600c8660ff166008811061258f57fe5b600a02016008018190555080600c8660ff16600881106125ab57fe5b600a020160090181905550600080600090505b600860ff821610156125fe576125f4600c8260ff16600881106125dd57fe5b600a0201600301548361380c90919063ffffffff16565b91506001016125be565b50600b8190556040517fddaf243a142670be60c19ff7116b5d8b124717b29bb4cc03cead42161614105b90612638908b908b908a90614cb3565b60405180910390a15050505050505050505050565b600260005414156126705760405162461bcd60e51b8152600401610a0f906149b7565b600260005561267e3361343c565b1561269b5760405162461bcd60e51b8152600401610a0f90614638565b3332146126ba5760405162461bcd60e51b8152600401610a0f90614085565b80428110156126db5760405162461bcd60e51b8152600401610a0f90614715565b600860ff8716106126fe5760405162461bcd60e51b8152600401610a0f90614576565b6000600c8760ff166008811061271057fe5b600a02016003015411801561273c57506000600c8760ff166008811061273257fe5b600a020160020154115b6127585760405162461bcd60e51b8152600401610a0f90614812565b600c8660ff166008811061276857fe5b600a020154421161278b5760405162461bcd60e51b8152600401610a0f90614107565b600c8660ff166008811061279b57fe5b600a02016001015442106127c15760405162461bcd60e51b8152600401610a0f906144d5565b6001600160a01b0385166127d3573493505b600084116127f35760405162461bcd60e51b8152600401610a0f90614a25565b60ff808716600090815260636020526040902054161580612818575061281833610a38565b6128345760405162461bcd60e51b8152600401610a0f90614221565b6001600160a01b03851615612858576128586001600160a01b038616333087613859565b60006128648686610a70565b9050838110156128865760405162461bcd60e51b8152600401610a0f90614500565b336000908152605c6020908152604080832060ff8b1684529091529020546128ae908261380c565b336000908152605c6020908152604080832060ff8c16808552925282209290925590600c90600881106128dd57fe5b600a020160040154111561293f57600c8760ff16600881106128fb57fe5b600a020160040154336000908152605c6020908152604080832060ff8c168452909152902054111561293f5760405162461bcd60e51b8152600401610a0f906143d5565b61296981600c8960ff166008811061295357fe5b600a02016005015461380c90919063ffffffff16565b600c8860ff166008811061297957fe5b600a020160050181905550600c8760ff166008811061299457fe5b600a020160020154600c8860ff16600881106129ac57fe5b600a02016005015411156129d25760405162461bcd60e51b8152600401610a0f906141a7565b8660ff16336001600160a01b03167ff40b0c4cf275a94329f3caac3b9de8465f5c165b3e27b07935196d405dc847ec888885604051612a1393929190613f52565b60405180910390a3505060016000555050505050565b6060808267ffffffffffffffff81118015612a4357600080fd5b50604051908082528060200260200182016040528015612a6d578160200160208202803683370190505b50905060005b60ff8116841115612b1657600080600c87878560ff16818110612a9257fe5b9050602002016020810190612aa79190613d8b565b60ff1660088110612ab457fe5b600a0201600201541115612af257612aef8787878560ff16818110612ad557fe5b9050602002016020810190612aea9190613d8b565b613442565b90505b80838360ff1681518110612b0257fe5b602090810291909101015250600101612a73565b5090505b9392505050565b612b29613a77565b50600090815260606020818152604092839020835160a081018552815460ff8082161515835261010082046001600160a01b031694830194909452600160a81b900490921693820193909352600183015491810191909152600290910154608082015290565b600060088210612bb15760405162461bcd60e51b8152600401610a0f906140bc565b60005b600860ff82161015612c67576000612bcf858360ff1661216d565b9050612bd9613a77565b50600081815260606020818152604092839020835160a081018552815460ff80821615158084526001600160a01b0361010084041695840195909552600160a81b909104169481019490945260018082015493850193909352600201546080840152148015612c4e575084816040015160ff16145b15612c5d57509150610a439050565b5050600101612bb4565b50612b1a83613304565b6006546001600160a01b031681565b605d6020526000908152604090205481565b612c9a613438565b6001600160a01b0316612cab6121a0565b6001600160a01b031614612cd15760405162461bcd60e51b8152600401610a0f90614603565b605e5460ff1615612cf45760405162461bcd60e51b8152600401610a0f906148b9565b605e805460ff191660011790556040517f44825a4b2df8acb19ce4e1afba9aa850c8b65cdb7942e2078f27d0b0960efee690600090a1565b600a546001600160a01b031681565b600080600080600c8560088110612d4e57fe5b600a020160060154600c8660088110612d6357fe5b600a020160070154600c8760088110612d7857fe5b600a020160080154600c8860088110612d8d57fe5b600a02016009015493509350935093509193509193565b612dac613438565b6001600160a01b0316612dbd6121a0565b6001600160a01b031614612de35760405162461bcd60e51b8152600401610a0f90614603565b60005b8181101561144257600160026000858585818110612e0057fe5b9050602002016020810190612e159190613b1f565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055828282818110612e4957fe5b9050602002016020810190612e5e9190613b1f565b6001600160a01b03167fd1bba68c128cc3f427e5831b3c6f99f480b6efa6b9e80c757768f6124158cc3f60405160405180910390a2600101612de6565b60008181526060602052604081205460ff161515600114612ece5760405162461bcd60e51b8152600401610a0f906142d2565b612ed6613a77565b50600082815260606020818152604092839020835160a081018552815460ff808216151583526001600160a01b0361010083041694830194909452600160a81b9004909216938201939093526001830154918101919091526002909101546080820152612b1a81613676565b60076020526000908152604090205460ff1681565b612f5f613438565b6001600160a01b0316612f706121a0565b6001600160a01b031614612f965760405162461bcd60e51b8152600401610a0f90614603565b6001600160a01b03811660009081526003602052604090205460ff16612fce5760405162461bcd60e51b8152600401610a0f906147ef565b6001600160a01b0381166000908152600360205260408120805460ff19169055600454905b60045481101561303f57826001600160a01b03166004828154811061301457fe5b6000918252602090912001546001600160a01b031614156130375780915061303f565b600101612ff3565b506004548114156130625760405162461bcd60e51b8152600401610a0f90614419565b60048054600019810190811061307457fe5b600091825260209091200154600480546001600160a01b03909216918390811061309a57fe5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060048054806130d357fe5b60008281526020808220830160001990810180546001600160a01b031990811690915593019093556001600160a01b0385168152600783526040808220805460ff19169055600590935282902080549091169055517f3c528cf383dc76a2d8cd891430b35002aff6dd37e81ae797363846e6e596fc9c90611694908490613edb565b61315d613438565b6001600160a01b031661316e6121a0565b6001600160a01b0316146131945760405162461bcd60e51b8152600401610a0f90614603565b6001600160a01b0381166131ba5760405162461bcd60e51b8152600401610a0f906149ee565b600a546001600160a01b0316156131e35760405162461bcd60e51b8152600401610a0f90614882565b600a80546001600160a01b0319166001600160a01b0383161790556040517f53be4bd4a6ecb59cb3e1a8e5e03499a324ebba81edc64729e18d07baf30038e690611f9b908390613edb565b613236613438565b6001600160a01b03166132476121a0565b6001600160a01b03161461326d5760405162461bcd60e51b8152600401610a0f90614603565b6001600160a01b0381166132935760405162461bcd60e51b8152600401610a0f90614161565b6001546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600180546001600160a01b0319166001600160a01b0392909216919091179055565b6132f7613a77565b612b1a610806848461216d565b6001600160a01b038116600090815260626020526040812054610a4390839061216d565b6060808267ffffffffffffffff8111801561334257600080fd5b5060405190808252806020026020018201604052801561336c578160200160208202803683370190505b50905060005b60ff8116841115612b16576133aa8686868460ff1681811061339057fe5b90506020020160208101906133a59190613d8b565b613880565b828260ff16815181106133b957fe5b6020908102919091010152600101613372565b6000826133db57506000610a43565b828202828482816133e857fe5b0414612b1a5760405162461bcd60e51b8152600401610a0f90614535565b60008082116134275760405162461bcd60e51b8152600401610a0f90614340565b81838161343057fe5b049392505050565b3390565b3b151590565b6000806134a8600c8460ff166008811061345857fe5b600a020160020154610bc7600c8660ff166008811061347357fe5b600a0201600301546001600160a01b0388166000908152605c6020908152604080832060ff8b168452909152902054906133cc565b949350505050565b6114428363a9059cbb60e01b84846040516024016134cf929190613f39565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152613901565b8061350f612035565b101561352d5760405162461bcd60e51b8152600401610a0f90614762565b600061353884613304565b60008181526060602052604090205490915061010090046001600160a01b0316156135755760405162461bcd60e51b8152600401610a0f90614841565b6040805160a08101825260018082526001600160a01b03878116602080850191825260ff89811686880190815260608088018b8152600060808a018181528c82529290955298909320965187549451915160ff1990951690151517610100600160a81b03191661010091909516029390931760ff60a81b1916600160a81b9290931691909102919091178355925190820155905160029091015560615461361c908361380c565b606155605f805460018181019092557fcc7ee599e5d59fee88c83157bd897847c5911dc7d317b3175e0b08519834997301919091556001600160a01b03909316600090815260626020526040902080549093019092555050565b600080613681613990565b9050600c836040015160ff166008811061369757fe5b600a020160070154605d6000856040015160ff16815260200190815260200160002054018110156136cc576000915050610a33565b613714600c846040015160ff16600881106136e357fe5b600a020160080154605d6000866040015160ff1681526020019081526020016000205461380c90919063ffffffff16565b811015806137245750605e5460ff165b15613744576080830151606084015161373c91613831565b915050610a33565b60408084015160ff166000908152605d60205290812054613766908390613831565b90506000600c856040015160ff166008811061377e57fe5b600a0201600901549050600061379d828461340690919063ffffffff16565b905060006137ab82846133cc565b905060006137e5600c896040015160ff16600881106137c657fe5b600a020160080154610bc7848b606001516133cc90919063ffffffff16565b90506137fe88608001518261383190919063ffffffff16565b9650610a3395505050505050565b600082820183811015612b1a5760405162461bcd60e51b8152600401610a0f906141ea565b6000828211156138535760405162461bcd60e51b8152600401610a0f90614309565b50900390565b61387a846323b872dd60e01b8585856040516024016134cf93929190613eef565b50505050565b600080600c8360ff166008811061389357fe5b600a02016005015411156138f9576138f2600c8360ff16600881106138b457fe5b600a0201600501546001600160a01b0385166000908152605c6020908152604080832060ff88168452909152902054610bc79064e8d4a510006133cc565b9050610a43565b506000610a43565b6060613956826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166139949092919063ffffffff16565b80519091501561144257808060200190518101906139749190613cbf565b6114425760405162461bcd60e51b8152600401610a0f906148e5565b4290565b60606134a88484600085856139a88561343c565b6139c45760405162461bcd60e51b8152600401610a0f906147b8565b60006060866001600160a01b031685876040516139e19190613ebf565b60006040518083038185875af1925050503d8060008114613a1e576040519150601f19603f3d011682016040523d82523d6000602084013e613a23565b606091505b5091509150613a33828286613a3e565b979650505050505050565b60608315613a4d575081612b1a565b825115613a5d5782518084602001fd5b8160405162461bcd60e51b8152600401610a0f919061400e565b6040805160a08101825260008082526020820181905291810182905260608101829052608081019190915290565b80356001600160a01b0381168114610a4357600080fd5b60008083601f840112613acd578182fd5b50813567ffffffffffffffff811115613ae4578182fd5b6020830191508360208083028501011115613afe57600080fd5b9250929050565b805169ffffffffffffffffffff81168114610a4357600080fd5b600060208284031215613b30578081fd5b612b1a8383613aa5565b600080600060608486031215613b4e578182fd5b613b588585613aa5565b9250613b678560208601613aa5565b91506040840135613b7781614d1b565b809150509250925092565b600080600060408486031215613b96578283fd5b613ba08585613aa5565b9250602084013567ffffffffffffffff811115613bbb578283fd5b613bc786828701613abc565b9497909650939450505050565b60008060408385031215613be6578182fd5b613bf08484613aa5565b946020939093013593505050565b60008060408385031215613c10578182fd5b613c1a8484613aa5565b91506020830135613c2a81614d1b565b809150509250929050565b60008060208385031215613c47578182fd5b823567ffffffffffffffff811115613c5d578283fd5b613c6985828601613abc565b90969095509350505050565b600080600060408486031215613c89578283fd5b833567ffffffffffffffff811115613c9f578384fd5b613cab86828701613abc565b909790965060209590950135949350505050565b600060208284031215613cd0578081fd5b81518015158114612b1a578182fd5b600060208284031215613cf0578081fd5b5035919050565b600060208284031215613d08578081fd5b5051919050565b6000806000806000806000806000806101408b8d031215613d2e578586fd5b8a35995060208b0135985060408b0135975060608b0135965060808b0135955060a08b0135613d5c81614d1b565b999c989b5096999598949794965050505060c08301359260e08101359261010082013592506101209091013590565b600060208284031215613d9c578081fd5b8135612b1a81614d1b565b600080600080600060a08688031215613dbe578283fd5b613dc88787613b05565b9450602086015193506040860151925060608601519150613dec8760808801613b05565b90509295509295909350565b600060208284031215613e09578081fd5b8151612b1a81614d1b565b600080600080600060a08688031215613e2b578283fd5b8535613e3681614d1b565b9450613e458760208801613aa5565b94979496505050506040830135926060810135926080909101359150565b6000815180845260208085019450808401835b83811015613e9257815187529582019590820190600101613e76565b509495945050505050565b60609290921b6bffffffffffffffffffffffff19168252601482015260340190565b60008251613ed1818460208701614cef565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03938416815291909216602082015260ff909116604082015260600190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b039390931683526020830191909152604082015260600190565b6001600160a01b0392909216825260ff16602082015260400190565b600060208252612b1a6020830184613e63565b600060408252613fb56040830185613e63565b828103602084810191909152845180835285820192820190845b81811015613fed578451151583529383019391830191600101613fcf565b5090979650505050505050565b901515815260200190565b90815260200190565b600060208252825180602084015261402d816040850160208701614cef565b601f01601f19169190910160400192915050565b60208082526024908201527f736c696365506572696f645365636f6e6473206d7573742062652065786365656040820152636473203160e01b606082015260800190565b6020808252601a908201527f70726f787920636f6e7472616374206e6f7420616c6c6f776564000000000000604082015260600190565b6020808252602b908201527f436f6d7075746556657374696e675363686564756c6549643a204e6f6e20766160408201526a1b1a59081c1bdbdb081a5960aa1b606082015260800190565b6020808252601290820152714465706f7369743a20546f6f206561726c7960701b604082015260600190565b60208082526014908201527312185c9d995cdd0e88139bdd08185b1b1bddd95960621b604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526023908201527f4465706f7369743a2045786365656420706f6f6c2072616973696e6720616d6f6040820152621d5b9d60ea1b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252601c908201527f4465706f7369743a204d7573742062652077686974656c697374656400000000604082015260600190565b6020808252602c908201527f736c696365506572696f645365636f6e6473206d75737420626520696e74657260408201526b34b7b910323ab930ba34b7b760a11b606082015260800190565b602080825260149082015273696e76616c69642066656564206164647265737360601b604082015260600190565b6020808252601d908201527f76657374696e67207363686564756c65206973206e6f74206578697374000000604082015260600190565b6020808252601e908201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604082015260600190565b6020808252601a908201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604082015260600190565b6020808252600d908201526c185b1c9958591e481859191959609a1b604082015260600190565b6020808252601f908201527f4f7065726174696f6e733a20506f6f6c20646f6573206e6f7420657869737400604082015260600190565b60208082526024908201527f4465706f7369743a204e657720616d6f756e742061626f76652075736572206c6040820152631a5b5a5d60e21b606082015260800190565b6020808252601390820152721d1bdad95b88191bd95cdb89dd08195e1a5cdd606a1b604082015260600190565b602080825260129082015271486172766573743a20546f6f206561726c7960701b604082015260600190565b6020808252601290820152711a5b9d985b1a59081c1c9a58d9481999595960721b604082015260600190565b6020808252601c908201527f486172766573743a20446964206e6f7420706172746963697061746500000000604082015260600190565b6020808252601190820152704465706f7369743a20546f6f206c61746560781b604082015260600190565b6020808252818101527f4465706f7369743a20496e73756666696369656e742055534420616d6f756e74604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252601a908201527f4465706f7369743a204e6f6e2076616c696420706f6f6c206964000000000000604082015260600190565b602080825260159082015274486172766573743a20416c726561647920646f6e6560581b604082015260600190565b6020808252600d908201526c34b73b30b634b2103a37b5b2b760991b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526014908201527318dbdb9d1c9858dd081b9bdd08185b1b1bddd95960621b604082015260600190565b60208082526017908201527f6475726174696f6e206d75737420657863656564732030000000000000000000604082015260600190565b60208082526021908201527f5265636f7665723a2043616e6e6f74206265206f66666572696e6720746f6b656040820152603760f91b606082015260800190565b6020808252601b908201527f6e6f2076657374656420746f6b656e7320746f2072656c656173650000000000604082015260600190565b6020808252600790820152661156141254915160ca1b604082015260600190565b6020808252601290820152711c1c9a58d94819995959081b9bdd081cd95d60721b604082015260600190565b60208082526036908201527f63616e206e6f74206372656174652076657374696e67207363686564756c6520604082015275776974682073756666696369656e7420746f6b656e7360501b606082015260800190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252600990820152681b9bdd08185919195960ba1b604082015260600190565b60208082526015908201527411195c1bdcda5d0e88141bdbdb081b9bdd081cd95d605a1b604082015260600190565b60208082526021908201527f76657374696e675363686564756c654964206973206265656e206372656174656040820152601960fa1b606082015260800190565b6020808252601a908201527f4f66666572696e67546f6b656e3a20616c726561647920736574000000000000604082015260600190565b6020808252601290820152711d995cdd1a5b99c81a5cc81c995d9bdad95960721b604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b60208082526038908201527f6f6e6c79207468652062656e656669636961727920616e64206f776e6572206360408201527f616e2072656c656173652076657374656420746f6b656e730000000000000000606082015260800190565b6020808252601190820152701a5b98dbdc9c9958dd08191958da5b585b607a1b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252601b908201527f4f66666572696e67546f6b656e3a205a65726f20616464726573730000000000604082015260600190565b6020808252601b908201527f4465706f7369743a20416d6f756e74206d757374206265203e20300000000000604082015260600190565b602080825260139082015272696e646578206f7574206f6620626f756e647360681b604082015260600190565b6020808252818101527f5265636f7665723a2043616e6e6f74206265207061796d656e7420746f6b656e604082015260600190565b6020808252600c908201526b696e76616c69642074696d6560a01b604082015260600190565b6020808252601a908201527f486172766573743a204e6f6e2076616c696420706f6f6c206964000000000000604082015260600190565b602080825260409082018190527f4f7065726174696f6e733a2076657374696e672070657263656e746167652073908201527f686f756c642065786365656473203020616e6420696e746572696f7220313030606082015260800190565b60208082526021908201527f436861696e6c696e6b5072696365466565643a20696e76616c696420707269636040820152606560f81b606082015260800190565b8151151581526020808301516001600160a01b03169082015260408083015160ff1690820152606080830151908201526080918201519181019190915260a00190565b85815260208082018690526080604083018190528201849052600090859060a08401835b87811015614c4f578383016001600160a01b03614c3e8287613aa5565b168352935090820190600101614c21565b508481036060860152614c628187613e63565b9a9950505050505050505050565b93845260208401929092526040830152606082015260800190565b958652602086019490945260408501929092526060840152608083015260a082015260c00190565b928352602083019190915260ff16604082015260600190565b60ff91909116815260200190565b60ff9290921682521515602082015260400190565b60005b83811015614d0a578181015183820152602001614cf2565b8381111561387a5750506000910152565b60ff81168114614d2a57600080fd5b5056fea26469706673582212207391cb24cdc14ed631c7e2e38f95d7a1f4a3a36be3952a170b5171d61c86fdb464736f6c634300060c0033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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