Contract 0x1c66CAAB523A120053824e4ac942857Db346c2c6

  Note: Our ETH balance display is temporarily unavailable. Please check back later.

Contract Overview

Balance:
Txn Hash Method
Block
From
To
Value
0x54cb0ea5384d2b1c973fe870cf2d8cb0d424933e08e526bc9267fa3d461dd3750x608060408183372022-09-02 9:33:38599 days 21 hrs ago0x3363e40cd9ed1bfc82dfa42e059d82570dd8651d IN  Create: ExoticPositionalMarketData0 ETH0.0003249649270.00001
[ Download CSV Export 
Latest 2 internal transactions
Parent Txn Hash Block From To Value
0x30843e162d082e36a0a225d4e5d7103ab9a37dbc76a413d66fde82ffbd08d7e98198782022-09-02 11:15:45599 days 19 hrs ago 0x2f1e736f41e494ed2c73b40cefc659c5a4d0f194 0x1c66caab523a120053824e4ac942857db346c2c60 ETH
0xd5898b22c0f320397599340db796875100f6ed566ba335c20b0928987ca6635d8183392022-09-02 9:33:38599 days 21 hrs ago 0x2f1e736f41e494ed2c73b40cefc659c5a4d0f194 0x1c66caab523a120053824e4ac942857db346c2c60 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ExoticPositionalMarketData

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 14 : ExoticPositionalMarketData.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// external
import "@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/math/MathUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/utils/math/SafeMathUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol";

// internal
import "../utils/proxy/solidity-0.8.0/ProxyReentrancyGuard.sol";
import "../utils/proxy/solidity-0.8.0/ProxyOwned.sol";
import "../interfaces/IExoticPositionalMarketManager.sol";
import "../interfaces/IExoticPositionalMarket.sol";

contract ExoticPositionalMarketData is Initializable, ProxyOwned, PausableUpgradeable, ProxyReentrancyGuard {
    using SafeMathUpgradeable for uint;
    using SafeERC20Upgradeable for IERC20Upgradeable;

    struct MarketData {
        string marketQuestion;
        string marketSource;
        uint ticketType;
        uint endOfPositioning;
        uint fixedTicketPrice;
        uint creationTime;
        bool withdrawalAllowed;
        bool disputed;
        bool resolved;
        uint resolvedTime;
        string[] positionPhrasesList;
        uint[] tags;
        uint totalPlacedAmount;
        uint totalClaimableAmount;
        uint[] amountsPerPosition;
        bool canUsersPlacePosition;
        bool canMarketBeResolved;
        bool canMarketBeResolvedByPDAO;
        bool canUsersClaim;
        bool isCancelled;
        bool paused;
        uint winningPosition;
        address creatorAddress;
        address resolverAddress;
        uint fixedBondAmount;
        uint disputePrice;
        uint safeBoxLowAmount;
        uint arbitraryRewardForDisputor;
        uint backstopTimeout;
        uint disputeClosedTime;
        bool canCreatorCancelMarket;
        uint totalUsersTakenPositions;
        bool noWinners;
        bool canIssueFees;
        uint creatorFee;
        uint resolverFee;
        uint safeBoxFee;
        uint totalFee;
    }

    address public marketManagerAddress;

    function initialize(address _owner, address _marketManagerAddress) public initializer {
        setOwner(_owner);
        initNonReentrant();
        marketManagerAddress = _marketManagerAddress;
    }

    function setMarketManager(address _marketManagerAddress) external onlyOwner {
        require(_marketManagerAddress != address(0), "Invalid address");
        marketManagerAddress = _marketManagerAddress;
        emit NewMarketManagerAddress(_marketManagerAddress);
    }

    function getAllMarketData(address _market) external view returns (MarketData memory) {
        uint positionCount = IExoticPositionalMarket(_market).positionCount();
        IExoticPositionalMarket market = IExoticPositionalMarket(_market);
        MarketData memory marketData;
        marketData.marketQuestion = market.marketQuestion();
        marketData.marketSource = market.marketSource();
        marketData.ticketType = market.getTicketType();
        marketData.endOfPositioning = market.endOfPositioning();
        marketData.fixedTicketPrice = market.fixedTicketPrice();
        marketData.creationTime = market.creationTime();
        marketData.withdrawalAllowed = market.withdrawalAllowed();
        marketData.disputed = market.disputed();
        marketData.resolved = market.resolved();
        marketData.resolvedTime = market.resolvedTime();
        marketData.paused = market.paused();
        marketData.winningPosition = market.winningPosition();
        marketData.fixedBondAmount = market.fixedBondAmount();
        marketData.disputePrice = market.disputePrice();
        marketData.safeBoxLowAmount = market.safeBoxLowAmount();
        marketData.arbitraryRewardForDisputor = market.arbitraryRewardForDisputor();
        marketData.backstopTimeout = market.backstopTimeout();
        marketData.disputeClosedTime = market.disputeClosedTime();
        marketData.totalPlacedAmount = market.getTotalPlacedAmount();
        marketData.totalClaimableAmount = market.getTotalClaimableAmount();
        marketData.canUsersPlacePosition = market.canUsersPlacePosition();
        marketData.canMarketBeResolved = market.canMarketBeResolved();
        marketData.canMarketBeResolvedByPDAO = market.canMarketBeResolvedByPDAO();
        marketData.canUsersClaim = market.canUsersClaim();
        marketData.isCancelled = market.isMarketCancelled();
        marketData.creatorAddress = IExoticPositionalMarketManager(marketManagerAddress).creatorAddress(_market);
        marketData.resolverAddress = IExoticPositionalMarketManager(marketManagerAddress).resolverAddress(_market);
        marketData.canCreatorCancelMarket = market.canCreatorCancelMarket();
        marketData.tags = market.getTags();
        marketData.totalUsersTakenPositions = market.totalUsersTakenPositions();
        marketData.noWinners = market.noWinners();
        (marketData.creatorFee, marketData.resolverFee, marketData.safeBoxFee, marketData.totalFee) = market.getAllFees();
        marketData.canIssueFees = market.canIssueFees();

        string[] memory positionPhrasesList = new string[](positionCount);
        uint[] memory amountsPerPosition = new uint[](positionCount);
        if (positionCount > 0) {
            for (uint i = 1; i <= positionCount; i++) {
                positionPhrasesList[i - 1] = market.positionPhrase(i);
                amountsPerPosition[i - 1] = market.getPlacedAmountPerPosition(i);
            }
        }
        marketData.positionPhrasesList = positionPhrasesList;
        marketData.amountsPerPosition = amountsPerPosition;
        return marketData;
    }

    event NewMarketManagerAddress(address _marketManagerAddress);
}

File 2 of 14 : SafeERC20Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20Upgradeable.sol";
import "../../../utils/AddressUpgradeable.sol";

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

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

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

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

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

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

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

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

File 3 of 14 : MathUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library MathUpgradeable {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a / b + (a % b == 0 ? 0 : 1);
    }
}

File 4 of 14 : OwnableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    function __Ownable_init() internal onlyInitializing {
        __Context_init_unchained();
        __Ownable_init_unchained();
    }

    function __Ownable_init_unchained() internal onlyInitializing {
        _transferOwnership(_msgSender());
    }

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
    uint256[49] private __gap;
}

File 5 of 14 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (proxy/utils/Initializable.sol)

pragma solidity ^0.8.0;

import "../../utils/AddressUpgradeable.sol";

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the
 * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() initializer {}
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

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

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        // If the contract is initializing we ignore whether _initialized is set in order to support multiple
        // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the
        // contract may have been reentered.
        require(_initializing ? _isConstructor() : !_initialized, "Initializable: contract is already initialized");

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

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} modifier, directly or indirectly.
     */
    modifier onlyInitializing() {
        require(_initializing, "Initializable: contract is not initializing");
        _;
    }

    function _isConstructor() private view returns (bool) {
        return !AddressUpgradeable.isContract(address(this));
    }
}

File 6 of 14 : SafeMathUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMathUpgradeable {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

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

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

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

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

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

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

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

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

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

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

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * 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) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

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

File 7 of 14 : IERC20Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 8 of 14 : PausableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract PausableUpgradeable is Initializable, ContextUpgradeable {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    function __Pausable_init() internal onlyInitializing {
        __Context_init_unchained();
        __Pausable_init_unchained();
    }

    function __Pausable_init_unchained() internal onlyInitializing {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
    uint256[49] private __gap;
}

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

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the `nonReentrant` modifier
 * available, which can be aplied 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.
 */
contract ProxyReentrancyGuard {
    /// @dev counter to allow mutex lock with only one SSTORE operation
    uint256 private _guardCounter;
    bool private _initialized;

    function initNonReentrant() public {
        require(!_initialized, "Already initialized");
        _initialized = true;
        _guardCounter = 1;
    }

    /**
     * @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() {
        _guardCounter += 1;
        uint256 localCounter = _guardCounter;
        _;
        require(localCounter == _guardCounter, "ReentrancyGuard: reentrant call");
    }
}

File 10 of 14 : ProxyOwned.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// Clone of syntetix contract without constructor
contract ProxyOwned {
    address public owner;
    address public nominatedOwner;
    bool private _initialized;
    bool private _transferredAtInit;

    function setOwner(address _owner) public {
        require(_owner != address(0), "Owner address cannot be 0");
        require(!_initialized, "Already initialized, use nominateNewOwner");
        _initialized = true;
        owner = _owner;
        emit OwnerChanged(address(0), _owner);
    }

    function nominateNewOwner(address _owner) external onlyOwner {
        nominatedOwner = _owner;
        emit OwnerNominated(_owner);
    }

    function acceptOwnership() external {
        require(msg.sender == nominatedOwner, "You must be nominated before you can accept ownership");
        emit OwnerChanged(owner, nominatedOwner);
        owner = nominatedOwner;
        nominatedOwner = address(0);
    }

    function transferOwnershipAtInit(address proxyAddress) external onlyOwner {
        require(proxyAddress != address(0), "Invalid address");
        require(!_transferredAtInit, "Already transferred");
        owner = proxyAddress;
        _transferredAtInit = true;
        emit OwnerChanged(owner, proxyAddress);
    }

    modifier onlyOwner {
        _onlyOwner();
        _;
    }

    function _onlyOwner() private view {
        require(msg.sender == owner, "Only the contract owner may perform this action");
    }

    event OwnerNominated(address newOwner);
    event OwnerChanged(address oldOwner, address newOwner);
}

File 11 of 14 : IExoticPositionalMarketManager.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

interface IExoticPositionalMarketManager {
    /* ========== VIEWS / VARIABLES ========== */
    function paused() external view returns (bool);

    function getActiveMarketAddress(uint _index) external view returns (address);

    function getActiveMarketIndex(address _marketAddress) external view returns (uint);

    function isActiveMarket(address _marketAddress) external view returns (bool);

    function numberOfActiveMarkets() external view returns (uint);

    function getMarketBondAmount(address _market) external view returns (uint);

    function maximumPositionsAllowed() external view returns (uint);

    function paymentToken() external view returns (address);

    function owner() external view returns (address);

    function thalesBonds() external view returns (address);

    function oracleCouncilAddress() external view returns (address);

    function safeBoxAddress() external view returns (address);

    function creatorAddress(address _market) external view returns (address);

    function resolverAddress(address _market) external view returns (address);

    function isPauserAddress(address _pauserAddress) external view returns (bool);

    function safeBoxPercentage() external view returns (uint);

    function creatorPercentage() external view returns (uint);

    function resolverPercentage() external view returns (uint);

    function withdrawalPercentage() external view returns (uint);

    function pDAOResolveTimePeriod() external view returns (uint);

    function claimTimeoutDefaultPeriod() external view returns (uint);

    function maxOracleCouncilMembers() external view returns (uint);

    function fixedBondAmount() external view returns (uint);

    function disputePrice() external view returns (uint);

    function safeBoxLowAmount() external view returns (uint);

    function arbitraryRewardForDisputor() external view returns (uint);

    function disputeStringLengthLimit() external view returns (uint);

    function cancelledByCreator(address _market) external view returns (bool);

    function withdrawalTimePeriod() external view returns (uint);

    function maxAmountForOpenBidPosition() external view returns (uint);

    function maxFinalWithdrawPercentage() external view returns (uint);

    function minFixedTicketPrice() external view returns (uint);

    function createExoticMarket(
        string memory _marketQuestion,
        string memory _marketSource,
        uint _endOfPositioning,
        uint _fixedTicketPrice,
        bool _withdrawalAllowed,
        uint[] memory _tags,
        uint _positionCount,
        string[] memory _positionPhrases
    ) external;

    function createCLMarket(
        string memory _marketQuestion,
        string memory _marketSource,
        uint _endOfPositioning,
        uint _fixedTicketPrice,
        bool _withdrawalAllowed,
        uint[] memory _tags,
        uint _positionCount,
        uint[] memory _positionsOfCreator,
        string[] memory _positionPhrases
    ) external;

    function disputeMarket(address _marketAddress, address disputor) external;

    function resolveMarket(address _marketAddress, uint _outcomePosition) external;

    function resetMarket(address _marketAddress) external;

    function cancelMarket(address _market) external;

    function closeDispute(address _market) external;

    function setBackstopTimeout(address _market) external;

    function sendMarketBondAmountTo(
        address _market,
        address _recepient,
        uint _amount
    ) external;

    function addPauserAddress(address _pauserAddress) external;

    function removePauserAddress(address _pauserAddress) external;

    function sendRewardToDisputor(
        address _market,
        address _disputorAddress,
        uint amount
    ) external;

    function issueBondsBackToCreatorAndResolver(address _marketAddress) external;
}

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

pragma solidity ^0.8.0;

interface IExoticPositionalMarket {
    /* ========== VIEWS / VARIABLES ========== */
    function isMarketCreated() external view returns (bool);

    function creatorAddress() external view returns (address);

    function resolverAddress() external view returns (address);

    function totalBondAmount() external view returns (uint);

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

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

    function positionPhrase(uint index) external view returns (string memory);

    function getTicketType() external view returns (uint);

    function positionCount() external view returns (uint);

    function endOfPositioning() external view returns (uint);

    function resolvedTime() external view returns (uint);

    function fixedTicketPrice() external view returns (uint);

    function creationTime() external view returns (uint);

    function winningPosition() external view returns (uint);

    function getTags() external view returns (uint[] memory);

    function getTotalPlacedAmount() external view returns (uint);

    function getTotalClaimableAmount() external view returns (uint);

    function getPlacedAmountPerPosition(uint index) external view returns (uint);

    function fixedBondAmount() external view returns (uint);

    function disputePrice() external view returns (uint);

    function safeBoxLowAmount() external view returns (uint);

    function arbitraryRewardForDisputor() external view returns (uint);

    function backstopTimeout() external view returns (uint);

    function disputeClosedTime() external view returns (uint);

    function totalUsersTakenPositions() external view returns (uint);

    function withdrawalAllowed() external view returns (bool);

    function disputed() external view returns (bool);

    function resolved() external view returns (bool);

    function canUsersPlacePosition() external view returns (bool);

    function canMarketBeResolvedByPDAO() external view returns (bool);

    function canMarketBeResolved() external view returns (bool);

    function canUsersClaim() external view returns (bool);

    function isMarketCancelled() external view returns (bool);

    function paused() external view returns (bool);

    function canCreatorCancelMarket() external view returns (bool);

    function getAllFees()
        external
        view
        returns (
            uint,
            uint,
            uint,
            uint
        );

    function canIssueFees() external view returns (bool);

    function noWinners() external view returns (bool);

    function transferBondToMarket(address _sender, uint _amount) external;

    function resolveMarket(uint _outcomePosition, address _resolverAddress) external;

    function cancelMarket() external;

    function resetMarket() external;

    function claimWinningTicketOnBehalf(address _user) external;

    function openDispute() external;

    function closeDispute() external;

    function setBackstopTimeout(uint _timeoutPeriod) external;
}

File 13 of 14 : AddressUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library AddressUpgradeable {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

File 14 of 14 : ContextUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract ContextUpgradeable is Initializable {
    function __Context_init() internal onlyInitializing {
        __Context_init_unchained();
    }

    function __Context_init_unchained() internal onlyInitializing {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
    uint256[50] private __gap;
}

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

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_marketManagerAddress","type":"address"}],"name":"NewMarketManagerAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldOwner","type":"address"},{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerNominated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_market","type":"address"}],"name":"getAllMarketData","outputs":[{"components":[{"internalType":"string","name":"marketQuestion","type":"string"},{"internalType":"string","name":"marketSource","type":"string"},{"internalType":"uint256","name":"ticketType","type":"uint256"},{"internalType":"uint256","name":"endOfPositioning","type":"uint256"},{"internalType":"uint256","name":"fixedTicketPrice","type":"uint256"},{"internalType":"uint256","name":"creationTime","type":"uint256"},{"internalType":"bool","name":"withdrawalAllowed","type":"bool"},{"internalType":"bool","name":"disputed","type":"bool"},{"internalType":"bool","name":"resolved","type":"bool"},{"internalType":"uint256","name":"resolvedTime","type":"uint256"},{"internalType":"string[]","name":"positionPhrasesList","type":"string[]"},{"internalType":"uint256[]","name":"tags","type":"uint256[]"},{"internalType":"uint256","name":"totalPlacedAmount","type":"uint256"},{"internalType":"uint256","name":"totalClaimableAmount","type":"uint256"},{"internalType":"uint256[]","name":"amountsPerPosition","type":"uint256[]"},{"internalType":"bool","name":"canUsersPlacePosition","type":"bool"},{"internalType":"bool","name":"canMarketBeResolved","type":"bool"},{"internalType":"bool","name":"canMarketBeResolvedByPDAO","type":"bool"},{"internalType":"bool","name":"canUsersClaim","type":"bool"},{"internalType":"bool","name":"isCancelled","type":"bool"},{"internalType":"bool","name":"paused","type":"bool"},{"internalType":"uint256","name":"winningPosition","type":"uint256"},{"internalType":"address","name":"creatorAddress","type":"address"},{"internalType":"address","name":"resolverAddress","type":"address"},{"internalType":"uint256","name":"fixedBondAmount","type":"uint256"},{"internalType":"uint256","name":"disputePrice","type":"uint256"},{"internalType":"uint256","name":"safeBoxLowAmount","type":"uint256"},{"internalType":"uint256","name":"arbitraryRewardForDisputor","type":"uint256"},{"internalType":"uint256","name":"backstopTimeout","type":"uint256"},{"internalType":"uint256","name":"disputeClosedTime","type":"uint256"},{"internalType":"bool","name":"canCreatorCancelMarket","type":"bool"},{"internalType":"uint256","name":"totalUsersTakenPositions","type":"uint256"},{"internalType":"bool","name":"noWinners","type":"bool"},{"internalType":"bool","name":"canIssueFees","type":"bool"},{"internalType":"uint256","name":"creatorFee","type":"uint256"},{"internalType":"uint256","name":"resolverFee","type":"uint256"},{"internalType":"uint256","name":"safeBoxFee","type":"uint256"},{"internalType":"uint256","name":"totalFee","type":"uint256"}],"internalType":"struct ExoticPositionalMarketData.MarketData","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initNonReentrant","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_marketManagerAddress","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"marketManagerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"nominateNewOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nominatedOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_marketManagerAddress","type":"address"}],"name":"setMarketManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"proxyAddress","type":"address"}],"name":"transferOwnershipAtInit","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b506122ee806100206000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806379ba50971161007157806379ba5097146101525780638da5cb5b1461015a578063c3b83f5f14610173578063d82aff1114610186578063ebc7977214610199578063f7cea7a8146101a157600080fd5b806313af4035146100b95780631627540c146100ce5780633e34213f146100e1578063485cc9551461011657806353a47bb7146101295780635c975abb1461013c575b600080fd5b6100cc6100c7366004611c40565b6101c1565b005b6100cc6100dc366004611c40565b610301565b6067546100f99061010090046001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6100cc610124366004611c7f565b610357565b6001546100f9906001600160a01b031681565b60345460ff16604051901515815260200161010d565b6100cc610443565b6000546100f9906201000090046001600160a01b031681565b6100cc610181366004611c40565b610540565b6100cc610194366004611c40565b610659565b6100cc6106ff565b6101b46101af366004611c40565b61075d565b60405161010d9190611f19565b6001600160a01b03811661021c5760405162461bcd60e51b815260206004820152601960248201527f4f776e657220616464726573732063616e6e6f7420626520300000000000000060448201526064015b60405180910390fd5b600154600160a01b900460ff16156102885760405162461bcd60e51b815260206004820152602960248201527f416c726561647920696e697469616c697a65642c20757365206e6f6d696e617460448201526832a732bba7bbb732b960b91b6064820152608401610213565b6001805460ff60a01b1916600160a01b179055600080546001600160a01b03831662010000810262010000600160b01b03199092169190911782556040805192835260208301919091527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c91015b60405180910390a150565b610309611a85565b600180546001600160a01b0319166001600160a01b0383169081179091556040519081527f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22906020016102f6565b600054610100900460ff166103725760005460ff1615610376565b303b155b6103d95760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610213565b600054610100900460ff161580156103fb576000805461ffff19166101011790555b610404836101c1565b61040c6106ff565b60678054610100600160a81b0319166101006001600160a01b03851602179055801561043e576000805461ff00191690555b505050565b6001546001600160a01b031633146104bb5760405162461bcd60e51b815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527402063616e20616363657074206f776e65727368697605c1b6064820152608401610213565b60005460015460408051620100009093046001600160a01b03908116845290911660208301527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a1600180546000805462010000600160b01b0319166001600160a01b03831662010000021790556001600160a01b0319169055565b610548611a85565b6001600160a01b0381166105905760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b6044820152606401610213565b600154600160a81b900460ff16156105e05760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481d1c985b9cd9995c9c9959606a1b6044820152606401610213565b600080546001600160a01b038381166201000081810262010000600160b01b031990941693909317938490556001805460ff60a81b1916600160a81b1790556040805193909404909116825260208201527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c91016102f6565b610661611a85565b6001600160a01b0381166106a95760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b6044820152606401610213565b60678054610100600160a81b0319166101006001600160a01b038416908102919091179091556040519081527fb8c1e27d4851971d1a3846173347fa45a0dbf5e73e17c3788f32f5347df8d449906020016102f6565b60675460ff16156107485760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481a5b9a5d1a585b1a5e9959606a1b6044820152606401610213565b6067805460ff19166001908117909155606655565b610765611aff565b6000826001600160a01b031663e7702d056040518163ffffffff1660e01b815260040160206040518083038186803b1580156107a057600080fd5b505afa1580156107b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d89190611e0f565b9050826107e3611aff565b816001600160a01b031663066f69af6040518163ffffffff1660e01b815260040160006040518083038186803b15801561081c57600080fd5b505afa158015610830573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526108589190810190611d7f565b8160000181905250816001600160a01b031663174478366040518163ffffffff1660e01b815260040160006040518083038186803b15801561089957600080fd5b505afa1580156108ad573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526108d59190810190611d7f565b8160200181905250816001600160a01b0316632d1789646040518163ffffffff1660e01b815260040160206040518083038186803b15801561091657600080fd5b505afa15801561092a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061094e9190611e0f565b816040018181525050816001600160a01b0316635fcf27be6040518163ffffffff1660e01b815260040160206040518083038186803b15801561099057600080fd5b505afa1580156109a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c89190611e0f565b816060018181525050816001600160a01b0316633bfe56076040518163ffffffff1660e01b815260040160206040518083038186803b158015610a0a57600080fd5b505afa158015610a1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a429190611e0f565b816080018181525050816001600160a01b031663d8270dce6040518163ffffffff1660e01b815260040160206040518083038186803b158015610a8457600080fd5b505afa158015610a98573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610abc9190611e0f565b8160a0018181525050816001600160a01b031663a1d193616040518163ffffffff1660e01b815260040160206040518083038186803b158015610afe57600080fd5b505afa158015610b12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b369190611d5f565b151560c0820152604080516301a5711b60e21b815290516001600160a01b03841691630695c46c916004808301926020929190829003018186803b158015610b7d57600080fd5b505afa158015610b91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb59190611d5f565b151560e082015260408051633f6fa65560e01b815290516001600160a01b03841691633f6fa655916004808301926020929190829003018186803b158015610bfc57600080fd5b505afa158015610c10573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c349190611d5f565b151561010082015260408051637eae80df60e11b815290516001600160a01b0384169163fd5d01be916004808301926020929190829003018186803b158015610c7c57600080fd5b505afa158015610c90573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cb49190611e0f565b81610120018181525050816001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b158015610cf757600080fd5b505afa158015610d0b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d2f9190611d5f565b151561028082015260408051632486d67160e01b815290516001600160a01b03841691632486d671916004808301926020929190829003018186803b158015610d7757600080fd5b505afa158015610d8b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610daf9190611e0f565b816102a0018181525050816001600160a01b03166389265ca76040518163ffffffff1660e01b815260040160206040518083038186803b158015610df257600080fd5b505afa158015610e06573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e2a9190611e0f565b81610300018181525050816001600160a01b0316636da19c356040518163ffffffff1660e01b815260040160206040518083038186803b158015610e6d57600080fd5b505afa158015610e81573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ea59190611e0f565b81610320018181525050816001600160a01b031663b0092db76040518163ffffffff1660e01b815260040160206040518083038186803b158015610ee857600080fd5b505afa158015610efc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f209190611e0f565b81610340018181525050816001600160a01b031663465591f96040518163ffffffff1660e01b815260040160206040518083038186803b158015610f6357600080fd5b505afa158015610f77573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9b9190611e0f565b81610360018181525050816001600160a01b031663d9158ecc6040518163ffffffff1660e01b815260040160206040518083038186803b158015610fde57600080fd5b505afa158015610ff2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110169190611e0f565b81610380018181525050816001600160a01b03166371e0c7426040518163ffffffff1660e01b815260040160206040518083038186803b15801561105957600080fd5b505afa15801561106d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110919190611e0f565b816103a0018181525050816001600160a01b031662f367a86040518163ffffffff1660e01b815260040160206040518083038186803b1580156110d357600080fd5b505afa1580156110e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061110b9190611e0f565b81610180018181525050816001600160a01b0316638e2b27676040518163ffffffff1660e01b815260040160206040518083038186803b15801561114e57600080fd5b505afa158015611162573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111869190611e0f565b816101a0018181525050816001600160a01b031663f44e7fba6040518163ffffffff1660e01b815260040160206040518083038186803b1580156111c957600080fd5b505afa1580156111dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112019190611d5f565b15156101e082015260408051636ef13e1d60e11b815290516001600160a01b0384169163dde27c3a916004808301926020929190829003018186803b15801561124957600080fd5b505afa15801561125d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112819190611d5f565b15156102008201526040805163833c26d760e01b815290516001600160a01b0384169163833c26d7916004808301926020929190829003018186803b1580156112c957600080fd5b505afa1580156112dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113019190611d5f565b151561022082015260408051630c4be47f60e11b815290516001600160a01b03841691631897c8fe916004808301926020929190829003018186803b15801561134957600080fd5b505afa15801561135d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113819190611d5f565b15156102408201526040805163189e081160e21b815290516001600160a01b038416916362782044916004808301926020929190829003018186803b1580156113c957600080fd5b505afa1580156113dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114019190611d5f565b151561026082015260675460405163677755bb60e01b81526001600160a01b0387811660048301526101009092049091169063677755bb9060240160206040518083038186803b15801561145457600080fd5b505afa158015611468573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061148c9190611c63565b6001600160a01b039081166102c0830152606754604051630187eab160e71b815287831660048201526101009091049091169063c3f558809060240160206040518083038186803b1580156114e057600080fd5b505afa1580156114f4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115189190611c63565b816102e001906001600160a01b031690816001600160a01b031681525050816001600160a01b031663e3b221306040518163ffffffff1660e01b815260040160206040518083038186803b15801561156f57600080fd5b505afa158015611583573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115a79190611d5f565b15156103c08201526040805163995d9ab760e01b815290516001600160a01b0384169163995d9ab7916004808301926000929190829003018186803b1580156115ef57600080fd5b505afa158015611603573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261162b9190810190611cb7565b816101600181905250816001600160a01b031663d7da57886040518163ffffffff1660e01b815260040160206040518083038186803b15801561166d57600080fd5b505afa158015611681573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116a59190611e0f565b816103e0018181525050816001600160a01b03166398c185e36040518163ffffffff1660e01b815260040160206040518083038186803b1580156116e857600080fd5b505afa1580156116fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117209190611d5f565b15156104008201526040805163b20feaaf60e01b815290516001600160a01b0384169163b20feaaf916004808301926080929190829003018186803b15801561176857600080fd5b505afa15801561177c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117a09190611e27565b6104a08501526104808401526104608301526104408201526040805163253772d960e01b815290516001600160a01b0384169163253772d9916004808301926020929190829003018186803b1580156117f857600080fd5b505afa15801561180c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118309190611d5f565b151561042082015260008367ffffffffffffffff81111561186157634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561189457816020015b606081526020019060019003908161187f5790505b50905060008467ffffffffffffffff8111156118c057634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156118e9578160200160208202803683370190505b5090508415611a6e5760015b858111611a6c57604051637066b6f360e11b8152600481018290526001600160a01b0386169063e0cd6de69060240160006040518083038186803b15801561193c57600080fd5b505afa158015611950573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526119789190810190611d7f565b83611984600184612212565b815181106119a257634e487b7160e01b600052603260045260246000fd5b602090810291909101015260405163d8c4dc8b60e01b8152600481018290526001600160a01b0386169063d8c4dc8b9060240160206040518083038186803b1580156119ed57600080fd5b505afa158015611a01573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a259190611e0f565b82611a31600184612212565b81518110611a4f57634e487b7160e01b600052603260045260246000fd5b602090810291909101015280611a6481612259565b9150506118f5565b505b6101408301919091526101c0820152949350505050565b6000546201000090046001600160a01b03163314611afd5760405162461bcd60e51b815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201526e37b936903a3434b99030b1ba34b7b760891b6064820152608401610213565b565b604051806104c001604052806060815260200160608152602001600081526020016000815260200160008152602001600081526020016000151581526020016000151581526020016000151581526020016000815260200160608152602001606081526020016000815260200160008152602001606081526020016000151581526020016000151581526020016000151581526020016000151581526020016000151581526020016000151581526020016000815260200160006001600160a01b0316815260200160006001600160a01b0316815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160001515815260200160008152602001600015158152602001600015158152602001600081526020016000815260200160008152602001600081525090565b600060208284031215611c51578081fd5b8135611c5c816122a0565b9392505050565b600060208284031215611c74578081fd5b8151611c5c816122a0565b60008060408385031215611c91578081fd5b8235611c9c816122a0565b91506020830135611cac816122a0565b809150509250929050565b60006020808385031215611cc9578182fd5b825167ffffffffffffffff80821115611ce0578384fd5b818501915085601f830112611cf3578384fd5b815181811115611d0557611d0561228a565b8060051b9150611d168483016121e1565b8181528481019084860184860187018a1015611d30578788fd5b8795505b83861015611d52578051835260019590950194918601918601611d34565b5098975050505050505050565b600060208284031215611d70578081fd5b81518015158114611c5c578182fd5b600060208284031215611d90578081fd5b815167ffffffffffffffff80821115611da7578283fd5b818401915084601f830112611dba578283fd5b815181811115611dcc57611dcc61228a565b611ddf601f8201601f19166020016121e1565b9150808252856020828501011115611df5578384fd5b611e06816020840160208601612229565b50949350505050565b600060208284031215611e20578081fd5b5051919050565b60008060008060808587031215611e3c578182fd5b505082516020840151604085015160609095015191969095509092509050565b600082825180855260208086019550808260051b840101818601855b84811015611ea657601f19868403018952611e94838351611eed565b98840198925090830190600101611e78565b5090979650505050505050565b6000815180845260208085019450808401835b83811015611ee257815187529582019590820190600101611ec6565b509495945050505050565b60008151808452611f05816020860160208601612229565b601f01601f19169290920160200192915050565b60208152600082516104c0806020850152611f386104e0850183611eed565b91506020850151601f1980868503016040870152611f568483611eed565b93506040870151606087015260608701516080870152608087015160a087015260a087015160c087015260c08701519150611f9560e087018315159052565b60e08701519150610100611fac8188018415159052565b8701519150610120611fc18782018415159052565b80880151925050610140828188015280880151925050610160818786030181880152611fed8584611e5c565b94508088015192505061018081878603018188015261200c8584611eb3565b908801516101a0888101919091528801516101c08089019190915288015187820383016101e0808a019190915291955092506120488584611eb3565b945080880151925050506102006120628187018315159052565b86015190506102206120778682018315159052565b860151905061024061208c8682018315159052565b86015190506102606120a18682018315159052565b86015190506102806120b68682018315159052565b86015190506102a06120cb8682018315159052565b8601516102c08681019190915286015190506102e06120f4818701836001600160a01b03169052565b8601519050610300612110868201836001600160a01b03169052565b860151610320868101919091528601516103408087019190915286015161036080870191909152860151610380808701919091528601516103a0808701919091528601516103c08087019190915286015190506103e06121738187018315159052565b8601516104008681019190915286015190506104206121958187018315159052565b86015190506104406121aa8682018315159052565b86015161046086810191909152860151610480808701919091528601516104a0808701919091529095015193019290925250919050565b604051601f8201601f1916810167ffffffffffffffff8111828210171561220a5761220a61228a565b604052919050565b60008282101561222457612224612274565b500390565b60005b8381101561224457818101518382015260200161222c565b83811115612253576000848401525b50505050565b600060001982141561226d5761226d612274565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146122b557600080fd5b5056fea2646970667358221220a413cf7a8d39a9872e7f5da4d2a05c330bdaec26ba11c604c1198eb25fc0f8df64736f6c63430008040033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100b45760003560e01c806379ba50971161007157806379ba5097146101525780638da5cb5b1461015a578063c3b83f5f14610173578063d82aff1114610186578063ebc7977214610199578063f7cea7a8146101a157600080fd5b806313af4035146100b95780631627540c146100ce5780633e34213f146100e1578063485cc9551461011657806353a47bb7146101295780635c975abb1461013c575b600080fd5b6100cc6100c7366004611c40565b6101c1565b005b6100cc6100dc366004611c40565b610301565b6067546100f99061010090046001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6100cc610124366004611c7f565b610357565b6001546100f9906001600160a01b031681565b60345460ff16604051901515815260200161010d565b6100cc610443565b6000546100f9906201000090046001600160a01b031681565b6100cc610181366004611c40565b610540565b6100cc610194366004611c40565b610659565b6100cc6106ff565b6101b46101af366004611c40565b61075d565b60405161010d9190611f19565b6001600160a01b03811661021c5760405162461bcd60e51b815260206004820152601960248201527f4f776e657220616464726573732063616e6e6f7420626520300000000000000060448201526064015b60405180910390fd5b600154600160a01b900460ff16156102885760405162461bcd60e51b815260206004820152602960248201527f416c726561647920696e697469616c697a65642c20757365206e6f6d696e617460448201526832a732bba7bbb732b960b91b6064820152608401610213565b6001805460ff60a01b1916600160a01b179055600080546001600160a01b03831662010000810262010000600160b01b03199092169190911782556040805192835260208301919091527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c91015b60405180910390a150565b610309611a85565b600180546001600160a01b0319166001600160a01b0383169081179091556040519081527f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce22906020016102f6565b600054610100900460ff166103725760005460ff1615610376565b303b155b6103d95760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610213565b600054610100900460ff161580156103fb576000805461ffff19166101011790555b610404836101c1565b61040c6106ff565b60678054610100600160a81b0319166101006001600160a01b03851602179055801561043e576000805461ff00191690555b505050565b6001546001600160a01b031633146104bb5760405162461bcd60e51b815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527402063616e20616363657074206f776e65727368697605c1b6064820152608401610213565b60005460015460408051620100009093046001600160a01b03908116845290911660208301527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a1600180546000805462010000600160b01b0319166001600160a01b03831662010000021790556001600160a01b0319169055565b610548611a85565b6001600160a01b0381166105905760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b6044820152606401610213565b600154600160a81b900460ff16156105e05760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481d1c985b9cd9995c9c9959606a1b6044820152606401610213565b600080546001600160a01b038381166201000081810262010000600160b01b031990941693909317938490556001805460ff60a81b1916600160a81b1790556040805193909404909116825260208201527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c91016102f6565b610661611a85565b6001600160a01b0381166106a95760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b6044820152606401610213565b60678054610100600160a81b0319166101006001600160a01b038416908102919091179091556040519081527fb8c1e27d4851971d1a3846173347fa45a0dbf5e73e17c3788f32f5347df8d449906020016102f6565b60675460ff16156107485760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481a5b9a5d1a585b1a5e9959606a1b6044820152606401610213565b6067805460ff19166001908117909155606655565b610765611aff565b6000826001600160a01b031663e7702d056040518163ffffffff1660e01b815260040160206040518083038186803b1580156107a057600080fd5b505afa1580156107b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107d89190611e0f565b9050826107e3611aff565b816001600160a01b031663066f69af6040518163ffffffff1660e01b815260040160006040518083038186803b15801561081c57600080fd5b505afa158015610830573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526108589190810190611d7f565b8160000181905250816001600160a01b031663174478366040518163ffffffff1660e01b815260040160006040518083038186803b15801561089957600080fd5b505afa1580156108ad573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526108d59190810190611d7f565b8160200181905250816001600160a01b0316632d1789646040518163ffffffff1660e01b815260040160206040518083038186803b15801561091657600080fd5b505afa15801561092a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061094e9190611e0f565b816040018181525050816001600160a01b0316635fcf27be6040518163ffffffff1660e01b815260040160206040518083038186803b15801561099057600080fd5b505afa1580156109a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c89190611e0f565b816060018181525050816001600160a01b0316633bfe56076040518163ffffffff1660e01b815260040160206040518083038186803b158015610a0a57600080fd5b505afa158015610a1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a429190611e0f565b816080018181525050816001600160a01b031663d8270dce6040518163ffffffff1660e01b815260040160206040518083038186803b158015610a8457600080fd5b505afa158015610a98573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610abc9190611e0f565b8160a0018181525050816001600160a01b031663a1d193616040518163ffffffff1660e01b815260040160206040518083038186803b158015610afe57600080fd5b505afa158015610b12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b369190611d5f565b151560c0820152604080516301a5711b60e21b815290516001600160a01b03841691630695c46c916004808301926020929190829003018186803b158015610b7d57600080fd5b505afa158015610b91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb59190611d5f565b151560e082015260408051633f6fa65560e01b815290516001600160a01b03841691633f6fa655916004808301926020929190829003018186803b158015610bfc57600080fd5b505afa158015610c10573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c349190611d5f565b151561010082015260408051637eae80df60e11b815290516001600160a01b0384169163fd5d01be916004808301926020929190829003018186803b158015610c7c57600080fd5b505afa158015610c90573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cb49190611e0f565b81610120018181525050816001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b158015610cf757600080fd5b505afa158015610d0b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d2f9190611d5f565b151561028082015260408051632486d67160e01b815290516001600160a01b03841691632486d671916004808301926020929190829003018186803b158015610d7757600080fd5b505afa158015610d8b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610daf9190611e0f565b816102a0018181525050816001600160a01b03166389265ca76040518163ffffffff1660e01b815260040160206040518083038186803b158015610df257600080fd5b505afa158015610e06573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e2a9190611e0f565b81610300018181525050816001600160a01b0316636da19c356040518163ffffffff1660e01b815260040160206040518083038186803b158015610e6d57600080fd5b505afa158015610e81573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ea59190611e0f565b81610320018181525050816001600160a01b031663b0092db76040518163ffffffff1660e01b815260040160206040518083038186803b158015610ee857600080fd5b505afa158015610efc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f209190611e0f565b81610340018181525050816001600160a01b031663465591f96040518163ffffffff1660e01b815260040160206040518083038186803b158015610f6357600080fd5b505afa158015610f77573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9b9190611e0f565b81610360018181525050816001600160a01b031663d9158ecc6040518163ffffffff1660e01b815260040160206040518083038186803b158015610fde57600080fd5b505afa158015610ff2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110169190611e0f565b81610380018181525050816001600160a01b03166371e0c7426040518163ffffffff1660e01b815260040160206040518083038186803b15801561105957600080fd5b505afa15801561106d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110919190611e0f565b816103a0018181525050816001600160a01b031662f367a86040518163ffffffff1660e01b815260040160206040518083038186803b1580156110d357600080fd5b505afa1580156110e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061110b9190611e0f565b81610180018181525050816001600160a01b0316638e2b27676040518163ffffffff1660e01b815260040160206040518083038186803b15801561114e57600080fd5b505afa158015611162573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111869190611e0f565b816101a0018181525050816001600160a01b031663f44e7fba6040518163ffffffff1660e01b815260040160206040518083038186803b1580156111c957600080fd5b505afa1580156111dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112019190611d5f565b15156101e082015260408051636ef13e1d60e11b815290516001600160a01b0384169163dde27c3a916004808301926020929190829003018186803b15801561124957600080fd5b505afa15801561125d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112819190611d5f565b15156102008201526040805163833c26d760e01b815290516001600160a01b0384169163833c26d7916004808301926020929190829003018186803b1580156112c957600080fd5b505afa1580156112dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113019190611d5f565b151561022082015260408051630c4be47f60e11b815290516001600160a01b03841691631897c8fe916004808301926020929190829003018186803b15801561134957600080fd5b505afa15801561135d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113819190611d5f565b15156102408201526040805163189e081160e21b815290516001600160a01b038416916362782044916004808301926020929190829003018186803b1580156113c957600080fd5b505afa1580156113dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114019190611d5f565b151561026082015260675460405163677755bb60e01b81526001600160a01b0387811660048301526101009092049091169063677755bb9060240160206040518083038186803b15801561145457600080fd5b505afa158015611468573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061148c9190611c63565b6001600160a01b039081166102c0830152606754604051630187eab160e71b815287831660048201526101009091049091169063c3f558809060240160206040518083038186803b1580156114e057600080fd5b505afa1580156114f4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115189190611c63565b816102e001906001600160a01b031690816001600160a01b031681525050816001600160a01b031663e3b221306040518163ffffffff1660e01b815260040160206040518083038186803b15801561156f57600080fd5b505afa158015611583573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115a79190611d5f565b15156103c08201526040805163995d9ab760e01b815290516001600160a01b0384169163995d9ab7916004808301926000929190829003018186803b1580156115ef57600080fd5b505afa158015611603573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261162b9190810190611cb7565b816101600181905250816001600160a01b031663d7da57886040518163ffffffff1660e01b815260040160206040518083038186803b15801561166d57600080fd5b505afa158015611681573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116a59190611e0f565b816103e0018181525050816001600160a01b03166398c185e36040518163ffffffff1660e01b815260040160206040518083038186803b1580156116e857600080fd5b505afa1580156116fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117209190611d5f565b15156104008201526040805163b20feaaf60e01b815290516001600160a01b0384169163b20feaaf916004808301926080929190829003018186803b15801561176857600080fd5b505afa15801561177c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117a09190611e27565b6104a08501526104808401526104608301526104408201526040805163253772d960e01b815290516001600160a01b0384169163253772d9916004808301926020929190829003018186803b1580156117f857600080fd5b505afa15801561180c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118309190611d5f565b151561042082015260008367ffffffffffffffff81111561186157634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561189457816020015b606081526020019060019003908161187f5790505b50905060008467ffffffffffffffff8111156118c057634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156118e9578160200160208202803683370190505b5090508415611a6e5760015b858111611a6c57604051637066b6f360e11b8152600481018290526001600160a01b0386169063e0cd6de69060240160006040518083038186803b15801561193c57600080fd5b505afa158015611950573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526119789190810190611d7f565b83611984600184612212565b815181106119a257634e487b7160e01b600052603260045260246000fd5b602090810291909101015260405163d8c4dc8b60e01b8152600481018290526001600160a01b0386169063d8c4dc8b9060240160206040518083038186803b1580156119ed57600080fd5b505afa158015611a01573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a259190611e0f565b82611a31600184612212565b81518110611a4f57634e487b7160e01b600052603260045260246000fd5b602090810291909101015280611a6481612259565b9150506118f5565b505b6101408301919091526101c0820152949350505050565b6000546201000090046001600160a01b03163314611afd5760405162461bcd60e51b815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201526e37b936903a3434b99030b1ba34b7b760891b6064820152608401610213565b565b604051806104c001604052806060815260200160608152602001600081526020016000815260200160008152602001600081526020016000151581526020016000151581526020016000151581526020016000815260200160608152602001606081526020016000815260200160008152602001606081526020016000151581526020016000151581526020016000151581526020016000151581526020016000151581526020016000151581526020016000815260200160006001600160a01b0316815260200160006001600160a01b0316815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160001515815260200160008152602001600015158152602001600015158152602001600081526020016000815260200160008152602001600081525090565b600060208284031215611c51578081fd5b8135611c5c816122a0565b9392505050565b600060208284031215611c74578081fd5b8151611c5c816122a0565b60008060408385031215611c91578081fd5b8235611c9c816122a0565b91506020830135611cac816122a0565b809150509250929050565b60006020808385031215611cc9578182fd5b825167ffffffffffffffff80821115611ce0578384fd5b818501915085601f830112611cf3578384fd5b815181811115611d0557611d0561228a565b8060051b9150611d168483016121e1565b8181528481019084860184860187018a1015611d30578788fd5b8795505b83861015611d52578051835260019590950194918601918601611d34565b5098975050505050505050565b600060208284031215611d70578081fd5b81518015158114611c5c578182fd5b600060208284031215611d90578081fd5b815167ffffffffffffffff80821115611da7578283fd5b818401915084601f830112611dba578283fd5b815181811115611dcc57611dcc61228a565b611ddf601f8201601f19166020016121e1565b9150808252856020828501011115611df5578384fd5b611e06816020840160208601612229565b50949350505050565b600060208284031215611e20578081fd5b5051919050565b60008060008060808587031215611e3c578182fd5b505082516020840151604085015160609095015191969095509092509050565b600082825180855260208086019550808260051b840101818601855b84811015611ea657601f19868403018952611e94838351611eed565b98840198925090830190600101611e78565b5090979650505050505050565b6000815180845260208085019450808401835b83811015611ee257815187529582019590820190600101611ec6565b509495945050505050565b60008151808452611f05816020860160208601612229565b601f01601f19169290920160200192915050565b60208152600082516104c0806020850152611f386104e0850183611eed565b91506020850151601f1980868503016040870152611f568483611eed565b93506040870151606087015260608701516080870152608087015160a087015260a087015160c087015260c08701519150611f9560e087018315159052565b60e08701519150610100611fac8188018415159052565b8701519150610120611fc18782018415159052565b80880151925050610140828188015280880151925050610160818786030181880152611fed8584611e5c565b94508088015192505061018081878603018188015261200c8584611eb3565b908801516101a0888101919091528801516101c08089019190915288015187820383016101e0808a019190915291955092506120488584611eb3565b945080880151925050506102006120628187018315159052565b86015190506102206120778682018315159052565b860151905061024061208c8682018315159052565b86015190506102606120a18682018315159052565b86015190506102806120b68682018315159052565b86015190506102a06120cb8682018315159052565b8601516102c08681019190915286015190506102e06120f4818701836001600160a01b03169052565b8601519050610300612110868201836001600160a01b03169052565b860151610320868101919091528601516103408087019190915286015161036080870191909152860151610380808701919091528601516103a0808701919091528601516103c08087019190915286015190506103e06121738187018315159052565b8601516104008681019190915286015190506104206121958187018315159052565b86015190506104406121aa8682018315159052565b86015161046086810191909152860151610480808701919091528601516104a0808701919091529095015193019290925250919050565b604051601f8201601f1916810167ffffffffffffffff8111828210171561220a5761220a61228a565b604052919050565b60008282101561222457612224612274565b500390565b60005b8381101561224457818101518382015260200161222c565b83811115612253576000848401525b50505050565b600060001982141561226d5761226d612274565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146122b557600080fd5b5056fea2646970667358221220a413cf7a8d39a9872e7f5da4d2a05c330bdaec26ba11c604c1198eb25fc0f8df64736f6c63430008040033

Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading