Contract 0x7F27B0598949DbF9e539BBD217f15BF3F5E97999

 
 
Txn Hash
Method
Block
From
To
Value
0x1de4e061728f6d62c32117d123fa528515b81b014688201b5c836737093d229bPublic Create Or...98449352020-04-10 13:55:15962 days 5 hrs ago0x5d9a7f3ba4e4ec276b479d1024d39ab6eb969045 IN  0x7f27b0598949dbf9e539bbd217f15bf3f5e9799928.8 Ether0.00069681.1
0xb37c5ae67d46ef1c79119dd8dc7f527cbdb9c8b1ccf567840abde3a26f646086Public Create Or...98449352020-04-10 13:55:15962 days 5 hrs ago0x5d9a7f3ba4e4ec276b479d1024d39ab6eb969045 IN  0x7f27b0598949dbf9e539bbd217f15bf3f5e9799915.9 Ether0.000708341.1
0xa8187f691051e8e8ab4595fd59637f203ea3b2ec459716051798c39614cf3de3Public Create Or...96010172020-03-03 22:50:07999 days 20 hrs ago0xb2b8d7e5af99bc0d8f59f63c193ca9ae668fcf5f IN  0x7f27b0598949dbf9e539bbd217f15bf3f5e979990.08 Ether0.000630221
0xe82cf34f0a164a3ced9a7110e9ecf3f05e3ab89860f7344e47b5849935482f8bPublic Create Or...96010172020-03-03 22:50:07999 days 20 hrs ago0xb2b8d7e5af99bc0d8f59f63c193ca9ae668fcf5f IN  0x7f27b0598949dbf9e539bbd217f15bf3f5e979990.0625 Ether0.000643941
0xf897ba6c3367bf6220140520d7a78e89495179995338aa2d44176fef796bbfa8Public Create Or...95595872020-02-26 14:10:311006 days 4 hrs ago0x97c96eaa506d4b6a0c4d27363d4c157625571132 IN  0x7f27b0598949dbf9e539bbd217f15bf3f5e979993.25 Ether0.003249035
0x410983f14ffc41f1a86d4d323ec749eb886cb17031fbeb27ab07a72ed26809d6Public Create Or...95595872020-02-26 14:10:311006 days 4 hrs ago0x97c96eaa506d4b6a0c4d27363d4c157625571132 IN  0x7f27b0598949dbf9e539bbd217f15bf3f5e979992.8 Ether0.003167415
0x5981d0818e7203afc4e9a2487113746dab10d03c05b107dbd23d83e6ce0c8946Public Create Or...95595872020-02-26 14:10:311006 days 4 hrs ago0x97c96eaa506d4b6a0c4d27363d4c157625571132 IN  0x7f27b0598949dbf9e539bbd217f15bf3f5e979993.9 Ether0.003249095
0xafd50fc15dbf418eaeb1a32ed7a428e6ad4ba05ee690a001766bbf59afa82d12Public Create Or...95595872020-02-26 14:10:311006 days 4 hrs ago0x97c96eaa506d4b6a0c4d27363d4c157625571132 IN  0x7f27b0598949dbf9e539bbd217f15bf3f5e979992.95 Ether0.003167415
0xb92da23e6ecef411cc1b62fdf8ce669a9cc9e406a4bf6107d4a48da4c89d4ecbPublic Create Or...95595872020-02-26 14:10:311006 days 4 hrs ago0x97c96eaa506d4b6a0c4d27363d4c157625571132 IN  0x7f27b0598949dbf9e539bbd217f15bf3f5e979993.5 Ether0.003152975
0x65b7c39e81e14e6b1dcfc223bbf70b8d98bfe20e0f6eeca304a0b606ec90a62dPublic Create Or...95595872020-02-26 14:10:311006 days 4 hrs ago0x97c96eaa506d4b6a0c4d27363d4c157625571132 IN  0x7f27b0598949dbf9e539bbd217f15bf3f5e979993.6 Ether0.003221355
0xc6ae5b1d80889553dfdba546cb515fd849457faee9375d1ce9c305e8163ca62dPublic Create Or...95409822020-02-23 17:29:151009 days 1 hr ago0x3312f0770f7690d90633d3d3a5e8d788cc9bb162 IN  0x7f27b0598949dbf9e539bbd217f15bf3f5e979997.95 Ether0.001266942
0xc6999ca481dcc887bf578207410a8e01723ccadb66f9fa0cc266b00d3787928bPublic Create Or...95409822020-02-23 17:29:151009 days 1 hr ago0x3312f0770f7690d90633d3d3a5e8d788cc9bb162 IN  0x7f27b0598949dbf9e539bbd217f15bf3f5e979996.3 Ether0.00128792
0xad9529666d5fb0620e87d64b4dcb508abc7c62648d0eeb4f536d75706c82311dPublic Create Or...95409492020-02-23 17:23:501009 days 1 hr ago0x3312f0770f7690d90633d3d3a5e8d788cc9bb162 IN  0x7f27b0598949dbf9e539bbd217f15bf3f5e979996.6 Ether0.001266942
0x75672484c9a52e31900ebe5e88256da31ea1c24320444a86a1896a0b91aa545fPublic Create Or...95409492020-02-23 17:23:501009 days 1 hr ago0x3312f0770f7690d90633d3d3a5e8d788cc9bb162 IN  0x7f27b0598949dbf9e539bbd217f15bf3f5e979997.95 Ether0.001287882
0x3084181ec70932542d9274c17bd77b85d7102fbe39dfa67904acdf16ef4655caPublic Create Or...95077502020-02-18 14:47:341014 days 4 hrs ago0x3312f0770f7690d90633d3d3a5e8d788cc9bb162 IN  0x7f27b0598949dbf9e539bbd217f15bf3f5e979995.65 Ether0.00158372.5
0xb3ccb7b5b702aca4914ec8fe174ae4f56771bc2c138c1b2a3bb72cacf7736c75Public Create Or...95077502020-02-18 14:47:341014 days 4 hrs ago0x3312f0770f7690d90633d3d3a5e8d788cc9bb162 IN  0x7f27b0598949dbf9e539bbd217f15bf3f5e979993.95 Ether0.001609882.5
0x3bf3bfbed22510f493e4ffdc767d9f47acc51537253ca2c3e5a9328ccc97885fPublic Create Or...95077362020-02-18 14:45:311014 days 4 hrs ago0x3312f0770f7690d90633d3d3a5e8d788cc9bb162 IN  0x7f27b0598949dbf9e539bbd217f15bf3f5e979995.7 Ether0.001583672.5
0x0c0206385ff9681a1a9d3412eb99b3538f033b12785ba3afef3f6d02bf340d45Public Create Or...95077362020-02-18 14:45:311014 days 4 hrs ago0x3312f0770f7690d90633d3d3a5e8d788cc9bb162 IN  0x7f27b0598949dbf9e539bbd217f15bf3f5e979993.9 Ether0.001609882.5
0xa0dafbf28ce58e73cfe2a20b28999a33a7a1ce586df47cb151e002e54614b6bbPublic Create Or...94899672020-02-15 21:03:331016 days 21 hrs ago0x3312f0770f7690d90633d3d3a5e8d788cc9bb162 IN  0x7f27b0598949dbf9e539bbd217f15bf3f5e979992.2 Ether0.000633481
0x6e0656090333b780a2a60bc6f60b0e458e575cd33eaf2f08d7fa3f0771aa11d3Public Create Or...94899672020-02-15 21:03:331016 days 21 hrs ago0x3312f0770f7690d90633d3d3a5e8d788cc9bb162 IN  0x7f27b0598949dbf9e539bbd217f15bf3f5e979993.535 Ether0.000643941
0x3180787e0a529c119d99d0c9adc81dc1deec1dbdee928e18fcf0e9bf341a36bePublic Create Or...94899082020-02-15 20:53:521016 days 22 hrs ago0x3312f0770f7690d90633d3d3a5e8d788cc9bb162 IN  0x7f27b0598949dbf9e539bbd217f15bf3f5e979993.2 Ether0.001266962
0xadbadc65932f227b596912d03916d7b6ac70ce250ed5166c47a9435b60644178Public Create Or...94899082020-02-15 20:53:521016 days 22 hrs ago0x3312f0770f7690d90633d3d3a5e8d788cc9bb162 IN  0x7f27b0598949dbf9e539bbd217f15bf3f5e979993 Ether0.00128792
0x3e10a05c2a4b005a65c2cf89c950a35c6cc3caba91614f389f51af79f78ef155Public Create Or...93361052020-01-23 5:50:241040 days 13 hrs ago0x5051beb48c656f965a3554f9d463719735392446 IN  0x7f27b0598949dbf9e539bbd217f15bf3f5e979990.25 Ether0.000633471
0x2a7fd64002e4cc7dab91adda3b0d1541803da76310f73d2200f3338117b1e1baPublic Create Or...93361052020-01-23 5:50:241040 days 13 hrs ago0x5051beb48c656f965a3554f9d463719735392446 IN  0x7f27b0598949dbf9e539bbd217f15bf3f5e979990.25 Ether0.000643941
0xc19ee83b01598bb5d63cc5c0f4b9e44550baa62205b753d5f6072086988c570fPublic Create Or...93360372020-01-23 5:34:131040 days 13 hrs ago0x5051beb48c656f965a3554f9d463719735392446 IN  0x7f27b0598949dbf9e539bbd217f15bf3f5e979990.3 Ether0.000633471
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x1de4e061728f6d62c32117d123fa528515b81b014688201b5c836737093d229b98449352020-04-10 13:55:15962 days 5 hrs ago 0x7f27b0598949dbf9e539bbd217f15bf3f5e97999 Augur: Delegator28.8 Ether
0xb37c5ae67d46ef1c79119dd8dc7f527cbdb9c8b1ccf567840abde3a26f64608698449352020-04-10 13:55:15962 days 5 hrs ago 0x7f27b0598949dbf9e539bbd217f15bf3f5e97999 Augur: Delegator15.9 Ether
0xa8187f691051e8e8ab4595fd59637f203ea3b2ec459716051798c39614cf3de396010172020-03-03 22:50:07999 days 20 hrs ago 0x7f27b0598949dbf9e539bbd217f15bf3f5e97999 Augur: Delegator0.08 Ether
0xe82cf34f0a164a3ced9a7110e9ecf3f05e3ab89860f7344e47b5849935482f8b96010172020-03-03 22:50:07999 days 20 hrs ago 0x7f27b0598949dbf9e539bbd217f15bf3f5e97999 Augur: Delegator0.0625 Ether
0xf897ba6c3367bf6220140520d7a78e89495179995338aa2d44176fef796bbfa895595872020-02-26 14:10:311006 days 4 hrs ago 0x7f27b0598949dbf9e539bbd217f15bf3f5e97999 Augur: Delegator3.25 Ether
0x410983f14ffc41f1a86d4d323ec749eb886cb17031fbeb27ab07a72ed26809d695595872020-02-26 14:10:311006 days 4 hrs ago 0x7f27b0598949dbf9e539bbd217f15bf3f5e97999 Augur: Delegator2.8 Ether
0x5981d0818e7203afc4e9a2487113746dab10d03c05b107dbd23d83e6ce0c894695595872020-02-26 14:10:311006 days 4 hrs ago 0x7f27b0598949dbf9e539bbd217f15bf3f5e97999 Augur: Delegator3.9 Ether
0xafd50fc15dbf418eaeb1a32ed7a428e6ad4ba05ee690a001766bbf59afa82d1295595872020-02-26 14:10:311006 days 4 hrs ago 0x7f27b0598949dbf9e539bbd217f15bf3f5e97999 Augur: Delegator2.95 Ether
0xb92da23e6ecef411cc1b62fdf8ce669a9cc9e406a4bf6107d4a48da4c89d4ecb95595872020-02-26 14:10:311006 days 4 hrs ago 0x7f27b0598949dbf9e539bbd217f15bf3f5e97999 Augur: Delegator3.5 Ether
0x65b7c39e81e14e6b1dcfc223bbf70b8d98bfe20e0f6eeca304a0b606ec90a62d95595872020-02-26 14:10:311006 days 4 hrs ago 0x7f27b0598949dbf9e539bbd217f15bf3f5e97999 Augur: Delegator3.6 Ether
0xc6ae5b1d80889553dfdba546cb515fd849457faee9375d1ce9c305e8163ca62d95409822020-02-23 17:29:151009 days 1 hr ago 0x7f27b0598949dbf9e539bbd217f15bf3f5e97999 Augur: Delegator7.95 Ether
0xc6999ca481dcc887bf578207410a8e01723ccadb66f9fa0cc266b00d3787928b95409822020-02-23 17:29:151009 days 1 hr ago 0x7f27b0598949dbf9e539bbd217f15bf3f5e97999 Augur: Delegator6.3 Ether
0xad9529666d5fb0620e87d64b4dcb508abc7c62648d0eeb4f536d75706c82311d95409492020-02-23 17:23:501009 days 1 hr ago 0x7f27b0598949dbf9e539bbd217f15bf3f5e97999 Augur: Delegator6.6 Ether
0x75672484c9a52e31900ebe5e88256da31ea1c24320444a86a1896a0b91aa545f95409492020-02-23 17:23:501009 days 1 hr ago 0x7f27b0598949dbf9e539bbd217f15bf3f5e97999 Augur: Delegator7.95 Ether
0x3084181ec70932542d9274c17bd77b85d7102fbe39dfa67904acdf16ef4655ca95077502020-02-18 14:47:341014 days 4 hrs ago 0x7f27b0598949dbf9e539bbd217f15bf3f5e97999 Augur: Delegator5.65 Ether
0xb3ccb7b5b702aca4914ec8fe174ae4f56771bc2c138c1b2a3bb72cacf7736c7595077502020-02-18 14:47:341014 days 4 hrs ago 0x7f27b0598949dbf9e539bbd217f15bf3f5e97999 Augur: Delegator3.95 Ether
0x3bf3bfbed22510f493e4ffdc767d9f47acc51537253ca2c3e5a9328ccc97885f95077362020-02-18 14:45:311014 days 4 hrs ago 0x7f27b0598949dbf9e539bbd217f15bf3f5e97999 Augur: Delegator5.7 Ether
0x0c0206385ff9681a1a9d3412eb99b3538f033b12785ba3afef3f6d02bf340d4595077362020-02-18 14:45:311014 days 4 hrs ago 0x7f27b0598949dbf9e539bbd217f15bf3f5e97999 Augur: Delegator3.9 Ether
0xa0dafbf28ce58e73cfe2a20b28999a33a7a1ce586df47cb151e002e54614b6bb94899672020-02-15 21:03:331016 days 21 hrs ago 0x7f27b0598949dbf9e539bbd217f15bf3f5e97999 Augur: Delegator2.2 Ether
0x6e0656090333b780a2a60bc6f60b0e458e575cd33eaf2f08d7fa3f0771aa11d394899672020-02-15 21:03:331016 days 21 hrs ago 0x7f27b0598949dbf9e539bbd217f15bf3f5e97999 Augur: Delegator3.535 Ether
0x3180787e0a529c119d99d0c9adc81dc1deec1dbdee928e18fcf0e9bf341a36be94899082020-02-15 20:53:521016 days 22 hrs ago 0x7f27b0598949dbf9e539bbd217f15bf3f5e97999 Augur: Delegator3.2 Ether
0xadbadc65932f227b596912d03916d7b6ac70ce250ed5166c47a9435b6064417894899082020-02-15 20:53:521016 days 22 hrs ago 0x7f27b0598949dbf9e539bbd217f15bf3f5e97999 Augur: Delegator3 Ether
0x3e10a05c2a4b005a65c2cf89c950a35c6cc3caba91614f389f51af79f78ef15593361052020-01-23 5:50:241040 days 13 hrs ago 0x7f27b0598949dbf9e539bbd217f15bf3f5e97999 Augur: Delegator0.25 Ether
0x2a7fd64002e4cc7dab91adda3b0d1541803da76310f73d2200f3338117b1e1ba93361052020-01-23 5:50:241040 days 13 hrs ago 0x7f27b0598949dbf9e539bbd217f15bf3f5e97999 Augur: Delegator0.25 Ether
0xc19ee83b01598bb5d63cc5c0f4b9e44550baa62205b753d5f6072086988c570f93360372020-01-23 5:34:131040 days 13 hrs ago 0x7f27b0598949dbf9e539bbd217f15bf3f5e97999 Augur: Delegator0.3 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CreateOrder

Compiler Version
v0.4.20+commit.3155dd80

Optimization Enabled:
Yes with 500 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2018-07-09
*/

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 Security Audit

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"}]

606060405260008054600160a060020a033316600160a860020a0319909116179055611896806100306000396000f3006060604052600436106100485763ffffffff60e060020a6000350416633018205f811461004d5780633ae4ce0a1461007c57806392eefe9b146100ba578063f7938328146100ed575b600080fd5b341561005857600080fd5b61006061012e565b604051600160a060020a03909116815260200160405180910390f35b6100a860ff60043516602435604435600160a060020a036064351660843560a43560c43560e43561013d565b60405190815260200160405180910390f35b34156100c557600080fd5b6100d9600160a060020a03600435166104d1565b604051901515815260200160405180910390f35b34156100f857600080fd5b6100a8600160a060020a0360043581169060ff602435169060443590606435906084351660a43560c43560e4356101043561051e565b600054600160a060020a031690565b60008086600081600160a060020a031663870c426d6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561018957600080fd5b6102c65a03f1151561019a57600080fd5b505050604051805160008054919350600160a060020a039091169150634e94c82990604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156101f157600080fd5b6102c65a03f1151561020257600080fd5b50505060405180519050600160a060020a0316638cfb8f218260006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b151561026257600080fd5b6102c65a03f1151561027357600080fd5b50505060405180519050151561028857600080fd5b80600160a060020a0316639f7e1bf68360006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b15156102df57600080fd5b6102c65a03f115156102f057600080fd5b50505060405180519050151561030557600080fd5b61030d6106e2565b5060008054600160a060020a0316906322763ae190604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561035757600080fd5b6102c65a03f1151561036857600080fd5b50505060405180519050151561037d57600080fd5b30600160a060020a031663f7938328338e8e8e8e8e8e8e8e6000604051602001526040518a63ffffffff1660e060020a028152600401808a600160a060020a0316600160a060020a031681526020018960018111156103d857fe5b60ff168152602080820199909952604080820198909852600160a060020a03909616606087015250608085019390935260a084019190915260c083015260e08201526101000193509091505180830381600087803b151561043857600080fd5b6102c65a03f1151561044957600080fd5b5050506040518051935050600160a060020a03891663a0695f246000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561049a57600080fd5b6102c65a03f115156104ab57600080fd5b50505060405180519050508293506104c16107ef565b5050505098975050505050505050565b6000805433600160a060020a039081169116146104ed57600080fd5b506000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03831617905560015b919050565b60006105286117fe565b60008054600160a060020a031690633f08882f9033906040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b151561058357600080fd5b6102c65a03f1151561059457600080fd5b5050506040518051905015156105a957600080fd5b60005474010000000000000000000000000000000000000000900460ff16156105d157600080fd5b6000805474ff0000000000000000000000000000000000000000191674010000000000000000000000000000000000000000179081905561062290600160a060020a03168c888d8d8d8d8c8c610a6f565b905061062d81610ce2565b508051600160a060020a0316630e0a0d7461064783610d2d565b60006040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b151561068657600080fd5b6102c65a03f1151561069757600080fd5b50505060405180511590506106ab57600080fd5b6106b58184610ec9565b6000805474ff0000000000000000000000000000000000000000191690559b9a5050505050505050505050565b6000803411156107e95760008054600160a060020a03169063f39ec1f7906040516020015260405160e060020a63ffffffff83160281527f43617368000000000000000000000000000000000000000000000000000000006004820152602401602060405180830381600087803b151561075b57600080fd5b6102c65a03f1151561076c57600080fd5b50505060405180519050600160a060020a0316634faa8a26343360006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390911660048201526024016020604051808303818588803b15156107cc57600080fd5b6125ee5a03f115156107dd57600080fd5b50505050604051805150505b50600190565b60008054819081908190600160a060020a031663f39ec1f7826040516020015260405160e060020a63ffffffff83160281527f43617368000000000000000000000000000000000000000000000000000000006004820152602401602060405180830381600087803b151561086357600080fd5b6102c65a03f1151561087457600080fd5b5050506040518051935050600160a060020a0383166370a082313360006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b15156108d657600080fd5b6102c65a03f115156108e757600080fd5b50505060405180519250506000821115610a655760008054600160a060020a031690634e94c82990604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561094457600080fd5b6102c65a03f1151561095557600080fd5b5050506040518051915050600160a060020a03811663ec2389948433308660006040516020015260405160e060020a63ffffffff8716028152600160a060020a0394851660048201529284166024840152921660448201526064810191909152608401602060405180830381600087803b15156109d157600080fd5b6102c65a03f115156109e257600080fd5b50505060405180515050600160a060020a038316631baffe38338460006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b1515610a4957600080fd5b6102c65a03f11515610a5a57600080fd5b505050604051805150505b6001935050505090565b610a776117fe565b60008085600160a060020a03166327ce5b8c6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610ac057600080fd5b6102c65a03f11515610ad157600080fd5b50505060405180518b109050610ae657600080fd5b85600160a060020a031663bad84c9e6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610b2c57600080fd5b6102c65a03f11515610b3d57600080fd5b505050604051805188109050610b5257600080fd5b8b600160a060020a031663f39ec1f760006040516020015260405160e060020a63ffffffff83160281527f4f726465727300000000000000000000000000000000000000000000000000006004820152602401602060405180830381600087803b1515610bbe57600080fd5b6102c65a03f11515610bcf57600080fd5b5050506040518051925050600160a060020a038c16634e94c8296000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610c2057600080fd5b6102c65a03f11515610c3157600080fd5b5050506040518051905090506101a06040519081016040528083600160a060020a0316815260200187600160a060020a0316815260200182600160a060020a0316815260200160006001026000191681526020018c600160a060020a031681526020018b81526020018a6001811115610ca657fe5b8152602081018a905260408101899052600060608201819052608082015260a0810187905260c001859052925050509998505050505050505050565b600060018260c001516001811115610cf657fe5b1415610d0c57610d0582610fdb565b9050610519565b60008260c001516001811115610d1e57fe5b141561051957610d0582611355565b6000808060608401511415610ebd578251600160a060020a0316631727583c8460c0015185602001518660e001518761010001518860800151438a60a001518b61014001518c61012001516000604051602001526040518a63ffffffff1660e060020a028152600401808a6001811115610da357fe5b60ff16815260200189600160a060020a0316600160a060020a0316815260200188815260200187815260200186600160a060020a0316600160a060020a031681526020018581526020018481526020018381526020018281526020019950505050505050505050602060405180830381600087803b1515610e2357600080fd5b6102c65a03f11515610e3457600080fd5b5050506040518051915083905051600160a060020a0316630e0a0d748260006040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b1515610e9057600080fd5b6102c65a03f11515610ea157600080fd5b5050506040518051159050610eb557600080fd5b606083018190525b82606001519392505050565b60008251600160a060020a0316636bc29efa8460c0015185602001518660e0015187610100015188608001518960a001518a61014001518b61012001518c61016001518d61018001518d6000604051602001526040518c63ffffffff1660e060020a028152600401808c6001811115610f3e57fe5b60ff168152600160a060020a039b8c1660208083019190915260408083019c909c52606082019a909a5297909a16608088015260a087019590955260c086019390935260e085019190915261010084015261012083015261014082015261016001935091505180830381600087803b1515610fb857600080fd5b6102c65a03f11515610fc957600080fd5b50505060405180519150505b92915050565b60008060008084610140015115610ff157600080fd5b8461012001511561100157600080fd5b8460200151600160a060020a03166365957bf58660a0015160006040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b151561105857600080fd5b6102c65a03f1151561106957600080fd5b505050604051805193505060e0850151915082600160a060020a03166370a08231866080015160006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b15156110d657600080fd5b6102c65a03f115156110e757600080fd5b505050604051805191505060008111156111a55761110581836117a4565b6101208601908152518203915082600160a060020a031663764c92f28660800151876020015188610120015160006040516020015260405160e060020a63ffffffff8616028152600160a060020a0393841660048201529190921660248201526044810191909152606401602060405180830381600087803b151561118957600080fd5b6102c65a03f1151561119a57600080fd5b505050604051805150505b600082111561134a576112388261122c8761010001518860200151600160a060020a031663bad84c9e6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561120557600080fd5b6102c65a03f1151561121657600080fd5b505050604051805191905063ffffffff6117bb16565b9063ffffffff6117d016565b6101408601526040850151600160a060020a031663ec2389948660200151600160a060020a031663df2a29da6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561129b57600080fd5b6102c65a03f115156112ac57600080fd5b505050604051805190508760800151886020015189610140015160006040516020015260405160e060020a63ffffffff8716028152600160a060020a0394851660048201529284166024840152921660448201526064810191909152608401602060405180830381600087803b151561132457600080fd5b6102c65a03f1151561133557600080fd5b50505060405180519050151561134a57600080fd5b506001949350505050565b6000806000806000808661014001511561136e57600080fd5b8661012001511561137e57600080fd5b8660e0015194508660200151600160a060020a03166327ce5b8c6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156113cf57600080fd5b6102c65a03f115156113e057600080fd5b505050604051805194507f4000000000000000000000000000000000000000000000000000000000000000935060009250505b83821015611523578660a001518214611518578660200151600160a060020a03166365957bf58360006040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b151561147957600080fd5b6102c65a03f1151561148a57600080fd5b50505060405180519050600160a060020a03166370a08231886080015160006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b15156114ee57600080fd5b6102c65a03f115156114ff57600080fd5b50505060405180519050905061151581846117a4565b92505b600190910190611413565b60008311156116665761153683866117a4565b61012088019081525185039450600091505b83821015611666578660a00151821461165b578660200151600160a060020a03166365957bf58360006040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b15156115ae57600080fd5b6102c65a03f115156115bf57600080fd5b50505060405180519050600160a060020a031663764c92f2886080015189602001518a610120015160006040516020015260405160e060020a63ffffffff8616028152600160a060020a0393841660048201529190921660248201526044810191909152606401602060405180830381600087803b151561163f57600080fd5b6102c65a03f1151561165057600080fd5b505050604051805150505b600190910190611548565b600085111561179757611685876101000151869063ffffffff6117d016565b6101408801526040870151600160a060020a031663ec2389948860200151600160a060020a031663df2a29da6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156116e857600080fd5b6102c65a03f115156116f957600080fd5b5050506040518051905089608001518a602001518b610140015160006040516020015260405160e060020a63ffffffff8716028152600160a060020a0394851660048201529284166024840152921660448201526064810191909152608401602060405180830381600087803b151561177157600080fd5b6102c65a03f1151561178257600080fd5b50505060405180519050151561179757600080fd5b5060019695505050505050565b60008183116117b4575081610fd5565b5080610fd5565b6000828211156117ca57600080fd5b50900390565b60008282028315806117ec57508284828115156117e957fe5b04145b15156117f757600080fd5b9392505050565b6101a06040519081016040908152600080835260208301819052908201819052606082018190526080820181905260a0820181905260c0820181905260e082018190526101008201819052610120820181905261014082018190526101608201819052610180820152905600a165627a7a72305820e23ee3a29760a37f35879e35283137df0b309aeffded7c28374f996a65fb48ad0029

Swarm Source

bzzr://e23ee3a29760a37f35879e35283137df0b309aeffded7c28374f996a65fb48ad
Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.

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