Contract Overview
Balance: 0 Ether
Ether Value: $0
Transactions: 1723 txns
Misc:
Address Watch: Add To Watch List
Contract Creator: 0xd82369aaec27c7a749afdb4eb71add9e64154cd6at txn 0x01ccdffbb1bc8e454a1296ecf39614874b217a9fafa87f21f03789944a627fe1
 Latest 25 transactions from a total of 1723 transactions

TxHash Age From To Value [TxFee]
0x7615747e9f78eed8d860860497d34cb4148f2bb3ff14c2f77b04380f939e32a56 hrs 6 mins ago0x31026b483ce8b61ca0acdbe7cb96fd8b83246406  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e979991.075 Ether0.003330522
0xef1f3d858826c0c8b9271db6ba3a39e71ac6ad25e90f484d4c1d2ad499a38bb26 hrs 7 mins ago0x31026b483ce8b61ca0acdbe7cb96fd8b83246406  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e979991.05 Ether0.00326169
0x8fbf11c7b0c8acc74a660b1b9feda03e4d3bbb30b69c1e6eec079ee1d6feb1206 hrs 7 mins ago0x31026b483ce8b61ca0acdbe7cb96fd8b83246406  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e979990.9 Ether0.003349392
0x07239fbb6f3a620d3e31f6d2503d4c20924279382ffa1f0dbeafa0e9051a01228 hrs 5 mins ago0x2a544ee7dca6663841ac2956530bbd1bd482e657  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e979990.5 Ether0.0024462675
0xf94d285d34bfea6b475d466077c37afd2bccda4cdd5944bcf37db68407d880d58 hrs 5 mins ago0x2a544ee7dca6663841ac2956530bbd1bd482e657  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e979991.58 Ether0.002511756
0xc0320b0071243f3df1029fbaf153c91a85f2edfdf0636320a773af537cfafc188 hrs 55 mins ago0xca24e1161eae18926b72cccfb4f91075fe44c4b4  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e9799922.773887898900043 Ether0.00540206
0x16b21dc4f52b8a4e18411c7ccae510b29323658d66210641dc095711ed13156412 hrs 25 mins ago0xca24e1161eae18926b72cccfb4f91075fe44c4b4  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e979991.053760353899006 Ether0.011016371
0xc8688c7bc532bc3733087a00ed8784d608ba34b02d571cc0a0cddabe52bf65a212 hrs 38 mins ago0xca24e1161eae18926b72cccfb4f91075fe44c4b4  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e9799922.815869852253281 Ether0.01620618
0xcf2cad08859ededec1175c9a0ecbf82df26339fb30285e09bf408a04bc295ef912 hrs 44 mins ago0xca24e1161eae18926b72cccfb4f91075fe44c4b4  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e979991.014885393219127 Ether0.015075034
0x65f485da20f7b94bab3d5acc927b8d4cf670f4e34ff946d08f94bbd9b0cb629d16 hrs 56 mins ago0x2a544ee7dca6663841ac2956530bbd1bd482e657  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e979990.57 Ether0.0022285591
0x70bb234f28d913a45b9496360acefb7b08b56f475984606fcaedfc9046311e4716 hrs 56 mins ago0x2a544ee7dca6663841ac2956530bbd1bd482e657  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e979990.645 Ether0.0022285591
0x3692971e14f9bc579e19c668e7145ee0dfea1219a7a94e42fa321b063211ac7c16 hrs 56 mins ago0x2a544ee7dca6663841ac2956530bbd1bd482e657  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e979990.88 Ether0.0022897967
0xb223245ad6218bc4df304f1d67c9315c7b1435a9fc104441b1181fa76708121917 hrs 1 min ago0xca24e1161eae18926b72cccfb4f91075fe44c4b4  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e979991.046326134601622 Ether0.010436562
0x9c78f5bedf64bba712b62123ff5fe28eaf010ceb520ea1e12ef1a1fd53dc8ba817 hrs 4 mins ago0xca24e1161eae18926b72cccfb4f91075fe44c4b4  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e9799923.246971673573304 Ether0.018902142
0x6a88ffad38119e9c62b9b40dc8f91a6279a332ed42af6af255ab2f8386eda6d117 hrs 11 mins ago0xca24e1161eae18926b72cccfb4f91075fe44c4b4  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e9799938.432010030576792 Ether0.0126733024
0x25b9b3ee1ba34f026f106a90914b55cfb235f4e98b853891aaf77d295ccc6f1e20 hrs 59 mins ago0x2a544ee7dca6663841ac2956530bbd1bd482e657  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e979990.825 Ether0.0022285591
0xfbced060dac2b19734473ca7e583105c04ce6a8cb93490f559a513973598f56420 hrs 59 mins ago0x2a544ee7dca6663841ac2956530bbd1bd482e657  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e979990.15 Ether0.0022236268
0x4f7460a08d0890deb429d3b97601ff67484e903b9e758d2db176a7620a86f08b21 hrs ago0x2a544ee7dca6663841ac2956530bbd1bd482e657  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e979990.9 Ether0.0022285591
0x8c427b18e95278cc489c51074d58094206dbe8403c6980fb0eabe984622d67f121 hrs ago0x2a544ee7dca6663841ac2956530bbd1bd482e657  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e979990.1 Ether0.0022236268
0x729e674c361cc7ac4b44fb7bfcd3e53ba9d91ba03b4840697f077717dd8eba3b21 hrs 2 mins ago0x2a544ee7dca6663841ac2956530bbd1bd482e657  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e979990.48 Ether0.0021667967
0x5187a39253ee2b8da40a6458ded96ecc715dcc8453a89e866f05d313e77b41d421 hrs 2 mins ago0x2a544ee7dca6663841ac2956530bbd1bd482e657  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e979990.78 Ether0.0022848644
0x23f3abbc5a2801a59f225a163ce0d925965ad1ff88034b5e2f5c89cc61df01341 day 5 hrs ago0xca24e1161eae18926b72cccfb4f91075fe44c4b4  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e979991.023806746716769 Ether0.006377195
0x01b0465ed1780950ab33ac14bde9f4f53f3da9edc4e5e1afe20dd1322ddb92d31 day 5 hrs ago0xca24e1161eae18926b72cccfb4f91075fe44c4b4  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e9799938.527523450646409 Ether0.007888738
0xa89ce0e173afeaf7d8d5ee88ddbd72cb1ca03fff4255124085cc148c29f858671 day 6 hrs ago0xca24e1161eae18926b72cccfb4f91075fe44c4b4  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e979991.015453015122883 Ether0.00567239
0x7a19e2dfca219005b2ebc4c0ba0a781a33d3e37054f068fc9e721b2af5c467801 day 7 hrs ago0xca24e1161eae18926b72cccfb4f91075fe44c4b4  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e9799938.50821729997174 Ether0.00717158
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 25 Internal Txns, Click here To View More View All
ParentTxHash Block Age From To Value
0x7615747e9f78eed8d860860497d34cb4148f2bb3ff14c2f77b04380f939e32a567113376 hrs 6 mins ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b1.075 Ether
0xef1f3d858826c0c8b9271db6ba3a39e71ac6ad25e90f484d4c1d2ad499a38bb267113356 hrs 7 mins ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b1.05 Ether
0x8fbf11c7b0c8acc74a660b1b9feda03e4d3bbb30b69c1e6eec079ee1d6feb12067113336 hrs 7 mins ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b0.9 Ether
0x07239fbb6f3a620d3e31f6d2503d4c20924279382ffa1f0dbeafa0e9051a012267108248 hrs 5 mins ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b0.5 Ether
0xf94d285d34bfea6b475d466077c37afd2bccda4cdd5944bcf37db68407d880d567108218 hrs 5 mins ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b1.58 Ether
0xc0320b0071243f3df1029fbaf153c91a85f2edfdf0636320a773af537cfafc1867106048 hrs 55 mins ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b22.773887898900043584 Ether
0x16b21dc4f52b8a4e18411c7ccae510b29323658d66210641dc095711ed131564670972312 hrs 25 mins ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b1.0537603538990066 Ether
0xc8688c7bc532bc3733087a00ed8784d608ba34b02d571cc0a0cddabe52bf65a2670968112 hrs 38 mins ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b22.81586985225328176 Ether
0xcf2cad08859ededec1175c9a0ecbf82df26339fb30285e09bf408a04bc295ef9670965812 hrs 44 mins ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b1.01488539321912765 Ether
0x65f485da20f7b94bab3d5acc927b8d4cf670f4e34ff946d08f94bbd9b0cb629d670858816 hrs 56 mins ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b0.57 Ether
0x70bb234f28d913a45b9496360acefb7b08b56f475984606fcaedfc9046311e47670858816 hrs 56 mins ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b0.645 Ether
0x3692971e14f9bc579e19c668e7145ee0dfea1219a7a94e42fa321b063211ac7c670858416 hrs 56 mins ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b0.88 Ether
0xb223245ad6218bc4df304f1d67c9315c7b1435a9fc104441b1181fa767081219670855817 hrs 1 min ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b1.046326134601622336 Ether
0x9c78f5bedf64bba712b62123ff5fe28eaf010ceb520ea1e12ef1a1fd53dc8ba8670854317 hrs 4 mins ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b23.246971673573304336 Ether
0x6a88ffad38119e9c62b9b40dc8f91a6279a332ed42af6af255ab2f8386eda6d1670851817 hrs 11 mins ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b38.43201003057679206 Ether
0x25b9b3ee1ba34f026f106a90914b55cfb235f4e98b853891aaf77d295ccc6f1e670752520 hrs 59 mins ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b0.825 Ether
0xfbced060dac2b19734473ca7e583105c04ce6a8cb93490f559a513973598f564670752520 hrs 59 mins ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b0.15 Ether
0x4f7460a08d0890deb429d3b97601ff67484e903b9e758d2db176a7620a86f08b670752321 hrs ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b0.9 Ether
0x8c427b18e95278cc489c51074d58094206dbe8403c6980fb0eabe984622d67f1670751821 hrs ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b0.1 Ether
0x729e674c361cc7ac4b44fb7bfcd3e53ba9d91ba03b4840697f077717dd8eba3b670751321 hrs 2 mins ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b0.48 Ether
0x5187a39253ee2b8da40a6458ded96ecc715dcc8453a89e866f05d313e77b41d4670750921 hrs 2 mins ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b0.78 Ether
0x23f3abbc5a2801a59f225a163ce0d925965ad1ff88034b5e2f5c89cc61df013467053421 day 5 hrs ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b1.023806746716769256 Ether
0x01b0465ed1780950ab33ac14bde9f4f53f3da9edc4e5e1afe20dd1322ddb92d367052911 day 5 hrs ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b38.527523450646409344 Ether
0xa89ce0e173afeaf7d8d5ee88ddbd72cb1ca03fff4255124085cc148c29f8586767050371 day 6 hrs ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b1.015453015122883533 Ether
0x7a19e2dfca219005b2ebc4c0ba0a781a33d3e37054f068fc9e721b2af5c4678067049991 day 7 hrs ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b38.508217299971740209 Ether
[ Download CSV Export  ] 
Warning: The Compiled Contract might be susceptible to ExpExponentCleanup (medium/high-severity), EventStructWrongData (very low-severity), NestedArrayFunctionCallDecoder (medium-severity) SolidityCompiler Bugs.

Contract Source Code Verified (Exact Match)
Contract Name: CreateOrder
Compiler Text: v0.4.20+commit.3155dd80
Optimization Enabled: Yes
Runs (Optimiser):  500



  Contract Source Code   Find Similiar Contracts

pragma solidity 0.4.20;

contract IAugur {
    function createChildUniverse(bytes32 _parentPayoutDistributionHash, uint256[] _parentPayoutNumerators, bool _parentInvalid) public returns (IUniverse);
    function isKnownUniverse(IUniverse _universe) public view returns (bool);
    function trustedTransfer(ERC20 _token, address _from, address _to, uint256 _amount) public returns (bool);
    function logMarketCreated(bytes32 _topic, string _description, string _extraInfo, IUniverse _universe, address _market, address _marketCreator, bytes32[] _outcomes, int256 _minPrice, int256 _maxPrice, IMarket.MarketType _marketType) public returns (bool);
    function logMarketCreated(bytes32 _topic, string _description, string _extraInfo, IUniverse _universe, address _market, address _marketCreator, int256 _minPrice, int256 _maxPrice, IMarket.MarketType _marketType) public returns (bool);
    function logInitialReportSubmitted(IUniverse _universe, address _reporter, address _market, uint256 _amountStaked, bool _isDesignatedReporter, uint256[] _payoutNumerators, bool _invalid) public returns (bool);
    function disputeCrowdsourcerCreated(IUniverse _universe, address _market, address _disputeCrowdsourcer, uint256[] _payoutNumerators, uint256 _size, bool _invalid) public returns (bool);
    function logDisputeCrowdsourcerContribution(IUniverse _universe, address _reporter, address _market, address _disputeCrowdsourcer, uint256 _amountStaked) public returns (bool);
    function logDisputeCrowdsourcerCompleted(IUniverse _universe, address _market, address _disputeCrowdsourcer) public returns (bool);
    function logInitialReporterRedeemed(IUniverse _universe, address _reporter, address _market, uint256 _amountRedeemed, uint256 _repReceived, uint256 _reportingFeesReceived, uint256[] _payoutNumerators) public returns (bool);
    function logDisputeCrowdsourcerRedeemed(IUniverse _universe, address _reporter, address _market, uint256 _amountRedeemed, uint256 _repReceived, uint256 _reportingFeesReceived, uint256[] _payoutNumerators) public returns (bool);
    function logFeeWindowRedeemed(IUniverse _universe, address _reporter, uint256 _amountRedeemed, uint256 _reportingFeesReceived) public returns (bool);
    function logMarketFinalized(IUniverse _universe) public returns (bool);
    function logMarketMigrated(IMarket _market, IUniverse _originalUniverse) public returns (bool);
    function logReportingParticipantDisavowed(IUniverse _universe, IMarket _market) public returns (bool);
    function logMarketParticipantsDisavowed(IUniverse _universe) public returns (bool);
    function logOrderCanceled(IUniverse _universe, address _shareToken, address _sender, bytes32 _orderId, Order.Types _orderType, uint256 _tokenRefund, uint256 _sharesRefund) public returns (bool);
    function logOrderCreated(Order.Types _orderType, uint256 _amount, uint256 _price, address _creator, uint256 _moneyEscrowed, uint256 _sharesEscrowed, bytes32 _tradeGroupId, bytes32 _orderId, IUniverse _universe, address _shareToken) public returns (bool);
    function logOrderFilled(IUniverse _universe, address _shareToken, address _filler, bytes32 _orderId, uint256 _numCreatorShares, uint256 _numCreatorTokens, uint256 _numFillerShares, uint256 _numFillerTokens, uint256 _marketCreatorFees, uint256 _reporterFees, uint256 _amountFilled, bytes32 _tradeGroupId) public returns (bool);
    function logCompleteSetsPurchased(IUniverse _universe, IMarket _market, address _account, uint256 _numCompleteSets) public returns (bool);
    function logCompleteSetsSold(IUniverse _universe, IMarket _market, address _account, uint256 _numCompleteSets) public returns (bool);
    function logTradingProceedsClaimed(IUniverse _universe, address _shareToken, address _sender, address _market, uint256 _numShares, uint256 _numPayoutTokens, uint256 _finalTokenBalance) public returns (bool);
    function logUniverseForked() public returns (bool);
    function logFeeWindowTransferred(IUniverse _universe, address _from, address _to, uint256 _value) public returns (bool);
    function logReputationTokensTransferred(IUniverse _universe, address _from, address _to, uint256 _value) public returns (bool);
    function logDisputeCrowdsourcerTokensTransferred(IUniverse _universe, address _from, address _to, uint256 _value) public returns (bool);
    function logShareTokensTransferred(IUniverse _universe, address _from, address _to, uint256 _value) public returns (bool);
    function logReputationTokenBurned(IUniverse _universe, address _target, uint256 _amount) public returns (bool);
    function logReputationTokenMinted(IUniverse _universe, address _target, uint256 _amount) public returns (bool);
    function logShareTokenBurned(IUniverse _universe, address _target, uint256 _amount) public returns (bool);
    function logShareTokenMinted(IUniverse _universe, address _target, uint256 _amount) public returns (bool);
    function logFeeWindowBurned(IUniverse _universe, address _target, uint256 _amount) public returns (bool);
    function logFeeWindowMinted(IUniverse _universe, address _target, uint256 _amount) public returns (bool);
    function logDisputeCrowdsourcerTokensBurned(IUniverse _universe, address _target, uint256 _amount) public returns (bool);
    function logDisputeCrowdsourcerTokensMinted(IUniverse _universe, address _target, uint256 _amount) public returns (bool);
    function logFeeWindowCreated(IFeeWindow _feeWindow, uint256 _id) public returns (bool);
    function logFeeTokenTransferred(IUniverse _universe, address _from, address _to, uint256 _value) public returns (bool);
    function logFeeTokenBurned(IUniverse _universe, address _target, uint256 _amount) public returns (bool);
    function logFeeTokenMinted(IUniverse _universe, address _target, uint256 _amount) public returns (bool);
    function logTimestampSet(uint256 _newTimestamp) public returns (bool);
    function logInitialReporterTransferred(IUniverse _universe, IMarket _market, address _from, address _to) public returns (bool);
    function logMarketTransferred(IUniverse _universe, address _from, address _to) public returns (bool);
    function logMarketMailboxTransferred(IUniverse _universe, IMarket _market, address _from, address _to) public returns (bool);
    function logEscapeHatchChanged(bool _isOn) public returns (bool);
}

contract IControlled {
    function getController() public view returns (IController);
    function setController(IController _controller) public returns(bool);
}

contract Controlled is IControlled {
    IController internal controller;

    modifier onlyWhitelistedCallers {
        require(controller.assertIsWhitelisted(msg.sender));
        _;
    }

    modifier onlyCaller(bytes32 _key) {
        require(msg.sender == controller.lookup(_key));
        _;
    }

    modifier onlyControllerCaller {
        require(IController(msg.sender) == controller);
        _;
    }

    modifier onlyInGoodTimes {
        require(controller.stopInEmergency());
        _;
    }

    modifier onlyInBadTimes {
        require(controller.onlyInEmergency());
        _;
    }

    function Controlled() public {
        controller = IController(msg.sender);
    }

    function getController() public view returns(IController) {
        return controller;
    }

    function setController(IController _controller) public onlyControllerCaller returns(bool) {
        controller = _controller;
        return true;
    }
}

contract IController {
    function assertIsWhitelisted(address _target) public view returns(bool);
    function lookup(bytes32 _key) public view returns(address);
    function stopInEmergency() public view returns(bool);
    function onlyInEmergency() public view returns(bool);
    function getAugur() public view returns (IAugur);
    function getTimestamp() public view returns (uint256);
}

contract CashAutoConverter is Controlled {
    /**
     * @dev Convert any ETH provided in the transaction into Cash before the function executes and convert any remaining Cash balance into ETH after the function completes
     */
    modifier convertToAndFromCash() {
        ethToCash();
        _;
        cashToEth();
    }

    function ethToCash() private returns (bool) {
        if (msg.value > 0) {
            ICash(controller.lookup("Cash")).depositEtherFor.value(msg.value)(msg.sender);
        }
        return true;
    }

    function cashToEth() private returns (bool) {
        ICash _cash = ICash(controller.lookup("Cash"));
        uint256 _tokenBalance = _cash.balanceOf(msg.sender);
        if (_tokenBalance > 0) {
            IAugur augur = controller.getAugur();
            augur.trustedTransfer(_cash, msg.sender, this, _tokenBalance);
            _cash.withdrawEtherTo(msg.sender, _tokenBalance);
        }
        return true;
    }
}

contract IOwnable {
    function getOwner() public view returns (address);
    function transferOwnership(address newOwner) public returns (bool);
}

contract ITyped {
    function getTypeName() public view returns (bytes32);
}

contract Initializable {
    bool private initialized = false;

    modifier afterInitialized {
        require(initialized);
        _;
    }

    modifier beforeInitialized {
        require(!initialized);
        _;
    }

    function endInitialization() internal beforeInitialized returns (bool) {
        initialized = true;
        return true;
    }

    function getInitialized() public view returns (bool) {
        return initialized;
    }
}

contract MarketValidator is Controlled {
    modifier marketIsLegit(IMarket _market) {
        IUniverse _universe = _market.getUniverse();
        require(controller.getAugur().isKnownUniverse(_universe));
        require(_universe.isContainerForMarket(_market));
        _;
    }
}

contract ReentrancyGuard {
    /**
     * @dev We use a single lock for the whole contract.
     */
    bool private rentrancyLock = false;

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * @notice If you mark a function `nonReentrant`, you should also mark it `external`. Calling one nonReentrant function from another is not supported. Instead, you can implement a `private` function doing the actual work, and a `external` wrapper marked as `nonReentrant`.
     */
    modifier nonReentrant() {
        require(!rentrancyLock);
        rentrancyLock = true;
        _;
        rentrancyLock = false;
    }
}

library SafeMathUint256 {
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a * b;
        require(a == 0 || c / a == b);
        return c;
    }

    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        // assert(b > 0); // Solidity automatically throws when dividing by 0
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold
        return c;
    }

    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a);
        return a - b;
    }

    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a);
        return c;
    }

    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a <= b) {
            return a;
        } else {
            return b;
        }
    }

    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a >= b) {
            return a;
        } else {
            return b;
        }
    }

    function getUint256Min() internal pure returns (uint256) {
        return 0;
    }

    function getUint256Max() internal pure returns (uint256) {
        return 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff;
    }

    function isMultipleOf(uint256 a, uint256 b) internal pure returns (bool) {
        return a % b == 0;
    }

    // Float [fixed point] Operations
    function fxpMul(uint256 a, uint256 b, uint256 base) internal pure returns (uint256) {
        return div(mul(a, b), base);
    }

    function fxpDiv(uint256 a, uint256 b, uint256 base) internal pure returns (uint256) {
        return div(mul(a, base), b);
    }
}

contract ERC20Basic {
    event Transfer(address indexed from, address indexed to, uint256 value);

    function balanceOf(address _who) public view returns (uint256);
    function transfer(address _to, uint256 _value) public returns (bool);
    function totalSupply() public view returns (uint256);
}

contract ERC20 is ERC20Basic {
    event Approval(address indexed owner, address indexed spender, uint256 value);

    function allowance(address _owner, address _spender) public view returns (uint256);
    function transferFrom(address _from, address _to, uint256 _value) public returns (bool);
    function approve(address _spender, uint256 _value) public returns (bool);
}

contract IFeeToken is ERC20, Initializable {
    function initialize(IFeeWindow _feeWindow) public returns (bool);
    function getFeeWindow() public view returns (IFeeWindow);
    function feeWindowBurn(address _target, uint256 _amount) public returns (bool);
    function mintForReportingParticipant(address _target, uint256 _amount) public returns (bool);
}

contract IFeeWindow is ITyped, ERC20 {
    function initialize(IUniverse _universe, uint256 _feeWindowId) public returns (bool);
    function getUniverse() public view returns (IUniverse);
    function getReputationToken() public view returns (IReputationToken);
    function getStartTime() public view returns (uint256);
    function getEndTime() public view returns (uint256);
    function getNumMarkets() public view returns (uint256);
    function getNumInvalidMarkets() public view returns (uint256);
    function getNumIncorrectDesignatedReportMarkets() public view returns (uint256);
    function getNumDesignatedReportNoShows() public view returns (uint256);
    function getFeeToken() public view returns (IFeeToken);
    function isActive() public view returns (bool);
    function isOver() public view returns (bool);
    function onMarketFinalized() public returns (bool);
    function buy(uint256 _attotokens) public returns (bool);
    function redeem(address _sender) public returns (bool);
    function redeemForReportingParticipant() public returns (bool);
    function mintFeeTokens(uint256 _amount) public returns (bool);
    function trustedUniverseBuy(address _buyer, uint256 _attotokens) public returns (bool);
}

contract IMailbox {
    function initialize(address _owner, IMarket _market) public returns (bool);
    function depositEther() public payable returns (bool);
}

contract IMarket is ITyped, IOwnable {
    enum MarketType {
        YES_NO,
        CATEGORICAL,
        SCALAR
    }

    function initialize(IUniverse _universe, uint256 _endTime, uint256 _feePerEthInAttoeth, ICash _cash, address _designatedReporterAddress, address _creator, uint256 _numOutcomes, uint256 _numTicks) public payable returns (bool _success);
    function derivePayoutDistributionHash(uint256[] _payoutNumerators, bool _invalid) public view returns (bytes32);
    function getUniverse() public view returns (IUniverse);
    function getFeeWindow() public view returns (IFeeWindow);
    function getNumberOfOutcomes() public view returns (uint256);
    function getNumTicks() public view returns (uint256);
    function getDenominationToken() public view returns (ICash);
    function getShareToken(uint256 _outcome)  public view returns (IShareToken);
    function getMarketCreatorSettlementFeeDivisor() public view returns (uint256);
    function getForkingMarket() public view returns (IMarket _market);
    function getEndTime() public view returns (uint256);
    function getMarketCreatorMailbox() public view returns (IMailbox);
    function getWinningPayoutDistributionHash() public view returns (bytes32);
    function getWinningPayoutNumerator(uint256 _outcome) public view returns (uint256);
    function getReputationToken() public view returns (IReputationToken);
    function getFinalizationTime() public view returns (uint256);
    function getInitialReporterAddress() public view returns (address);
    function deriveMarketCreatorFeeAmount(uint256 _amount) public view returns (uint256);
    function isContainerForShareToken(IShareToken _shadyTarget) public view returns (bool);
    function isContainerForReportingParticipant(IReportingParticipant _reportingParticipant) public view returns (bool);
    function isInvalid() public view returns (bool);
    function finalize() public returns (bool);
    function designatedReporterWasCorrect() public view returns (bool);
    function designatedReporterShowed() public view returns (bool);
    function isFinalized() public view returns (bool);
    function finalizeFork() public returns (bool);
    function assertBalances() public view returns (bool);
}

contract IReportingParticipant {
    function getStake() public view returns (uint256);
    function getPayoutDistributionHash() public view returns (bytes32);
    function liquidateLosing() public returns (bool);
    function redeem(address _redeemer) public returns (bool);
    function isInvalid() public view returns (bool);
    function isDisavowed() public view returns (bool);
    function migrate() public returns (bool);
    function getPayoutNumerator(uint256 _outcome) public view returns (uint256);
    function getMarket() public view returns (IMarket);
    function getSize() public view returns (uint256);
}

contract IDisputeCrowdsourcer is IReportingParticipant, ERC20 {
    function initialize(IMarket market, uint256 _size, bytes32 _payoutDistributionHash, uint256[] _payoutNumerators, bool _invalid) public returns (bool);
    function contribute(address _participant, uint256 _amount) public returns (uint256);
}

contract IReputationToken is ITyped, ERC20 {
    function initialize(IUniverse _universe) public returns (bool);
    function migrateOut(IReputationToken _destination, uint256 _attotokens) public returns (bool);
    function migrateIn(address _reporter, uint256 _attotokens) public returns (bool);
    function trustedReportingParticipantTransfer(address _source, address _destination, uint256 _attotokens) public returns (bool);
    function trustedMarketTransfer(address _source, address _destination, uint256 _attotokens) public returns (bool);
    function trustedFeeWindowTransfer(address _source, address _destination, uint256 _attotokens) public returns (bool);
    function trustedUniverseTransfer(address _source, address _destination, uint256 _attotokens) public returns (bool);
    function getUniverse() public view returns (IUniverse);
    function getTotalMigrated() public view returns (uint256);
    function getTotalTheoreticalSupply() public view returns (uint256);
    function mintForReportingParticipant(uint256 _amountMigrated) public returns (bool);
}

contract IUniverse is ITyped {
    function initialize(IUniverse _parentUniverse, bytes32 _parentPayoutDistributionHash) external returns (bool);
    function fork() public returns (bool);
    function getParentUniverse() public view returns (IUniverse);
    function createChildUniverse(uint256[] _parentPayoutNumerators, bool _invalid) public returns (IUniverse);
    function getChildUniverse(bytes32 _parentPayoutDistributionHash) public view returns (IUniverse);
    function getReputationToken() public view returns (IReputationToken);
    function getForkingMarket() public view returns (IMarket);
    function getForkEndTime() public view returns (uint256);
    function getForkReputationGoal() public view returns (uint256);
    function getParentPayoutDistributionHash() public view returns (bytes32);
    function getDisputeRoundDurationInSeconds() public view returns (uint256);
    function getOrCreateFeeWindowByTimestamp(uint256 _timestamp) public returns (IFeeWindow);
    function getOrCreateCurrentFeeWindow() public returns (IFeeWindow);
    function getOrCreateNextFeeWindow() public returns (IFeeWindow);
    function getOpenInterestInAttoEth() public view returns (uint256);
    function getRepMarketCapInAttoeth() public view returns (uint256);
    function getTargetRepMarketCapInAttoeth() public view returns (uint256);
    function getOrCacheValidityBond() public returns (uint256);
    function getOrCacheDesignatedReportStake() public returns (uint256);
    function getOrCacheDesignatedReportNoShowBond() public returns (uint256);
    function getOrCacheReportingFeeDivisor() public returns (uint256);
    function getDisputeThresholdForFork() public view returns (uint256);
    function getInitialReportMinValue() public view returns (uint256);
    function calculateFloatingValue(uint256 _badMarkets, uint256 _totalMarkets, uint256 _targetDivisor, uint256 _previousValue, uint256 _defaultValue, uint256 _floor) public pure returns (uint256 _newValue);
    function getOrCacheMarketCreationCost() public returns (uint256);
    function getCurrentFeeWindow() public view returns (IFeeWindow);
    function getOrCreateFeeWindowBefore(IFeeWindow _feeWindow) public returns (IFeeWindow);
    function isParentOf(IUniverse _shadyChild) public view returns (bool);
    function updateTentativeWinningChildUniverse(bytes32 _parentPayoutDistributionHash) public returns (bool);
    function isContainerForFeeWindow(IFeeWindow _shadyTarget) public view returns (bool);
    function isContainerForMarket(IMarket _shadyTarget) public view returns (bool);
    function isContainerForReportingParticipant(IReportingParticipant _reportingParticipant) public view returns (bool);
    function isContainerForShareToken(IShareToken _shadyTarget) public view returns (bool);
    function isContainerForFeeToken(IFeeToken _shadyTarget) public view returns (bool);
    function addMarketTo() public returns (bool);
    function removeMarketFrom() public returns (bool);
    function decrementOpenInterest(uint256 _amount) public returns (bool);
    function decrementOpenInterestFromMarket(uint256 _amount) public returns (bool);
    function incrementOpenInterest(uint256 _amount) public returns (bool);
    function incrementOpenInterestFromMarket(uint256 _amount) public returns (bool);
    function getWinningChildUniverse() public view returns (IUniverse);
    function isForking() public view returns (bool);
}

contract CreateOrder is CashAutoConverter, ReentrancyGuard, MarketValidator {
    using Order for Order.Data;

    // CONSIDER: Do we want the API to be in terms of shares as it is now, or would the desired amount of ETH to place be preferable? Would both be useful?
    function publicCreateOrder(Order.Types _type, uint256 _attoshares, uint256 _displayPrice, IMarket _market, uint256 _outcome, bytes32 _betterOrderId, bytes32 _worseOrderId, bytes32 _tradeGroupId) external payable marketIsLegit(_market) convertToAndFromCash onlyInGoodTimes returns (bytes32) {
        bytes32 _result = this.createOrder(msg.sender, _type, _attoshares, _displayPrice, _market, _outcome, _betterOrderId, _worseOrderId, _tradeGroupId);
        _market.assertBalances();
        return _result;
    }

    function createOrder(address _creator, Order.Types _type, uint256 _attoshares, uint256 _displayPrice, IMarket _market, uint256 _outcome, bytes32 _betterOrderId, bytes32 _worseOrderId, bytes32 _tradeGroupId) external onlyWhitelistedCallers nonReentrant returns (bytes32) {
        Order.Data memory _orderData = Order.create(controller, _creator, _outcome, _type, _attoshares, _displayPrice, _market, _betterOrderId, _worseOrderId);
        Order.escrowFunds(_orderData);
        require(_orderData.orders.getAmount(_orderData.getOrderId()) == 0);
        return Order.saveOrder(_orderData, _tradeGroupId);
    }
}

contract ICash is ERC20 {
    function depositEther() external payable returns(bool);
    function depositEtherFor(address _to) external payable returns(bool);
    function withdrawEther(uint256 _amount) external returns(bool);
    function withdrawEtherTo(address _to, uint256 _amount) external returns(bool);
    function withdrawEtherToIfPossible(address _to, uint256 _amount) external returns (bool);
}

contract ICreateOrder {
    function publicCreateOrder(Order.Types, uint256, uint256, IMarket, uint256, bytes32, bytes32, bytes32) external payable returns (bytes32);
    function createOrder(address, Order.Types, uint256, uint256, IMarket, uint256, bytes32, bytes32, bytes32) external returns (bytes32);
}

contract IOrders {
    function saveOrder(Order.Types _type, IMarket _market, uint256 _fxpAmount, uint256 _price, address _sender, uint256 _outcome, uint256 _moneyEscrowed, uint256 _sharesEscrowed, bytes32 _betterOrderId, bytes32 _worseOrderId, bytes32 _tradeGroupId) public returns (bytes32 _orderId);
    function removeOrder(bytes32 _orderId) public returns (bool);
    function getMarket(bytes32 _orderId) public view returns (IMarket);
    function getOrderType(bytes32 _orderId) public view returns (Order.Types);
    function getOutcome(bytes32 _orderId) public view returns (uint256);
    function getAmount(bytes32 _orderId) public view returns (uint256);
    function getPrice(bytes32 _orderId) public view returns (uint256);
    function getOrderCreator(bytes32 _orderId) public view returns (address);
    function getOrderSharesEscrowed(bytes32 _orderId) public view returns (uint256);
    function getOrderMoneyEscrowed(bytes32 _orderId) public view returns (uint256);
    function getBetterOrderId(bytes32 _orderId) public view returns (bytes32);
    function getWorseOrderId(bytes32 _orderId) public view returns (bytes32);
    function getBestOrderId(Order.Types _type, IMarket _market, uint256 _outcome) public view returns (bytes32);
    function getWorstOrderId(Order.Types _type, IMarket _market, uint256 _outcome) public view returns (bytes32);
    function getLastOutcomePrice(IMarket _market, uint256 _outcome) public view returns (uint256);
    function getOrderId(Order.Types _type, IMarket _market, uint256 _fxpAmount, uint256 _price, address _sender, uint256 _blockNumber, uint256 _outcome, uint256 _moneyEscrowed, uint256 _sharesEscrowed) public pure returns (bytes32);
    function getTotalEscrowed(IMarket _market) public view returns (uint256);
    function isBetterPrice(Order.Types _type, uint256 _price, bytes32 _orderId) public view returns (bool);
    function isWorsePrice(Order.Types _type, uint256 _price, bytes32 _orderId) public view returns (bool);
    function assertIsNotBetterPrice(Order.Types _type, uint256 _price, bytes32 _betterOrderId) public view returns (bool);
    function assertIsNotWorsePrice(Order.Types _type, uint256 _price, bytes32 _worseOrderId) public returns (bool);
    function recordFillOrder(bytes32 _orderId, uint256 _sharesFilled, uint256 _tokensFilled) public returns (bool);
    function setPrice(IMarket _market, uint256 _outcome, uint256 _price) external returns (bool);
    function incrementTotalEscrowed(IMarket _market, uint256 _amount) external returns (bool);
    function decrementTotalEscrowed(IMarket _market, uint256 _amount) external returns (bool);
}

contract IShareToken is ITyped, ERC20 {
    function initialize(IMarket _market, uint256 _outcome) external returns (bool);
    function createShares(address _owner, uint256 _amount) external returns (bool);
    function destroyShares(address, uint256 balance) external returns (bool);
    function getMarket() external view returns (IMarket);
    function getOutcome() external view returns (uint256);
    function trustedOrderTransfer(address _source, address _destination, uint256 _attotokens) public returns (bool);
    function trustedFillOrderTransfer(address _source, address _destination, uint256 _attotokens) public returns (bool);
    function trustedCancelOrderTransfer(address _source, address _destination, uint256 _attotokens) public returns (bool);
}

library Order {
    using SafeMathUint256 for uint256;

    enum Types {
        Bid, Ask
    }

    enum TradeDirections {
        Long, Short
    }

    struct Data {
        // Contracts
        IOrders orders;
        IMarket market;
        IAugur augur;

        // Order
        bytes32 id;
        address creator;
        uint256 outcome;
        Order.Types orderType;
        uint256 amount;
        uint256 price;
        uint256 sharesEscrowed;
        uint256 moneyEscrowed;
        bytes32 betterOrderId;
        bytes32 worseOrderId;
    }

    //
    // Constructor
    //

    // No validation is needed here as it is simply a librarty function for organizing data
    function create(IController _controller, address _creator, uint256 _outcome, Order.Types _type, uint256 _attoshares, uint256 _price, IMarket _market, bytes32 _betterOrderId, bytes32 _worseOrderId) internal view returns (Data) {
        require(_outcome < _market.getNumberOfOutcomes());
        require(_price < _market.getNumTicks());

        IOrders _orders = IOrders(_controller.lookup("Orders"));
        IAugur _augur = _controller.getAugur();

        return Data({
            orders: _orders,
            market: _market,
            augur: _augur,
            id: 0,
            creator: _creator,
            outcome: _outcome,
            orderType: _type,
            amount: _attoshares,
            price: _price,
            sharesEscrowed: 0,
            moneyEscrowed: 0,
            betterOrderId: _betterOrderId,
            worseOrderId: _worseOrderId
        });
    }

    //
    // "public" functions
    //

    function getOrderId(Order.Data _orderData) internal view returns (bytes32) {
        if (_orderData.id == bytes32(0)) {
            bytes32 _orderId = _orderData.orders.getOrderId(_orderData.orderType, _orderData.market, _orderData.amount, _orderData.price, _orderData.creator, block.number, _orderData.outcome, _orderData.moneyEscrowed, _orderData.sharesEscrowed);
            require(_orderData.orders.getAmount(_orderId) == 0);
            _orderData.id = _orderId;
        }
        return _orderData.id;
    }

    function getOrderTradingTypeFromMakerDirection(Order.TradeDirections _creatorDirection) internal pure returns (Order.Types) {
        return (_creatorDirection == Order.TradeDirections.Long) ? Order.Types.Bid : Order.Types.Ask;
    }

    function getOrderTradingTypeFromFillerDirection(Order.TradeDirections _fillerDirection) internal pure returns (Order.Types) {
        return (_fillerDirection == Order.TradeDirections.Long) ? Order.Types.Ask : Order.Types.Bid;
    }

    function escrowFunds(Order.Data _orderData) internal returns (bool) {
        if (_orderData.orderType == Order.Types.Ask) {
            return escrowFundsForAsk(_orderData);
        } else if (_orderData.orderType == Order.Types.Bid) {
            return escrowFundsForBid(_orderData);
        }
    }

    function saveOrder(Order.Data _orderData, bytes32 _tradeGroupId) internal returns (bytes32) {
        return _orderData.orders.saveOrder(_orderData.orderType, _orderData.market, _orderData.amount, _orderData.price, _orderData.creator, _orderData.outcome, _orderData.moneyEscrowed, _orderData.sharesEscrowed, _orderData.betterOrderId, _orderData.worseOrderId, _tradeGroupId);
    }

    //
    // Private functions
    //

    function escrowFundsForBid(Order.Data _orderData) private returns (bool) {
        require(_orderData.moneyEscrowed == 0);
        require(_orderData.sharesEscrowed == 0);
        uint256 _attosharesToCover = _orderData.amount;
        uint256 _numberOfOutcomes = _orderData.market.getNumberOfOutcomes();

        // Figure out how many almost-complete-sets (just missing `outcome` share) the creator has
        uint256 _attosharesHeld = 2**254;
        for (uint256 _i = 0; _i < _numberOfOutcomes; _i++) {
            if (_i != _orderData.outcome) {
                uint256 _creatorShareTokenBalance = _orderData.market.getShareToken(_i).balanceOf(_orderData.creator);
                _attosharesHeld = SafeMathUint256.min(_creatorShareTokenBalance, _attosharesHeld);
            }
        }

        // Take shares into escrow if they have any almost-complete-sets
        if (_attosharesHeld > 0) {
            _orderData.sharesEscrowed = SafeMathUint256.min(_attosharesHeld, _attosharesToCover);
            _attosharesToCover -= _orderData.sharesEscrowed;
            for (_i = 0; _i < _numberOfOutcomes; _i++) {
                if (_i != _orderData.outcome) {
                    _orderData.market.getShareToken(_i).trustedOrderTransfer(_orderData.creator, _orderData.market, _orderData.sharesEscrowed);
                }
            }
        }
        // If not able to cover entire order with shares alone, then cover remaining with tokens
        if (_attosharesToCover > 0) {
            _orderData.moneyEscrowed = _attosharesToCover.mul(_orderData.price);
            require(_orderData.augur.trustedTransfer(_orderData.market.getDenominationToken(), _orderData.creator, _orderData.market, _orderData.moneyEscrowed));
        }

        return true;
    }

    function escrowFundsForAsk(Order.Data _orderData) private returns (bool) {
        require(_orderData.moneyEscrowed == 0);
        require(_orderData.sharesEscrowed == 0);
        IShareToken _shareToken = _orderData.market.getShareToken(_orderData.outcome);
        uint256 _attosharesToCover = _orderData.amount;

        // Figure out how many shares of the outcome the creator has
        uint256 _attosharesHeld = _shareToken.balanceOf(_orderData.creator);

        // Take shares in escrow if user has shares
        if (_attosharesHeld > 0) {
            _orderData.sharesEscrowed = SafeMathUint256.min(_attosharesHeld, _attosharesToCover);
            _attosharesToCover -= _orderData.sharesEscrowed;
            _shareToken.trustedOrderTransfer(_orderData.creator, _orderData.market, _orderData.sharesEscrowed);
        }

        // If not able to cover entire order with shares alone, then cover remaining with tokens
        if (_attosharesToCover > 0) {
            _orderData.moneyEscrowed = _orderData.market.getNumTicks().sub(_orderData.price).mul(_attosharesToCover);
            require(_orderData.augur.trustedTransfer(_orderData.market.getDenominationToken(), _orderData.creator, _orderData.market, _orderData.moneyEscrowed));
        }

        return true;
    }
}

    Contract ABI  
[{"constant":true,"inputs":[],"name":"getController","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_type","type":"uint8"},{"name":"_attoshares","type":"uint256"},{"name":"_displayPrice","type":"uint256"},{"name":"_market","type":"address"},{"name":"_outcome","type":"uint256"},{"name":"_betterOrderId","type":"bytes32"},{"name":"_worseOrderId","type":"bytes32"},{"name":"_tradeGroupId","type":"bytes32"}],"name":"publicCreateOrder","outputs":[{"name":"","type":"bytes32"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_controller","type":"address"}],"name":"setController","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_creator","type":"address"},{"name":"_type","type":"uint8"},{"name":"_attoshares","type":"uint256"},{"name":"_displayPrice","type":"uint256"},{"name":"_market","type":"address"},{"name":"_outcome","type":"uint256"},{"name":"_betterOrderId","type":"bytes32"},{"name":"_worseOrderId","type":"bytes32"},{"name":"_tradeGroupId","type":"bytes32"}],"name":"createOrder","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"nonpayable","type":"function"}]

  Contract Creation Code Switch To Opcodes View
606060405260008054600160a060020a033316600160a860020a0319909116179055611896806100306000396000f3006060604052600436106100485763ffffffff60e060020a6000350416633018205f811461004d5780633ae4ce0a1461007c57806392eefe9b146100ba578063f7938328146100ed575b600080fd5b341561005857600080fd5b61006061012e565b604051600160a060020a03909116815260200160405180910390f35b6100a860ff60043516602435604435600160a060020a036064351660843560a43560c43560e43561013d565b60405190815260200160405180910390f35b34156100c557600080fd5b6100d9600160a060020a03600435166104d1565b604051901515815260200160405180910390f35b34156100f857600080fd5b6100a8600160a060020a0360043581169060ff602435169060443590606435906084351660a43560c43560e4356101043561051e565b600054600160a060020a031690565b60008086600081600160a060020a031663870c426d6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561018957600080fd5b6102c65a03f1151561019a57600080fd5b505050604051805160008054919350600160a060020a039091169150634e94c82990604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156101f157600080fd5b6102c65a03f1151561020257600080fd5b50505060405180519050600160a060020a0316638cfb8f218260006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b151561026257600080fd5b6102c65a03f1151561027357600080fd5b50505060405180519050151561028857600080fd5b80600160a060020a0316639f7e1bf68360006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b15156102df57600080fd5b6102c65a03f115156102f057600080fd5b50505060405180519050151561030557600080fd5b61030d6106e2565b5060008054600160a060020a0316906322763ae190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561035757600080fd5b6102c65a03f1151561036857600080fd5b50505060405180519050151561037d57600080fd5b30600160a060020a031663f7938328338e8e8e8e8e8e8e8e6000604051602001526040518a63ffffffff1660e060020a028152600401808a600160a060020a0316600160a060020a031681526020018960018111156103d857fe5b60ff168152602080820199909952604080820198909852600160a060020a03909616606087015250608085019390935260a084019190915260c083015260e08201526101000193509091505180830381600087803b151561043857600080fd5b6102c65a03f1151561044957600080fd5b5050506040518051935050600160a060020a03891663a0695f246000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561049a57600080fd5b6102c65a03f115156104ab57600080fd5b50505060405180519050508293506104c16107ef565b5050505098975050505050505050565b6000805433600160a060020a039081169116146104ed57600080fd5b506000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03831617905560015b919050565b60006105286117fe565b60008054600160a060020a031690633f08882f9033906040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b151561058357600080fd5b6102c65a03f1151561059457600080fd5b5050506040518051905015156105a957600080fd5b60005474010000000000000000000000000000000000000000900460ff16156105d157600080fd5b6000805474ff0000000000000000000000000000000000000000191674010000000000000000000000000000000000000000179081905561062290600160a060020a03168c888d8d8d8d8c8c610a6f565b905061062d81610ce2565b508051600160a060020a0316630e0a0d7461064783610d2d565b60006040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b151561068657600080fd5b6102c65a03f1151561069757600080fd5b50505060405180511590506106ab57600080fd5b6106b58184610ec9565b6000805474ff0000000000000000000000000000000000000000191690559b9a5050505050505050505050565b6000803411156107e95760008054600160a060020a03169063f39ec1f7906040516020015260405160e060020a63ffffffff83160281527f43617368000000000000000000000000000000000000000000000000000000006004820152602401602060405180830381600087803b151561075b57600080fd5b6102c65a03f1151561076c57600080fd5b50505060405180519050600160a060020a0316634faa8a26343360006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390911660048201526024016020604051808303818588803b15156107cc57600080fd5b6125ee5a03f115156107dd57600080fd5b50505050604051805150505b50600190565b60008054819081908190600160a060020a031663f39ec1f7826040516020015260405160e060020a63ffffffff83160281527f43617368000000000000000000000000000000000000000000000000000000006004820152602401602060405180830381600087803b151561086357600080fd5b6102c65a03f1151561087457600080fd5b5050506040518051935050600160a060020a0383166370a082313360006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b15156108d657600080fd5b6102c65a03f115156108e757600080fd5b50505060405180519250506000821115610a655760008054600160a060020a031690634e94c82990604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561094457600080fd5b6102c65a03f1151561095557600080fd5b5050506040518051915050600160a060020a03811663ec2389948433308660006040516020015260405160e060020a63ffffffff8716028152600160a060020a0394851660048201529284166024840152921660448201526064810191909152608401602060405180830381600087803b15156109d157600080fd5b6102c65a03f115156109e257600080fd5b50505060405180515050600160a060020a038316631baffe38338460006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b1515610a4957600080fd5b6102c65a03f11515610a5a57600080fd5b505050604051805150505b6001935050505090565b610a776117fe565b60008085600160a060020a03166327ce5b8c6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610ac057600080fd5b6102c65a03f11515610ad157600080fd5b50505060405180518b109050610ae657600080fd5b85600160a060020a031663bad84c9e6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610b2c57600080fd5b6102c65a03f11515610b3d57600080fd5b505050604051805188109050610b5257600080fd5b8b600160a060020a031663f39ec1f760006040516020015260405160e060020a63ffffffff83160281527f4f726465727300000000000000000000000000000000000000000000000000006004820152602401602060405180830381600087803b1515610bbe57600080fd5b6102c65a03f11515610bcf57600080fd5b5050506040518051925050600160a060020a038c16634e94c8296000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610c2057600080fd5b6102c65a03f11515610c3157600080fd5b5050506040518051905090506101a06040519081016040528083600160a060020a0316815260200187600160a060020a0316815260200182600160a060020a0316815260200160006001026000191681526020018c600160a060020a031681526020018b81526020018a6001811115610ca657fe5b8152602081018a905260408101899052600060608201819052608082015260a0810187905260c001859052925050509998505050505050505050565b600060018260c001516001811115610cf657fe5b1415610d0c57610d0582610fdb565b9050610519565b60008260c001516001811115610d1e57fe5b141561051957610d0582611355565b6000808060608401511415610ebd578251600160a060020a0316631727583c8460c0015185602001518660e001518761010001518860800151438a60a001518b61014001518c61012001516000604051602001526040518a63ffffffff1660e060020a028152600401808a6001811115610da357fe5b60ff16815260200189600160a060020a0316600160a060020a0316815260200188815260200187815260200186600160a060020a0316600160a060020a031681526020018581526020018481526020018381526020018281526020019950505050505050505050602060405180830381600087803b1515610e2357600080fd5b6102c65a03f11515610e3457600080fd5b5050506040518051915083905051600160a060020a0316630e0a0d748260006040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b1515610e9057600080fd5b6102c65a03f11515610ea157600080fd5b5050506040518051159050610eb557600080fd5b606083018190525b82606001519392505050565b60008251600160a060020a0316636bc29efa8460c0015185602001518660e0015187610100015188608001518960a001518a61014001518b61012001518c61016001518d61018001518d6000604051602001526040518c63ffffffff1660e060020a028152600401808c6001811115610f3e57fe5b60ff168152600160a060020a039b8c1660208083019190915260408083019c909c52606082019a909a5297909a16608088015260a087019590955260c086019390935260e085019190915261010084015261012083015261014082015261016001935091505180830381600087803b1515610fb857600080fd5b6102c65a03f11515610fc957600080fd5b50505060405180519150505b92915050565b60008060008084610140015115610ff157600080fd5b8461012001511561100157600080fd5b8460200151600160a060020a03166365957bf58660a0015160006040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b151561105857600080fd5b6102c65a03f1151561106957600080fd5b505050604051805193505060e0850151915082600160a060020a03166370a08231866080015160006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b15156110d657600080fd5b6102c65a03f115156110e757600080fd5b505050604051805191505060008111156111a55761110581836117a4565b6101208601908152518203915082600160a060020a031663764c92f28660800151876020015188610120015160006040516020015260405160e060020a63ffffffff8616028152600160a060020a0393841660048201529190921660248201526044810191909152606401602060405180830381600087803b151561118957600080fd5b6102c65a03f1151561119a57600080fd5b505050604051805150505b600082111561134a576112388261122c8761010001518860200151600160a060020a031663bad84c9e6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561120557600080fd5b6102c65a03f1151561121657600080fd5b505050604051805191905063ffffffff6117bb16565b9063ffffffff6117d016565b6101408601526040850151600160a060020a031663ec2389948660200151600160a060020a031663df2a29da6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561129b57600080fd5b6102c65a03f115156112ac57600080fd5b505050604051805190508760800151886020015189610140015160006040516020015260405160e060020a63ffffffff8716028152600160a060020a0394851660048201529284166024840152921660448201526064810191909152608401602060405180830381600087803b151561132457600080fd5b6102c65a03f1151561133557600080fd5b50505060405180519050151561134a57600080fd5b506001949350505050565b6000806000806000808661014001511561136e57600080fd5b8661012001511561137e57600080fd5b8660e0015194508660200151600160a060020a03166327ce5b8c6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156113cf57600080fd5b6102c65a03f115156113e057600080fd5b505050604051805194507f4000000000000000000000000000000000000000000000000000000000000000935060009250505b83821015611523578660a001518214611518578660200151600160a060020a03166365957bf58360006040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b151561147957600080fd5b6102c65a03f1151561148a57600080fd5b50505060405180519050600160a060020a03166370a08231886080015160006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b15156114ee57600080fd5b6102c65a03f115156114ff57600080fd5b50505060405180519050905061151581846117a4565b92505b600190910190611413565b60008311156116665761153683866117a4565b61012088019081525185039450600091505b83821015611666578660a00151821461165b578660200151600160a060020a03166365957bf58360006040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b15156115ae57600080fd5b6102c65a03f115156115bf57600080fd5b50505060405180519050600160a060020a031663764c92f2886080015189602001518a610120015160006040516020015260405160e060020a63ffffffff8616028152600160a060020a0393841660048201529190921660248201526044810191909152606401602060405180830381600087803b151561163f57600080fd5b6102c65a03f1151561165057600080fd5b505050604051805150505b600190910190611548565b600085111561179757611685876101000151869063ffffffff6117d016565b6101408801526040870151600160a060020a031663ec2389948860200151600160a060020a031663df2a29da6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156116e857600080fd5b6102c65a03f115156116f957600080fd5b5050506040518051905089608001518a602001518b610140015160006040516020015260405160e060020a63ffffffff8716028152600160a060020a0394851660048201529284166024840152921660448201526064810191909152608401602060405180830381600087803b151561177157600080fd5b6102c65a03f1151561178257600080fd5b50505060405180519050151561179757600080fd5b5060019695505050505050565b60008183116117b4575081610fd5565b5080610fd5565b6000828211156117ca57600080fd5b50900390565b60008282028315806117ec57508284828115156117e957fe5b04145b15156117f757600080fd5b9392505050565b6101a06040519081016040908152600080835260208301819052908201819052606082018190526080820181905260a0820181905260c0820181905260e082018190526101008201819052610120820181905261014082018190526101608201819052610180820152905600a165627a7a72305820e23ee3a29760a37f35879e35283137df0b309aeffded7c28374f996a65fb48ad0029

   Swarm Source:
bzzr://e23ee3a29760a37f35879e35283137df0b309aeffded7c28374f996a65fb48ad

 

View All
Block Age transaction Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.