ETH Price: $3,187.31 (+1.72%)
Gas: 6 Gwei

Contract

0xf44F053E7Ca45b93389237aCed99f0719A5a4880
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
User Withdraw To...159345182022-11-09 19:21:35612 days ago1668021695IN
0xf44F053E...19A5a4880
0 ETH0.0038061480.25104108
User Withdraw To...159115032022-11-06 14:13:59615 days ago1667744039IN
0xf44F053E...19A5a4880
0 ETH0.0005758712.14218274
User Withdraw To...158189062022-10-24 15:39:23628 days ago1666625963IN
0xf44F053E...19A5a4880
0 ETH0.00171536.1602571
User Withdraw To...158168692022-10-24 8:47:59628 days ago1666601279IN
0xf44F053E...19A5a4880
0 ETH0.0005887212.4130072
User Withdraw To...158168262022-10-24 8:39:23628 days ago1666600763IN
0xf44F053E...19A5a4880
0 ETH0.000516910.89880578
User Withdraw To...158167712022-10-24 8:28:23628 days ago1666600103IN
0xf44F053E...19A5a4880
0 ETH0.0004756110.02807241
User Withdraw To...158167512022-10-24 8:24:23628 days ago1666599863IN
0xf44F053E...19A5a4880
0 ETH0.0005665211.94504291
User Withdraw To...158167442022-10-24 8:22:59628 days ago1666599779IN
0xf44F053E...19A5a4880
0 ETH0.0005479711.55376836
User Withdraw To...158167342022-10-24 8:20:59628 days ago1666599659IN
0xf44F053E...19A5a4880
0 ETH0.0007834616.51899689
User Withdraw To...158167112022-10-24 8:16:23628 days ago1666599383IN
0xf44F053E...19A5a4880
0 ETH0.0007195915.17238575
User Withdraw To...158167002022-10-24 8:14:11628 days ago1666599251IN
0xf44F053E...19A5a4880
0 ETH0.0008195517.27987985
User Withdraw To...158166922022-10-24 8:12:35628 days ago1666599155IN
0xf44F053E...19A5a4880
0 ETH0.0006669814.06301289
User Withdraw To...158166682022-10-24 8:07:47628 days ago1666598867IN
0xf44F053E...19A5a4880
0 ETH0.000625513.18843117
User Withdraw To...157458342022-10-14 10:45:35638 days ago1665744335IN
0xf44F053E...19A5a4880
0 ETH0.0006442313.58336037
User Withdraw To...157450302022-10-14 8:03:11638 days ago1665734591IN
0xf44F053E...19A5a4880
0 ETH0.000769616.2268001
User Withdraw To...157450182022-10-14 8:00:47638 days ago1665734447IN
0xf44F053E...19A5a4880
0 ETH0.0026720115.48574122
User Withdraw To...155426612022-09-16 0:32:47667 days ago1663288367IN
0xf44F053E...19A5a4880
0 ETH0.000781039.09603152
User Withdraw To...155425852022-09-16 0:16:23667 days ago1663287383IN
0xf44F053E...19A5a4880
0 ETH0.00066387.73069639
User Withdraw To...153066042022-08-09 7:10:36704 days ago1660029036IN
0xf44F053E...19A5a4880
0 ETH0.000396048.35050472
User Withdraw To...149392312022-06-10 15:36:57764 days ago1654875417IN
0xf44F053E...19A5a4880
0 ETH0.0027731358.47051851
User Withdraw To...149295862022-06-09 0:06:25766 days ago1654733185IN
0xf44F053E...19A5a4880
0 ETH0.0031708566.85612696
User Withdraw To...149295792022-06-09 0:03:49766 days ago1654733029IN
0xf44F053E...19A5a4880
0 ETH0.0025940254.69403541
User Withdraw To...148667312022-05-29 13:34:12776 days ago1653831252IN
0xf44F053E...19A5a4880
0 ETH0.000521711
User Withdraw To...146588622022-04-26 7:31:16809 days ago1650958276IN
0xf44F053E...19A5a4880
0 ETH0.001331528.07422919
User Withdraw To...145365822022-04-07 4:23:10828 days ago1649305390IN
0xf44F053E...19A5a4880
0 ETH0.0022510447.46230796
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To
130603952021-08-20 5:50:421058 days ago1629438642  Contract Creation0 ETH
Loading...
Loading

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

Contract Name:
Spaceportv1

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
istanbul EvmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-06-30
*/

pragma solidity 0.6.12;


/**
    helper methods for interacting with ERC20 tokens that do not consistently return true/false
    with the addition of a transfer function to send eth or an erc20 token
*/
library TransferHelper {
    function safeApprove(address token, address to, uint value) internal {
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: APPROVE_FAILED');
    }

    function safeTransfer(address token, address to, uint value) internal {
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: TRANSFER_FAILED');
    }

    function safeTransferFrom(address token, address from, address to, uint value) internal {
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: TRANSFER_FROM_FAILED');
    }
    
    // sends ETH or an erc20 token
    function safeTransferBaseToken(address token, address payable to, uint value, bool isERC20) internal {
        if (!isERC20) {
            to.transfer(value);
        } else {
            (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value));
            require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: TRANSFER_FAILED');
        }
    }
}

// From https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/EnumerableSet.sol
// Subject to the MIT license.
/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;

        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) { // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        require(set._values.length > index, "EnumerableSet: index out of bounds");
        return set._values[index];
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint256(_at(set._inner, index)));
    }


    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }
}

// From https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/math/SafeMath.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 subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

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

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

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

    uint256 private _status;

    constructor () internal {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

interface IERC20 {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    function decimals() external view returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);
}

// SpacePort v.1
interface IPlasmaswapFactory {
    function getPair(address tokenA, address tokenB) external view returns (address pair);
    function createPair(address tokenA, address tokenB) external returns (address pair);
}

interface ISpaceportLockForwarder {
    function lockLiquidity (IERC20 _baseToken, IERC20 _saleToken, uint256 _baseAmount, uint256 _saleAmount, uint256 _unlock_date, address payable _withdrawer) external;
    function plasmaswapPairIsInitialised (address _token0, address _token1) external view returns (bool);
}

interface IWETH {
    function deposit() external payable;
    function transfer(address to, uint value) external returns (bool);
    function withdraw(uint) external;
}

interface ISpaceportSettings {
    function getMaxSpaceportLength () external view returns (uint256);
    function getRound1Length () external view returns (uint256);
    function userHoldsSufficientRound1Token (address _user) external view returns (bool);
    function getBaseFee () external view returns (uint256);
    function getTokenFee () external view returns (uint256);
    function getEthAddress () external view returns (address payable);
    function getTokenAddress () external view returns (address payable);
    function getEthCreationFee () external view returns (uint256);
}

contract Spaceportv1 is ReentrancyGuard {
  using SafeMath for uint256;
  using EnumerableSet for EnumerableSet.AddressSet;
  
  event spaceportUserDeposit(uint256 value);
  event spaceportUserWithdrawTokens(uint256 value);
  event spaceportUserWithdrawBaseTokens(uint256 value);
  event spaceportOwnerWithdrawTokens();
  event spaceportAddLiquidity();

  /// @notice Spaceport Contract Version, used to choose the correct ABI to decode the contract
  uint256 public CONTRACT_VERSION = 1;
  
  struct SpaceportInfo {
    address payable SPACEPORT_OWNER;
    IERC20 S_TOKEN; // sale token
    IERC20 B_TOKEN; // base token // usually WETH (ETH)
    uint256 TOKEN_PRICE; // 1 base token = ? s_tokens, fixed price
    uint256 MAX_SPEND_PER_BUYER; // maximum base token BUY amount per account
    uint256 AMOUNT; // the amount of spaceport tokens up for presale
    uint256 HARDCAP;
    uint256 SOFTCAP;
    uint256 LIQUIDITY_PERCENT; // divided by 1000 - to be locked !
    uint256 LISTING_RATE; // fixed rate at which the token will list on plasmaswap - start rate
    uint256 START_BLOCK;
    uint256 END_BLOCK;
    uint256 LOCK_PERIOD; // unix timestamp -> e.g. 2 weeks
    bool SPACEPORT_IN_ETH; // if this flag is true the Spaceport is raising ETH, otherwise an ERC20 token such as DAI
  }

  struct SpaceportVesting {
    uint256 vestingCliff;
    uint256 vestingEnd;
  }

  struct SpaceportFeeInfo {
    uint256 PLFI_BASE_FEE; // divided by 1000
    uint256 PLFI_TOKEN_FEE; // divided by 1000
    address payable BASE_FEE_ADDRESS;
    address payable TOKEN_FEE_ADDRESS;
  }
  
  struct SpaceportStatus {
    bool WHITELIST_ONLY; // if set to true only whitelisted members may participate
    bool LP_GENERATION_COMPLETE; // final flag required to end a Spaceport and enable withdrawls
    bool FORCE_FAILED; // set this flag to force fail the Spaceport
    uint256 TOTAL_BASE_COLLECTED; // total base currency raised (usually ETH)
    uint256 TOTAL_TOKENS_SOLD; // total Spaceport tokens sold
    uint256 TOTAL_TOKENS_WITHDRAWN; // total tokens withdrawn post successful Spaceport
    uint256 TOTAL_BASE_WITHDRAWN; // total base tokens withdrawn on Spaceport failure
    uint256 ROUND1_LENGTH; // in blocks
    uint256 NUM_BUYERS; // number of unique participants
    uint256 LP_GENERATION_COMPLETE_TIME;  //  the date when LP is done
  }

  struct BuyerInfo {
    uint256 baseDeposited; // total base token (usually ETH) deposited by user, can be withdrawn on presale failure
    uint256 tokensOwed; // num Spaceport tokens a user is owed, can be withdrawn on presale success
    uint256 lastUpdate;
    uint256 vestingTokens;
    uint256 vestingTokensOwed;
    bool vestingRunning;
  }
  
  SpaceportVesting public SPACEPORT_VESTING;
  SpaceportInfo public SPACEPORT_INFO;
  SpaceportFeeInfo public SPACEPORT_FEE_INFO;
  SpaceportStatus public STATUS;
  address public SPACEPORT_GENERATOR;
  ISpaceportLockForwarder public SPACEPORT_LOCK_FORWARDER;
  ISpaceportSettings public SPACEPORT_SETTINGS;
  address PLFI_DEV_ADDRESS;
  IPlasmaswapFactory public PLASMASWAP_FACTORY;
  IWETH public WETH;
  mapping(address => BuyerInfo) public BUYERS;
  EnumerableSet.AddressSet private WHITELIST;

  constructor(address _spaceportGenerator) public {
    SPACEPORT_GENERATOR = _spaceportGenerator;
    PLASMASWAP_FACTORY = IPlasmaswapFactory(0xd87Ad19db2c4cCbf897106dE034D52e3DD90ea60);
    WETH = IWETH(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2);
    SPACEPORT_SETTINGS = ISpaceportSettings(0x90De443BDC372f9aA944cF18fb6c82980807Cb0a);
    SPACEPORT_LOCK_FORWARDER = ISpaceportLockForwarder(0x5AD2A6181B1bc6aCAbd7bad268102d68DE54A4eE);
    PLFI_DEV_ADDRESS = 0x37CB8941348f04E783f67E19AD937f48DD7355D9;
  }
  
  function init1 (
    address payable _spaceportOwner, 
    uint256 _amount,
    uint256 _tokenPrice, 
    uint256 _maxEthPerBuyer, 
    uint256 _hardcap, 
    uint256 _softcap,
    uint256 _liquidityPercent,
    uint256 _listingRate,
    uint256 _startblock,
    uint256 _endblock,
    uint256 _lockPeriod
    ) external {
          
      require(msg.sender == SPACEPORT_GENERATOR, 'FORBIDDEN');
      SPACEPORT_INFO.SPACEPORT_OWNER = _spaceportOwner;
      SPACEPORT_INFO.AMOUNT = _amount;
      SPACEPORT_INFO.TOKEN_PRICE = _tokenPrice;
      SPACEPORT_INFO.MAX_SPEND_PER_BUYER = _maxEthPerBuyer;
      SPACEPORT_INFO.HARDCAP = _hardcap;
      SPACEPORT_INFO.SOFTCAP = _softcap;
      SPACEPORT_INFO.LIQUIDITY_PERCENT = _liquidityPercent;
      SPACEPORT_INFO.LISTING_RATE = _listingRate;
      SPACEPORT_INFO.START_BLOCK = _startblock;
      SPACEPORT_INFO.END_BLOCK = _endblock;
      SPACEPORT_INFO.LOCK_PERIOD = _lockPeriod;
  }
  
  function init2 (
    IERC20 _baseToken,
    IERC20 _spaceportToken,
    uint256 _plfiBaseFee,
    uint256 _plfiTokenFee,
    address payable _baseFeeAddress,
    address payable _tokenFeeAddress,
    uint256 _vestingCliff,
    uint256 _vestingEnd
    ) external {
          
      require(msg.sender == SPACEPORT_GENERATOR, 'FORBIDDEN');
      // require(!SPACEPORT_LOCK_FORWARDER.plasmaswapPairIsInitialised(address(_spaceportToken), address(_baseToken)), 'PAIR INITIALISED');
      
      SPACEPORT_INFO.SPACEPORT_IN_ETH = address(_baseToken) == address(WETH);
      SPACEPORT_INFO.S_TOKEN = _spaceportToken;
      SPACEPORT_INFO.B_TOKEN = _baseToken;
      SPACEPORT_FEE_INFO.PLFI_BASE_FEE = _plfiBaseFee;
      SPACEPORT_FEE_INFO.PLFI_TOKEN_FEE = _plfiTokenFee;
      
      SPACEPORT_FEE_INFO.BASE_FEE_ADDRESS = _baseFeeAddress;
      SPACEPORT_FEE_INFO.TOKEN_FEE_ADDRESS = _tokenFeeAddress;
      STATUS.ROUND1_LENGTH = SPACEPORT_SETTINGS.getRound1Length();

      SPACEPORT_VESTING.vestingCliff = _vestingCliff;
      SPACEPORT_VESTING.vestingEnd = _vestingEnd;
  }
  
  modifier onlySpaceportOwner() {
    require(SPACEPORT_INFO.SPACEPORT_OWNER == msg.sender, "NOT SPACEPORT OWNER");
    _;
  }
  
  function spaceportStatus () public view returns (uint256) {
    if (STATUS.FORCE_FAILED) {
      return 3; // FAILED - force fail
    }
    if ((block.number > SPACEPORT_INFO.END_BLOCK) && (STATUS.TOTAL_BASE_COLLECTED < SPACEPORT_INFO.SOFTCAP)) {
      return 3; // FAILED - softcap not met by end block
    }
    if (STATUS.TOTAL_BASE_COLLECTED >= SPACEPORT_INFO.HARDCAP) {
      return 2; // SUCCESS - hardcap met
    }
    if ((block.number > SPACEPORT_INFO.END_BLOCK) && (STATUS.TOTAL_BASE_COLLECTED >= SPACEPORT_INFO.SOFTCAP)) {
      return 2; // SUCCESS - endblock and soft cap reached
    }
    if ((block.number >= SPACEPORT_INFO.START_BLOCK) && (block.number <= SPACEPORT_INFO.END_BLOCK)) {
      return 1; // ACTIVE - deposits enabled
    }
    return 0; // QUED - awaiting start block
  }
  
  // accepts msg.value for eth or _amount for ERC20 tokens
  function userDeposit (uint256 _amount) external payable nonReentrant {
    require(spaceportStatus() == 1, 'NOT ACTIVE'); // ACTIVE
    if (STATUS.WHITELIST_ONLY) {
      require(WHITELIST.contains(msg.sender), 'NOT WHITELISTED');
    }
    // Spaceport Round 1 - require participant to hold a certain token and balance
    if (block.number < SPACEPORT_INFO.START_BLOCK + STATUS.ROUND1_LENGTH) { // 276 blocks = 1 hour
        require(SPACEPORT_SETTINGS.userHoldsSufficientRound1Token(msg.sender), 'INSUFFICENT ROUND 1 TOKEN BALANCE');
    }
    BuyerInfo storage buyer = BUYERS[msg.sender];
    uint256 amount_in = SPACEPORT_INFO.SPACEPORT_IN_ETH ? msg.value : _amount;
    uint256 allowance = SPACEPORT_INFO.MAX_SPEND_PER_BUYER.sub(buyer.baseDeposited);
    uint256 remaining = SPACEPORT_INFO.HARDCAP - STATUS.TOTAL_BASE_COLLECTED;
    allowance = allowance > remaining ? remaining : allowance;
    if (amount_in > allowance) {
      amount_in = allowance;
    }
    uint256 tokensSold = amount_in.mul(SPACEPORT_INFO.TOKEN_PRICE).div(10 ** uint256(SPACEPORT_INFO.B_TOKEN.decimals()));
    require(tokensSold > 0, 'ZERO TOKENS');
    if (buyer.baseDeposited == 0) {
        STATUS.NUM_BUYERS++;
    }

    buyer.baseDeposited = buyer.baseDeposited.add(amount_in);
    buyer.tokensOwed = buyer.tokensOwed.add(tokensSold);
    buyer.vestingRunning = false;

    STATUS.TOTAL_BASE_COLLECTED = STATUS.TOTAL_BASE_COLLECTED.add(amount_in);
    STATUS.TOTAL_TOKENS_SOLD = STATUS.TOTAL_TOKENS_SOLD.add(tokensSold);
    
    // return unused ETH
    if (SPACEPORT_INFO.SPACEPORT_IN_ETH && amount_in < msg.value) {
      msg.sender.transfer(msg.value.sub(amount_in));
    }
    // deduct non ETH token from user
    if (!SPACEPORT_INFO.SPACEPORT_IN_ETH) {
      TransferHelper.safeTransferFrom(address(SPACEPORT_INFO.B_TOKEN), msg.sender, address(this), amount_in);
    }
    emit spaceportUserDeposit(amount_in);
  }
  
  // withdraw spaceport tokens
  // percentile withdrawls allows fee on transfer or rebasing tokens to still work
  function userWithdrawTokens () external nonReentrant {
    require(STATUS.LP_GENERATION_COMPLETE, 'AWAITING LP GENERATION');
    BuyerInfo storage buyer = BUYERS[msg.sender];
    require(STATUS.LP_GENERATION_COMPLETE_TIME + SPACEPORT_VESTING.vestingCliff < block.timestamp, "vesting cliff : not time yet");

    uint256 tokensRemainingDenominator = STATUS.TOTAL_TOKENS_SOLD.sub(STATUS.TOTAL_TOKENS_WITHDRAWN);
    require(tokensRemainingDenominator > 0, 'NOTHING TO WITHDRAW');

    uint256 tokensOwed = SPACEPORT_INFO.S_TOKEN.balanceOf(address(this)).mul(buyer.tokensOwed).div(tokensRemainingDenominator);
    require(tokensOwed > 0, 'OWED TOKENS NOT FOUND');
    
    if(!buyer.vestingRunning)
    {
      buyer.vestingTokens = tokensOwed;
      buyer.vestingTokensOwed = buyer.tokensOwed;
      buyer.lastUpdate = STATUS.LP_GENERATION_COMPLETE_TIME;
      buyer.vestingRunning = true;
    }

    if(STATUS.LP_GENERATION_COMPLETE_TIME + SPACEPORT_VESTING.vestingEnd < block.timestamp) {
      STATUS.TOTAL_TOKENS_WITHDRAWN = STATUS.TOTAL_TOKENS_WITHDRAWN.add(buyer.tokensOwed);
      buyer.tokensOwed = 0;
    } 
    else {
      tokensOwed = buyer.vestingTokens.mul(block.timestamp - buyer.lastUpdate).div(SPACEPORT_VESTING.vestingEnd);
      buyer.lastUpdate = block.timestamp;

      uint256 diff = tokensOwed.div(buyer.vestingTokens);
      STATUS.TOTAL_TOKENS_WITHDRAWN = STATUS.TOTAL_TOKENS_WITHDRAWN.add(buyer.vestingTokensOwed.mul(diff));

      buyer.tokensOwed = buyer.tokensOwed.sub(buyer.vestingTokensOwed.mul(diff));
      require(buyer.tokensOwed > 0, 'NOTHING TO CLAIM');
    }

    TransferHelper.safeTransfer(address(SPACEPORT_INFO.S_TOKEN), msg.sender, tokensOwed);
    emit spaceportUserWithdrawTokens(tokensOwed);
  }
  
  // on spaceport failure
  // percentile withdrawls allows fee on transfer or rebasing tokens to still work
  function userWithdrawBaseTokens () external nonReentrant {
    require(spaceportStatus() == 3, 'NOT FAILED'); // FAILED
    BuyerInfo storage buyer = BUYERS[msg.sender];
    uint256 baseRemainingDenominator = STATUS.TOTAL_BASE_COLLECTED.sub(STATUS.TOTAL_BASE_WITHDRAWN);
    uint256 remainingBaseBalance = SPACEPORT_INFO.SPACEPORT_IN_ETH ? address(this).balance : SPACEPORT_INFO.B_TOKEN.balanceOf(address(this));
    uint256 tokensOwed = remainingBaseBalance.mul(buyer.baseDeposited).div(baseRemainingDenominator);
    require(tokensOwed > 0, 'NOTHING TO WITHDRAW');
    STATUS.TOTAL_BASE_WITHDRAWN = STATUS.TOTAL_BASE_WITHDRAWN.add(buyer.baseDeposited);
    buyer.baseDeposited = 0;
    TransferHelper.safeTransferBaseToken(address(SPACEPORT_INFO.B_TOKEN), msg.sender, tokensOwed, !SPACEPORT_INFO.SPACEPORT_IN_ETH);
    emit spaceportUserWithdrawBaseTokens(tokensOwed);
  }
  
  // failure
  // allows the owner to withdraw the tokens they sent for presale & initial liquidity
  function ownerWithdrawTokens () external onlySpaceportOwner {
    require(spaceportStatus() == 3); // FAILED
    TransferHelper.safeTransfer(address(SPACEPORT_INFO.S_TOKEN), SPACEPORT_INFO.SPACEPORT_OWNER, SPACEPORT_INFO.S_TOKEN.balanceOf(address(this)));
    emit spaceportOwnerWithdrawTokens();
  }
  

  // Can be called at any stage before or during the presale to cancel it before it ends.
  // If the pair already exists on plasmaswap and it contains the presale token as liquidity 
  // the final stage of the presale 'addLiquidity()' will fail. This function 
  // allows anyone to end the presale prematurely to release funds in such a case.
  function forceFailIfPairExists () external {
    require(!STATUS.LP_GENERATION_COMPLETE && !STATUS.FORCE_FAILED);
    if (SPACEPORT_LOCK_FORWARDER.plasmaswapPairIsInitialised(address(SPACEPORT_INFO.S_TOKEN), address(SPACEPORT_INFO.B_TOKEN))) {
        STATUS.FORCE_FAILED = true;
    }
  }
  
  // if something goes wrong in LP generation
  function forceFailByPlfi () external {
      require(msg.sender == PLFI_DEV_ADDRESS);
      STATUS.FORCE_FAILED = true;
  }
  
  // on spaceport success, this is the final step to end the spaceport, lock liquidity and enable withdrawls of the sale token.
  // This function does not use percentile distribution. Rebasing mechanisms, fee on transfers, or any deflationary logic
  // are not taken into account at this stage to ensure stated liquidity is locked and the pool is initialised according to 
  // the spaceport parameters and fixed prices.
  function addLiquidity() external nonReentrant {
    require(!STATUS.LP_GENERATION_COMPLETE, 'GENERATION COMPLETE');
    require(spaceportStatus() == 2, 'NOT SUCCESS'); // SUCCESS
    // Fail the spaceport if the pair exists and contains spaceport token liquidity
    if (SPACEPORT_LOCK_FORWARDER.plasmaswapPairIsInitialised(address(SPACEPORT_INFO.S_TOKEN), address(SPACEPORT_INFO.B_TOKEN))) {
        STATUS.FORCE_FAILED = true;
        return;
    }
    
    uint256 plfiBaseFee = STATUS.TOTAL_BASE_COLLECTED.mul(SPACEPORT_FEE_INFO.PLFI_BASE_FEE).div(1000);
    
    // base token liquidity
    uint256 baseLiquidity = STATUS.TOTAL_BASE_COLLECTED.sub(plfiBaseFee).mul(SPACEPORT_INFO.LIQUIDITY_PERCENT).div(1000);
    if (SPACEPORT_INFO.SPACEPORT_IN_ETH) {
        WETH.deposit{value : baseLiquidity}();
    }
    TransferHelper.safeApprove(address(SPACEPORT_INFO.B_TOKEN), address(SPACEPORT_LOCK_FORWARDER), baseLiquidity);
    
    // sale token liquidity
    uint256 tokenLiquidity = baseLiquidity.mul(SPACEPORT_INFO.LISTING_RATE).div(10 ** uint256(SPACEPORT_INFO.B_TOKEN.decimals()));
    TransferHelper.safeApprove(address(SPACEPORT_INFO.S_TOKEN), address(SPACEPORT_LOCK_FORWARDER), tokenLiquidity);
    
    SPACEPORT_LOCK_FORWARDER.lockLiquidity(SPACEPORT_INFO.B_TOKEN, SPACEPORT_INFO.S_TOKEN, baseLiquidity, tokenLiquidity, block.timestamp + SPACEPORT_INFO.LOCK_PERIOD, SPACEPORT_INFO.SPACEPORT_OWNER);
    
    // transfer fees
    uint256 plfiTokenFee = STATUS.TOTAL_TOKENS_SOLD.mul(SPACEPORT_FEE_INFO.PLFI_TOKEN_FEE).div(1000);
    TransferHelper.safeTransferBaseToken(address(SPACEPORT_INFO.B_TOKEN), SPACEPORT_FEE_INFO.BASE_FEE_ADDRESS, plfiBaseFee, !SPACEPORT_INFO.SPACEPORT_IN_ETH);
    TransferHelper.safeTransfer(address(SPACEPORT_INFO.S_TOKEN), SPACEPORT_FEE_INFO.TOKEN_FEE_ADDRESS, plfiTokenFee);
    
    // burn unsold tokens
    uint256 remainingSBalance = SPACEPORT_INFO.S_TOKEN.balanceOf(address(this));
    if (remainingSBalance > STATUS.TOTAL_TOKENS_SOLD) {
        uint256 burnAmount = remainingSBalance.sub(STATUS.TOTAL_TOKENS_SOLD);
        TransferHelper.safeTransfer(address(SPACEPORT_INFO.S_TOKEN), 0x6Ad6fd6282cCe6eBB65Ab8aBCBD1ae5057D4B1DB, burnAmount);
    }
    
    // send remaining base tokens to spaceport owner
    uint256 remainingBaseBalance = SPACEPORT_INFO.SPACEPORT_IN_ETH ? address(this).balance : SPACEPORT_INFO.B_TOKEN.balanceOf(address(this));
    TransferHelper.safeTransferBaseToken(address(SPACEPORT_INFO.B_TOKEN), SPACEPORT_INFO.SPACEPORT_OWNER, remainingBaseBalance, !SPACEPORT_INFO.SPACEPORT_IN_ETH);
    
    STATUS.LP_GENERATION_COMPLETE = true;
    STATUS.LP_GENERATION_COMPLETE_TIME = block.timestamp;
    
    emit spaceportAddLiquidity();
  }
  
  function updateMaxSpendLimit(uint256 _maxSpend) external onlySpaceportOwner {
    SPACEPORT_INFO.MAX_SPEND_PER_BUYER = _maxSpend;
  }
  
  // postpone or bring a spaceport forward, this will only work when a presale is inactive.
  function updateBlocks(uint256 _startBlock, uint256 _endBlock) external onlySpaceportOwner {
    require(SPACEPORT_INFO.START_BLOCK > block.number);
    require(_endBlock.sub(_startBlock) <= SPACEPORT_SETTINGS.getMaxSpaceportLength());
    SPACEPORT_INFO.START_BLOCK = _startBlock;
    SPACEPORT_INFO.END_BLOCK = _endBlock;
  }

  // editable at any stage of the presale
  function setWhitelistFlag(bool _flag) external onlySpaceportOwner {
    STATUS.WHITELIST_ONLY = _flag;
  }

  // editable at any stage of the presale
  function editWhitelist(address[] memory _users, bool _add) external onlySpaceportOwner {
    if (_add) {
        for (uint i = 0; i < _users.length; i++) {
          WHITELIST.add(_users[i]);
        }
    } else {
        for (uint i = 0; i < _users.length; i++) {
          WHITELIST.remove(_users[i]);
        }
    }
  }

  // whitelist getters
  function getWhitelistedUsersLength () external view returns (uint256) {
    return WHITELIST.length();
  }
  
  function getWhitelistedUserAtIndex (uint256 _index) external view returns (address) {
    return WHITELIST.at(_index);
  }
  
  function getUserWhitelistStatus (address _user) external view returns (bool) {
    return WHITELIST.contains(_user);
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_spaceportGenerator","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[],"name":"spaceportAddLiquidity","type":"event"},{"anonymous":false,"inputs":[],"name":"spaceportOwnerWithdrawTokens","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"spaceportUserDeposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"spaceportUserWithdrawBaseTokens","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"spaceportUserWithdrawTokens","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"BUYERS","outputs":[{"internalType":"uint256","name":"baseDeposited","type":"uint256"},{"internalType":"uint256","name":"tokensOwed","type":"uint256"},{"internalType":"uint256","name":"lastUpdate","type":"uint256"},{"internalType":"uint256","name":"vestingTokens","type":"uint256"},{"internalType":"uint256","name":"vestingTokensOwed","type":"uint256"},{"internalType":"bool","name":"vestingRunning","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CONTRACT_VERSION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PLASMASWAP_FACTORY","outputs":[{"internalType":"contract IPlasmaswapFactory","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SPACEPORT_FEE_INFO","outputs":[{"internalType":"uint256","name":"PLFI_BASE_FEE","type":"uint256"},{"internalType":"uint256","name":"PLFI_TOKEN_FEE","type":"uint256"},{"internalType":"address payable","name":"BASE_FEE_ADDRESS","type":"address"},{"internalType":"address payable","name":"TOKEN_FEE_ADDRESS","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SPACEPORT_GENERATOR","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SPACEPORT_INFO","outputs":[{"internalType":"address payable","name":"SPACEPORT_OWNER","type":"address"},{"internalType":"contract IERC20","name":"S_TOKEN","type":"address"},{"internalType":"contract IERC20","name":"B_TOKEN","type":"address"},{"internalType":"uint256","name":"TOKEN_PRICE","type":"uint256"},{"internalType":"uint256","name":"MAX_SPEND_PER_BUYER","type":"uint256"},{"internalType":"uint256","name":"AMOUNT","type":"uint256"},{"internalType":"uint256","name":"HARDCAP","type":"uint256"},{"internalType":"uint256","name":"SOFTCAP","type":"uint256"},{"internalType":"uint256","name":"LIQUIDITY_PERCENT","type":"uint256"},{"internalType":"uint256","name":"LISTING_RATE","type":"uint256"},{"internalType":"uint256","name":"START_BLOCK","type":"uint256"},{"internalType":"uint256","name":"END_BLOCK","type":"uint256"},{"internalType":"uint256","name":"LOCK_PERIOD","type":"uint256"},{"internalType":"bool","name":"SPACEPORT_IN_ETH","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SPACEPORT_LOCK_FORWARDER","outputs":[{"internalType":"contract ISpaceportLockForwarder","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SPACEPORT_SETTINGS","outputs":[{"internalType":"contract ISpaceportSettings","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SPACEPORT_VESTING","outputs":[{"internalType":"uint256","name":"vestingCliff","type":"uint256"},{"internalType":"uint256","name":"vestingEnd","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STATUS","outputs":[{"internalType":"bool","name":"WHITELIST_ONLY","type":"bool"},{"internalType":"bool","name":"LP_GENERATION_COMPLETE","type":"bool"},{"internalType":"bool","name":"FORCE_FAILED","type":"bool"},{"internalType":"uint256","name":"TOTAL_BASE_COLLECTED","type":"uint256"},{"internalType":"uint256","name":"TOTAL_TOKENS_SOLD","type":"uint256"},{"internalType":"uint256","name":"TOTAL_TOKENS_WITHDRAWN","type":"uint256"},{"internalType":"uint256","name":"TOTAL_BASE_WITHDRAWN","type":"uint256"},{"internalType":"uint256","name":"ROUND1_LENGTH","type":"uint256"},{"internalType":"uint256","name":"NUM_BUYERS","type":"uint256"},{"internalType":"uint256","name":"LP_GENERATION_COMPLETE_TIME","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"contract IWETH","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"addLiquidity","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_users","type":"address[]"},{"internalType":"bool","name":"_add","type":"bool"}],"name":"editWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"forceFailByPlfi","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"forceFailIfPairExists","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getUserWhitelistStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"getWhitelistedUserAtIndex","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWhitelistedUsersLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"_spaceportOwner","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_tokenPrice","type":"uint256"},{"internalType":"uint256","name":"_maxEthPerBuyer","type":"uint256"},{"internalType":"uint256","name":"_hardcap","type":"uint256"},{"internalType":"uint256","name":"_softcap","type":"uint256"},{"internalType":"uint256","name":"_liquidityPercent","type":"uint256"},{"internalType":"uint256","name":"_listingRate","type":"uint256"},{"internalType":"uint256","name":"_startblock","type":"uint256"},{"internalType":"uint256","name":"_endblock","type":"uint256"},{"internalType":"uint256","name":"_lockPeriod","type":"uint256"}],"name":"init1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_baseToken","type":"address"},{"internalType":"contract IERC20","name":"_spaceportToken","type":"address"},{"internalType":"uint256","name":"_plfiBaseFee","type":"uint256"},{"internalType":"uint256","name":"_plfiTokenFee","type":"uint256"},{"internalType":"address payable","name":"_baseFeeAddress","type":"address"},{"internalType":"address payable","name":"_tokenFeeAddress","type":"address"},{"internalType":"uint256","name":"_vestingCliff","type":"uint256"},{"internalType":"uint256","name":"_vestingEnd","type":"uint256"}],"name":"init2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"ownerWithdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_flag","type":"bool"}],"name":"setWhitelistFlag","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"spaceportStatus","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startBlock","type":"uint256"},{"internalType":"uint256","name":"_endBlock","type":"uint256"}],"name":"updateBlocks","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSpend","type":"uint256"}],"name":"updateMaxSpendLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"userDeposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"userWithdrawBaseTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"userWithdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]

Deployed Bytecode

0x6080604052600436106101b75760003560e01c8063ad5c4648116100ec578063ceed0bf71161008a578063e86e634011610064578063e86e634014610739578063f642f6b91461074e578063f868e76614610763578063fe8121de14610780576101b7565b8063ceed0bf7146106a8578063e33865b3146106bd578063e8078d9414610724576101b7565b8063b93ac792116100c6578063b93ac792146105c4578063b9863a4414610637578063bf2321121461067e578063c39e7dbb14610693576101b7565b8063ad5c46481461053d578063b2e426e814610552578063b6563ba114610596576101b7565b8063760b00f6116101595780638c301df8116101335780638c301df8146103a9578063927ac44d146103d3578063a753aac014610485578063a94e7e8014610528576101b7565b8063760b00f61461034f578063760fe56e146103645780638669dd8b14610394576101b7565b80634200e4fc116101955780634200e4fc146102775780634bb18e3f146102a35780635bac5622146102b857806363a39c0f146102e9576101b7565b806310c55f2b146101bc57806324ef1bc71461022457806338b9033314610250575b600080fd5b3480156101c857600080fd5b506101ef600480360360208110156101df57600080fd5b50356001600160a01b0316610795565b6040805196875260208701959095528585019390935260608501919091526080840152151560a0830152519081900360c00190f35b34801561023057600080fd5b5061024e6004803603602081101561024757600080fd5b50356107cd565b005b34801561025c57600080fd5b50610265610827565b60408051918252519081900360200190f35b34801561028357600080fd5b5061024e6004803603602081101561029a57600080fd5b5035151561082d565b3480156102af57600080fd5b50610265610895565b3480156102c457600080fd5b506102cd6108a7565b604080516001600160a01b039092168252519081900360200190f35b3480156102f557600080fd5b5061024e600480360361010081101561030d57600080fd5b506001600160a01b0381358116916020810135821691604082013591606081013591608082013581169160a08101359091169060c08101359060e001356108b6565b34801561035b57600080fd5b5061024e6109e7565b34801561037057600080fd5b5061024e6004803603604081101561038757600080fd5b5080359060200135610a11565b3480156103a057600080fd5b506102cd610b00565b3480156103b557600080fd5b506102cd600480360360208110156103cc57600080fd5b5035610b0f565b3480156103df57600080fd5b5061024e600480360360408110156103f657600080fd5b81019060208101813564010000000081111561041157600080fd5b82018360208201111561042357600080fd5b8035906020019184602083028401116401000000008311171561044557600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295505050503515159050610b22565b34801561049157600080fd5b5061049a610c01565b604051808f6001600160a01b031681526020018e6001600160a01b031681526020018d6001600160a01b031681526020018c81526020018b81526020018a815260200189815260200188815260200187815260200186815260200185815260200184815260200183815260200182151581526020019e50505050505050505050505050505060405180910390f35b34801561053457600080fd5b5061024e610c45565b34801561054957600080fd5b506102cd610d63565b34801561055e57600080fd5b50610567610d72565b6040805194855260208501939093526001600160a01b0391821684840152166060830152519081900360800190f35b3480156105a257600080fd5b506105ab610d8e565b6040805192835260208301919091528051918290030190f35b3480156105d057600080fd5b5061024e60048036036101608110156105e857600080fd5b506001600160a01b038135169060208101359060408101359060608101359060808101359060a08101359060c08101359060e08101359061010081013590610120810135906101400135610d97565b34801561064357600080fd5b5061066a6004803603602081101561065a57600080fd5b50356001600160a01b0316610e2f565b604080519115158252519081900360200190f35b34801561068a57600080fd5b50610265610e3c565b34801561069f57600080fd5b5061024e610ed5565b3480156106b457600080fd5b506102cd6110fe565b3480156106c957600080fd5b506106d261110d565b604080519a15158b5298151560208b0152961515898901526060890195909552608088019390935260a087019190915260c086015260e085015261010084015261012083015251908190036101400190f35b34801561073057600080fd5b5061024e61114b565b34801561074557600080fd5b5061024e611732565b34801561075a57600080fd5b506102cd6117fb565b61024e6004803603602081101561077957600080fd5b503561180a565b34801561078c57600080fd5b5061024e611bfe565b602460205260009081526040902080546001820154600283015460038401546004850154600590950154939492939192909160ff1686565b6004546001600160a01b03163314610822576040805162461bcd60e51b81526020600482015260136024820152722727aa1029a820a1a2a827a92a1027aba722a960691b604482015290519081900360640190fd5b600855565b60015481565b6004546001600160a01b03163314610882576040805162461bcd60e51b81526020600482015260136024820152722727aa1029a820a1a2a827a92a1027aba722a960691b604482015290519081900360640190fd5b6016805460ff1916911515919091179055565b60006108a16025611fcb565b90505b90565b6020546001600160a01b031681565b601e546001600160a01b03163314610901576040805162461bcd60e51b81526020600482015260096024820152682327a92124a22222a760b91b604482015290519081900360640190fd5b602354601180546001600160a01b039283168b841690811460ff1990921691909117909155600580546001600160a01b03199081168b85161790915560068054821690921790915560128890556013879055601480548216878416179055601580549091168583161790556020805460408051635564890b60e11b81529051919093169263aac91216926004808301939192829003018186803b1580156109a757600080fd5b505afa1580156109bb573d6000803e3d6000fd5b505050506040513d60208110156109d157600080fd5b5051601b55600291909155600355505050505050565b6021546001600160a01b031633146109fe57600080fd5b6016805462ff0000191662010000179055565b6004546001600160a01b03163314610a66576040805162461bcd60e51b81526020600482015260136024820152722727aa1029a820a1a2a827a92a1027aba722a960691b604482015290519081900360640190fd5b600e544310610a7457600080fd5b6020805460408051633e5dc7eb60e21b815290516001600160a01b039092169263f9771fac92600480840193829003018186803b158015610ab457600080fd5b505afa158015610ac8573d6000803e3d6000fd5b505050506040513d6020811015610ade57600080fd5b5051610aea8284611fd6565b1115610af557600080fd5b600e91909155600f55565b601f546001600160a01b031681565b6000610b1c60258361201f565b92915050565b6004546001600160a01b03163314610b77576040805162461bcd60e51b81526020600482015260136024820152722727aa1029a820a1a2a827a92a1027aba722a960691b604482015290519081900360640190fd5b8015610bbf5760005b8251811015610bb957610bb0838281518110610b9857fe5b6020026020010151602561202b90919063ffffffff16565b50600101610b80565b50610bfd565b60005b8251811015610bfb57610bf2838281518110610bda57fe5b6020026020010151602561204090919063ffffffff16565b50600101610bc2565b505b5050565b600454600554600654600754600854600954600a54600b54600c54600d54600e54600f546010546011546001600160a01b039d8e169d9c8d169c909b169a60ff168e565b6004546001600160a01b03163314610c9a576040805162461bcd60e51b81526020600482015260136024820152722727aa1029a820a1a2a827a92a1027aba722a960691b604482015290519081900360640190fd5b610ca2610e3c565b600314610cae57600080fd5b60055460048054604080516370a0823160e01b8152309381019390935251610d38936001600160a01b039081169392169183916370a0823191602480820192602092909190829003018186803b158015610d0757600080fd5b505afa158015610d1b573d6000803e3d6000fd5b505050506040513d6020811015610d3157600080fd5b5051612055565b6040517f2819ad5abfee7a473bd3696af07cbe732e1b2469298fcb34e6086cedddfe849190600090a1565b6023546001600160a01b031681565b6012546013546014546015546001600160a01b03918216911684565b60025460035482565b601e546001600160a01b03163314610de2576040805162461bcd60e51b81526020600482015260096024820152682327a92124a22222a760b91b604482015290519081900360640190fd5b600480546001600160a01b0319166001600160a01b039c909c169b909b17909a55600998909855600796909655600894909455600a92909255600b55600c55600d55600e55600f55601055565b6000610b1c6025836121bf565b60165460009062010000900460ff1615610e58575060036108a4565b600f5443118015610e6c5750600b54601754105b15610e79575060036108a4565b600a5460175410610e8c575060026108a4565b600f5443118015610ea15750600b5460175410155b15610eae575060026108a4565b600e544310801590610ec25750600f544311155b15610ecf575060016108a4565b50600090565b60026000541415610f1b576040805162461bcd60e51b815260206004820152601f60248201526000805160206129fe833981519152604482015290519081900360640190fd5b6002600055610f28610e3c565b600314610f69576040805162461bcd60e51b815260206004820152600a6024820152691393d50811905253115160b21b604482015290519081900360640190fd5b336000908152602460205260408120601a54601754919291610f8a91611fd6565b60115490915060009060ff1661101657600654604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015610fe557600080fd5b505afa158015610ff9573d6000803e3d6000fd5b505050506040513d602081101561100f57600080fd5b5051611018565b475b9050600061103d836110378660000154856121d490919063ffffffff16565b9061222d565b90506000811161108a576040805162461bcd60e51b81526020600482015260136024820152724e4f5448494e4720544f20574954484452415760681b604482015290519081900360640190fd5b8354601a546110989161226f565b601a55600084556006546011546110c0916001600160a01b0316903390849060ff16156122c9565b6040805182815290517fa9a142dc81035de788cc06c0c0eae3b355b722a640afe3e804f2f9c94b202feb9181900360200190a1505060016000555050565b6022546001600160a01b031681565b601654601754601854601954601a54601b54601c54601d5460ff8089169861010081048216986201000090910490911696909590949093909290918a565b60026000541415611191576040805162461bcd60e51b815260206004820152601f60248201526000805160206129fe833981519152604482015290519081900360640190fd5b6002600055601654610100900460ff16156111e9576040805162461bcd60e51b815260206004820152601360248201527247454e45524154494f4e20434f4d504c45544560681b604482015290519081900360640190fd5b6111f1610e3c565b600214611233576040805162461bcd60e51b815260206004820152600b60248201526a4e4f54205355434345535360a81b604482015290519081900360640190fd5b601f5460055460065460408051633659edb160e01b81526001600160a01b0393841660048201529183166024830152519190921691633659edb1916044808301926020929190829003018186803b15801561128d57600080fd5b505afa1580156112a1573d6000803e3d6000fd5b505050506040513d60208110156112b757600080fd5b5051156112d4576016805462ff000019166201000017905561172b565b6012546017546000916112ef916103e89161103791906121d4565b905060006113206103e861103760046008015461131a86601660010154611fd690919063ffffffff16565b906121d4565b60115490915060ff161561139857602360009054906101000a90046001600160a01b03166001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b15801561137e57600080fd5b505af1158015611392573d6000803e3d6000fd5b50505050505b600654601f546113b5916001600160a01b03908116911683612476565b600061144e600460020160009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b15801561140b57600080fd5b505afa15801561141f573d6000803e3d6000fd5b505050506040513d602081101561143557600080fd5b5051600d5460ff909116600a0a906110379085906121d4565b600554601f5491925061146e916001600160a01b03918216911683612476565b601f546006546005546010546004805460408051632277d0e360e01b81526001600160a01b03968716938101939093529385166024830152604482018890526064820187905242909201608482015290831660a482015290519190921691632277d0e39160c480830192600092919082900301818387803b1580156114f257600080fd5b505af1158015611506573d6000803e3d6000fd5b50506013546018546000935061152592506103e89161103791906121d4565b600654601454601154929350611550926001600160a01b039283169290911690879060ff16156122c9565b60055460155461156d916001600160a01b03908116911683612055565b600554604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156115b857600080fd5b505afa1580156115cc573d6000803e3d6000fd5b505050506040513d60208110156115e257600080fd5b505160185490915081111561163257601854600090611602908390611fd6565b600554909150611630906001600160a01b0316736ad6fd6282cce6ebb65ab8abcbd1ae5057d4b1db83612055565b505b60115460009060ff166116bb57600654604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561168a57600080fd5b505afa15801561169e573d6000803e3d6000fd5b505050506040513d60208110156116b457600080fd5b50516116bd565b475b6006546004546011549293506116e8926001600160a01b039283169290911690849060ff16156122c9565b6016805461ff00191661010017905542601d556040517f5fa88f7371c27bab2819681731ab8d92f18e5805c36c3fc765fdcb44f660afa090600090a15050505050505b6001600055565b601654610100900460ff16158015611753575060165462010000900460ff16155b61175c57600080fd5b601f5460055460065460408051633659edb160e01b81526001600160a01b0393841660048201529183166024830152519190921691633659edb1916044808301926020929190829003018186803b1580156117b657600080fd5b505afa1580156117ca573d6000803e3d6000fd5b505050506040513d60208110156117e057600080fd5b5051156117f9576016805462ff00001916620100001790555b565b601e546001600160a01b031681565b60026000541415611850576040805162461bcd60e51b815260206004820152601f60248201526000805160206129fe833981519152604482015290519081900360640190fd5b600260005561185d610e3c565b60011461189e576040805162461bcd60e51b815260206004820152600a6024820152694e4f542041435449564560b01b604482015290519081900360640190fd5b60165460ff16156118f7576118b46025336121bf565b6118f7576040805162461bcd60e51b815260206004820152600f60248201526e1393d50815d2125511531254d51151608a1b604482015290519081900360640190fd5b601b54600e54014310156119b2576020805460408051634a6da48160e01b815233600482015290516001600160a01b0390921692634a6da48192602480840193829003018186803b15801561194b57600080fd5b505afa15801561195f573d6000803e3d6000fd5b505050506040513d602081101561197557600080fd5b50516119b25760405162461bcd60e51b81526004018080602001828103825260218152602001806129bb6021913960400191505060405180910390fd5b33600090815260246020526040812060115490919060ff166119d457826119d6565b345b82546008549192506000916119ea91611fd6565b601754600a549192509003808211611a025781611a04565b805b915081831115611a12578192505b6000611aab600460020160009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015611a6857600080fd5b505afa158015611a7c573d6000803e3d6000fd5b505050506040513d6020811015611a9257600080fd5b505160075460ff909116600a0a906110379087906121d4565b905060008111611af0576040805162461bcd60e51b815260206004820152600b60248201526a5a45524f20544f4b454e5360a81b604482015290519081900360640190fd5b8454611b0057601c805460010190555b8454611b0c908561226f565b85556001850154611b1d908261226f565b600186015560058501805460ff19169055601754611b3b908561226f565b601755601854611b4b908261226f565b60185560115460ff168015611b5f57503484105b15611b9c57336108fc611b723487611fd6565b6040518115909202916000818181858888f19350505050158015611b9a573d6000803e3d6000fd5b505b60115460ff16611bbe57600654611bbe906001600160a01b03163330876125d9565b6040805185815290517f74cf14fef14d163b01022eef5a958a545312e19df212c3f891d94c524b36c7b79181900360200190a15050600160005550505050565b60026000541415611c44576040805162461bcd60e51b815260206004820152601f60248201526000805160206129fe833981519152604482015290519081900360640190fd5b6002600055601654610100900460ff16611c9e576040805162461bcd60e51b815260206004820152601660248201527520aba0a4aa24a7239026281023a2a722a920aa24a7a760511b604482015290519081900360640190fd5b336000908152602460205260409020600254601d5442910110611d08576040805162461bcd60e51b815260206004820152601c60248201527f76657374696e6720636c696666203a206e6f742074696d652079657400000000604482015290519081900360640190fd5b601954601854600091611d1b9190611fd6565b905060008111611d68576040805162461bcd60e51b81526020600482015260136024820152724e4f5448494e4720544f20574954484452415760681b604482015290519081900360640190fd5b6001820154600554604080516370a0823160e01b81523060048201529051600093611df7938693611037936001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015611dc557600080fd5b505afa158015611dd9573d6000803e3d6000fd5b505050506040513d6020811015611def57600080fd5b5051906121d4565b905060008111611e46576040805162461bcd60e51b815260206004820152601560248201527413d5d151081513d2d15394c81393d5081193d55391605a1b604482015290519081900360640190fd5b600583015460ff16611e7c57600383018190556001808401546004850155601d54600285015560058401805460ff191690911790555b600354601d544291011015611eab576001830154601954611e9c9161226f565b60195560006001840155611f77565b60038054600285015491850154611ec892611037919042036121d4565b4260028501556003840154909150600090611ee490839061222d565b9050611f09611f008286600401546121d490919063ffffffff16565b6019549061226f565b6019556004840154611f2a90611f1f90836121d4565b600186015490611fd6565b60018501819055611f75576040805162461bcd60e51b815260206004820152601060248201526f4e4f5448494e4720544f20434c41494d60801b604482015290519081900360640190fd5b505b600554611f8e906001600160a01b03163383612055565b6040805182815290517f99ab17002e5113aaa5c191281f32fc6af8a3bb91e9f08638ae06b84b838a68159181900360200190a15050600160005550565b6000610b1c8261272e565b600061201883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612732565b9392505050565b600061201883836127c9565b6000612018836001600160a01b03841661282d565b6000612018836001600160a01b038416612877565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b178152925182516000946060949389169392918291908083835b602083106120d25780518252601f1990920191602091820191016120b3565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612134576040519150601f19603f3d011682016040523d82523d6000602084013e612139565b606091505b5091509150818015612167575080511580612167575080806020019051602081101561216457600080fd5b50515b6121b8576040805162461bcd60e51b815260206004820152601f60248201527f5472616e7366657248656c7065723a205452414e534645525f4641494c454400604482015290519081900360640190fd5b5050505050565b6000612018836001600160a01b03841661293d565b6000826121e357506000610b1c565b828202828482816121f057fe5b04146120185760405162461bcd60e51b8152600401808060200182810382526021815260200180612a1e6021913960400191505060405180910390fd5b600061201883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612955565b600082820183811015612018576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b8061230a576040516001600160a01b0384169083156108fc029084906000818181858888f19350505050158015612304573d6000803e3d6000fd5b50612470565b604080516001600160a01b038581166024830152604480830186905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b17815292518251600094606094938a169392918291908083835b602083106123875780518252601f199092019160209182019101612368565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146123e9576040519150601f19603f3d011682016040523d82523d6000602084013e6123ee565b606091505b509150915081801561241c57508051158061241c575080806020019051602081101561241957600080fd5b50515b61246d576040805162461bcd60e51b815260206004820152601f60248201527f5472616e7366657248656c7065723a205452414e534645525f4641494c454400604482015290519081900360640190fd5b50505b50505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663095ea7b360e01b178152925182516000946060949389169392918291908083835b602083106124f35780518252601f1990920191602091820191016124d4565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612555576040519150601f19603f3d011682016040523d82523d6000602084013e61255a565b606091505b5091509150818015612588575080511580612588575080806020019051602081101561258557600080fd5b50515b6121b8576040805162461bcd60e51b815260206004820152601e60248201527f5472616e7366657248656c7065723a20415050524f56455f4641494c45440000604482015290519081900360640190fd5b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b17815292518251600094606094938a169392918291908083835b6020831061265e5780518252601f19909201916020918201910161263f565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146126c0576040519150601f19603f3d011682016040523d82523d6000602084013e6126c5565b606091505b50915091508180156126f35750805115806126f357508080602001905160208110156126f057600080fd5b50515b61246d5760405162461bcd60e51b8152600401808060200182810382526024815260200180612a3f6024913960400191505060405180910390fd5b5490565b600081848411156127c15760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561278657818101518382015260200161276e565b50505050905090810190601f1680156127b35780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b8154600090821061280b5760405162461bcd60e51b81526004018080602001828103825260228152602001806129dc6022913960400191505060405180910390fd5b82600001828154811061281a57fe5b9060005260206000200154905092915050565b6000612839838361293d565b61286f57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610b1c565b506000610b1c565b6000818152600183016020526040812054801561293357835460001980830191908101906000908790839081106128aa57fe5b90600052602060002001549050808760000184815481106128c757fe5b6000918252602080832090910192909255828152600189810190925260409020908401905586548790806128f757fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610b1c565b6000915050610b1c565b60009081526001919091016020526040902054151590565b600081836129a45760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561278657818101518382015260200161276e565b5060008385816129b057fe5b049594505050505056fe494e535546464943454e5420524f554e44203120544f4b454e2042414c414e4345456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64735265656e7472616e637947756172643a207265656e7472616e742063616c6c00536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775472616e7366657248656c7065723a205452414e534645525f46524f4d5f4641494c4544a26469706673582212202dcf65fd9cd2b103dfa2cdffdaed95e1b13110297d796e868c51c21cfb2917f264736f6c634300060c0033

Deployed Bytecode Sourcemap

21578:17690:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24754:43;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24754:43:0;-1:-1:-1;;;;;24754:43:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37758:135;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;37758:135:0;;:::i;:::-;;22041:35;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;38374:108;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;38374:108:0;;;;:::i;38895:::-;;;;;;;;;;;;;:::i;24605:44::-;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;24605:44:0;;;;;;;;;;;;;;26342:1098;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;26342:1098:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;34441:126::-;;;;;;;;;;;;;:::i;37994:331::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;37994:331:0;;;;;;;:::i;24545:55::-;;;;;;;;;;;;;:::i;39011:124::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39011:124:0;;:::i;38531:334::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;38531:334:0;;-1:-1:-1;;;;38531:334:0;;;;-1:-1:-1;38531:334:0;:::i;24385:35::-;;;;;;;;;;;;;:::i;:::-;;;;;-1:-1:-1;;;;;24385:35:0;;;;;;-1:-1:-1;;;;;24385:35:0;;;;;;-1:-1:-1;;;;;24385:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33428:304;;;;;;;;;;;;;:::i;24732:17::-;;;;;;;;;;;;;:::i;24425:42::-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;-1:-1:-1;;;;;24425:42:0;;;;;;;;;;;;;;;;;;;;;24339:41;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;25373:961;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;25373:961:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;39143:122::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39143:122:0;-1:-1:-1;;;;;39143:122:0;;:::i;:::-;;;;;;;;;;;;;;;;;;27583:817;;;;;;;;;;;;;:::i;32433:885::-;;;;;;;;;;;;;:::i;24683:44::-;;;;;;;;;;;;;:::i;24472:29::-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35002:2748;;;;;;;;;;;;;:::i;34092:294::-;;;;;;;;;;;;;:::i;24506:34::-;;;;;;;;;;;;;:::i;28468:1947::-;;;;;;;;;;;;;;;;-1:-1:-1;28468:1947:0;;:::i;30539:1775::-;;;;;;;;;;;;;:::i;24754:43::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;37758:135::-;27493:14;:30;-1:-1:-1;;;;;27493:30:0;27527:10;27493:44;27485:76;;;;;-1:-1:-1;;;27485:76:0;;;;;;;;;;;;-1:-1:-1;;;27485:76:0;;;;;;;;;;;;;;;37841:34;:46;37758:135::o;22041:35::-;;;;:::o;38374:108::-;27493:14;:30;-1:-1:-1;;;;;27493:30:0;27527:10;27493:44;27485:76;;;;;-1:-1:-1;;;27485:76:0;;;;;;;;;;;;-1:-1:-1;;;27485:76:0;;;;;;;;;;;;;;;38447:6:::1;:29:::0;;-1:-1:-1;;38447:29:0::1;::::0;::::1;;::::0;;;::::1;::::0;;38374:108::o;38895:::-;38956:7;38979:18;:9;:16;:18::i;:::-;38972:25;;38895:108;;:::o;24605:44::-;;;-1:-1:-1;;;;;24605:44:0;;:::o;26342:1098::-;26656:19;;-1:-1:-1;;;;;26656:19:0;26642:10;:33;26634:55;;;;;-1:-1:-1;;;26634:55:0;;;;;;;;;;;;-1:-1:-1;;;26634:55:0;;;;;;;;;;;;;;;26912:4;;26847:31;:70;;-1:-1:-1;;;;;26912:4:0;;;26881:36;;;;;;-1:-1:-1;;26847:70:0;;;;;;;;;;26926:22;:40;;-1:-1:-1;;;;;;26926:40:0;;;;;;;;;;26975:22;:35;;;;;;;;;;-1:-1:-1;27019:47:0;;;27075:33;:49;;;27141:35;:53;;;;;;;;;;27203:36;:55;;;;;;;;;;;27290:18;;;:36;;;-1:-1:-1;;;27290:36:0;;;;:18;;;;;:34;;26847:14;27290:36;;;;:18;;:36;;;;;:18;:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;27290:36:0;27267:20;:59;27337:17;:46;;;;27392:28;:42;-1:-1:-1;;;;;;26342:1098:0:o;34441:126::-;34509:16;;-1:-1:-1;;;;;34509:16:0;34495:10;:30;34487:39;;;;;;34535:6;:26;;-1:-1:-1;;34535:26:0;;;;;34441:126::o;37994:331::-;27493:14;:30;-1:-1:-1;;;;;27493:30:0;27527:10;27493:44;27485:76;;;;;-1:-1:-1;;;27485:76:0;;;;;;;;;;;;-1:-1:-1;;;27485:76:0;;;;;;;;;;;;;;;38099:26;;38128:12:::1;-1:-1:-1::0;38091:50:0::1;;;::::0;::::1;;38186:18;::::0;;:42:::1;::::0;;-1:-1:-1;;;38186:42:0;;;;-1:-1:-1;;;;;38186:18:0;;::::1;::::0;:40:::1;::::0;:42:::1;::::0;;::::1;::::0;;;;;;:18;:42;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;38186:42:0;38156:26:::1;:9:::0;38170:11;38156:13:::1;:26::i;:::-;:72;;38148:81;;;::::0;::::1;;38236:26:::0;:40;;;;38283:24;:36;37994:331::o;24545:55::-;;;-1:-1:-1;;;;;24545:55:0;;:::o;39011:124::-;39086:7;39109:20;:9;39122:6;39109:12;:20::i;:::-;39102:27;39011:124;-1:-1:-1;;39011:124:0:o;38531:334::-;27493:14;:30;-1:-1:-1;;;;;27493:30:0;27527:10;27493:44;27485:76;;;;;-1:-1:-1;;;27485:76:0;;;;;;;;;;;;-1:-1:-1;;;27485:76:0;;;;;;;;;;;;;;;38629:4:::1;38625:235;;;38651:6;38646:90;38667:6;:13;38663:1;:17;38646:90;;;38700:24;38714:6;38721:1;38714:9;;;;;;;;;;;;;;38700;:13;;:24;;;;:::i;:::-;-1:-1:-1::0;38682:3:0::1;;38646:90;;;;38625:235;;;38765:6;38760:93;38781:6;:13;38777:1;:17;38760:93;;;38814:27;38831:6;38838:1;38831:9;;;;;;;;;;;;;;38814;:16;;:27;;;;:::i;:::-;-1:-1:-1::0;38796:3:0::1;;38760:93;;;;38625:235;38531:334:::0;;:::o;24385:35::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;24385:35:0;;;;;;;;;;;;;;;:::o;33428:304::-;27493:14;:30;-1:-1:-1;;;;;27493:30:0;27527:10;27493:44;27485:76;;;;;-1:-1:-1;;;27485:76:0;;;;;;;;;;;;-1:-1:-1;;;27485:76:0;;;;;;;;;;;;;;;33503:17:::1;:15;:17::i;:::-;33524:1;33503:22;33495:31;;;::::0;::::1;;33579:22:::0;;:14:::1;33604:30:::0;;33636:47:::1;::::0;;-1:-1:-1;;;33636:47:0;;33677:4:::1;33636:47:::0;;::::1;::::0;;;;;33543:141:::1;::::0;-1:-1:-1;;;;;33579:22:0;;::::1;::::0;33604:30;::::1;::::0;33579:22;;33636:32:::1;::::0;:47;;;;;::::1;::::0;;;;;;;;;33579:22;33636:47;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;33636:47:0;33543:27:::1;:141::i;:::-;33696:30;::::0;::::1;::::0;;;::::1;33428:304::o:0;24732:17::-;;;-1:-1:-1;;;;;24732:17:0;;:::o;24425:42::-;;;;;;;;;-1:-1:-1;;;;;24425:42:0;;;;;;:::o;24339:41::-;;;;;;:::o;25373:961::-;25749:19;;-1:-1:-1;;;;;25749:19:0;25735:10;:33;25727:55;;;;;-1:-1:-1;;;25727:55:0;;;;;;;;;;;;-1:-1:-1;;;25727:55:0;;;;;;;;;;;;;;;25791:14;:48;;-1:-1:-1;;;;;;25791:48:0;-1:-1:-1;;;;;25791:48:0;;;;;;;;;;;25848:21;:31;;;;25888:26;:40;;;;25937:34;:52;;;;25998:22;:33;;;;26040:22;:33;26082:32;:52;26143:27;:42;26194:26;:40;26243:24;:36;26288:26;:40;25373:961::o;39143:122::-;39214:4;39234:25;:9;39253:5;39234:18;:25::i;27583:817::-;27652:6;:19;27632:7;;27652:19;;;;;27648:73;;;-1:-1:-1;27689:1:0;27682:8;;27648:73;27747:24;;27732:12;:39;27731:99;;;;-1:-1:-1;27807:22:0;;27777:27;;:52;27731:99;27727:171;;;-1:-1:-1;27848:1:0;27841:8;;27727:171;27939:22;;27908:27;;:53;27904:109;;-1:-1:-1;27979:1:0;27972:8;;27904:109;28039:24;;28024:12;:39;28023:100;;;;-1:-1:-1;28100:22:0;;28069:27;;:53;;28023:100;28019:174;;;-1:-1:-1;28141:1:0;28134:8;;28019:174;28220:26;;28204:12;:42;;;;28203:90;;-1:-1:-1;28268:24:0;;28252:12;:40;;28203:90;28199:150;;;-1:-1:-1;28311:1:0;28304:8;;28199:150;-1:-1:-1;28362:1:0;27583:817;:::o;32433:885::-;18595:1;19201:7;;:19;;19193:63;;;;;-1:-1:-1;;;19193:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;19193:63:0;;;;;;;;;;;;;;;18595:1;19334:7;:18;32505:17:::1;:15;:17::i;:::-;32526:1;32505:22;32497:45;;;::::0;;-1:-1:-1;;;32497:45:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;32497:45:0;;;;;;;;;;;;;::::1;;32592:10;32559:23;32585:18:::0;;;:6:::1;:18;::::0;;;;32677:27;;32645;;32585:18;;32559:23;32645:60:::1;::::0;:31:::1;:60::i;:::-;32743:31:::0;;32610:95;;-1:-1:-1;32712:28:0::1;::::0;32743:31:::1;;:105;;32801:22:::0;;:47:::1;::::0;;-1:-1:-1;;;32801:47:0;;32842:4:::1;32801:14;:47:::0;::::1;::::0;;;-1:-1:-1;;;;;32801:22:0;;::::1;::::0;:32:::1;::::0;:47;;;;;::::1;::::0;;;;;;;;;:22;:47;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;32801:47:0;32743:105:::1;;;32777:21;32743:105;32712:136;;32855:18;32876:75;32926:24;32876:45;32901:5;:19;;;32876:20;:24;;:45;;;;:::i;:::-;:49:::0;::::1;:75::i;:::-;32855:96;;32979:1;32966:10;:14;32958:46;;;::::0;;-1:-1:-1;;;32958:46:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;32958:46:0;;;;;;;;;;;;;::::1;;33073:19:::0;;33041:27;;:52:::1;::::0;:31:::1;:52::i;:::-;33011:27:::0;:82;33122:1:::1;33100:23:::0;;33175:22;;33225:31;;33130:127:::1;::::0;-1:-1:-1;;;;;33175:22:0::1;::::0;33200:10:::1;::::0;33212;;33225:31:::1;;33224:32;33130:36;:127::i;:::-;33269:43;::::0;;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;-1:-1:-1::0;;18551:1:0;19513:7;:22;-1:-1:-1;;32433:885:0:o;24683:44::-;;;-1:-1:-1;;;;;24683:44:0;;:::o;24472:29::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;35002:2748::-;18595:1;19201:7;;:19;;19193:63;;;;;-1:-1:-1;;;19193:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;19193:63:0;;;;;;;;;;;;;;;18595:1;19334:7;:18;35064:6:::1;:29:::0;::::1;::::0;::::1;;;35063:30;35055:62;;;::::0;;-1:-1:-1;;;35055:62:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;35055:62:0;;;;;;;;;;;;;::::1;;35132:17;:15;:17::i;:::-;35153:1;35132:22;35124:46;;;::::0;;-1:-1:-1;;;35124:46:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;35124:46:0;;;;;;;;;;;;;::::1;;35277:24;::::0;35338:22;;35371;;35277:118:::1;::::0;;-1:-1:-1;;;35277:118:0;;-1:-1:-1;;;;;35338:22:0;;::::1;:14;35277:118:::0;::::1;::::0;35371:22;;::::1;35277:118:::0;;;;;:24;;;::::1;::::0;:52:::1;::::0;:118;;;;;::::1;::::0;;;;;;;;:24;:118;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;35277:118:0;35273:186:::1;;;35408:6;:26:::0;;-1:-1:-1;;35408:26:0::1;::::0;::::1;::::0;;35445:7:::1;;35273:186;35525:18;:32:::0;35493:27;;35471:19:::1;::::0;35493:75:::1;::::0;35563:4:::1;::::0;35493:65:::1;::::0;:27;:31:::1;:65::i;:75::-;35471:97;;35610:21;35634:92;35721:4;35634:82;35683:14;:32;;;35634:44;35666:11;35634:6;:27;;;:31;;:44;;;;:::i;:::-;:48:::0;::::1;:82::i;:92::-;35737:31:::0;;35610:116;;-1:-1:-1;35737:31:0::1;;35733:93;;;35781:4;;;;;;;;;-1:-1:-1::0;;;;;35781:4:0::1;-1:-1:-1::0;;;;;35781:12:0::1;;35802:13;35781:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;35733:93;35867:22:::0;;35900:24:::1;::::0;35832:109:::1;::::0;-1:-1:-1;;;;;35867:22:0;;::::1;::::0;35900:24:::1;35927:13:::0;35832:26:::1;:109::i;:::-;35983:22;36008:100;36073:14;:22;;;;;;;;;;-1:-1:-1::0;;;;;36073:22:0::1;-1:-1:-1::0;;;;;36073:31:0::1;;:33;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;36073:33:0;36026:27;;36065:42:::1;::::0;;::::1;36059:2;:48;::::0;36008:46:::1;::::0;:13;;:17:::1;:46::i;:100::-;36150:22:::0;;36183:24:::1;::::0;35983:125;;-1:-1:-1;36115:110:0::1;::::0;-1:-1:-1;;;;;36150:22:0;;::::1;::::0;36183:24:::1;35983:125:::0;36115:26:::1;:110::i;:::-;36238:24;::::0;36277:22;;36301;;36374:26;;36277:14:::1;36402:30:::0;;36238:195:::1;::::0;;-1:-1:-1;;;36238:195:0;;-1:-1:-1;;;;;36277:22:0;;::::1;36238:195:::0;;::::1;::::0;;;;36301:22;;::::1;36238:195:::0;;;;;;;;;;;;;;;;36356:15:::1;:44:::0;;::::1;36238:195:::0;;;;36402:30;;::::1;36238:195:::0;;;;;;:24;;;::::1;::::0;:38:::1;::::0;:195;;;;;:24:::1;::::0;:195;;;;;;;:24;;:195;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;36520:33:0;;36491:24;;36468:20:::1;::::0;-1:-1:-1;36491:73:0::1;::::0;-1:-1:-1;36559:4:0::1;::::0;36491:63:::1;::::0;:24;:28:::1;:63::i;:73::-;36616:22:::0;;36641:35;;36692:31;;36468:96;;-1:-1:-1;36571:153:0::1;::::0;-1:-1:-1;;;;;36616:22:0;;::::1;::::0;36641:35;;::::1;::::0;36678:11;;36692:31:::1;;36691:32;36571:36;:153::i;:::-;36767:22:::0;;36792:36;;36731:112:::1;::::0;-1:-1:-1;;;;;36767:22:0;;::::1;::::0;36792:36:::1;36830:12:::0;36731:27:::1;:112::i;:::-;36911:22:::0;;:47:::1;::::0;;-1:-1:-1;;;36911:47:0;;36952:4:::1;36911:14;:47:::0;::::1;::::0;;;36883:25:::1;::::0;-1:-1:-1;;;;;36911:22:0::1;::::0;:32:::1;::::0;:47;;;;;::::1;::::0;;;;;;;;:22;:47;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;36911:47:0;36989:24;;36911:47;;-1:-1:-1;36969:44:0;::::1;36965:264;;;37069:24:::0;;37026:18:::1;::::0;37047:47:::1;::::0;:17;;:21:::1;:47::i;:::-;37141:22:::0;;37026:68;;-1:-1:-1;37105:116:0::1;::::0;-1:-1:-1;;;;;37141:22:0::1;37166:42;37026:68:::0;37105:27:::1;:116::i;:::-;36965:264;;37326:31:::0;;37295:28:::1;::::0;37326:31:::1;;:105;;37384:22:::0;;:47:::1;::::0;;-1:-1:-1;;;37384:47:0;;37425:4:::1;37384:14;:47:::0;::::1;::::0;;;-1:-1:-1;;;;;37384:22:0;;::::1;::::0;:32:::1;::::0;:47;;;;;::::1;::::0;;;;;;;;;:22;:47;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;37384:47:0;37326:105:::1;;;37360:21;37326:105;37483:22:::0;;:14:::1;37508:30:::0;37563:31;;37295:136;;-1:-1:-1;37438:157:0::1;::::0;-1:-1:-1;;;;;37483:22:0;;::::1;::::0;37508:30;;::::1;::::0;37295:136;;37563:31:::1;;37562:32;37438:36;:157::i;:::-;37608:6;:36:::0;;-1:-1:-1;;37608:36:0::1;;;::::0;;37688:15:::1;37651:34:::0;:52;37721:23:::1;::::0;::::1;::::0;37608:29:::1;::::0;37721:23:::1;19365:1;;;;;;;18551::::0;19513:7;:22;35002:2748::o;34092:294::-;34151:6;:29;;;;;;34150:30;:54;;;;-1:-1:-1;34185:6:0;:19;;;;;;34184:20;34150:54;34142:63;;;;;;34216:24;;34277:22;;34310;;34216:118;;;-1:-1:-1;;;34216:118:0;;-1:-1:-1;;;;;34277:22:0;;;:14;34216:118;;;34310:22;;;34216:118;;;;;:24;;;;;:52;;:118;;;;;;;;;;;;;;:24;:118;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;34216:118:0;34212:169;;;34347:6;:26;;-1:-1:-1;;34347:26:0;;;;;34212:169;34092:294::o;24506:34::-;;;-1:-1:-1;;;;;24506:34:0;;:::o;28468:1947::-;18595:1;19201:7;;:19;;19193:63;;;;;-1:-1:-1;;;19193:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;19193:63:0;;;;;;;;;;;;;;;18595:1;19334:7;:18;28552:17:::1;:15;:17::i;:::-;28573:1;28552:22;28544:45;;;::::0;;-1:-1:-1;;;28544:45:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;28544:45:0;;;;;;;;;;;;;::::1;;28610:6;:21:::0;::::1;;28606:102;;;28650:30;:9;28669:10;28650:18;:30::i;:::-;28642:58;;;::::0;;-1:-1:-1;;;28642:58:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;28642:58:0;;;;;;;;;;;;;::::1;;28846:20:::0;;28817:26;;:49:::1;28802:12;:64;28798:219;;;28910:18;::::0;;:61:::1;::::0;;-1:-1:-1;;;28910:61:0;;28960:10:::1;28910:61;::::0;::::1;::::0;;;-1:-1:-1;;;;;28910:18:0;;::::1;::::0;:49:::1;::::0;:61;;;;;;;;;;:18;:61;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;28910:61:0;28902:107:::1;;;;-1:-1:-1::0;;;28902:107:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29056:10;29023:23;29049:18:::0;;;:6:::1;:18;::::0;;;;29094:31;;29049:18;;29023:23;29094:31:::1;;:53;;29140:7;29094:53;;;29128:9;29094:53;29213:19:::0;;29174:34;;29074:73;;-1:-1:-1;29154:17:0::1;::::0;29174:59:::1;::::0;:38:::1;:59::i;:::-;29285:27:::0;;29260:22;;29154:79;;-1:-1:-1;29260:52:0;::::1;29331:21:::0;;::::1;:45;;29367:9;29331:45;;;29355:9;29331:45;29319:57;;29399:9;29387;:21;29383:65;;;29431:9;29419:21;;29383:65;29454:18;29475:95;29535:14;:22;;;;;;;;;;-1:-1:-1::0;;;;;29535:22:0::1;-1:-1:-1::0;;;;;29535:31:0::1;;:33;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;29535:33:0;29489:26;;29527:42:::1;::::0;;::::1;29521:2;:48;::::0;29475:41:::1;::::0;:9;;:13:::1;:41::i;:95::-;29454:116;;29598:1;29585:10;:14;29577:38;;;::::0;;-1:-1:-1;;;29577:38:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;29577:38:0;;;;;;;;;;;;;::::1;;29626:19:::0;;29622:68:::1;;29663:17:::0;:19;;::::1;;::::0;;29622:68:::1;29720:19:::0;;:34:::1;::::0;29744:9;29720:23:::1;:34::i;:::-;29698:56:::0;;29780:16:::1;::::0;::::1;::::0;:32:::1;::::0;29801:10;29780:20:::1;:32::i;:::-;29761:16;::::0;::::1;:51:::0;29819:20:::1;::::0;::::1;:28:::0;;-1:-1:-1;;29819:28:0::1;::::0;;29886:27;;:42:::1;::::0;29918:9;29886:31:::1;:42::i;:::-;29856:27:::0;:72;29962:24;;:40:::1;::::0;29991:10;29962:28:::1;:40::i;:::-;29935:24:::0;:67;30045:31;;::::1;;:56:::0;::::1;;;;30092:9;30080;:21;30045:56;30041:124;;;30112:10;:45;30132:24;:9;30146::::0;30132:13:::1;:24::i;:::-;30112:45;::::0;;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;30041:124;30215:31:::0;;::::1;;30210:157;;30297:22:::0;;30257:102:::1;::::0;-1:-1:-1;;;;;30297:22:0::1;30322:10;30342:4;30349:9:::0;30257:31:::1;:102::i;:::-;30378:31;::::0;;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;-1:-1:-1::0;;18551:1:0;19513:7;:22;-1:-1:-1;;;;28468:1947:0:o;30539:1775::-;18595:1;19201:7;;:19;;19193:63;;;;;-1:-1:-1;;;19193:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;19193:63:0;;;;;;;;;;;;;;;18595:1;19334:7;:18;30607:6:::1;:29:::0;::::1;::::0;::::1;;;30599:64;;;::::0;;-1:-1:-1;;;30599:64:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;30599:64:0;;;;;;;;;;;;;::::1;;30703:10;30670:23;30696:18:::0;;;:6:::1;:18;::::0;;;;30766:17:::1;:30:::0;30729:34;;30799:15:::1;30729:67:::0;::::1;:85;30721:126;;;::::0;;-1:-1:-1;;;30721:126:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;30922:29:::0;;30893:24;;30856:34:::1;::::0;30893:59:::1;::::0;:24;:28:::1;:59::i;:::-;30856:96;;30996:1;30967:26;:30;30959:62;;;::::0;;-1:-1:-1;;;30959:62:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;30959:62:0;;;;;;;;;;;;;::::1;;31103:16;::::0;::::1;::::0;31051:22;;:47:::1;::::0;;-1:-1:-1;;;31051:47:0;;31092:4:::1;31051:14;:47:::0;::::1;::::0;;;31030:18:::1;::::0;31051:101:::1;::::0;31125:26;;31051:69:::1;::::0;-1:-1:-1;;;;;31051:22:0;;::::1;::::0;:32:::1;::::0;:47;;;;;::::1;::::0;;;;;;;;;:22;:47;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;31051:47:0;;:51:::1;:69::i;:101::-;31030:122;;31180:1;31167:10;:14;31159:48;;;::::0;;-1:-1:-1;;;31159:48:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;31159:48:0;;;;;;;;;;;;;::::1;;31224:20;::::0;::::1;::::0;::::1;;31220:229;;31260:19;::::0;::::1;:32:::0;;;31327:16:::1;::::0;;::::1;::::0;31301:23:::1;::::0;::::1;:42:::0;31371:34;;31352:16:::1;::::0;::::1;:53:::0;31414:20:::1;::::0;::::1;:27:::0;;-1:-1:-1;;31414:27:0::1;::::0;;::::1;::::0;;31220:229:::1;31497:28:::0;;31460:34;;31528:15:::1;31460:65:::0;::::1;:83;31457:708;;;31620:16;::::0;::::1;::::0;31586:29;;:51:::1;::::0;:33:::1;:51::i;:::-;31554:29:::0;:83;31665:1:::1;31646:16;::::0;::::1;:20:::0;31457:708:::1;;;31772:28:::0;;;:17:::1;31750:16:::0;::::1;::::0;31708:19;;::::1;::::0;:93:::1;::::0;:59:::1;::::0;:19;31732:15:::1;:34;31708:23;:59::i;:93::-;31829:15;31810:16;::::0;::::1;:34:::0;31885:19:::1;::::0;::::1;::::0;31695:106;;-1:-1:-1;31855:12:0::1;::::0;31870:35:::1;::::0;31695:106;;31870:14:::1;:35::i;:::-;31855:50;;31946:68;31980:33;32008:4;31980:5;:23;;;:27;;:33;;;;:::i;:::-;31946:29:::0;;;:33:::1;:68::i;:::-;31914:29:::0;:100;32065:23:::1;::::0;::::1;::::0;32044:55:::1;::::0;32065:33:::1;::::0;32093:4;32065:27:::1;:33::i;:::-;32044:16;::::0;::::1;::::0;;:20:::1;:55::i;:::-;32025:16;::::0;::::1;:74:::0;;;32108:49:::1;;;::::0;;-1:-1:-1;;;32108:49:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;32108:49:0;;;;;;;;;;;;;::::1;;31457:708;;32209:22:::0;;32173:84:::1;::::0;-1:-1:-1;;;;;32209:22:0::1;32234:10;32246::::0;32173:27:::1;:84::i;:::-;32269:39;::::0;;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;-1:-1:-1::0;;18551:1:0;19513:7;:22;-1:-1:-1;30539:1775:0:o;9140:117::-;9203:7;9230:19;9238:3;9230:7;:19::i;12804:136::-;12862:7;12889:43;12893:1;12896;12889:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;12882:50;12804:136;-1:-1:-1;;;12804:136:0:o;9601:149::-;9675:7;9718:22;9722:3;9734:5;9718:3;:22::i;8342:143::-;8412:4;8436:41;8441:3;-1:-1:-1;;;;;8461:14:0;;8436:4;:41::i;8661:149::-;8734:4;8758:44;8766:3;-1:-1:-1;;;;;8786:14:0;;8758:7;:44::i;541:294::-;669:45;;;-1:-1:-1;;;;;669:45:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;669:45:0;-1:-1:-1;;;669:45:0;;;658:57;;;;623:12;;637:17;;658:10;;;;669:45;658:57;;;669:45;658:57;;669:45;658:57;;;;;;;;;;-1:-1:-1;;658:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;622:93;;;;734:7;:57;;;;-1:-1:-1;746:11:0;;:16;;:44;;;777:4;766:24;;;;;;;;;;;;;;;-1:-1:-1;766:24:0;746:44;726:101;;;;;-1:-1:-1;;;726:101:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;541:294;;;;;:::o;8896:158::-;8976:4;9000:46;9010:3;-1:-1:-1;;;;;9030:14:0;;9000:9;:46::i;13694:471::-;13752:7;13997:6;13993:47;;-1:-1:-1;14027:1:0;14020:8;;13993:47;14064:5;;;14068:1;14064;:5;:1;14088:5;;;;;:10;14080:56;;;;-1:-1:-1;;;14080:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14641:132;14699:7;14726:39;14730:1;14733;14726:39;;;;;;;;;;;;;;;;;:3;:39::i;12340:181::-;12398:7;12430:5;;;12454:6;;;;12446:46;;;;;-1:-1:-1;;;12446:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;1214:420;1331:7;1326:301;;1355:18;;-1:-1:-1;;;;;1355:11:0;;;:18;;;;;1367:5;;1355:18;;;;1367:5;1355:11;:18;;;;;;;;;;;;;;;;;;;;;1326:301;;;1453:45;;;-1:-1:-1;;;;;1453:45:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1453:45:0;-1:-1:-1;;;1453:45:0;;;1442:57;;;;1407:12;;1421:17;;1442:10;;;;1453:45;1442:57;;;1453:45;1442:57;;1453:45;1442:57;;;;;;;;;;-1:-1:-1;;1442:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1406:93;;;;1522:7;:57;;;;-1:-1:-1;1534:11:0;;:16;;:44;;;1565:4;1554:24;;;;;;;;;;;;;;;-1:-1:-1;1554:24:0;1534:44;1514:101;;;;;-1:-1:-1;;;1514:101:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;1326:301;;;1214:420;;;;:::o;241:292::-;368:45;;;-1:-1:-1;;;;;368:45:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;368:45:0;-1:-1:-1;;;368:45:0;;;357:57;;;;322:12;;336:17;;357:10;;;;368:45;357:57;;;368:45;357:57;;368:45;357:57;;;;;;;;;;-1:-1:-1;;357:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;321:93;;;;433:7;:57;;;;-1:-1:-1;445:11:0;;:16;;:44;;;476:4;465:24;;;;;;;;;;;;;;;-1:-1:-1;465:24:0;445:44;425:100;;;;;-1:-1:-1;;;425:100:0;;;;;;;;;;;;;;;;;;;;;;;;;;;843:323;989:51;;;-1:-1:-1;;;;;989:51:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;989:51:0;-1:-1:-1;;;989:51:0;;;978:63;;;;943:12;;957:17;;978:10;;;;989:51;978:63;;;989:51;978:63;;989:51;978:63;;;;;;;;;;-1:-1:-1;;978:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;942:99;;;;1060:7;:57;;;;-1:-1:-1;1072:11:0;;:16;;:44;;;1103:4;1092:24;;;;;;;;;;;;;;;-1:-1:-1;1092:24:0;1072:44;1052:106;;;;-1:-1:-1;;;1052:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5841:109;5924:18;;5841:109::o;13243:192::-;13329:7;13365:12;13357:6;;;;13349:29;;;;-1:-1:-1;;;13349:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;13401:5:0;;;13243:192::o;6294:204::-;6389:18;;6361:7;;6389:26;-1:-1:-1;6381:73:0;;;;-1:-1:-1;;;6381:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6472:3;:11;;6484:5;6472:18;;;;;;;;;;;;;;;;6465:25;;6294:204;;;;:::o;3406:414::-;3469:4;3491:21;3501:3;3506:5;3491:9;:21::i;:::-;3486:327;;-1:-1:-1;3529:23:0;;;;;;;;:11;:23;;;;;;;;;;;;;3712:18;;3690:19;;;:12;;;:19;;;;;;:40;;;;3745:11;;3486:327;-1:-1:-1;3796:5:0;3789:12;;3996:1544;4062:4;4201:19;;;:12;;;:19;;;;;;4237:15;;4233:1300;;4672:18;;-1:-1:-1;;4623:14:0;;;;4672:22;;;;4599:21;;4672:3;;:22;;4959;;;;;;;;;;;;;;4939:42;;5105:9;5076:3;:11;;5088:13;5076:26;;;;;;;;;;;;;;;;;;;:38;;;;5182:23;;;5224:1;5182:12;;;:23;;;;;;5208:17;;;5182:43;;5334:17;;5182:3;;5334:17;;;;;;;;;;;;;;;;;;;;;;5429:3;:12;;:19;5442:5;5429:19;;;;;;;;;;;5422:26;;;5472:4;5465:11;;;;;;;;4233:1300;5516:5;5509:12;;;;;5626:129;5699:4;5723:19;;;:12;;;;;:19;;;;;;:24;;;5626:129::o;15269:278::-;15355:7;15390:12;15383:5;15375:28;;;;-1:-1:-1;;;15375:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15414:9;15430:1;15426;:5;;;;;;;15269:278;-1:-1:-1;;;;;15269:278:0:o

Swarm Source

ipfs://2dcf65fd9cd2b103dfa2cdffdaed95e1b13110297d796e868c51c21cfb2917f2

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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