Contract 0x5150945fc9e6095db7958455ee5174189f3c69f2

Contract Overview

Balance:
0 BNB

Token:
Txn Hash
Block
From
To
Value [Txn Fee]
0x850f071c3745fb61a627b2b317f18f1828b189f5e46e6fe562b593bc8639b6c883405582021-04-27 8:24:2558 days 21 hrs ago0xba535ade958703ffb99b9325ca8db04a00937029 IN  0x5150945fc9e6095db7958455ee5174189f3c69f20 BNB0.00048166
0x9fe58c04b2182b7c03e5a44459e3966a33ce06dc33157851eb59a49a895adaf483405212021-04-27 8:22:3458 days 21 hrs ago0xba535ade958703ffb99b9325ca8db04a00937029 IN  0x5150945fc9e6095db7958455ee5174189f3c69f20 BNB0.00028138
0x8c5fa1286ae11e4a7aa46a7583f203b70d4f5d6ed6646206e2d1af8dba90081c83405092021-04-27 8:21:5858 days 21 hrs ago0xba535ade958703ffb99b9325ca8db04a00937029 IN  0x5150945fc9e6095db7958455ee5174189f3c69f20 BNB0.00094292
0xb29bc4ebb776cb4756124b42b735ac216714783565c45b83ff38cf456e881a5483405072021-04-27 8:21:5258 days 21 hrs ago0xba535ade958703ffb99b9325ca8db04a00937029 IN  0x5150945fc9e6095db7958455ee5174189f3c69f20 BNB0.00109268
0x88f23d0ba24cb5e4630ec5fcfd9bef5f83819e5a08a9d910fcb5c2957ec7cd8083404742021-04-27 8:20:1358 days 21 hrs ago0xba535ade958703ffb99b9325ca8db04a00937029 IN  0x5150945fc9e6095db7958455ee5174189f3c69f20 BNB0.00047288
0x65ed8162d4814c8c0ee857f543421eeb2b2173209d79441b683c4835e547bea083403832021-04-27 8:15:4058 days 22 hrs ago0xba535ade958703ffb99b9325ca8db04a00937029 IN  0x5150945fc9e6095db7958455ee5174189f3c69f20 BNB0.00044595
0xe41e79e217ba58fb9c23c2e1a5ee62d89cc8d5e08364533282e6e55aa854509483403392021-04-27 8:13:2858 days 22 hrs ago0xba535ade958703ffb99b9325ca8db04a00937029 IN  0x5150945fc9e6095db7958455ee5174189f3c69f20.01 BNB0.00155266
[ Download CSV Export 
Latest 13 internal transactions
Parent Txn Hash Block From To Value
0x850f071c3745fb61a627b2b317f18f1828b189f5e46e6fe562b593bc8639b6c883405582021-04-27 8:24:2558 days 21 hrs ago 0x5150945fc9e6095db7958455ee5174189f3c69f2 0x8455ebe197112e3f8d6aee9c08bd1fa9d95c89140 BNB
0x8c5fa1286ae11e4a7aa46a7583f203b70d4f5d6ed6646206e2d1af8dba90081c83405092021-04-27 8:21:5858 days 21 hrs ago 0x5150945fc9e6095db7958455ee5174189f3c69f2 0x1bb4f4e871705444f3c2d28c84604e4d73b63c180 BNB
0x8c5fa1286ae11e4a7aa46a7583f203b70d4f5d6ed6646206e2d1af8dba90081c83405092021-04-27 8:21:5858 days 21 hrs ago 0x5150945fc9e6095db7958455ee5174189f3c69f2 0x8455ebe197112e3f8d6aee9c08bd1fa9d95c89140 BNB
0x8c5fa1286ae11e4a7aa46a7583f203b70d4f5d6ed6646206e2d1af8dba90081c83405092021-04-27 8:21:5858 days 21 hrs ago 0x5150945fc9e6095db7958455ee5174189f3c69f2 0x1bb4f4e871705444f3c2d28c84604e4d73b63c180 BNB
0xb29bc4ebb776cb4756124b42b735ac216714783565c45b83ff38cf456e881a5483405072021-04-27 8:21:5258 days 21 hrs ago 0x5150945fc9e6095db7958455ee5174189f3c69f2 0x1bb4f4e871705444f3c2d28c84604e4d73b63c180 BNB
0xb29bc4ebb776cb4756124b42b735ac216714783565c45b83ff38cf456e881a5483405072021-04-27 8:21:5258 days 21 hrs ago 0x5150945fc9e6095db7958455ee5174189f3c69f2 0x8455ebe197112e3f8d6aee9c08bd1fa9d95c89140 BNB
0xb29bc4ebb776cb4756124b42b735ac216714783565c45b83ff38cf456e881a5483405072021-04-27 8:21:5258 days 21 hrs ago 0x5150945fc9e6095db7958455ee5174189f3c69f2 0x1bb4f4e871705444f3c2d28c84604e4d73b63c180 BNB
0x88f23d0ba24cb5e4630ec5fcfd9bef5f83819e5a08a9d910fcb5c2957ec7cd8083404742021-04-27 8:20:1358 days 21 hrs ago 0x5150945fc9e6095db7958455ee5174189f3c69f2 0x8455ebe197112e3f8d6aee9c08bd1fa9d95c89140 BNB
0x88f23d0ba24cb5e4630ec5fcfd9bef5f83819e5a08a9d910fcb5c2957ec7cd8083404742021-04-27 8:20:1358 days 21 hrs ago 0x5150945fc9e6095db7958455ee5174189f3c69f2 0x1bb4f4e871705444f3c2d28c84604e4d73b63c180 BNB
0xe41e79e217ba58fb9c23c2e1a5ee62d89cc8d5e08364533282e6e55aa854509483403392021-04-27 8:13:2858 days 22 hrs ago 0x5150945fc9e6095db7958455ee5174189f3c69f20xba535ade958703ffb99b9325ca8db04a009370290.01 BNB
0xe41e79e217ba58fb9c23c2e1a5ee62d89cc8d5e08364533282e6e55aa854509483403392021-04-27 8:13:2858 days 22 hrs ago 0x5150945fc9e6095db7958455ee5174189f3c69f2 0x8455ebe197112e3f8d6aee9c08bd1fa9d95c89140 BNB
0xe0f23d6dce41a3da9f2a2506382da8f0a8f799422a77224e2916361e9a84f1e583401192021-04-27 8:02:2858 days 22 hrs ago 0x76c76087e6f3bcd4db43a4821576f74c1753e607 0x5150945fc9e6095db7958455ee5174189f3c69f20 BNB
0xe0f23d6dce41a3da9f2a2506382da8f0a8f799422a77224e2916361e9a84f1e583401192021-04-27 8:02:2858 days 22 hrs ago 0x76c76087e6f3bcd4db43a4821576f74c1753e607  Contract Creation0 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PreSalePool

Compiler Version
v0.7.1+commit.f4a555be

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 9 : PreSalePool.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.1;

import "../interfaces/IERC20.sol";
import "../interfaces/IPoolFactory.sol";
import "../libraries/Ownable.sol";
import "../libraries/ReentrancyGuard.sol";
import "../libraries/SafeMath.sol";
import "../libraries/Pausable.sol";
import "../extensions/RedKiteWhitelist.sol";

contract PreSalePool is Ownable, ReentrancyGuard, Pausable, RedKiteWhitelist {
    using SafeMath for uint256;

    struct OfferedCurrency {
        uint256 decimals;
        uint256 rate;
    }

    // The token being sold
    IERC20 public token;

    // The address of factory contract
    address public factory;

    // The address of signer account
    address public signer;

    // Address where funds are collected
    address public fundingWallet;

    // Timestamps when token started to sell
    uint256 public openTime = block.timestamp;

    // Timestamps when token stopped to sell
    uint256 public closeTime;

    // Amount of wei raised
    uint256 public weiRaised = 0;

    // Amount of token sold
    uint256 public tokenSold = 0;

    // Amount of token sold
    uint256 public totalUnclaimed = 0;

    // Number of token user purchased
    mapping(address => uint256) public userPurchased;

    // Number of token user claimed
    mapping(address => uint256) public userClaimed;

    // Number of token user purchased
    mapping(address => mapping (address => uint)) public investedAmountOf;

    // Get offered currencies
    mapping(address => OfferedCurrency) public offeredCurrencies;

    // Pool extensions
    bool public useWhitelist;

    // -----------------------------------------
    // Lauchpad Starter's event
    // -----------------------------------------
    event PresalePoolCreated(
        address token,
        uint256 openTime,
        uint256 closeTime,
        address offeredCurrency,
        uint256 offeredCurrencyDecimals,
        uint256 offeredCurrencyRate,
        address wallet,
        address owner
    );
    event TokenPurchaseByEther(
        address indexed purchaser,
        address indexed beneficiary,
        uint256 value,
        uint256 amount
    );
    event TokenPurchaseByToken(
        address indexed purchaser,
        address indexed beneficiary,
        address token,
        uint256 value,
        uint256 amount
    );

    event TokenClaimed(address user, uint256 amount);
    event RefundedIcoToken(address wallet, uint256 amount);
    event PoolStatsChanged();

    // -----------------------------------------
    // Constructor
    // -----------------------------------------
    constructor() {
        factory = msg.sender;
    }

    // -----------------------------------------
    // Red Kite external interface
    // -----------------------------------------

    /**
     * @dev fallback function
     */
    fallback() external {
        revert();
    }

    /**
     * @dev fallback function
     */
    receive() external payable {
        revert();
    }

    /**
     * @param _token Address of the token being sold
     * @param _duration Duration of ICO Pool
     * @param _openTime When ICO Started
     * @param _offeredCurrency Address of offered token
     * @param _offeredCurrencyDecimals Decimals of offered token
     * @param _offeredRate Number of currency token units a buyer gets
     * @param _wallet Address where collected funds will be forwarded to
     * @param _signer Address where collected funds will be forwarded to
     */
    function initialize(
        address _token,
        uint256 _duration,
        uint256 _openTime,
        address _offeredCurrency,
        uint256 _offeredRate,
        uint256 _offeredCurrencyDecimals,
        address _wallet,
        address _signer
    ) external {
        require(msg.sender == factory, "POOL::UNAUTHORIZED");

        token = IERC20(_token);
        openTime = _openTime;
        closeTime = _openTime.add(_duration);
        fundingWallet = _wallet;
        owner = tx.origin;
        paused = false;
        signer = _signer;

        offeredCurrencies[_offeredCurrency] = OfferedCurrency({
            rate: _offeredRate,
            decimals: _offeredCurrencyDecimals
        });

        emit PresalePoolCreated(
            _token,
            _openTime,
            closeTime,
            _offeredCurrency,
            _offeredCurrencyDecimals,
            _offeredRate,
            _wallet,
            owner
        );
    }

    /**
     * @notice Returns the conversion rate when user buy by offered token
     * @return Returns only a fixed number of rate.
     */
    function getOfferedCurrencyRate(address _token) public view returns (uint256) {
        return offeredCurrencies[_token].rate;
    }

    /**
     * @notice Returns the conversion rate decimals when user buy by offered token
     * @return Returns only a fixed number of decimals.
     */
    function getOfferedCurrencyDecimals(address _token) public view returns (uint256) {
        return offeredCurrencies[_token].decimals;
    }

    /**
     * @notice Return the available tokens for purchase
     * @return availableTokens Number of total available
     */
    function getAvailableTokensForSale() public view returns (uint256 availableTokens) {
        return token.balanceOf(address(this)).add(totalUnclaimed).sub(tokenSold);
    }

    /**
     * @notice Owner can set the offered token conversion rate. Receiver tokens = tradeTokens * tokenRate / 10 ** etherConversionRateDecimals
     * @param _rate Fixed number of ether rate
     * @param _decimals Fixed number of ether rate decimals
     */
    function setOfferedCurrencyRateAndDecimals(address _token, uint256 _rate, uint256 _decimals)
        external
        onlyOwner
    {
        offeredCurrencies[_token].rate = _rate;
        offeredCurrencies[_token].decimals = _decimals;
        emit PoolStatsChanged();
    }

    /**
     * @notice Owner can set the offered token conversion rate. Receiver tokens = tradeTokens * tokenRate / 10 ** etherConversionRateDecimals
     * @param _rate Fixed number of rate
     */
    function setOfferedCurrencyRate(address _token, uint256 _rate) external onlyOwner {
        require(offeredCurrencies[_token].rate != _rate, "POOL::RATE_INVALID");
        offeredCurrencies[_token].rate = _rate;
        emit PoolStatsChanged();
    }

    /**
     * @notice Owner can set the offered token conversion rate. Receiver tokens = tradeTokens * tokenRate / 10 ** etherConversionRateDecimals
     * @param _newSigner Address of new signer
     */
    function setNewSigner(address _newSigner) external onlyOwner {
        require(signer != _newSigner, "POOL::SIGNER_INVALID");
        signer = _newSigner;
    }

    /**
     * @notice Owner can set the offered token conversion rate. Receiver tokens = tradeTokens * tokenRate / 10 ** etherConversionRateDecimals
     * @param _decimals Fixed number of decimals
     */
    function setOfferedCurrencyDecimals(address _token, uint256 _decimals) external onlyOwner {
        require(offeredCurrencies[_token].decimals != _decimals, "POOL::RATE_INVALID");
        offeredCurrencies[_token].decimals = _decimals;
        emit PoolStatsChanged();
    }

    /**
     * @notice Owner can set the close time (time in seconds). User can buy before close time.
     * @param _closeTime Value in uint256 determine when we stop user to by tokens
     */
    function setCloseTime(uint256 _closeTime) external onlyOwner() {
        require(_closeTime >= block.timestamp, "POOL::INVALID_TIME");
        closeTime = _closeTime;
        emit PoolStatsChanged();
    }

    /**
     * @notice Owner can set the open time (time in seconds). User can buy after open time.
     * @param _openTime Value in uint256 determine when we allow user to by tokens
     */
    function setOpenTime(uint256 _openTime) external onlyOwner() {
        openTime = _openTime;
        emit PoolStatsChanged();
    }

    /**
     * @notice Owner can set extentions.
     * @param _whitelist Value in bool. True if using whitelist
     */
    function setPoolExtentions(bool _whitelist) external onlyOwner() {
        useWhitelist = _whitelist;
        emit PoolStatsChanged();
    }

    function buyTokenByEtherWithPermission(
        address _beneficiary,
        address _candidate,
        uint256 _maxAmount,
        uint256 _minAmount,
        bytes memory _signature
    ) public payable whenNotPaused nonReentrant {
        uint256 weiAmount = msg.value;

        require(offeredCurrencies[address(0)].rate != 0, "POOL::PURCHASE_METHOD_NOT_ALLOWED");

        _preValidatePurchase(_beneficiary, weiAmount);

        require(_validPurchase(), "POOL::ENDED");
        require(_verifyWhitelist(_candidate, _maxAmount, _minAmount, _signature));

        // calculate token amount to be created
        uint256 tokens = _getOfferedCurrencyToTokenAmount(address(0), weiAmount);
        require(getAvailableTokensForSale() >= tokens, "POOL::NOT_ENOUGHT_TOKENS_FOR_SALE");
        require(tokens >= _minAmount || userPurchased[_candidate].add(tokens) >= _minAmount, "POOL::MIN_AMOUNT_UNREACHED");
        require(userPurchased[_candidate].add(tokens) <= _maxAmount, "POOL::PURCHASE_AMOUNT_EXCEED_ALLOWANCE");

        _forwardFunds(weiAmount);

        _updatePurchasingState(weiAmount, tokens);

        investedAmountOf[address(0)][_candidate] = investedAmountOf[address(0)][_candidate].add(weiAmount);

        emit TokenPurchaseByEther(msg.sender, _beneficiary, weiAmount, tokens);
    }

    function buyTokenByTokenWithPermission(
        address _beneficiary,
        address _token,
        uint256 _amount,
        address _candidate,
        uint256 _maxAmount,
        uint256 _minAmount,
        bytes memory _signature
    ) public whenNotPaused nonReentrant {
        require(offeredCurrencies[_token].rate != 0, "POOL::PURCHASE_METHOD_NOT_ALLOWED");
        require(_validPurchase(), "POOL::ENDED");
        require(_verifyWhitelist(_candidate, _maxAmount, _minAmount, _signature));

        _verifyAllowance(msg.sender, _token, _amount);

        _preValidatePurchase(_beneficiary, _amount);

        uint256 tokens = _getOfferedCurrencyToTokenAmount(_token, _amount);
        require(getAvailableTokensForSale() >= tokens, "POOL::NOT_ENOUGHT_TOKENS_FOR_SALE");
        require(tokens >= _minAmount || userPurchased[_candidate].add(tokens) >= _minAmount, "POOL::MIN_AMOUNT_UNREACHED");
        require(userPurchased[_candidate].add(tokens) <= _maxAmount, "POOL:PURCHASE_AMOUNT_EXCEED_ALLOWANCE");

        _forwardTokenFunds(_token, _amount);

        _updatePurchasingState(_amount, tokens);

        investedAmountOf[_token][_candidate] = investedAmountOf[address(0)][_candidate].add(_amount);

        emit TokenPurchaseByToken(
            msg.sender,
            _beneficiary,
            _token,
            _amount,
            tokens
        );
    }

    /**
     * @notice Return true if pool has ended
     * @dev User cannot purchase / trade tokens when isFinalized == true
     * @return true if the ICO Ended.
     */
    function isFinalized() public view returns (bool) {
        return block.timestamp >= closeTime;
    }

    /**
     * @notice Owner can receive their remaining tokens when ICO Ended
     * @dev  Can refund remainning token if the ico ended
     * @param _wallet Address wallet who receive the remainning tokens when Ico end
     */
    function refundRemainingTokens(address _wallet)
        external
        onlyOwner
    {
        require(isFinalized(), "POOL::ICO_NOT_ENDED");
        require(token.balanceOf(address(this)) > 0, "POOL::EMPTY_BALANCE");

        uint256 remainingTokens = getAvailableTokensForSale();
        _deliverTokens(_wallet, remainingTokens);
        emit RefundedIcoToken(_wallet, remainingTokens);
    }

    /**
     * @notice User can receive their tokens when pool finished
     */
    function claimTokens(address _candidate, uint256 _maxAmount, uint256 _minAmount, bytes memory _signature) public {
        require(_verifyWhitelist(_candidate, _maxAmount, _minAmount, _signature), "POOL::NOT_ALLOW_TO_CLAIM");
        require(isFinalized(), "POOL::NOT_FINALLIZED");


        uint256 claimAmount = userPurchased[_candidate];

        if (claimAmount > _maxAmount) {
            claimAmount = _maxAmount;
        }
        
        userClaimed[_candidate] = userClaimed[_candidate].add(claimAmount);

        require(userClaimed[_candidate] <= _maxAmount, "POOL::CLAIM_EXCEED_ALLOWANCE");
        
        _deliverTokens(msg.sender, claimAmount);
        totalUnclaimed = totalUnclaimed.sub(claimAmount);

        userPurchased[_candidate] = userPurchased[_candidate].sub(claimAmount);

        emit TokenClaimed(msg.sender, claimAmount);
    }

    /**
     * @dev Validation of an incoming purchase. Use require statements to revert state when conditions are not met. Use super to concatenate validations.
     * @param _beneficiary Address performing the token purchase
     * @param _weiAmount Value in wei involved in the purchase
     */
    function _preValidatePurchase(address _beneficiary, uint256 _weiAmount)
        internal
        pure
    {
        require(_beneficiary != address(0), "POOL::INVALID_BENEFICIARY");
        require(_weiAmount != 0, "POOL::INVALID_WEI_AMOUNT");
    }

    /**
     * @dev Override to extend the way in which ether is converted to tokens.
     * @param _amount Value in wei to be converted into tokens
     * @return Number of tokens that can be purchased with the specified _weiAmount
     */
    function _getOfferedCurrencyToTokenAmount(address _token, uint256 _amount)
        internal
        view
        returns (uint256)
    {
        uint256 rate = getOfferedCurrencyRate(_token);
        uint256 decimals = getOfferedCurrencyDecimals(_token);
        return _amount.mul(rate).div(10**decimals);
    }

    /**
     * @dev Source of tokens. Transfer / mint
     * @param _beneficiary Address performing the token purchase
     * @param _tokenAmount Number of tokens to be emitted
     */
    function _deliverTokens(address _beneficiary, uint256 _tokenAmount)
        internal
    {
        token.transfer(_beneficiary, _tokenAmount);
    }

    /**
     * @dev Determines how ETH is stored/forwarded on purchases.
     */
    function _forwardFunds(uint256 _value) internal {
        address payable wallet = address(uint160(fundingWallet));
        (bool success, ) = wallet.call{value: _value}("");
        require(success, "POOL::WALLET_TRANSFER_FAILED");
    }

    /**
     * @dev Determines how Token is stored/forwarded on purchases.
     */
    function _forwardTokenFunds(address _token, uint256 _amount) internal {
        IERC20(_token).transferFrom(msg.sender, fundingWallet, _amount);
    }

    /**
     * @param _tokens Value of sold tokens
     * @param _weiAmount Value in wei involved in the purchase
     */
    function _updatePurchasingState(uint256 _weiAmount, uint256 _tokens)
        internal
    {
        weiRaised = weiRaised.add(_weiAmount);
        tokenSold = tokenSold.add(_tokens);
        userPurchased[msg.sender] = userPurchased[msg.sender].add(_tokens);
        totalUnclaimed = totalUnclaimed.add(_tokens);
    }

    // @return true if the transaction can buy tokens
    function _validPurchase() internal view returns (bool) {
        bool withinPeriod =
            block.timestamp >= openTime && block.timestamp <= closeTime;
        return withinPeriod;
    }

    /**
     * @dev Transfer eth to an address
     * @param _to Address receiving the eth
     * @param _amount Amount of wei to transfer
     */
    function _transfer(address _to, uint256 _amount) private {
        address payable payableAddress = address(uint160(_to));
        (bool success, ) = payableAddress.call{value: _amount}("");
        require(success, "POOL::TRANSFER_FEE_FAILED");
    }

    /**
     * @dev Verify allowance of purchase
     * @param _user Address of buyer
     * @param _token token address of purchasing token
     * @param _amount Amount of token to buy pool token
     */
    function _verifyAllowance(
        address _user,
        address _token,
        uint256 _amount
    ) private view {
        IERC20 tradeToken = IERC20(_token);
        uint256 allowance = tradeToken.allowance(_user, address(this));
        require(allowance >= _amount, "POOL::TOKEN_NOT_APPROVED");
    }

    /**
     * @dev Verify permission of purchase
     * @param _candidate Address of buyer
     * @param _maxAmount max token can buy
     * @param _minAmount min token can buy
     * @param _signature Signature of signers
     */
    function _verifyWhitelist(
        address _candidate,
        uint256 _maxAmount,
        uint256 _minAmount,
        bytes memory _signature
    ) private view returns (bool) {
        if (useWhitelist) {
            return (verify(signer, _candidate, _maxAmount, _minAmount, _signature));
        }
        return true;
    }
}

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

pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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

File 3 of 9 : IPoolFactory.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.1;

interface IPoolFactory {
    function getTier() external view returns (address);
}

File 4 of 9 : Ownable.sol
//SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.7.0;


/**
 * @title Ownable
 * @dev The Ownable contract has an owner address, and provides basic authorization control
 * functions, this simplifies the implementation of "user permissions".
 */
contract Ownable {
  address public owner;

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

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

  /**
   * @dev Allows the current owner to transfer control of the contract to a newOwner.
   * @param _newOwner The address to transfer ownership to.
   */
  function transferOwnership(address _newOwner) public onlyOwner {
    _transferOwnership(_newOwner);
  }

  /**
   * @dev Transfers control of the contract to a newOwner.
   * @param _newOwner The address to transfer ownership to.
   */
  function _transferOwnership(address _newOwner) internal {
    require(_newOwner != address(0));
    emit OwnershipTransferred(owner, _newOwner);
    owner = _newOwner;
  }
}

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

pragma solidity >=0.6.0 <0.8.0;

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

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

    uint256 private _status;

    constructor () {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

File 6 of 9 : SafeMath.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;

// From https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/math/Math.sol
// Subject to the MIT license.

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

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

        return c;
    }

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on underflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot underflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, errorMessage);

        return c;
    }

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

    /**
     * @dev Returns the integer division of two unsigned integers.
     * Reverts with custom message on division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

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

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

File 7 of 9 : Pausable.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.1;


import "./Ownable.sol";


/**
 * @title Pausable
 * @dev Base contract which allows children to implement an emergency stop mechanism.
 */
contract Pausable is Ownable {
  event Pause();
  event Unpause();

  bool public paused;


  /**
   * @dev Modifier to make a function callable only when the contract is not paused.
   */
  modifier whenNotPaused() {
    require(!paused, "CONTRACT_PAUSED");
    _;
  }

  /**
   * @dev Modifier to make a function callable only when the contract is paused.
   */
  modifier whenPaused() {
    require(paused, "CONTRACT_NOT_PAUSED");
    _;
  }

  /**
   * @dev called by the owner to pause, triggers stopped state
   */
  function pause() onlyOwner whenNotPaused public {
    paused = true;
    emit Pause();
  }

  /**
   * @dev called by the owner to unpause, returns to normal state
   */
  function unpause() onlyOwner whenPaused public {
    paused = false;
    emit Unpause();
  }
}

File 8 of 9 : RedKiteWhitelist.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;

import "openzeppelin-solidity/contracts/cryptography/ECDSA.sol";

// Signature Verification
/// @title RedKite Whitelists - Implement off-chain whitelist and on-chain verification
/// @author Thang Nguyen Quy <[email protected]>

contract RedKiteWhitelist {
    // Using Openzeppelin ECDSA cryptography library
    function getMessageHash(
        address _candidate,
        uint256 _maxAmount,
        uint256 _minAmount
    ) public pure returns (bytes32) {
        return keccak256(abi.encodePacked(_candidate, _maxAmount, _minAmount));
    }

    // Verify signature function
    function verify(
        address _signer,
        address _candidate,
        uint256 _maxAmount,
        uint256 _minAmount,
        bytes memory signature
    ) public pure returns (bool) {
        bytes32 messageHash = getMessageHash(_candidate, _maxAmount, _minAmount);
        bytes32 ethSignedMessageHash = getEthSignedMessageHash(messageHash);

        return getSignerAddress(ethSignedMessageHash, signature) == _signer;
    }

    function getSignerAddress(bytes32 _messageHash, bytes memory _signature) public pure returns(address signer) {
        return ECDSA.recover(_messageHash, _signature);
    }

    // Split signature to r, s, v
    function splitSignature(bytes memory _signature)
        public
        pure
        returns (
            bytes32 r,
            bytes32 s,
            uint8 v
        )
    {
        require(_signature.length == 65, "invalid signature length");

        assembly {
            r := mload(add(_signature, 32))
            s := mload(add(_signature, 64))
            v := byte(0, mload(add(_signature, 96)))
        }
    }

    function getEthSignedMessageHash(bytes32 _messageHash)
        public
        pure
        returns (bytes32)
    {
        return ECDSA.toEthSignedMessageHash(_messageHash);
    }
}

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

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        // Check the signature length
        if (signature.length != 65) {
            revert("ECDSA: invalid signature length");
        }

        // Divide the signature in r, s and v variables
        bytes32 r;
        bytes32 s;
        uint8 v;

        // ecrecover takes the signature parameters, and the only way to get them
        // currently is to use assembly.
        // solhint-disable-next-line no-inline-assembly
        assembly {
            r := mload(add(signature, 0x20))
            s := mload(add(signature, 0x40))
            v := byte(0, mload(add(signature, 0x60)))
        }

        return recover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover-bytes32-bytes-} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        require(uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0, "ECDSA: invalid signature 's' value");
        require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value");

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        require(signer != address(0), "ECDSA: invalid signature");

        return signer;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * replicates the behavior of the
     * https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_sign[`eth_sign`]
     * JSON-RPC method.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }
}

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

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[],"name":"Pause","type":"event"},{"anonymous":false,"inputs":[],"name":"PoolStatsChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"openTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"closeTime","type":"uint256"},{"indexed":false,"internalType":"address","name":"offeredCurrency","type":"address"},{"indexed":false,"internalType":"uint256","name":"offeredCurrencyDecimals","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"offeredCurrencyRate","type":"uint256"},{"indexed":false,"internalType":"address","name":"wallet","type":"address"},{"indexed":false,"internalType":"address","name":"owner","type":"address"}],"name":"PresalePoolCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"wallet","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RefundedIcoToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokenClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"purchaser","type":"address"},{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokenPurchaseByEther","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"purchaser","type":"address"},{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokenPurchaseByToken","type":"event"},{"anonymous":false,"inputs":[],"name":"Unpause","type":"event"},{"stateMutability":"nonpayable","type":"fallback"},{"inputs":[{"internalType":"address","name":"_beneficiary","type":"address"},{"internalType":"address","name":"_candidate","type":"address"},{"internalType":"uint256","name":"_maxAmount","type":"uint256"},{"internalType":"uint256","name":"_minAmount","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"buyTokenByEtherWithPermission","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_beneficiary","type":"address"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_candidate","type":"address"},{"internalType":"uint256","name":"_maxAmount","type":"uint256"},{"internalType":"uint256","name":"_minAmount","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"buyTokenByTokenWithPermission","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_candidate","type":"address"},{"internalType":"uint256","name":"_maxAmount","type":"uint256"},{"internalType":"uint256","name":"_minAmount","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"claimTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"closeTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fundingWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAvailableTokensForSale","outputs":[{"internalType":"uint256","name":"availableTokens","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_messageHash","type":"bytes32"}],"name":"getEthSignedMessageHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_candidate","type":"address"},{"internalType":"uint256","name":"_maxAmount","type":"uint256"},{"internalType":"uint256","name":"_minAmount","type":"uint256"}],"name":"getMessageHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"getOfferedCurrencyDecimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"getOfferedCurrencyRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_messageHash","type":"bytes32"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"getSignerAddress","outputs":[{"internalType":"address","name":"signer","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_duration","type":"uint256"},{"internalType":"uint256","name":"_openTime","type":"uint256"},{"internalType":"address","name":"_offeredCurrency","type":"address"},{"internalType":"uint256","name":"_offeredRate","type":"uint256"},{"internalType":"uint256","name":"_offeredCurrencyDecimals","type":"uint256"},{"internalType":"address","name":"_wallet","type":"address"},{"internalType":"address","name":"_signer","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"investedAmountOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isFinalized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"offeredCurrencies","outputs":[{"internalType":"uint256","name":"decimals","type":"uint256"},{"internalType":"uint256","name":"rate","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"}],"name":"refundRemainingTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_closeTime","type":"uint256"}],"name":"setCloseTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newSigner","type":"address"}],"name":"setNewSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_decimals","type":"uint256"}],"name":"setOfferedCurrencyDecimals","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_rate","type":"uint256"}],"name":"setOfferedCurrencyRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_rate","type":"uint256"},{"internalType":"uint256","name":"_decimals","type":"uint256"}],"name":"setOfferedCurrencyRateAndDecimals","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_openTime","type":"uint256"}],"name":"setOpenTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_whitelist","type":"bool"}],"name":"setPoolExtentions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"splitSignature","outputs":[{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenSold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalUnclaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"useWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userPurchased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"},{"internalType":"address","name":"_candidate","type":"address"},{"internalType":"uint256","name":"_maxAmount","type":"uint256"},{"internalType":"uint256","name":"_minAmount","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"verify","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"weiRaised","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405242600655600060085560006009556000600a5534801561002357600080fd5b5060018055600380546001600160a01b03191633179055612c4f806100496000396000f3fe6080604052600436106102bf5760003560e01c80638456cb591161016e578063c45a0155116100cb578063e630025a1161007f578063f60ba33811610064578063f60ba33814610cd5578063fa54080114610cff578063fc0c546a14610d29576102c9565b8063e630025a14610c8d578063f2fde38b14610ca2576102c9565b8063cffc18eb116100b0578063cffc18eb14610b43578063d2b0737b14610c1b578063e1f7133d14610c5a576102c9565b8063c45a015514610b19578063c96f14b814610b2e576102c9565b8063a7bb580311610122578063b651833911610107578063b6518339146109dc578063b837df1e14610a0f578063ba2cb23714610a4a576102c9565b8063a7bb5803146108f3578063b4256888146109c7576102c9565b80638da5cb5b116101535780638da5cb5b146107cd5780638db79ffe146107e2578063a1491efc1461080e576102c9565b80638456cb59146107a35780638d4e4083146107b8576102c9565b80634042b66f1161021c5780635c975abb116101d05780636301d4c2116101b55780636301d4c21461072257806375d785a91461075b57806383c6394a1461078e576102c9565b80635c975abb146106e4578063627749e61461070d576102c9565b80634d5c3dfa116102015780634d5c3dfa1461061f578063519ee19e146106835780635a3a85cb14610698576102c9565b80634042b66f146105cb5780634c016408146105e0576102c9565b80632ee58943116102735780633be3a3f5116102585780633be3a3f5146105775780633c4b40b8146105a15780633f4ba83a146105b6576102c9565b80632ee58943146104ff5780633b7fcdca14610544576102c9565b8063238ac933116102a4578063238ac933146103e657806324c5aae7146103fb5780632868193a146104c6576102c9565b80630f7d8e39146102db5780630f9c5d9e146103b1576102c9565b366102c957600080fd5b3480156102d557600080fd5b50600080fd5b3480156102e757600080fd5b50610395600480360360408110156102fe57600080fd5b8135919081019060408101602082013564010000000081111561032057600080fd5b82018360208201111561033257600080fd5b8035906020019184600183028401116401000000008311171561035457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610d3e945050505050565b604080516001600160a01b039092168252519081900360200190f35b3480156103bd57600080fd5b506103e4600480360360208110156103d457600080fd5b50356001600160a01b0316610d53565b005b3480156103f257600080fd5b50610395610dfc565b6103e4600480360360a081101561041157600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a08101608082013564010000000081111561045157600080fd5b82018360208201111561046357600080fd5b8035906020019184600183028401116401000000008311171561048557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610e0b945050505050565b3480156104d257600080fd5b506103e4600480360360408110156104e957600080fd5b506001600160a01b03813516906020013561119a565b34801561050b57600080fd5b506105326004803603602081101561052257600080fd5b50356001600160a01b0316611269565b60408051918252519081900360200190f35b34801561055057600080fd5b506105326004803603602081101561056757600080fd5b50356001600160a01b031661127b565b34801561058357600080fd5b506103e46004803603602081101561059a57600080fd5b503561128d565b3480156105ad57600080fd5b5061039561132a565b3480156105c257600080fd5b506103e4611339565b3480156105d757600080fd5b506105326113dc565b3480156105ec57600080fd5b506103e46004803603606081101561060357600080fd5b506001600160a01b0381351690602081013590604001356113e2565b34801561062b57600080fd5b506103e4600480360361010081101561064357600080fd5b506001600160a01b038135811691602081013591604082013591606081013582169160808201359160a08101359160c082013581169160e0013516611446565b34801561068f57600080fd5b506105326115e1565b3480156106a457600080fd5b506106cb600480360360208110156106bb57600080fd5b50356001600160a01b03166115e7565b6040805192835260208301919091528051918290030190f35b3480156106f057600080fd5b506106f9611600565b604080519115158252519081900360200190f35b34801561071957600080fd5b50610532611609565b34801561072e57600080fd5b506103e46004803603604081101561074557600080fd5b506001600160a01b03813516906020013561160f565b34801561076757600080fd5b506105326004803603602081101561077e57600080fd5b50356001600160a01b03166116d8565b34801561079a57600080fd5b506105326116f6565b3480156107af57600080fd5b506103e46117a3565b3480156107c457600080fd5b506106f961183c565b3480156107d957600080fd5b50610395611845565b3480156107ee57600080fd5b506103e46004803603602081101561080557600080fd5b50351515611854565b34801561081a57600080fd5b506103e4600480360360e081101561083157600080fd5b6001600160a01b03823581169260208101358216926040820135926060830135169160808101359160a0820135919081019060e0810160c082013564010000000081111561087e57600080fd5b82018360208201111561089057600080fd5b803590602001918460018302840111640100000000831117156108b257600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506118a5945050505050565b3480156108ff57600080fd5b506109a66004803603602081101561091657600080fd5b81019060208101813564010000000081111561093157600080fd5b82018360208201111561094357600080fd5b8035906020019184600183028401116401000000008311171561096557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611c1f945050505050565b60408051938452602084019290925260ff1682820152519081900360600190f35b3480156109d357600080fd5b50610532611c98565b3480156109e857600080fd5b506103e4600480360360208110156109ff57600080fd5b50356001600160a01b0316611c9e565b348015610a1b57600080fd5b5061053260048036036040811015610a3257600080fd5b506001600160a01b0381358116916020013516611e53565b348015610a5657600080fd5b506103e460048036036080811015610a6d57600080fd5b6001600160a01b038235169160208101359160408201359190810190608081016060820135640100000000811115610aa457600080fd5b820183602082011115610ab657600080fd5b80359060200191846001830284011164010000000083111715610ad857600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611e70945050505050565b348015610b2557600080fd5b50610395612077565b348015610b3a57600080fd5b50610532612086565b348015610b4f57600080fd5b506106f9600480360360a0811015610b6657600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135640100000000811115610ba657600080fd5b820183602082011115610bb857600080fd5b80359060200191846001830284011164010000000083111715610bda57600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061208c945050505050565b348015610c2757600080fd5b5061053260048036036060811015610c3e57600080fd5b506001600160a01b0381351690602081013590604001356120d3565b348015610c6657600080fd5b5061053260048036036020811015610c7d57600080fd5b50356001600160a01b0316612120565b348015610c9957600080fd5b506106f961213b565b348015610cae57600080fd5b506103e460048036036020811015610cc557600080fd5b50356001600160a01b0316612144565b348015610ce157600080fd5b506103e460048036036020811015610cf857600080fd5b5035612167565b348015610d0b57600080fd5b5061053260048036036020811015610d2257600080fd5b50356121af565b348015610d3557600080fd5b506103956121ba565b6000610d4a83836121ce565b90505b92915050565b6000546001600160a01b03163314610d6a57600080fd5b6004546001600160a01b0382811691161415610dcd576040805162461bcd60e51b815260206004820152601460248201527f504f4f4c3a3a5349474e45525f494e56414c4944000000000000000000000000604482015290519081900360640190fd5b6004805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6004546001600160a01b031681565b60025460ff1615610e55576040805162461bcd60e51b815260206004820152600f60248201526e10d3d395149050d517d4105554d151608a1b604482015290519081900360640190fd5b60026001541415610ead576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260015560008052600e6020527fe710864318d4a32f37d6ce54cb3fadbef648dd12d8dbdf53973564d56b7f881d543490610f1a5760405162461bcd60e51b8152600401808060200182810382526021815260200180612bd86021913960400191505060405180910390fd5b610f24868261224e565b610f2c6122ff565b610f6b576040805162461bcd60e51b815260206004820152600b60248201526a1413d3d30e8e915391115160aa1b604482015290519081900360640190fd5b610f778585858561231c565b610f8057600080fd5b6000610f8d600083612356565b905080610f986116f6565b1015610fd55760405162461bcd60e51b8152600401808060200182810382526021815260200180612bf96021913960400191505060405180910390fd5b838110158061100757506001600160a01b0386166000908152600b602052604090205484906110049083612392565b10155b611058576040805162461bcd60e51b815260206004820152601a60248201527f504f4f4c3a3a4d494e5f414d4f554e545f554e52454143484544000000000000604482015290519081900360640190fd5b6001600160a01b0386166000908152600b6020526040902054859061107d9083612392565b11156110ba5760405162461bcd60e51b8152600401808060200182810382526026815260200180612b6f6026913960400191505060405180910390fd5b6110c3826123ec565b6110cd828261249d565b6001600160a01b03861660009081527f81955a0a11e65eac625c29e8882660bae4e165a75d72780094acae8ece9a29ee602052604090205461110f9083612392565b6001600160a01b0387811660009081527f81955a0a11e65eac625c29e8882660bae4e165a75d72780094acae8ece9a29ee60209081526040918290209390935580518581529283018490528051918a169233927fd6e14f869a4a94e470ad9068cd72554abf10add2c7004aaeed6ea664aede76bd929181900390910190a35050600180555050505050565b6000546001600160a01b031633146111b157600080fd5b6001600160a01b0382166000908152600e6020526040902060010154811415611221576040805162461bcd60e51b815260206004820152601260248201527f504f4f4c3a3a524154455f494e56414c49440000000000000000000000000000604482015290519081900360640190fd5b6001600160a01b0382166000908152600e6020526040808220600101839055517f915bfd81dbd055d8da358fc4e8b3765b49c2622a2c9ae16e8ae64ed4b18f95629190a15050565b600b6020526000908152604090205481565b600c6020526000908152604090205481565b6000546001600160a01b031633146112a457600080fd5b428110156112f9576040805162461bcd60e51b815260206004820152601260248201527f504f4f4c3a3a494e56414c49445f54494d450000000000000000000000000000604482015290519081900360640190fd5b60078190556040517f915bfd81dbd055d8da358fc4e8b3765b49c2622a2c9ae16e8ae64ed4b18f956290600090a150565b6005546001600160a01b031681565b6000546001600160a01b0316331461135057600080fd5b60025460ff166113a7576040805162461bcd60e51b815260206004820152601360248201527f434f4e54524143545f4e4f545f50415553454400000000000000000000000000604482015290519081900360640190fd5b6002805460ff191690556040517f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3390600090a1565b60085481565b6000546001600160a01b031633146113f957600080fd5b6001600160a01b0383166000908152600e602052604080822060018101859055839055517f915bfd81dbd055d8da358fc4e8b3765b49c2622a2c9ae16e8ae64ed4b18f95629190a1505050565b6003546001600160a01b031633146114a5576040805162461bcd60e51b815260206004820152601260248201527f504f4f4c3a3a554e415554484f52495a45440000000000000000000000000000604482015290519081900360640190fd5b600280547fffffffffffffffffffffff0000000000000000000000000000000000000000ff166101006001600160a01b038b160217905560068690556114eb8688612392565b6007908155600580546001600160a01b0380861673ffffffffffffffffffffffffffffffffffffffff199283168117909355600080548316321781556002805460ff191690556004805487841694169390931790925560408051808201825288815260208082018b81528c8516808752600e8352848720935184559051600193909301929092559554935482518f851681529687018d90528683019490945260608601526080850188905260a0850189905260c08501939093521660e0830152517ffd045e83cc69e7df57693ebd8d1436135571f49c273838cde1c94108b1a20cb3918190036101000190a15050505050505050565b60095481565b600e602052600090815260409020805460019091015482565b60025460ff1681565b60075481565b6000546001600160a01b0316331461162657600080fd5b6001600160a01b0382166000908152600e6020526040902054811415611693576040805162461bcd60e51b815260206004820152601260248201527f504f4f4c3a3a524154455f494e56414c49440000000000000000000000000000604482015290519081900360640190fd5b6001600160a01b0382166000908152600e6020526040808220839055517f915bfd81dbd055d8da358fc4e8b3765b49c2622a2c9ae16e8ae64ed4b18f95629190a15050565b6001600160a01b03166000908152600e602052604090206001015490565b600061179e600954611798600a54600260019054906101000a90046001600160a01b03166001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561176657600080fd5b505afa15801561177a573d6000803e3d6000fd5b505050506040513d602081101561179057600080fd5b505190612392565b906124fb565b905090565b6000546001600160a01b031633146117ba57600080fd5b60025460ff1615611804576040805162461bcd60e51b815260206004820152600f60248201526e10d3d395149050d517d4105554d151608a1b604482015290519081900360640190fd5b6002805460ff191660011790556040517f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62590600090a1565b60075442101590565b6000546001600160a01b031681565b6000546001600160a01b0316331461186b57600080fd5b600f805460ff19168215151790556040517f915bfd81dbd055d8da358fc4e8b3765b49c2622a2c9ae16e8ae64ed4b18f956290600090a150565b60025460ff16156118ef576040805162461bcd60e51b815260206004820152600f60248201526e10d3d395149050d517d4105554d151608a1b604482015290519081900360640190fd5b60026001541415611947576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260019081556001600160a01b0387166000908152600e6020526040902001546119a35760405162461bcd60e51b8152600401808060200182810382526021815260200180612bd86021913960400191505060405180910390fd5b6119ab6122ff565b6119ea576040805162461bcd60e51b815260206004820152600b60248201526a1413d3d30e8e915391115160aa1b604482015290519081900360640190fd5b6119f68484848461231c565b6119ff57600080fd5b611a0a33878761253d565b611a14878661224e565b6000611a208787612356565b905080611a2b6116f6565b1015611a685760405162461bcd60e51b8152600401808060200182810382526021815260200180612bf96021913960400191505060405180910390fd5b8281101580611a9a57506001600160a01b0385166000908152600b60205260409020548390611a979083612392565b10155b611aeb576040805162461bcd60e51b815260206004820152601a60248201527f504f4f4c3a3a4d494e5f414d4f554e545f554e52454143484544000000000000604482015290519081900360640190fd5b6001600160a01b0385166000908152600b60205260409020548490611b109083612392565b1115611b4d5760405162461bcd60e51b8152600401808060200182810382526025815260200180612b286025913960400191505060405180910390fd5b611b578787612635565b611b61868261249d565b6001600160a01b03851660009081527f81955a0a11e65eac625c29e8882660bae4e165a75d72780094acae8ece9a29ee6020526040902054611ba39087612392565b6001600160a01b038089166000818152600d602090815260408083208b861684528252918290209490945580519182529281018990528083018490529151908a169133917f7298563060885829720d658271e2cf90735f0dedf473ea50428added4b4f78819181900360600190a3505060018055505050505050565b60008060008351604114611c7a576040805162461bcd60e51b815260206004820152601860248201527f696e76616c6964207369676e6174757265206c656e6774680000000000000000604482015290519081900360640190fd5b50505060208101516040820151606090920151909260009190911a90565b60065481565b6000546001600160a01b03163314611cb557600080fd5b611cbd61183c565b611d0e576040805162461bcd60e51b815260206004820152601360248201527f504f4f4c3a3a49434f5f4e4f545f454e44454400000000000000000000000000604482015290519081900360640190fd5b600254604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009261010090046001600160a01b0316916370a08231916024808301926020929190829003018186803b158015611d7757600080fd5b505afa158015611d8b573d6000803e3d6000fd5b505050506040513d6020811015611da157600080fd5b505111611df5576040805162461bcd60e51b815260206004820152601360248201527f504f4f4c3a3a454d5054595f42414c414e434500000000000000000000000000604482015290519081900360640190fd5b6000611dff6116f6565b9050611e0b82826126da565b604080516001600160a01b03841681526020810183905281517f80131f7b739a992331f435eb35e82a069ef4dd665120eb2c4e0fff9996cca2e1929181900390910190a15050565b600d60209081526000928352604080842090915290825290205481565b611e7c8484848461231c565b611ecd576040805162461bcd60e51b815260206004820152601860248201527f504f4f4c3a3a4e4f545f414c4c4f575f544f5f434c41494d0000000000000000604482015290519081900360640190fd5b611ed561183c565b611f26576040805162461bcd60e51b815260206004820152601460248201527f504f4f4c3a3a4e4f545f46494e414c4c495a4544000000000000000000000000604482015290519081900360640190fd5b6001600160a01b0384166000908152600b602052604090205483811115611f4a5750825b6001600160a01b0385166000908152600c6020526040902054611f6d9082612392565b6001600160a01b0386166000908152600c60205260409020819055841015611fdc576040805162461bcd60e51b815260206004820152601c60248201527f504f4f4c3a3a434c41494d5f4558434545445f414c4c4f57414e434500000000604482015290519081900360640190fd5b611fe633826126da565b600a54611ff390826124fb565b600a556001600160a01b0385166000908152600b602052604090205461201990826124fb565b6001600160a01b0386166000908152600b602090815260409182902092909255805133815291820183905280517fe42df0d9493dfd0d7f69902c895b94c190a53e8c27876a86f45e7c997d9d8f7c9281900390910190a15050505050565b6003546001600160a01b031681565b600a5481565b60008061209a8686866120d3565b905060006120a7826121af565b9050876001600160a01b03166120bd8286610d3e565b6001600160a01b03161498975050505050505050565b6040805160609490941b6bffffffffffffffffffffffff19166020808601919091526034850193909352605480850192909252805180850390920182526074909301909252815191012090565b6001600160a01b03166000908152600e602052604090205490565b600f5460ff1681565b6000546001600160a01b0316331461215b57600080fd5b6121648161274f565b50565b6000546001600160a01b0316331461217e57600080fd5b60068190556040517f915bfd81dbd055d8da358fc4e8b3765b49c2622a2c9ae16e8ae64ed4b18f956290600090a150565b6000610d4d826127ca565b60025461010090046001600160a01b031681565b60008151604114612226576040805162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015290519081900360640190fd5b60208201516040830151606084015160001a6122448682858561281b565b9695505050505050565b6001600160a01b0382166122a9576040805162461bcd60e51b815260206004820152601960248201527f504f4f4c3a3a494e56414c49445f42454e454649434941525900000000000000604482015290519081900360640190fd5b806122fb576040805162461bcd60e51b815260206004820152601860248201527f504f4f4c3a3a494e56414c49445f5745495f414d4f554e540000000000000000604482015290519081900360640190fd5b5050565b600080600654421015801561231657506007544211155b91505090565b600f5460009060ff161561234a57600454612343906001600160a01b03168686868661208c565b905061234e565b5060015b949350505050565b600080612362846116d8565b9050600061236f85612120565b9050612389600a82900a6123838685612990565b906129e9565b95945050505050565b600082820183811015610d4a576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6005546040516001600160a01b0390911690600090829084908381818185875af1925050503d806000811461243d576040519150601f19603f3d011682016040523d82523d6000602084013e612442565b606091505b5050905080612498576040805162461bcd60e51b815260206004820152601c60248201527f504f4f4c3a3a57414c4c45545f5452414e534645525f4641494c454400000000604482015290519081900360640190fd5b505050565b6008546124aa9083612392565b6008556009546124ba9082612392565b600955336000908152600b60205260409020546124d79082612392565b336000908152600b6020526040902055600a546124f49082612392565b600a555050565b6000610d4a83836040518060400160405280601f81526020017f536166654d6174683a207375627472616374696f6e20756e646572666c6f7700815250612a2b565b604080517fdd62ed3e0000000000000000000000000000000000000000000000000000000081526001600160a01b038581166004830152306024830152915184926000929084169163dd62ed3e91604480820192602092909190829003018186803b1580156125ab57600080fd5b505afa1580156125bf573d6000803e3d6000fd5b505050506040513d60208110156125d557600080fd5b505190508281101561262e576040805162461bcd60e51b815260206004820152601860248201527f504f4f4c3a3a544f4b454e5f4e4f545f415050524f5645440000000000000000604482015290519081900360640190fd5b5050505050565b600554604080517f23b872dd0000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b039283166024820152604481018490529051918416916323b872dd916064808201926020929091908290030181600087803b1580156126aa57600080fd5b505af11580156126be573d6000803e3d6000fd5b505050506040513d60208110156126d457600080fd5b50505050565b600254604080517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b0385811660048301526024820185905291516101009093049091169163a9059cbb916044808201926020929091908290030181600087803b1580156126aa57600080fd5b6001600160a01b03811661276257600080fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b604080517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602080830191909152603c8083019490945282518083039094018452605c909101909152815191012090565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a082111561287c5760405162461bcd60e51b8152600401808060200182810382526022815260200180612b4d6022913960400191505060405180910390fd5b8360ff16601b148061289157508360ff16601c145b6128cc5760405162461bcd60e51b8152600401808060200182810382526022815260200180612b956022913960400191505060405180910390fd5b600060018686868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa158015612928573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612389576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b60008261299f57506000610d4d565b828202828482816129ac57fe5b0414610d4a5760405162461bcd60e51b8152600401808060200182810382526021815260200180612bb76021913960400191505060405180910390fd5b6000610d4a83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612ac2565b60008184841115612aba5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612a7f578181015183820152602001612a67565b50505050905090810190601f168015612aac5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008183612b115760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315612a7f578181015183820152602001612a67565b506000838581612b1d57fe5b049594505050505056fe504f4f4c3a50555243484153455f414d4f554e545f4558434545445f414c4c4f57414e434545434453413a20696e76616c6964207369676e6174757265202773272076616c7565504f4f4c3a3a50555243484153455f414d4f554e545f4558434545445f414c4c4f57414e434545434453413a20696e76616c6964207369676e6174757265202776272076616c7565536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77504f4f4c3a3a50555243484153455f4d4554484f445f4e4f545f414c4c4f574544504f4f4c3a3a4e4f545f454e4f554748545f544f4b454e535f464f525f53414c45a264697066735822122022450cf68d3097aed36d744433b1b1fd1bca8de478194f6b8ad16c42ccaecac664736f6c63430007010033

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading