Contract 0x716C85639D0cB7353A649a3Cf888F95349Fb54f2

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x2e6a7665d1af2962fdc093cbbdf30da213352c28a8ca73f069da93e743549fd80x60806040117625342021-10-14 10:24:1913 days 7 hrs ago0xcfddfe43a61f0bfa5dfa0b6db92fd3c834298718 IN  Contract Creation0 BNB0.02643277
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TokenSale

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 12 : TokenSale.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity 0.8.4;
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol";
import "./Staking.sol";
import "@openzeppelin/contracts/proxy/utils/Initializable.sol";
import "./interfaces/ITokenSale.sol";
import "./interfaces/IAdmin.sol";
import "./interfaces/IERC20D.sol";

/*
A tokensale includes 3 stages: 
1. Private round. Only EBSC token holders can participate in this round. The BNB/USD price is fixed in the beginning of the tokensale. All tokens available in the pre-sale will be made available through the private sale round. A single investor can purchase up to their maximum allowed investment defined by the tier. Investors can claim their tokens only when the private round is finished. If the total supply is higher than the total demand for this tokensale, investors purchase tokens up to their max allocation. If the the demand is higher than supply, the number of tokens investors will receive is adjusted, and then the native token used to invest are partially refunded.

2. Public round. After the private round has been completed, the public round opens. Any unsold tokens from the private round  become available publicly. Anyone can participate in the public round. Investment in the public sale round is limited to 1000$ per wallet. Investors who have purchased tokens in the private sale round will be able to invest further in the public sale round.

3. Airdrop. 1% of tokens allocated to each tokensale are transferred to the distributor address to be distributed among participants with two highest tiers. (The distribution is centralised in this version)
*/

contract TokenSale is Initializable, ITokenSale {
    using SafeERC20 for IERC20D;

    uint64 constant PCT_BASE = 1 ether;
    uint64 constant ORACLE_MUL = 1e10;
    uint64 constant POINT_BASE = 1000;
    bytes32 constant DEFAULT_ADMIN_ROLE = 0x00;
    AggregatorV3Interface priceFeed;

    IStaking stakingContract;
    IERC20D token;
    Params params;
    IAdmin admin;
    /**
     * @dev current tokensale stage (epoch)
     */
    Epoch public override epoch;

    mapping(address => Staked) public override stakes;
    mapping(address => bool) blacklist;

    /**
     * @dev The maximum amount for which a specific tier can buy in a private round
     */
    mapping(IStaking.Tiers => uint256) public override maxValuesByTier;
    mapping(address => bool) claimed;
    mapping(address => uint256) public override publicPurchased;

    /** @dev The exchange rate BNB / USD at the time of the first deposit */
    int256 public override exchangeRate;

    /** @dev it was sold in a private round (in tokens) */
    uint256 public override totalPrivateSold;

    /** @dev it was sold in a public round (in tokens) */
    uint256 public override totalPublicSold;

    /** @dev the totalSupply reduced to 18 decimals*/
    uint256 totalSupplyDecimals;

    /** @dev maximum available amount to purchase in tokens*/
    uint256 public publicMaxValues;

    /** @dev decimals of the token which we sell */
    uint8 tokenDecimals;

    bool fee;
    bool airdrop;
    bool leftovers;

    receive() external payable {}

    function initialize(
        Params calldata _params,
        address _stakingContract,
        address _admin,
        address _priceFeed
    ) external override initializer {
        params = _params;
        stakingContract = IStaking(_stakingContract);
        admin = IAdmin(_admin);
        token = IERC20D(_params.token);
        tokenDecimals = token.decimals();
        totalSupplyDecimals = _multiply(_params.totalSupply);
        priceFeed = AggregatorV3Interface(_priceFeed);
    }

    /**
     * @dev setup the current tokensale stage (epoch)
     */
    function checkingEpoch() internal {
        uint256 time = block.timestamp;
        if (
            epoch != Epoch.Private &&
            time >= params.privateStart &&
            time <= params.privateEnd
        ) {
            epoch = Epoch.Private;
            return;
        }
        if (
            epoch != Epoch.Public &&
            time >= params.publicStart &&
            time <= params.publicEnd &&
            _overcomeThreshold()
        ) {
            epoch = Epoch.Public;
            return;
        }
        if (
            (epoch != Epoch.Finished &&
                (time > params.privateEnd && !_overcomeThreshold())) ||
            time > params.publicEnd
        ) {
            epoch = Epoch.Finished;
            return;
        }
        if (
            (epoch != Epoch.Waiting && epoch != Epoch.Finished) &&
            (time > params.privateEnd && time < params.publicStart)
        ) {
            epoch = Epoch.Waiting;
            return;
        }
    }

    /**
     * @dev invest BNB to the tokensale
     */
    function deposit() external payable {
        require(!blacklist[msg.sender], "adr in the blacklist");
        checkingEpoch();
        address sender = msg.sender;
        uint256 value = msg.value;
        require(
            epoch == Epoch.Private || epoch == Epoch.Public,
            "incorrect time"
        );
        require(value > 0, "Cannot deposit 0");
        if (exchangeRate == 0) {
            (, exchangeRate, , , ) = priceFeed.latestRoundData();
            _setMaxValueByPrice(params.tierLimits);
        }
        if (epoch == Epoch.Private) {
            _processPrivate(sender, value);
        }
        if (epoch == Epoch.Public) {
            _processPublic(sender, value);
        }
    }

    function getTimeParams()
        external
        view
        returns (
            uint256,
            uint256,
            uint256,
            uint256
        )
    {
        return (
            params.privateStart,
            params.privateEnd,
            params.publicStart,
            params.publicEnd
        );
    }

    function getParams()
        external
        view
        returns (
            address,
            address,
            uint256,
            uint256,
            uint256,
            uint256,
            uint256,
            uint256,
            uint256[4] memory,
            uint256[2][] memory,
            uint256[2][] memory
        )
    {
        return (
            params.initial,
            params.token,
            params.totalSupply,
            params.privateTokenPrice,
            params.publicTokenPrice,
            params.escrowPercentage,
            params.thresholdPublicAmount,
            params.airdrop,
            params.tierLimits,
            params.escrowReturnMilestones,
            params.vestingPoints
        );
    }

    /**
     * @dev processing BNB investment to the private round
     * @param _sender - transaction sender
     * @param _amount - investment amount in BNB
     */
    function _processPrivate(address _sender, uint256 _amount) internal {
        IStaking.Tiers t = stakingContract.getTierOf(_sender);
        require(uint8(t) > 0, "does not have tier");
        _amount = (_amount * PCT_BASE) / params.privateTokenPrice;
        require(_amount > 0, "too little value");
        Staked storage s = stakes[_sender];
        uint256 max = maxValuesByTier[t];
        uint256 sum = s.amount + _amount;
        bool limit = sum >= max;
        uint256 left = limit ? sum - max : 0;
        uint256 add = limit ? (max - s.amount) : _amount;
        if (s.tier != t) {
            s.tier = t;
        }
        totalPrivateSold += add;
        s.amount += add;
        //to iterate through an array
        s.point = int8(uint8(params.vestingPoints.length - 1));
        /**@notice Forbid unstaking*/
        stakingContract.setPoolsEndTime(_sender, params.privateEnd);
        emit DepositPrivate(_sender, _shift(_amount));
        left = (left * params.privateTokenPrice) / PCT_BASE;
        if (left > 0) {
            (bool success, ) = _sender.call{value: left}("");
            require(success);
        }
    }

    /**
     * @dev processing BNB investment to the public round
     * @param _sender - transaction sender
     * @param _amount - investment amount in BNB
     */
    function _processPublic(address _sender, uint256 _amount) internal {
        /** @notice Calculate the token price in BNB and maximum available amount to purchase in tokens*/
        if (totalPublicSold == 0) {
            uint256 inValue = (params.publicBuyLimit * PCT_BASE) /
                (uint256(exchangeRate) * ORACLE_MUL);
            publicMaxValues = (inValue * PCT_BASE) / (params.publicTokenPrice);
        }

        /** @notice Calculate and transfer max amount of token the investor can purchase */
        (uint256 want, uint256 left) = _leftWant(_sender, _amount);
        uint256 amount = left < want ? left : want;
        token.safeTransfer(_sender, _shift(amount));
        publicPurchased[_sender] += amount;
        totalPublicSold += amount;

        /** @notice If the investor is trying to but more tokens than is allowed, the rest of BNB is returned to them */
        if (left < want) {
            uint256 refund = _amount -
                ((left * params.publicTokenPrice) / PCT_BASE);
            (bool success, ) = _sender.call{value: refund}("");
            require(success);
        }
        emit DepositPublic(_sender, _shift(amount));
    }

    /**
     * @dev calculates the amount of tokens an investor want and can actually purchase
     * @param _sender - transaction sender
     * @param _amount - investment amount in BNB
     */
    function _leftWant(address _sender, uint256 _amount)
        internal
        view
        returns (uint256 want, uint256 left)
    {
        want = (_amount * PCT_BASE) / params.publicTokenPrice;
        uint256 forUser = (publicMaxValues - publicPurchased[_sender]);
        uint256 forContract = saleTokensAmountWithoutAirdrop() -
            (totalPrivateSold + totalPublicSold);
        left = forUser < forContract ? forUser : forContract;
    }

    /**
     * @dev converts the amount of tokens from 18 decimals to {tokenDecimals}
     */
    function _shift(uint256 _amount) internal view returns (uint256 value) {
        if (tokenDecimals != 18) {
            value = tokenDecimals < 18
                ? (_amount / 10**(18 - tokenDecimals))
                : (_amount * 10**(tokenDecimals - 18));
        } else {
            value = _amount;
        }
    }

    /**
     * @dev converts the amount of tokens from {tokenDecimals} to 18 decimals
     */
    function _multiply(uint256 _amount) internal view returns (uint256 value) {
        if (tokenDecimals != 18) {
            value = tokenDecimals < 18
                ? (_amount * 10**(18 - tokenDecimals))
                : (_amount / 10**(tokenDecimals - 18));
        } else {
            value = _amount;
        }
    }

    /**
     * @dev allows the participants of the private round to claim their tokens
     */
    function claim() external override {
        checkingEpoch();
        require(uint8(epoch) > 1, "incorrect time");
        address sender = msg.sender;
        require(!claimed[sender], "already claims");
        Staked storage s = stakes[sender];
        require(s.amount != 0, "doest have a deposit");
        /** @notice An investor can withdraw no more tokens than they bought or than allowed by their tier */
        uint256 value;
        uint256 left;
        if (s.share == 0) {
            uint256 supply = saleTokensAmountWithoutAirdrop();
            /** @notice If the demand is higher than supply, the amount of available token for each investor is decreased proportionally to their tiers */
            if (totalPrivateSold > supply) {
                uint256 rate = (supply * PCT_BASE) / totalPrivateSold;
                s.share = (s.amount * rate) / PCT_BASE;
                left = s.amount - s.share;
                left = (left * params.privateTokenPrice) / PCT_BASE;
            } else {
                s.share = s.amount;
            }
        }
        (int8 newPoint, uint256 pct) = _canClaim(block.timestamp, s.point);
        require(pct > 0, "nothing to claim");
        value = (s.share * pct) / POINT_BASE;
        s.point = newPoint;
        s.claim += value;
        claimed[sender] = newPoint == -1 ? true : false;
        token.safeTransfer(sender, _shift(value));
        emit Claim(sender, _shift(value), left);
        if (left > 0) {
            (bool success, ) = sender.call{value: left}("");
            require(success);
        }
    }

    function _canClaim(uint256 _now, int8 _curPoint)
        internal
        view
        returns (int8 _newPoint, uint256 _pct)
    {
        _newPoint = _curPoint;
        for (uint8 i = 0; i <= uint8(_curPoint); i++) {
            if (_now >= params.vestingPoints[i][0]) {
                _newPoint = int8(i) - 1;
                for (uint8 j = i; j <= uint8(_curPoint); j++) {
                    _pct = _pct + params.vestingPoints[j][1];
                }
                break;
            }
        }
    }

    /**
     * @dev add users to blacklist
     * @param _blacklist - the list of users to add to the blacklist
     */
    function addToBlackList(address[] memory _blacklist) external override {
        require(msg.sender == params.initial, "adr is not initial");
        require(_blacklist.length <= 500, "Too large array");
        checkingEpoch();
        require(epoch == Epoch.Incoming, "Sale has already started");
        for (uint256 i = 0; i < _blacklist.length; i++) {
            blacklist[_blacklist[i]] = true;
        }
    }

    /**
     * @dev sends the unsold tokens and corresponding part of the escrow to the admin address
     */
    function takeLeftovers() external override {
        checkingEpoch();
        require(epoch == Epoch.Finished && airdrop, "It is not time yet");
        require(!leftovers, "Already paid");
        uint256 returnAmount = _returnEscrow();
        uint256 escrowFee = (_escrowAmount() - returnAmount);
        uint256 earned = _earned(saleTokensAmountWithoutAirdrop());
        leftovers = true;
        if (saleTokensAmountWithoutAirdrop() > totalTokenSold()) {
            returnAmount += (saleTokensAmountWithoutAirdrop() -
                totalTokenSold());
        }
        if (escrowFee > 0) {
            token.safeTransfer(admin.wallet(), _shift(escrowFee));
        }
        if (returnAmount > 0) {
            token.safeTransfer(params.initial, _shift(returnAmount));
        }
        if (earned > 0) {
            earned = earned - _valueFee();
            uint256 value = earned <= address(this).balance
                ? earned
                : address(this).balance;
            (bool success, ) = params.initial.call{value: value}("");
            require(success);
        }
        emit TransferLeftovers(_shift(returnAmount), _shift(escrowFee), earned);
    }

    function takeFee() external {
        checkingEpoch();
        require(uint8(epoch) > 1, "It is not time yet");
        require(!fee, "Already paid");
        address wallet = admin.wallet();
        uint256 tokenFee = _tokenFee();
        uint256 valueFee = _valueFee();
        fee = true;
        if (tokenFee > 0) {
            token.safeTransfer(wallet, _shift(tokenFee));
        }
        if (valueFee > 0) {
            (bool success, ) = wallet.call{value: valueFee}("");
            require(success);
        }
    }

    function _valueFee() internal view returns (uint256) {
        uint256 totalForSale = saleTokensAmountWithoutAirdrop();
        uint256 totalValue;
        if (totalPrivateSold > totalForSale) {
            totalValue = (totalForSale * params.privateTokenPrice) / PCT_BASE;
        } else {
            totalValue =
                (totalPrivateSold * params.privateTokenPrice) /
                PCT_BASE;
        }
        return (totalValue * params.valueFeePct) / POINT_BASE;
    }

    function _earned(uint256 _saleAmount)
        internal
        view
        returns (uint256 earned)
    {
        bool soldOut = totalTokenSold() > _saleAmount;
        if (soldOut) {
            earned =
                (((_saleAmount - totalPublicSold) * params.privateTokenPrice) +
                    (totalPublicSold * params.publicTokenPrice)) /
                PCT_BASE;
        } else {
            earned =
                ((totalPrivateSold * params.privateTokenPrice) +
                    (totalPublicSold * params.publicTokenPrice)) /
                PCT_BASE;
        }
    }

    /**
     * @dev sends the tokens locked for airdrop to the admin address
     */
    function takeAirdrop() external override {
        checkingEpoch();
        require(epoch == Epoch.Finished, "Sale is not over");
        require(!airdrop, "Already paid");
        uint256 amount = params.airdrop;
        airdrop = true;
        token.safeTransfer(admin.forAirdrop(), amount);
        emit TransferAirdrop(amount);
    }

    function takeLocked() external override {
        require(
            block.timestamp >= (params.publicStart + 3600) && 
            admin.hasRole(DEFAULT_ADMIN_ROLE, msg.sender),
            "It is not time yet"
        );
        uint256 amountTkn = token.balanceOf(address(this));
        uint256 amountValue = address(this).balance;
        if (amountTkn > 0) {
            token.safeTransfer(admin.wallet(), amountTkn);
        }
        if (address(this).balance > 0) {
            (bool success, ) = admin.wallet().call{value: amountValue}("");
            require(success);
        }
    }

    /**
     * @dev sends the tokens locked for airdrop to the admin address
     */
    function _setMaxValueByPrice(uint256[4] memory _limits) internal {
        for (uint256 i = 0; i < _limits.length; i++) {
            unchecked {
                require(exchangeRate > 0);
                uint256 inValue = (_limits[i] * PCT_BASE) /
                    (uint256(exchangeRate) * ORACLE_MUL);
                uint256 amount = (inValue * PCT_BASE) /
                    (params.privateTokenPrice);
                maxValuesByTier[IStaking.Tiers(i + 1)] = amount;
            }
        }
    }

    function _returnEscrow() internal view returns (uint256 returnAmount) {
        uint256 blockedAmount = _escrowAmount();
        uint256[2][] memory milestones = params.escrowReturnMilestones;
        for (uint256 i = 0; i < milestones.length; i++) {
            uint256 mustSold = (saleTokensAmountWithoutAirdrop() *
                milestones[i][0]) / POINT_BASE;
            if (mustSold <= totalTokenSold()) {
                if (milestones[i][1] > 0) {
                    returnAmount =
                        (blockedAmount * milestones[i][1]) /
                        POINT_BASE;
                } else {
                    returnAmount = blockedAmount;
                }
                break;
            }
        }
    }

    function _tokenFee() internal view returns (uint256) {
        return (totalSupplyDecimals * params.tokenFeePct) / POINT_BASE;
    }

    function totalTokenSold() public view returns (uint256) {
        return totalPrivateSold + totalPublicSold;
    }

    function _escrowAmount() internal view returns (uint256) {
        return (totalSupplyDecimals * params.escrowPercentage) / POINT_BASE;
    }

    function _overcomeThreshold() internal view returns (bool overcome) {
        if (saleTokensAmountWithoutAirdrop() > totalPrivateSold) {
            overcome = ((saleTokensAmountWithoutAirdrop() - totalPrivateSold) >=
                _multiply(params.thresholdPublicAmount));
        }
    }

    /**
     * @dev amount reserved for entire process without airdrop
     */
    function saleTokensAmountWithoutAirdrop() public view returns (uint256) {
        return 
            (totalSupplyDecimals - _escrowAmount()) -
            _multiply(params.airdrop) -
            _tokenFee();
    }
}

File 2 of 12 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

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

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

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

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

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

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

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

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

File 3 of 12 : AggregatorV3Interface.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface AggregatorV3Interface {

  function decimals()
    external
    view
    returns (
      uint8
    );

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

  function version()
    external
    view
    returns (
      uint256
    );

  // getRoundData and latestRoundData should both raise "No data present"
  // if they do not have data to report, instead of returning unset values
  // which could be misinterpreted as actual reported values.
  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 4 of 12 : Staking.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity 0.8.4;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "./interfaces/IStaking.sol";
import "./interfaces/IAdmin.sol";

/**
 * @title Staking.
 * @dev contract for staking tokens.
 *
 */
contract Staking is IStaking {
    using SafeERC20 for IERC20;

    /**
     * EBSC required for different tiers
     */
    bytes32 public constant OPERATOR = keccak256("OPERATOR");

    uint256 constant STARTER_TIER = 2e5 gwei;
    uint256 constant INVESTOR_TIER = 6e5 gwei;
    uint256 constant STRATEGIST_TIER = 25e5 gwei;
    uint256 constant EVANGELIST_TIER = 7e6 gwei;

    IERC20 public lpToken;
    IAdmin public admin;

    mapping(address => uint256) private _userDepositAmounts;
    mapping(address => uint256) public poolsEndTime;

    constructor(address _token, address _admin) {
        lpToken = IERC20(_token);
        admin = IAdmin(_admin);
    }

    modifier onlyInstances() {
        require(admin.tokenSalesM(msg.sender), "Sender is not instance");
        _;
    }

    modifier canUnstake() {
        require(
            block.timestamp > poolsEndTime[msg.sender],
            "Staking: wait to be able unstake"
        );
        _;
    }
    modifier validation(address _address) {
        require(_address != address(0), "Zero address");
        _;
    }
    modifier onlyOperator() {
        require(
            admin.hasRole(OPERATOR, msg.sender),
            "Sender is not an operator"
        );
        _;
    }

    function stakedAmountOf(address _address)
        external
        view
        override
        returns (uint256)
    {
        return _userDepositAmounts[_address];
    }

    function setAdmin(address _address)
        external
        validation(_address)
        onlyOperator
    {
        admin = IAdmin(_address);
    }

    function setToken(address _address)
        external
        validation(_address)
        onlyOperator
    {
        lpToken = IERC20(_address);
    }

    function getTierOf(address _address)
        external
        view
        override
        returns (Tiers)
    {
        return _tierByAmount(_userDepositAmounts[_address]);
    }

    function setPoolsEndTime(address _address, uint256 _time)
        external
        override
        onlyInstances
    {
        if (poolsEndTime[_address] < _time) {
            poolsEndTime[_address] = _time;
        }
    }

    function stake(uint256 _amount) external override {
        require(
            _amount > 0,
            "Staking: deposited amount must be greater than 0"
        );
        _userDepositAmounts[msg.sender] += _amount;
        lpToken.safeTransferFrom(msg.sender, address(this), _amount);
    }

    function unstake(uint256 _amount) external override canUnstake {
        uint256 amount = _amount > 0
            ? _amount
            : _userDepositAmounts[msg.sender];
        _withdraw(amount);
    }

    function _tierByAmount(uint256 _amount) internal pure returns (Tiers) {
        if (_amount >= EVANGELIST_TIER) {
            return Tiers.Evangelist;
        }
        if (_amount >= STRATEGIST_TIER) {
            return Tiers.Strategist;
        }
        if (_amount >= INVESTOR_TIER) {
            return Tiers.Investor;
        }
        if (_amount >= STARTER_TIER) {
            return Tiers.Starter;
        }
        return Tiers.None;
    }

    function _withdraw(uint256 _amount) private {
        _userDepositAmounts[msg.sender] -= _amount;
        lpToken.safeTransfer(msg.sender, _amount);
    }
}

File 5 of 12 : Initializable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

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

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        require(_initializing || !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }
}

File 6 of 12 : ITokenSale.sol
// SPDX-License-Identifier: UNLICENSED

/**
 * @title ITokenSale.
 * @dev interface of ITokenSale
 * params structure and functions.
 */
pragma solidity ^0.8.4;
pragma experimental ABIEncoderV2;
import "./IStaking.sol";

interface ITokenSale {
    struct Staked {
        IStaking.Tiers tier;
        uint256 amount;
        uint256 share;
        uint256 claim;
        int8 point;
    }
    enum Epoch {
        Incoming,
        Private,
        Waiting,
        Public,
        Finished
    }

    /**
     * @dev describe initial params for token sale
     * @param totalSupply set total amount of tokens. (Token decimals)
     * @param privateStart set starting time for private sale.
     * @param privateEnd set finish time for private sale.
     * @param publicStart set starting time for public sale.
     * @param privateEnd set finish time for private sale.
     * @param privateTokenPrice set price for private sale per token in $ (18 decimals).
     * @param publicTokenPrice set price for public sale per token in $ (18 decimals).
     * @param publicBuyLimit set limit for tokens per address in $ (18 decimals).
     * @param escrowPercentage set interest rate for depositor. >
     * @param tierPrices set price to calculate maximum value by tier for staking.
     * @param thresholdPublicAmount - should be sold more than that.
     * @param airdrop - amount reserved for airdrop
     */
    struct Params {
        address initial;
        address token;
        uint256 totalSupply; //MUST BE 10**18;
        uint256 privateStart;
        uint256 privateEnd;
        uint256 publicStart;
        uint256 publicEnd;
        uint256 privateTokenPrice; // MUST BE 10**18 in bnb
        uint256 publicTokenPrice; // MUST BE 10**18 in bnb
        uint256 publicBuyLimit; //// MUST BE 10**18 in $
        uint256 escrowPercentage; // Percentage base is 1000
        uint256[4] tierLimits; // MUST BE 10**18 in $
        uint256[2][] escrowReturnMilestones; // Percentage base is 1000
        //in erc decimals
        uint256 thresholdPublicAmount;
        uint256 airdrop;
        //[timeStamp, pct]
        uint256[2][] vestingPoints; // Percentage base is 1000
        uint256 tokenFeePct; // Percentage base is 1000
        uint256 valueFeePct; // Percentage base is 1000
    }

    /**
     * @dev initialize implementation logic contracts addresses
     * @param _stakingContract for staking contract.
     * @param _admin for admin contract.
     * @param _priceFeed for price aggregator contract.
     */
    function initialize(
        Params memory,
        address _stakingContract,
        address _admin,
        address _priceFeed
    ) external;

    /**
     * @dev claim to sell tokens in airdrop.
     */
    function claim() external;

    /**
     * @dev get banned list of addresses from participation in sales in this contract.
     */
    function epoch() external returns (Epoch);

    function maxValuesByTier(IStaking.Tiers) external returns (uint256);

    function publicPurchased(address) external returns (uint256);

    function exchangeRate() external returns (int256);

    function totalPrivateSold() external returns (uint256);

    function totalPublicSold() external returns (uint256);

    function addToBlackList(address[] memory) external;

    function takeLeftovers() external;

    function takeAirdrop() external;

    function stakes(address)
        external
        returns (
            IStaking.Tiers,
            uint256,
            uint256,
            uint256,
            int8
        );

    function takeLocked() external;

    event DepositPrivate(address indexed user, uint256 amount);
    event DepositPublic(address indexed user, uint256 amount);
    event Claim(address indexed user, uint256 amount, uint256 change);
    event TransferAirdrop(uint256 amount);
    event TransferLeftovers(uint256 leftovers, uint256 fee, uint256 earned);
}

File 7 of 12 : IAdmin.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.8.4;
import "@openzeppelin/contracts/access/IAccessControl.sol";
import "./ITokenSale.sol";

/**
 * @title IAdmin.
 * @dev interface of Admin contract
 * which can set addresses for contracts for:
 * airdrop, token sales maintainers, staking.
 * Also Admin can create new pool.
 */
interface IAdmin is IAccessControl {
    function forAirdrop() external returns (address);

    function exchangeOracle() external returns (address);

    function tokenSalesM(address) external returns (bool);

    function tokenSales(uint256) external returns (address);

    function masterTokenSale() external returns (address);

    function stakingContract() external returns (address);

    function setMasterContract(address) external;

    function setAirdrop(address _newAddress) external;

    function setStakingContract(address) external;

    function setOracleContract(address) external;

    function createPool(ITokenSale.Params calldata _params) external;

    function getTokenSales() external view returns (address[] memory);

    function wallet() external view returns (address);
}

File 8 of 12 : IERC20D.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity 0.8.4;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

interface IERC20D is IERC20 {
    function decimals() external returns (uint8);
}

File 9 of 12 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^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 10 of 12 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^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;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

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

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

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

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

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

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

File 11 of 12 : IStaking.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.8.4;

/**
 * @title IStaking.
 * @dev interface for staking
 * with params enum and functions.
 */
interface IStaking {
    /**
     * @dev
     * defines privelege type of address.
     */
    enum Tiers {
        None,
        Starter,
        Investor,
        Strategist,
        Evangelist
    }

    function setPoolsEndTime(address, uint256) external;

    function stakedAmountOf(address) external view returns (uint256);

    function stake(uint256) external;

    function unstake(uint256) external;

    function getTierOf(address) external view returns (Tiers);
}

File 12 of 12 : IAccessControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"change","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"DepositPrivate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"DepositPublic","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TransferAirdrop","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"leftovers","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"fee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"earned","type":"uint256"}],"name":"TransferLeftovers","type":"event"},{"inputs":[{"internalType":"address[]","name":"_blacklist","type":"address[]"}],"name":"addToBlackList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"epoch","outputs":[{"internalType":"enum ITokenSale.Epoch","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"exchangeRate","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getParams","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"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"},{"internalType":"uint256[4]","name":"","type":"uint256[4]"},{"internalType":"uint256[2][]","name":"","type":"uint256[2][]"},{"internalType":"uint256[2][]","name":"","type":"uint256[2][]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTimeParams","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":[{"components":[{"internalType":"address","name":"initial","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"totalSupply","type":"uint256"},{"internalType":"uint256","name":"privateStart","type":"uint256"},{"internalType":"uint256","name":"privateEnd","type":"uint256"},{"internalType":"uint256","name":"publicStart","type":"uint256"},{"internalType":"uint256","name":"publicEnd","type":"uint256"},{"internalType":"uint256","name":"privateTokenPrice","type":"uint256"},{"internalType":"uint256","name":"publicTokenPrice","type":"uint256"},{"internalType":"uint256","name":"publicBuyLimit","type":"uint256"},{"internalType":"uint256","name":"escrowPercentage","type":"uint256"},{"internalType":"uint256[4]","name":"tierLimits","type":"uint256[4]"},{"internalType":"uint256[2][]","name":"escrowReturnMilestones","type":"uint256[2][]"},{"internalType":"uint256","name":"thresholdPublicAmount","type":"uint256"},{"internalType":"uint256","name":"airdrop","type":"uint256"},{"internalType":"uint256[2][]","name":"vestingPoints","type":"uint256[2][]"},{"internalType":"uint256","name":"tokenFeePct","type":"uint256"},{"internalType":"uint256","name":"valueFeePct","type":"uint256"}],"internalType":"struct ITokenSale.Params","name":"_params","type":"tuple"},{"internalType":"address","name":"_stakingContract","type":"address"},{"internalType":"address","name":"_admin","type":"address"},{"internalType":"address","name":"_priceFeed","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum IStaking.Tiers","name":"","type":"uint8"}],"name":"maxValuesByTier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMaxValues","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"publicPurchased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleTokensAmountWithoutAirdrop","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"stakes","outputs":[{"internalType":"enum IStaking.Tiers","name":"tier","type":"uint8"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"share","type":"uint256"},{"internalType":"uint256","name":"claim","type":"uint256"},{"internalType":"int8","name":"point","type":"int8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"takeAirdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"takeFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"takeLeftovers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"takeLocked","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalPrivateSold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalPublicSold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalTokenSold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801561001057600080fd5b50615f4680620000216000396000f3fe6080604052600436106101235760003560e01c8063a0fb0c15116100a0578063d13d370c11610064578063d13d370c14610388578063d2328d4e146103b3578063dd2d5601146103ca578063e51b7593146103f5578063ff897570146104205761012a565b8063a0fb0c15146102c2578063b5f7f636146102d9578063b731d1bb14610304578063bbaddfb114610341578063d0e30db01461037e5761012a565b80633ba0b9a9116100e75780633ba0b9a9146101f7578063456411a4146102225780634e71d92d1461024b5780635e615a6b14610262578063900cf0cf146102975761012a565b8063080836581461012f5780630eb70715146101465780630fee96b81461017457806316934fc41461019f578063181aa1fd146101e05761012a565b3661012a57005b600080fd5b34801561013b57600080fd5b50610144610449565b005b34801561015257600080fd5b5061015b6106af565b60405161016b9493929190614b2f565b60405180910390f35b34801561018057600080fd5b506101896106da565b6040516101969190614ab4565b60405180910390f35b3480156101ab57600080fd5b506101c660048036038101906101c19190613f6e565b610720565b6040516101d79594939291906147e4565b60405180910390f35b3480156101ec57600080fd5b506101f5610770565b005b34801561020357600080fd5b5061020c610a11565b6040516102199190614837565b60405180910390f35b34801561022e57600080fd5b506102496004803603810190610244919061407c565b610a17565b005b34801561025757600080fd5b50610260610ceb565b005b34801561026e57600080fd5b5061027761120c565b60405161028e9b9a999897969594939291906146be565b60405180910390f35b3480156102a357600080fd5b506102ac611418565b6040516102b991906147c9565b60405180910390f35b3480156102ce57600080fd5b506102d761142b565b005b3480156102e557600080fd5b506102ee61188e565b6040516102fb9190614ab4565b60405180910390f35b34801561031057600080fd5b5061032b6004803603810190610326919061402a565b6118a5565b6040516103389190614ab4565b60405180910390f35b34801561034d57600080fd5b5061036860048036038101906103639190613f6e565b6118bd565b6040516103759190614ab4565b60405180910390f35b6103866118d5565b005b34801561039457600080fd5b5061039d611d37565b6040516103aa9190614ab4565b60405180910390f35b3480156103bf57600080fd5b506103c8611d3d565b005b3480156103d657600080fd5b506103df612118565b6040516103ec9190614ab4565b60405180910390f35b34801561040157600080fd5b5061040a61211e565b6040516104179190614ab4565b60405180910390f35b34801561042c57600080fd5b5061044760048036038101906104429190613fc0565b612124565b005b610451612382565b60048081111561048a577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601860149054906101000a900460ff1660048111156104d2577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14610512576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161050990614a94565b60405180910390fd5b602360029054906101000a900460ff1615610562576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610559906148b4565b60405180910390fd5b600060036011015490506001602360026101000a81548160ff021916908315150217905550610675601860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663cb1fb0146040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156105f457600080fd5b505af1158015610608573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061062c9190613f97565b82600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166128389092919063ffffffff16565b7f6abc2ac5e7b4c1f397eb44c67aeeecd1c651854f2e460a0011d8504d71772118816040516106a49190614ab4565b60405180910390a150565b6000806000806003800154600360040154600360050154600360060154935093509350935090919293565b60006106e46128be565b6106f26003601101546128ef565b6106fa6129a1565b6021546107079190615072565b6107119190615072565b61071b9190615072565b905090565b60196020528060005260406000206000915090508060000160009054906101000a900460ff16908060010154908060020154908060030154908060040160009054906101000a900460000b905085565b610778612382565b6001601860149054906101000a900460ff1660048111156107c2577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60ff1611610805576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107fc906149f4565b60405180910390fd5b602360019054906101000a900460ff1615610855576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084c906148b4565b60405180910390fd5b6000601860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663521eb2736040518163ffffffff1660e01b815260040160206040518083038186803b1580156108bf57600080fd5b505afa1580156108d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108f79190613f97565b905060006109036128be565b9050600061090f6129d2565b90506001602360016101000a81548160ff021916908315150217905550600082111561098b5761098a8361094284612a82565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166128389092919063ffffffff16565b5b6000811115610a0c5760008373ffffffffffffffffffffffffffffffffffffffff16826040516109ba9061468e565b60006040518083038185875af1925050503d80600081146109f7576040519150601f19603f3d011682016040523d82523d6000602084013e6109fc565b606091505b5050905080610a0a57600080fd5b505b505050565b601e5481565b600060019054906101000a900460ff1680610a3d575060008054906101000a900460ff16155b610a7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a7390614994565b60405180910390fd5b60008060019054906101000a900460ff161590508015610acc576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b8460038181610adb9190615dd5565b90505083600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082601860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550846020016020810190610b739190613f6e565b600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381600087803b158015610c1d57600080fd5b505af1158015610c31573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c559190614197565b602360006101000a81548160ff021916908360ff160217905550610c7c85604001356128ef565b60218190555081600060026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508015610ce45760008060016101000a81548160ff0219169083151502179055505b5050505050565b610cf3612382565b6001601860149054906101000a900460ff166004811115610d3d577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60ff1611610d80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7790614a74565b60405180910390fd5b6000339050601c60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615610e12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e09906148d4565b60405180910390fd5b6000601960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600081600101541415610e9d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e94906149d4565b60405180910390fd5b600080600083600201541415610f83576000610eb76106da565b905080601f541115610f73576000601f54670de0b6b3a764000067ffffffffffffffff1683610ee69190614fa3565b610ef09190614e01565b9050670de0b6b3a764000067ffffffffffffffff16818660010154610f159190614fa3565b610f1f9190614e01565b856002018190555084600201548560010154610f3b9190615072565b9250670de0b6b3a764000067ffffffffffffffff1660036007015484610f619190614fa3565b610f6b9190614e01565b925050610f81565b836001015484600201819055505b505b600080610fa1428660040160009054906101000a900460000b612b34565b9150915060008111610fe8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fdf90614934565b60405180910390fd5b6103e867ffffffffffffffff168186600201546110059190614fa3565b61100f9190614e01565b9350818560040160006101000a81548160ff021916908360000b60ff160217905550838560030160008282546110459190614dab565b925050819055507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8260000b1461107d576000611080565b60015b601c60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061112b866110e386612a82565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166128389092919063ffffffff16565b8573ffffffffffffffffffffffffffffffffffffffff167f34fcbac0073d7c3d388e51312faf357774904998eeb8fca628b9e6f65ee1cbf761116c86612a82565b8560405161117b929190614acf565b60405180910390a260008311156112045760008673ffffffffffffffffffffffffffffffffffffffff16846040516111b29061468e565b60006040518083038185875af1925050503d80600081146111ef576040519150601f19603f3d011682016040523d82523d6000602084013e6111f4565b606091505b505090508061120257600080fd5b505b505050505050565b600080600080600080600080611220613ddd565b606080600360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600360010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166003600201546003600701546003600801546003600a01546003601001546003601101546003600b016003600f016003601201826004806020026040519081016040528092919082600480156112da576020028201915b8154815260200190600101908083116112c6575b5050505050925081805480602002602001604051908101604052809291908181526020016000905b828210156113655783829060005260206000209060020201600280602002604051908101604052809291908260028015611351576020028201915b81548152602001906001019080831161133d575b505050505081526020019060010190611302565b50505050915080805480602002602001604051908101604052809291908181526020016000905b828210156113ef57838290600052602060002090600202016002806020026040519081016040528092919082600280156113db576020028201915b8154815260200190600101908083116113c7575b50505050508152602001906001019061138c565b5050505090509a509a509a509a509a509a509a509a509a509a509a50909192939495969798999a565b601860149054906101000a900460ff1681565b611433612382565b60048081111561146c577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601860149054906101000a900460ff1660048111156114b4577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1480156114cd5750602360029054906101000a900460ff165b61150c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611503906149f4565b60405180910390fd5b602360039054906101000a900460ff161561155c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611553906148b4565b60405180910390fd5b6000611566612cc5565b90506000816115736129a1565b61157d9190615072565b9050600061159161158c6106da565b612f7b565b90506001602360036101000a81548160ff0219169083151502179055506115b661188e565b6115be6106da565b11156115ec576115cc61188e565b6115d46106da565b6115de9190615072565b836115e99190614dab565b92505b60008211156116ea576116e9601860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663521eb2736040518163ffffffff1660e01b815260040160206040518083038186803b15801561166057600080fd5b505afa158015611674573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116989190613f97565b6116a184612a82565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166128389092919063ffffffff16565b5b600083111561176e5761176d600360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1661172585612a82565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166128389092919063ffffffff16565b5b600081111561183e5761177f6129d2565b8161178a9190615072565b905060004782111561179c574761179e565b815b90506000600360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16826040516117eb9061468e565b60006040518083038185875af1925050503d8060008114611828576040519150601f19603f3d011682016040523d82523d6000602084013e61182d565b606091505b505090508061183b57600080fd5b50505b7f2e16bbb456adc7e5bac41fbbcb354ebf35a90877cb1323f8256c44d17215f3f961186884612a82565b61187184612a82565b8360405161188193929190614af8565b60405180910390a1505050565b6000602054601f546118a09190614dab565b905090565b601b6020528060005260406000206000915090505481565b601d6020528060005260406000206000915090505481565b601a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615611962576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195990614a14565b60405180910390fd5b61196a612382565b60003390506000349050600160048111156119ae577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601860149054906101000a900460ff1660048111156119f6577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1480611a81575060036004811115611a37577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601860149054906101000a900460ff166004811115611a7f577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b145b611ac0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ab790614a74565b60405180910390fd5b60008111611b03576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611afa90614894565b60405180910390fd5b6000601e541415611c0d57600060029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a06040518083038186803b158015611b7657600080fd5b505afa158015611b8a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bae9190614120565b9091929350909150905050601e6000829190505550611c0c6003600b01600480602002604051908101604052809291908260048015611c02576020028201915b815481526020019060010190808311611bee575b5050505050613045565b5b60016004811115611c47577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601860149054906101000a900460ff166004811115611c8f577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415611ca057611c9f828261322f565b5b60036004811115611cda577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601860149054906101000a900460ff166004811115611d22577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415611d3357611d3282826137dc565b5b5050565b60225481565b610e10600360050154611d509190614dab565b4210158015611e0b5750601860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166391d148546000801b336040518363ffffffff1660e01b8152600401611dba9291906147a0565b60206040518083038186803b158015611dd257600080fd5b505afa158015611de6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e0a9190614001565b5b611e4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e41906149f4565b60405180910390fd5b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611ea791906146a3565b60206040518083038186803b158015611ebf57600080fd5b505afa158015611ed3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ef791906140f7565b905060004790506000821115611ff457611ff3601860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663521eb2736040518163ffffffff1660e01b815260040160206040518083038186803b158015611f7257600080fd5b505afa158015611f86573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611faa9190613f97565b83600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166128389092919063ffffffff16565b5b6000471115612114576000601860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663521eb2736040518163ffffffff1660e01b815260040160206040518083038186803b15801561206757600080fd5b505afa15801561207b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061209f9190613f97565b73ffffffffffffffffffffffffffffffffffffffff16826040516120c29061468e565b60006040518083038185875af1925050503d80600081146120ff576040519150601f19603f3d011682016040523d82523d6000602084013e612104565b606091505b505090508061211257600080fd5b505b5050565b60205481565b601f5481565b600360000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146121b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121ae90614954565b60405180910390fd5b6101f4815111156121fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121f490614874565b60405180910390fd5b612205612382565b6000600481111561223f577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601860149054906101000a900460ff166004811115612287577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b146122c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122be906149b4565b60405180910390fd5b60005b815181101561237e576001601a6000848481518110612312577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550808061237690615641565b9150506122ca565b5050565b6000429050600160048111156123c1577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601860149054906101000a900460ff166004811115612409577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415801561241b575060038001548110155b801561242c57506003600401548111155b15612488576001601860146101000a81548160ff0219169083600481111561247d577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b021790555050612836565b600360048111156124c2577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601860149054906101000a900460ff16600481111561250a577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415801561251d57506003600501548110155b801561252e57506003600601548111155b801561253e575061253d613a6e565b5b1561259a576003601860146101000a81548160ff0219169083600481111561258f577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b021790555050612836565b6004808111156125d3577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601860149054906101000a900460ff16600481111561261b577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415801561263e57506003600401548111801561263d575061263b613a6e565b155b5b8061264d575060036006015481115b156126a9576004601860146101000a81548160ff0219169083600481111561269e577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b021790555050612836565b600260048111156126e3577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601860149054906101000a900460ff16600481111561272b577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b141580156127b8575060048081111561276d577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b601860149054906101000a900460ff1660048111156127b5577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14155b80156127d85750600360040154811180156127d7575060036005015481105b5b15612834576002601860146101000a81548160ff02191690836004811115612829577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b021790555050612836565b505b565b6128b98363a9059cbb60e01b8484604051602401612857929190614777565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613aac565b505050565b60006103e867ffffffffffffffff166003601301546021546128e09190614fa3565b6128ea9190614e01565b905090565b60006012602360009054906101000a900460ff1660ff1614612998576012602360009054906101000a900460ff1660ff161061295d576012602360009054906101000a900460ff1661294191906150a6565b600a61294d9190614e85565b826129589190614e01565b612991565b602360009054906101000a900460ff16601261297991906150a6565b600a6129859190614e85565b826129909190614fa3565b5b905061299c565b8190505b919050565b60006103e867ffffffffffffffff166003600a01546021546129c39190614fa3565b6129cd9190614e01565b905090565b6000806129dd6106da565b9050600081601f541115612a2057670de0b6b3a764000067ffffffffffffffff1660036007015483612a0f9190614fa3565b612a199190614e01565b9050612a53565b670de0b6b3a764000067ffffffffffffffff16600360070154601f54612a469190614fa3565b612a509190614e01565b90505b6103e867ffffffffffffffff1660036014015482612a719190614fa3565b612a7b9190614e01565b9250505090565b60006012602360009054906101000a900460ff1660ff1614612b2b576012602360009054906101000a900460ff1660ff1610612af0576012602360009054906101000a900460ff16612ad491906150a6565b600a612ae09190614e85565b82612aeb9190614fa3565b612b24565b602360009054906101000a900460ff166012612b0c91906150a6565b600a612b189190614e85565b82612b239190614e01565b5b9050612b2f565b8190505b919050565b60008082915060005b8360ff168160ff1611612cbd5760036012018160ff1681548110612b8a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060020201600060028110612bd1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b01548510612caa57600181612be69190614ffd565b925060008190505b8460ff168160ff1611612ca45760036012018160ff1681548110612c3b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060020201600160028110612c82577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b015483612c8f9190614dab565b92508080612c9c9061568a565b915050612bee565b50612cbd565b8080612cb59061568a565b915050612b3d565b509250929050565b600080612cd06129a1565b905060006003600f01805480602002602001604051908101604052809291908181526020016000905b82821015612d5c5783829060005260206000209060020201600280602002604051908101604052809291908260028015612d48576020028201915b815481526020019060010190808311612d34575b505050505081526020019060010190612cf9565b50505050905060005b8151811015612f755760006103e867ffffffffffffffff16838381518110612db6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151600060028110612df7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020020151612e046106da565b612e0e9190614fa3565b612e189190614e01565b9050612e2261188e565b8111612f61576000838381518110612e63577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151600160028110612ea4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200201511115612f57576103e867ffffffffffffffff16838381518110612ef5577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151600160028110612f36577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002015185612f469190614fa3565b612f509190614e01565b9450612f5b565b8394505b50612f75565b508080612f6d90615641565b915050612d65565b50505090565b60008082612f8761188e565b1190508015612fef57670de0b6b3a764000067ffffffffffffffff16600360080154602054612fb69190614fa3565b60036007015460205486612fca9190615072565b612fd49190614fa3565b612fde9190614dab565b612fe89190614e01565b915061303f565b670de0b6b3a764000067ffffffffffffffff166003600801546020546130159190614fa3565b600360070154601f546130289190614fa3565b6130329190614dab565b61303c9190614e01565b91505b50919050565b60005b600481101561322b576000601e541361306057600080fd5b60006402540be40067ffffffffffffffff16601e5402670de0b6b3a764000067ffffffffffffffff168484600481106130c2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002015102816130fc577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b0490506000600360070154670de0b6b3a764000067ffffffffffffffff16830281613150577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b04905080601b6000600186016004811115613194577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60048111156131cc577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6004811115613204577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8152602001908152602001600020819055505050808061322390615641565b915050613048565b5050565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663235a5092846040518263ffffffff1660e01b815260040161328c91906146a3565b60206040518083038186803b1580156132a457600080fd5b505afa1580156132b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132dc9190614053565b90506000816004811115613319577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60ff161161335c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613353906148f4565b60405180910390fd5b600360070154670de0b6b3a764000067ffffffffffffffff16836133809190614fa3565b61338a9190614e01565b9150600082116133cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133c690614974565b60405180910390fd5b6000601960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000601b6000846004811115613451577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6004811115613489577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b815260200190815260200160002054905060008483600101546134ac9190614dab565b905060008282101590506000816134c45760006134d1565b83836134d09190615072565b5b90506000826134e057876134f1565b8560010154856134f09190615072565b5b905086600481111561352c577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8660000160009054906101000a900460ff166004811115613576577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b146135ce57868660000160006101000a81548160ff021916908360048111156135c8577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b02179055505b80601f60008282546135e09190614dab565b92505081905550808660010160008282546135fb9190614dab565b9250508190555060016003601201805490506136179190615072565b8660040160006101000a81548160ff021916908360000b60ff160217905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638dda5f6e8a6003600401546040518363ffffffff1660e01b8152600401613698929190614777565b600060405180830381600087803b1580156136b257600080fd5b505af11580156136c6573d6000803e3d6000fd5b505050508873ffffffffffffffffffffffffffffffffffffffff167f6da6f6c1c8cc962def6f703276d6811f88f220609c3374f8aae4f8e452d64aea61370b8a612a82565b6040516137189190614ab4565b60405180910390a2670de0b6b3a764000067ffffffffffffffff16600360070154836137449190614fa3565b61374e9190614e01565b915060008211156137d15760008973ffffffffffffffffffffffffffffffffffffffff168360405161377f9061468e565b60006040518083038185875af1925050503d80600081146137bc576040519150601f19603f3d011682016040523d82523d6000602084013e6137c1565b606091505b50509050806137cf57600080fd5b505b505050505050505050565b6000602054141561386b5760006402540be40067ffffffffffffffff16601e546138069190614fa3565b670de0b6b3a764000067ffffffffffffffff166003600901546138299190614fa3565b6138339190614e01565b9050600360080154670de0b6b3a764000067ffffffffffffffff16826138599190614fa3565b6138639190614e01565b602281905550505b6000806138788484613b73565b91509150600082821061388b578261388d565b815b90506138e48561389c83612a82565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166128389092919063ffffffff16565b80601d60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546139339190614dab565b92505081905550806020600082825461394c9190614dab565b9250508190555082821015613a11576000670de0b6b3a764000067ffffffffffffffff16600360080154846139819190614fa3565b61398b9190614e01565b856139969190615072565b905060008673ffffffffffffffffffffffffffffffffffffffff16826040516139be9061468e565b60006040518083038185875af1925050503d80600081146139fb576040519150601f19603f3d011682016040523d82523d6000602084013e613a00565b606091505b5050905080613a0e57600080fd5b50505b8473ffffffffffffffffffffffffffffffffffffffff167f85961e84f05b3f993fb54e2a0656cf662f909ff1fbb65dd45412877c712535e6613a5283612a82565b604051613a5f9190614ab4565b60405180910390a25050505050565b6000601f54613a7b6106da565b1115613aa957613a8f6003601001546128ef565b601f54613a9a6106da565b613aa49190615072565b101590505b90565b6000613b0e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16613c379092919063ffffffff16565b9050600081511115613b6e5780806020019051810190613b2e9190614001565b613b6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b6490614a54565b60405180910390fd5b5b505050565b600080600360080154670de0b6b3a764000067ffffffffffffffff1684613b9a9190614fa3565b613ba49190614e01565b91506000601d60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054602254613bf59190615072565b90506000602054601f54613c099190614dab565b613c116106da565b613c1b9190615072565b9050808210613c2a5780613c2c565b815b925050509250929050565b6060613c468484600085613c4f565b90509392505050565b606082471015613c94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613c8b90614914565b60405180910390fd5b613c9d85613d63565b613cdc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613cd390614a34565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051613d059190614677565b60006040518083038185875af1925050503d8060008114613d42576040519150601f19603f3d011682016040523d82523d6000602084013e613d47565b606091505b5091509150613d57828286613d76565b92505050949350505050565b600080823b905060008111915050919050565b60608315613d8657829050613dd6565b600083511115613d995782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613dcd9190614852565b60405180910390fd5b9392505050565b6040518060800160405280600490602082028036833780820191505090505090565b6000613e12613e0d84614bf0565b614bcb565b90508083825260208201905082856020860282011115613e3157600080fd5b60005b85811015613e615781613e478882613e6b565b845260208401935060208301925050600181019050613e34565b5050509392505050565b600081359050613e7a81615e71565b92915050565b600081519050613e8f81615e71565b92915050565b600082601f830112613ea657600080fd5b8135613eb6848260208601613dff565b91505092915050565b600081519050613ece81615e88565b92915050565b600081359050613ee381615e9f565b92915050565b600081519050613ef881615e9f565b92915050565b600081519050613f0d81615eaf565b92915050565b60006102a08284031215613f2657600080fd5b81905092915050565b600081519050613f3e81615ec6565b92915050565b600081519050613f5381615ef4565b92915050565b600081519050613f6881615edd565b92915050565b600060208284031215613f8057600080fd5b6000613f8e84828501613e6b565b91505092915050565b600060208284031215613fa957600080fd5b6000613fb784828501613e80565b91505092915050565b600060208284031215613fd257600080fd5b600082013567ffffffffffffffff811115613fec57600080fd5b613ff884828501613e95565b91505092915050565b60006020828403121561401357600080fd5b600061402184828501613ebf565b91505092915050565b60006020828403121561403c57600080fd5b600061404a84828501613ed4565b91505092915050565b60006020828403121561406557600080fd5b600061407384828501613ee9565b91505092915050565b6000806000806080858703121561409257600080fd5b600085013567ffffffffffffffff8111156140ac57600080fd5b6140b887828801613f13565b94505060206140c987828801613e6b565b93505060406140da87828801613e6b565b92505060606140eb87828801613e6b565b91505092959194509250565b60006020828403121561410957600080fd5b600061411784828501613f2f565b91505092915050565b600080600080600060a0868803121561413857600080fd5b600061414688828901613f44565b955050602061415788828901613efe565b945050604061416888828901613f2f565b935050606061417988828901613f2f565b925050608061418a88828901613f44565b9150509295509295909350565b6000602082840312156141a957600080fd5b60006141b784828501613f59565b91505092915050565b60006141cc838361425d565b60408301905092915050565b60006141e48383614659565b60208301905092915050565b6141f9816150da565b82525050565b600061420a82614cd3565b6142148185614d68565b935061421f83614c67565b8060005b8381101561425057815161423788826141c0565b975061424283614d41565b925050600181019050614223565b5085935050505092915050565b61426681614cf4565b6142708184614d79565b925061427b82614c96565b8060005b838110156142ac57815161429387826141d8565b965061429e83614d4e565b92505060018101905061427f565b505050505050565b6142bd81614d15565b6142c78184614d84565b92506142d282614cb4565b8060005b838110156143035781516142ea87826141d8565b96506142f583614d5b565b9250506001810190506142d6565b505050505050565b614314816150f8565b82525050565b600061432582614d2b565b61432f8185614d8f565b935061433f818560208601615388565b80840191505092915050565b614354816151fc565b82525050565b6143638161520e565b82525050565b61437281615128565b82525050565b61438181615132565b82525050565b600061439282614d36565b61439c8185614d9a565b93506143ac818560208601615388565b6143b581615905565b840191505092915050565b60006143cd600f83614d9a565b91506143d882615973565b602082019050919050565b60006143f0601083614d9a565b91506143fb8261599c565b602082019050919050565b6000614413600c83614d9a565b915061441e826159c5565b602082019050919050565b6000614436600e83614d9a565b9150614441826159ee565b602082019050919050565b6000614459601283614d9a565b915061446482615a17565b602082019050919050565b600061447c602683614d9a565b915061448782615a40565b604082019050919050565b600061449f601083614d9a565b91506144aa82615a8f565b602082019050919050565b60006144c2601283614d9a565b91506144cd82615ab8565b602082019050919050565b60006144e5601083614d9a565b91506144f082615ae1565b602082019050919050565b6000614508602e83614d9a565b915061451382615b0a565b604082019050919050565b600061452b601883614d9a565b915061453682615b59565b602082019050919050565b600061454e601483614d9a565b915061455982615b82565b602082019050919050565b6000614571601283614d9a565b915061457c82615bab565b602082019050919050565b6000614594601483614d9a565b915061459f82615bd4565b602082019050919050565b60006145b7600083614d8f565b91506145c282615bfd565b600082019050919050565b60006145da601d83614d9a565b91506145e582615c00565b602082019050919050565b60006145fd602a83614d9a565b915061460882615c29565b604082019050919050565b6000614620600e83614d9a565b915061462b82615c78565b602082019050919050565b6000614643601083614d9a565b915061464e82615ca1565b602082019050919050565b6146628161515f565b82525050565b6146718161515f565b82525050565b6000614683828461431a565b915081905092915050565b6000614699826145aa565b9150819050919050565b60006020820190506146b860008301846141f0565b92915050565b60006101c0820190506146d4600083018e6141f0565b6146e1602083018d6141f0565b6146ee604083018c614668565b6146fb606083018b614668565b614708608083018a614668565b61471560a0830189614668565b61472260c0830188614668565b61472f60e0830187614668565b61473d6101008301866142b4565b81810361018083015261475081856141ff565b90508181036101a083015261476581846141ff565b90509c9b505050505050505050505050565b600060408201905061478c60008301856141f0565b6147996020830184614668565b9392505050565b60006040820190506147b5600083018561430b565b6147c260208301846141f0565b9392505050565b60006020820190506147de600083018461434b565b92915050565b600060a0820190506147f9600083018861435a565b6148066020830187614668565b6148136040830186614668565b6148206060830185614668565b61482d6080830184614378565b9695505050505050565b600060208201905061484c6000830184614369565b92915050565b6000602082019050818103600083015261486c8184614387565b905092915050565b6000602082019050818103600083015261488d816143c0565b9050919050565b600060208201905081810360008301526148ad816143e3565b9050919050565b600060208201905081810360008301526148cd81614406565b9050919050565b600060208201905081810360008301526148ed81614429565b9050919050565b6000602082019050818103600083015261490d8161444c565b9050919050565b6000602082019050818103600083015261492d8161446f565b9050919050565b6000602082019050818103600083015261494d81614492565b9050919050565b6000602082019050818103600083015261496d816144b5565b9050919050565b6000602082019050818103600083015261498d816144d8565b9050919050565b600060208201905081810360008301526149ad816144fb565b9050919050565b600060208201905081810360008301526149cd8161451e565b9050919050565b600060208201905081810360008301526149ed81614541565b9050919050565b60006020820190508181036000830152614a0d81614564565b9050919050565b60006020820190508181036000830152614a2d81614587565b9050919050565b60006020820190508181036000830152614a4d816145cd565b9050919050565b60006020820190508181036000830152614a6d816145f0565b9050919050565b60006020820190508181036000830152614a8d81614613565b9050919050565b60006020820190508181036000830152614aad81614636565b9050919050565b6000602082019050614ac96000830184614668565b92915050565b6000604082019050614ae46000830185614668565b614af16020830184614668565b9392505050565b6000606082019050614b0d6000830186614668565b614b1a6020830185614668565b614b276040830184614668565b949350505050565b6000608082019050614b446000830187614668565b614b516020830186614668565b614b5e6040830185614668565b614b6b6060830184614668565b95945050505050565b60008083356001602003843603038112614b8d57600080fd5b80840192508235915067ffffffffffffffff821115614bab57600080fd5b602083019250604082023603831315614bc357600080fd5b509250929050565b6000614bd5614be6565b9050614be18282615610565b919050565b6000604051905090565b600067ffffffffffffffff821115614c0b57614c0a615770565b5b602082029050602081019050919050565b6000819050614c2c826002614fa3565b9050919050565b60008190506001806001038301049050919050565b60008190506001806001038301049050919050565b6000819050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b6000819050919050565b6000819050919050565b6000819050919050565b6000819050919050565b6000819050919050565b6000819050919050565b600082905092915050565b600081519050919050565b600081549050919050565b600060029050919050565b600060029050919050565b600060029050919050565b600060049050919050565b600060049050919050565b600060049050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600081905092915050565b600081905092915050565b600081905092915050565b600082825260208201905092915050565b6000614db68261515f565b9150614dc18361515f565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614df657614df56156e3565b5b828201905092915050565b6000614e0c8261515f565b9150614e178361515f565b925082614e2757614e26615712565b5b828204905092915050565b6000808291508390505b6001851115614e7c57808604811115614e5857614e576156e3565b5b6001851615614e675780820291505b8081029050614e7585615930565b9450614e3c565b94509492505050565b6000614e908261515f565b9150614e9b83615169565b9250614ec87fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484614ed0565b905092915050565b600082614ee05760019050614f9c565b81614eee5760009050614f9c565b8160018114614f045760028114614f0e57614f3d565b6001915050614f9c565b60ff841115614f2057614f1f6156e3565b5b8360020a915084821115614f3757614f366156e3565b5b50614f9c565b5060208310610133831016604e8410600b8410161715614f725782820a905083811115614f6d57614f6c6156e3565b5b614f9c565b614f7f8484846001614e32565b92509050818404811115614f9657614f956156e3565b5b81810290505b9392505050565b6000614fae8261515f565b9150614fb98361515f565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614ff257614ff16156e3565b5b828202905092915050565b600061500882615132565b915061501383615132565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff800182126000841215161561504e5761504d6156e3565b5b82607f018213600084121615615067576150666156e3565b5b828203905092915050565b600061507d8261515f565b91506150888361515f565b92508282101561509b5761509a6156e3565b5b828203905092915050565b60006150b182615169565b91506150bc83615169565b9250828210156150cf576150ce6156e3565b5b828203905092915050565b60006150e58261513f565b9050919050565b60008115159050919050565b6000819050919050565b600081905061511082615e49565b919050565b600081905061512382615e5d565b919050565b6000819050919050565b60008160000b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b600069ffffffffffffffffffff82169050919050565b6151a16151996002614c33565b8201826151c7565b50565b5b818110156151c3576151b860008261593d565b6002810190506151a5565b5050565b5b818110156151e6576151db60008261595b565b6001810190506151c8565b5050565b60006151f582615220565b9050919050565b600061520782615102565b9050919050565b600061521982615115565b9050919050565b600061522b82615232565b9050919050565b600061523d8261513f565b9050919050565b600061524f8261515f565b9050919050565b6152608383614cc8565b61526a81836157df565b61527383614c5d565b61527c83614c77565b6000805b848110156152ac5783615294818486615e06565b60408501945060028401935050600181019050615280565b5050505050505050565b6152bf82614ce9565b6152c98183615843565b6152d283614c8c565b6152db83614ca0565b6000805b8481101561531657836152f1816157c9565b90506152fe818486615e24565b602085019450600184019350506001810190506152df565b50505050505050565b61532882614d0a565b61533281836158a4565b61533b83614caa565b61534483614cbe565b6000805b8481101561537f578361535a816157c9565b9050615367818486615e24565b60208501945060018401935050600181019050615348565b50505050505050565b60005b838110156153a657808201518184015260208101905061538b565b838111156153b5576000848401525b50505050565b6000810160008301806153cd816157b3565b90506153d98184615d94565b5050506001810160208301806153ee816157b3565b90506153fa8184615d94565b50505060028101604083018061540f816157c9565b905061541b8184615de3565b505050600381016060830180615430816157c9565b905061543c8184615de3565b505050600481016080830180615451816157c9565b905061545d8184615de3565b5050506005810160a0830180615472816157c9565b905061547e8184615de3565b5050506006810160c0830180615493816157c9565b905061549f8184615de3565b5050506007810160e08301806154b4816157c9565b90506154c08184615de3565b505050600881016101008301806154d6816157c9565b90506154e28184615de3565b505050600981016101208301806154f8816157c9565b90506155048184615de3565b505050600a810161014083018061551a816157c9565b90506155268184615de3565b505050600b810161016083018061553d8184615dc7565b505050600f81016101e083016155538185614b74565b61555e818386615db7565b5050505060108101610200830180615575816157c9565b90506155818184615de3565b50505060118101610220830180615597816157c9565b90506155a38184615de3565b5050506012810161024083016155b98185614b74565b6155c4818386615db7565b50505050601381016102608301806155db816157c9565b90506155e78184615de3565b505050601481016102808301806155fd816157c9565b90506156098184615de3565b5050505050565b61561982615905565b810181811067ffffffffffffffff8211171561563857615637615770565b5b80604052505050565b600061564c8261515f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561567f5761567e6156e3565b5b600182019050919050565b600061569582615169565b915060ff8214156156a9576156a86156e3565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000819050919050565b6000819050919050565b600081356157c081615e71565b80915050919050565b600081356157d681615ec6565b80915050919050565b680100000000000000008211156157f9576157f8615770565b5b61580281614cde565b8282558083101561583e5761581681614c1c565b61581f84614c1c565b61582884614c77565b81810183820161583881836151a4565b50505050505b505050565b6801000000000000000082111561585d5761585c615770565b5b61586681614cff565b8083101561589f5761587781614c33565b61588084614c33565b61588984614ca0565b81810183820161589981836151c7565b50505050505b505050565b680100000000000000008211156158be576158bd615770565b5b6158c781614d20565b80831015615900576158d881614c48565b6158e184614c48565b6158ea84614cbe565b8181018382016158fa81836151c7565b50505050505b505050565b6000601f19601f8301169050919050565b60008160001b9050919050565b600082821b905092915050565b60008160011c9050919050565b6000821461594e5761594d6156b4565b5b6159578161518c565b5050565b615963615f0b565b61596e818484615e24565b505050565b7f546f6f206c617267652061727261790000000000000000000000000000000000600082015250565b7f43616e6e6f74206465706f736974203000000000000000000000000000000000600082015250565b7f416c726561647920706169640000000000000000000000000000000000000000600082015250565b7f616c726561647920636c61696d73000000000000000000000000000000000000600082015250565b7f646f6573206e6f74206861766520746965720000000000000000000000000000600082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f6e6f7468696e6720746f20636c61696d00000000000000000000000000000000600082015250565b7f616472206973206e6f7420696e697469616c0000000000000000000000000000600082015250565b7f746f6f206c6974746c652076616c756500000000000000000000000000000000600082015250565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b7f53616c652068617320616c726561647920737461727465640000000000000000600082015250565b7f646f65737420686176652061206465706f736974000000000000000000000000600082015250565b7f4974206973206e6f742074696d65207965740000000000000000000000000000600082015250565b7f61647220696e2074686520626c61636b6c697374000000000000000000000000600082015250565b50565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f696e636f72726563742074696d65000000000000000000000000000000000000600082015250565b7f53616c65206973206e6f74206f76657200000000000000000000000000000000600082015250565b600073ffffffffffffffffffffffffffffffffffffffff615cea84615916565b9350801983169250808416831791505092915050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff615d2c84615916565b9350801983169250808416831791505092915050565b600060088302615d727fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82615923565b615d7c8683615923565b95508019841693508086168417925050509392505050565b615d9d826151ea565b615db0615da98261579f565b8354615cca565b8255505050565b615dc2838383615256565b505050565b615dd1828261531f565b5050565b615ddf82826153bb565b5050565b615dec82615244565b615dff615df8826157a9565b8354615d00565b8255505050565b8115615e1557615e146156b4565b5b615e1f83826152b6565b505050565b615e2d83615244565b615e41615e39826157a9565b848454615d42565b825550505050565b60058110615e5a57615e59615741565b5b50565b60058110615e6e57615e6d615741565b5b50565b615e7a816150da565b8114615e8557600080fd5b50565b615e91816150ec565b8114615e9c57600080fd5b50565b60058110615eac57600080fd5b50565b615eb881615128565b8114615ec357600080fd5b50565b615ecf8161515f565b8114615eda57600080fd5b50565b615ee681615169565b8114615ef157600080fd5b50565b615efd81615176565b8114615f0857600080fd5b50565b60009056fea26469706673582212204208a044636679b543b3a12d6d1f203e17fb57306b7684952ccd674733e94b8064736f6c63430008040033

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.