Sponsored:   INLOCK - Put Your BTC, Get Your Cash! Crypto Backed Loans, 3.2M Raised Already. Join NOW!
Contract Overview
Balance: 0 Ether
Ether Value: $0
Transactions: 880 txns
 Latest 25 txns From a total of 880 Transactions

TxHash Age From To Value [TxFee]
0x9cd8553e25d8ec6d9f79cf0db207595d77a2532c798e64ed4ed078ebacb9fce830 mins ago0xca24e1161eae18926b72cccfb4f91075fe44c4b4  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e9799915.862983960823929 Ether0.009538804
0xb55bdee55fa5c41e9cbd97265c5bff01ea6e163249d0006a750cf7fc90fa3cee35 mins ago0xca24e1161eae18926b72cccfb4f91075fe44c4b4  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e979990 Ether0.006259008
0x719eabf7d8414652d983fa594b1251a937348a9fc255380482289249b1f80dd657 mins ago0xca24e1161eae18926b72cccfb4f91075fe44c4b4  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e979990 Ether0.00596096
0xf71ce8c19c8e57aaca79f2d1de53356f3b07e06f60f6d75553b351c59d9d50451 hr 6 mins ago0x2a544ee7dca6663841ac2956530bbd1bd482e657  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e979990.41 Ether0.003261306
0x2ce3ba54573ccb07ccfb649d9612a71c6a86c1e405f29a9e5516ac235103b3781 hr 10 mins ago0x2a544ee7dca6663841ac2956530bbd1bd482e657  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e979990.49 Ether0.003349008
0x24ab0a7fb0f8a3a9d63f50ad1feb930260a448f9dbeb7273ad21e6403ef01adb3 hrs 24 mins ago0xca24e1161eae18926b72cccfb4f91075fe44c4b4  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e9799915.880351628054022 Ether0.016122766
0x2a1e7919d71ddc9d19b4995ed7719c8d794994d6de0bf445701b1ea9b2dd214111 hrs 23 mins ago0xca24e1161eae18926b72cccfb4f91075fe44c4b4  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e9799915.886474301988176 Ether0.008170029
0x7b917787d2a12a3bbab26d8ed6439f4cd8c8d61bebc9ade009e0108e18ea436711 hrs 29 mins ago0xca24e1161eae18926b72cccfb4f91075fe44c4b4  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e979990 Ether0.005391108
0x82dd09420912841d8d98a5e578cc09957b1bd6c38387b6609af15eb5b9feb9df11 hrs 37 mins ago0xca24e1161eae18926b72cccfb4f91075fe44c4b4  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e9799915.773640535919509 Ether0.00661509
0x00dde82a838dec61b51535d448257174506f7b02a39cda9ab8f7f8750e63c22618 hrs 9 mins ago0x871930f59563f379f00070dfc59876e05e730f89  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e979990.25 Ether0.003804857
0xa0ab6efd36c22e4dadb54d110a1168e0b14cf384bb3002a9d4b2f9a0c15bbfc018 hrs 10 mins ago0x871930f59563f379f00070dfc59876e05e730f89  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e979990.65 Ether0.003907176
0xf1ed4ca5393f06a46b884c9170abbb8d49e75c58010ca4b0e9ff0faa894969bd20 hrs 51 mins ago0xca24e1161eae18926b72cccfb4f91075fe44c4b4  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e979990 Ether0.005451683518
0xd1e2fa42653f2c90a2d3e6235a74b4dda08378383ab64d9ac94e2b6e59d57a4921 hrs 40 mins ago0x2a544ee7dca6663841ac2956530bbd1bd482e657  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e979990.23 Ether0.0035326655
0xed8288b68cb4ae53e19c9819e70330d5580ef6a8d413803ba92ada011daae31d21 hrs 40 mins ago0x2a544ee7dca6663841ac2956530bbd1bd482e657  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e979990.67 Ether0.003627676
0xc7ad3f8fab41da340cc74b458691fcc43fbb36ea72364480bd34aedc701ac6b321 hrs 44 mins ago0xca24e1161eae18926b72cccfb4f91075fe44c4b4  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e9799915.763583148305589 Ether0.00661509
0xf7877c94a81622fc5d20f126b528a7d8931e204d752830a3172adcee0154840b21 hrs 45 mins ago0x2a544ee7dca6663841ac2956530bbd1bd482e657  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e979990.22 Ether0.0035330815
0x3c51d4f6b8084ac8da323326e6bd2a337cd746afc1c38a1e064e3a4a5be68d5e21 hrs 45 mins ago0x2a544ee7dca6663841ac2956530bbd1bd482e657  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e979990.69 Ether0.003628092
0x3293c19c25059b40e4c999e963dda84a728f4da5c89d066f429f3af9289b292e21 hrs 49 mins ago0xca24e1161eae18926b72cccfb4f91075fe44c4b4  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e9799915.906845183436582 Ether0.008535006
0xd5cf3bf29b1db88c70043ca28e529afa3575397a1b75e052f23e814e769e65851 day 2 hrs ago0x2a544ee7dca6663841ac2956530bbd1bd482e657  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e979990.36 Ether0.0037850142
0xa22a606e6fd9a3a8302aa6c2273f29d798fbe68de4ebcf026ef7bd547e4acb742 days 25 mins ago0xca24e1161eae18926b72cccfb4f91075fe44c4b4  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e979990 Ether0.009584192
0xf5853b111e2c93e029e0c0b6b92f0f427bd2e4df1c665a680e93645dc85d46d42 days 1 hr ago0xca24e1161eae18926b72cccfb4f91075fe44c4b4  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e979990 Ether0.01198024
0xdebef273c987b3d22f06a0469b76d974746aea949df7a497dbdb8da4633549012 days 14 hrs ago0xbadcf513bb1feeb8e0dc854c912cb79709d6a7fa  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e979990.04 Ether0.0034986611
0x5ae52567bd1036cfe6b1fa3977ddcd10060a1e5542d7699be24d8c290a9f6a2c2 days 18 hrs ago0xca24e1161eae18926b72cccfb4f91075fe44c4b4  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e9799915.787055685773035 Ether0.00588008
0xcc979ee6afbd07add9422dafa8e422af38c4ad35e1168b1b76bbe57fb4d46c772 days 18 hrs ago0xca24e1161eae18926b72cccfb4f91075fe44c4b4  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e9799915.930993799878131 Ether0.007471776
0x3f3ae96035d5aebced000b8614b5a7e9e13f6f3d34dfe91055fdcfafb9f1e3f62 days 23 hrs ago0xca24e1161eae18926b72cccfb4f91075fe44c4b4  IN   0x7f27b0598949dbf9e539bbd217f15bf3f5e9799915.80130337742383 Ether0.00588008
[ 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
0x9cd8553e25d8ec6d9f79cf0db207595d77a2532c798e64ed4ed078ebacb9fce8637421530 mins ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b15.862983960823929514 Ether
0xf71ce8c19c8e57aaca79f2d1de53356f3b07e06f60f6d75553b351c59d9d504563740551 hr 6 mins ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b0.41 Ether
0x2ce3ba54573ccb07ccfb649d9612a71c6a86c1e405f29a9e5516ac235103b37863740361 hr 10 mins ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b0.49 Ether
0x24ab0a7fb0f8a3a9d63f50ad1feb930260a448f9dbeb7273ad21e6403ef01adb63734653 hrs 24 mins ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b15.88035162805402229 Ether
0x2a1e7919d71ddc9d19b4995ed7719c8d794994d6de0bf445701b1ea9b2dd2141637149811 hrs 23 mins ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b15.886474301988176256 Ether
0x82dd09420912841d8d98a5e578cc09957b1bd6c38387b6609af15eb5b9feb9df637144511 hrs 37 mins ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b15.773640535919509568 Ether
0x00dde82a838dec61b51535d448257174506f7b02a39cda9ab8f7f8750e63c226636979918 hrs 9 mins ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b0.25 Ether
0xa0ab6efd36c22e4dadb54d110a1168e0b14cf384bb3002a9d4b2f9a0c15bbfc0636979318 hrs 10 mins ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b0.65 Ether
0xd1e2fa42653f2c90a2d3e6235a74b4dda08378383ab64d9ac94e2b6e59d57a49636896321 hrs 40 mins ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b0.23 Ether
0xed8288b68cb4ae53e19c9819e70330d5580ef6a8d413803ba92ada011daae31d636896321 hrs 40 mins ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b0.67 Ether
0xc7ad3f8fab41da340cc74b458691fcc43fbb36ea72364480bd34aedc701ac6b3636894321 hrs 44 mins ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b15.763583148305589616 Ether
0xf7877c94a81622fc5d20f126b528a7d8931e204d752830a3172adcee0154840b636893621 hrs 45 mins ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b0.22 Ether
0x3c51d4f6b8084ac8da323326e6bd2a337cd746afc1c38a1e064e3a4a5be68d5e636893421 hrs 45 mins ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b0.69 Ether
0x3293c19c25059b40e4c999e963dda84a728f4da5c89d066f429f3af9289b292e636891821 hrs 49 mins ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b15.906845183436582495 Ether
0xd5cf3bf29b1db88c70043ca28e529afa3575397a1b75e052f23e814e769e658563676231 day 2 hrs ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b0.36 Ether
0xdebef273c987b3d22f06a0469b76d974746aea949df7a497dbdb8da46335490163586112 days 14 hrs ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b0.04 Ether
0x5ae52567bd1036cfe6b1fa3977ddcd10060a1e5542d7699be24d8c290a9f6a2c63575992 days 18 hrs ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b15.787055685773035456 Ether
0xcc979ee6afbd07add9422dafa8e422af38c4ad35e1168b1b76bbe57fb4d46c7763575892 days 18 hrs ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b15.930993799878131034 Ether
0x3f3ae96035d5aebced000b8614b5a7e9e13f6f3d34dfe91055fdcfafb9f1e3f663562732 days 23 hrs ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b15.801303377423830988 Ether
0xae51d0534d83644297cfb2dab916be13b6bcdb3628df5694c39742e6e5f11c6663562652 days 23 hrs ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b15.939190040001205392 Ether
0x7868885f01cfb125ce46dca450666f53285f762120fc3e7c4e510bdab520541d63547753 days 5 hrs ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b16.198913810752124368 Ether
0xf15dd8362fef641872c112efc5f1f445b7a316b5eaaed3015ca614c5a87c48ba63547613 days 5 hrs ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b16.352032715791905024 Ether
0x32a08ffb79be03bd60bbcb5d5f55b59c0cce75e3ccc8e6a96a2aaec73bc40b4663546353 days 6 hrs ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b16.2084647369372104 Ether
0xea581b891de84938f9e2cdd67607ef27c5af4a8bad2f8c5646ce6b2cf90821d563546253 days 6 hrs ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b16.360014311510500832 Ether
0x898f58868ed66b33e7ff5e4972df15c3bc815f7ce59aac418ae34f037e17d2f763515883 days 18 hrs ago0x7f27b0598949dbf9e539bbd217f15bf3f5e979990xd5524179cb7ae012f5b642c1d6d700bbaa76b96b0.1 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 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.