Sponsored Link:   DocTailor - Legal Self Customisable Smart Contract Platform - Bridging the Gap Between Business & Cryptocurrency Holders - Join Now!
Contract Overview | IDEX_1
ETH Balance: 33,354.940610462351393794 Ether
ETH USD Value: $21,344,493.60 (@ $639.92/ETH)
No Of Transactions: 1541914 txns
Misc  
   
Address Watch Add To Watch List
Contract Creator 0x33daedabab9085bd1a94460a652e7ffff592dfe3at txn 0x24b99bebf8a908be3d09bb8101446350cc7d1bea467b5242352c9c53e85c5283
Token Balances
  Latest 25 txns from a total Of 1541914 transactions (> more than 25 PendingTxns) View All

TxHash Age From To Value [TxFee]
0xec6a919a9639287868466eb06a758d5ed16b06a149e74538c0c5141dab587c4b(pending) 4 secs ago0xceceaa8edc0830c7cec497e33bb3a3c28dd55a32  IN  0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080 Ether(pending)
0xee9643e194428065f8a24475490f8fe07439f36932d5227c491d4d8d92ce5595(pending) 4 secs ago0xceceaa8edc0830c7cec497e33bb3a3c28dd55a32  IN  0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080 Ether(pending)
0xd2545b63ed52faaa7810d0a6e90a69457ea6fb439b295aff30428542b503b866(pending) 4 secs ago0xceceaa8edc0830c7cec497e33bb3a3c28dd55a32  IN  0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080 Ether(pending)
0x646becc80315f3b18fc979ae09a1d79f0efb584204d4f7b6ba90ec7eca866187(pending) 5 secs ago0x1fcd434c75e755820f8c22db8d672ded9393edb9  IN  0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2081.2 Ether(pending)
0xd63b6083ab555c1db3cd24e3be61db92f5353ac2864618476f4647b05aa6b532(pending) 14 secs ago0x53c0f689224dc5e5b6e773e4e3ea387b2449268d  IN  0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080.002698431 Ether(pending)
0xee8a51c298d6b2602c1275c032b49873cc4f0a36b40e0eb1dafb1dbfe63fc554(pending) 29 secs ago0xceceaa8edc0830c7cec497e33bb3a3c28dd55a32  IN  0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080 Ether(pending)
0x634d293698b6b1606ba22a017ad3a5d6a32ab2c9550eb999de4226d33224b0a4(pending) 30 secs ago0xceceaa8edc0830c7cec497e33bb3a3c28dd55a32  IN  0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080 Ether(pending)
0x1b12c8ce9a0d9b54a750d0608ab43b6b3770ea9b5dca0cd97aafe667efa39934(pending) 38 secs ago0xceceaa8edc0830c7cec497e33bb3a3c28dd55a32  IN  0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080 Ether(pending)
0x4aff3a7ad3d8463300aacf5774505ed0d7d9a114aba93414299201d1aa815d39(pending) 45 secs ago0x43369784b9c733bae6af1eb45501bf8f70cee756  IN  0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080.006 Ether(pending)
0x8fab34af4c26372b78e16a1a595ade2713fdc85a3da3262426d73de4ed92a49a(pending) 45 secs ago0x43369784b9c733bae6af1eb45501bf8f70cee756  IN  0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080.0099 Ether(pending)
0x9428c4acc30746bde096ac3ad315d82d8eadea8571a14b2567a1ab7e5fb8014a(pending)1 min ago0x145a96b9669685c263f196caaba3ddd5339cbdf0  IN  0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080 Ether(pending)
0xe216191f330eb11b94a4f2a25ef7a32f504ad71f92778b664ee8e0673a5dd025(pending)1 min ago0x145a96b9669685c263f196caaba3ddd5339cbdf0  IN  0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080 Ether(pending)
0xfe3accc4526fa9a5099faa15ee6c4ec7e9916af04b8745681ee9356a7ae21c4e(pending)1 min ago0x145a96b9669685c263f196caaba3ddd5339cbdf0  IN  0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080 Ether(pending)
0x0dd0203acf2eb668b29a865ba194a3f0a8f36b33f7cd1a596e8e4623e59f9754(pending)2 mins ago0x6580f74d3c955a35013961e720f507b50cc1d263  IN  0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080.16299395 Ether(pending)
0xf5d86fe623903ccc22431ac1288ac9ff6721aa22b247dc2ca4dd73f40db5a93b(pending)4 mins ago0x4d249bc5f0656cd55250ff15c40f746e0660d77d  IN  0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080.384 Ether(pending)
0x1701e829231016e63de1854bb3cfef46d0b8049997d5e5fc9b1f449af06f6902(pending)4 mins ago0xfb7b797aec63541ab5739b3b25d2b702b3323ddd  IN  0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080.989393275 Ether(pending)
0x4d1e79b65656f76f2113e52ccea30ca56d3e10e632829fe84273d8c71fc864f5(pending)4 mins ago0xfb7b797aec63541ab5739b3b25d2b702b3323ddd  IN  0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080.999393275 Ether(pending)
0x5710124521b5f7854438159b36c3517a14d9ccda9aefe7de6d21413686ef9d57(pending)4 mins ago0xfb7b797aec63541ab5739b3b25d2b702b3323ddd  IN  0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080.996393275 Ether(pending)
0xfa3aa11f411608d0b32241bd8232bc64969171a62cdee10f7ed505b28c4bcfff(pending)4 mins ago0xd8908c04a9be9f4a17d62204ed115aeaab2f6bac  IN  0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080 Ether(pending)
0x32ea53b39c3d0fc340ad1e9b83ae57e761a9d7e17608e2616730ff67380672ad(pending)4 mins ago0xfef2dfa1779505e0a306a2befd8eab7ba856680d  IN  0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080 Ether(pending)
0xd4df365ecff590388912a66df5b32382c18e91791ca659dd38c7d88e69b89c16(pending)5 mins ago0x51ae704f4bad7e6ef3445cb75d3a042cbbe4a30d  IN  0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080 Ether(pending)
0xf8d4e9eba94f689e6fd39fe4173cd4a5472c4dae18da5bee04be99f7e242adb9(pending)5 mins ago0x296f08fc8a4027b4749d82c9f478b1e89f50bc2f  IN  0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080 Ether(pending)
0xea51a9b9fd9c49b4ab9377c0aea2a7a1f6e5c46df7b7877e4ae156c46104ad26(pending)8 mins ago0x219a0da7108f6e31010b10ad49b691851428b210  IN  0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080.93621655 Ether(pending)
0x65483252d2c0f51eef0bbfefa4ac8f7bd58b0c8fc71a5421398947576d088844(pending)8 mins ago0x219a0da7108f6e31010b10ad49b691851428b210  IN  0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080.93621655 Ether(pending)
0x7571e1a24b2220f1c4c756e4b11343ff30cd870f18521184bc70813e9de3ecf3(pending)8 mins ago0x219a0da7108f6e31010b10ad49b691851428b210  IN  0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080.93621655 Ether(pending)
 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
0x065c56195c395bbe8e825cd9c15058c96cf30a71cb237a5a752569605fcd06be54937961 min ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x65dada4366ae16e20fdbb7675e752e1fe7abd9782.482695754566399263 Ether
0xd0c70d793ec0a238470fc45da22b4d37ea61b25230ba2f62ab8b8cfadac90efb54937961 min ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080xca1cd94f7c0ec89a7d1ddc2aae835cc94519087f0.381666199999999999 Ether
0x8b2a4bca13df5cc321af76707c2a073ef22aba925281bf2e4c81f8cb2f93012154937961 min ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080xaf2fc1aec666e90f721948bc3ec3184ca8a7c3ea0.266071001792 Ether
0xd812ae4b796a7a530c8061bd18f49fe22846f8f7fd3f0abac64d80fd4c6647a154937921 min ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x4859aab077ff118cf37ce4736e9f079563ac56824.499025237480000001 Ether
0x91794159a0bdce75fe9b0ec9c9a50369f146974e8a3c163c5185734f6002b10654937921 min ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x553caad75d68ce2cbba26c5d7b0c6f707a741a950.342497693860000001 Ether
0x42d5cfc0208da581515c8ceab400b8f5dcf23dd1a2431f3e4a02bafba1dc994054937921 min ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080xa34032d63e6e278801836b176a4065b95c68a5716.226970820000000007 Ether
0x2fcb2f0ba8f72a8c0434f93119a4faa88f2722c1eec6e2f1e75a286dd984c93054937921 min ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080xb26c4f7521ed4acd4b08b7455b54b64ddb3d3fa10.135412854477203045 Ether
0x0091ff9de6d9c659d40a4b6136214a143330478d1735e7a56597424153eb9e8254937882 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080xfa09b6f847eb6a516354ea8421a3eba3e464ac900.941164028771659999 Ether
0x0702a05693f38e0873e57485d64585cdbb6a331c1abde28511a9fe59ee19866054937814 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x40a523dc62d4a50c6a4ca04758a2e39c6bc9cd270.094734270982368813 Ether
0x2a315424b2c8097a51f59135096adc6cb39280b9fe27f70a17c4b5c84c028cd054937736 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x40a523dc62d4a50c6a4ca04758a2e39c6bc9cd270.0393 Ether
0x980345a0c5f616c9a962e5044a2c4f867f23e15df8ebdfe967babcafd124a4d454937736 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080xefaef3a9b2bc9b1464c1f85715b6915de4ec659d8.70804575928402369 Ether
0x621490c574840240f5cda110b444525035e3e6f51ad3e366ae271483c9466e4254937736 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080xaf1a906b316f8c44edfdea9f9a0570d9509360741.3038268137386 Ether
0x8ada696b6eb8bc5f93eb03bda0adef4056b06c94fbb5d5669e96ac0d221643de54937678 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x08b49dbb19695f7bba43318b394214c0be8e21ba0.0566411314434 Ether
0xb38348db6eedef8773ae0baa14c74d7dcb6af273a1e0d98147df27af4ccbfb8d54937678 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x86140425be55e712900863cbfd3052b5faae214a0.4993 Ether
0xcb8e67c0c6ed2e74bdc5ba8c2a77ea3f18e8ac1525dbf8025d6e682b3fd9d01554937658 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x66ccd7137e35930e82e623a7d47c818efaa5425e2.3464176736592 Ether
0x227b711e6ffa0cefd3ff00af9f2c872090564d74b7e59377433f3b735dba264b54937658 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x8d585460fdf89b89c947965d72dfe208228901860.2313 Ether
0xb8dbaee308bbc1f0d8858676a129282ac8138bbe07fcbbbdbd995abaceadc02754937619 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x4cbf2e8b0797efb9a9b7bd219f733647a17228e61.912294500445686837 Ether
0x3e15e950fd53e690b789d5053a9e58c0dd51b3fb3d81c49ecbe6ba887d32705b54937619 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080xa8386220ba5100cf9f6082d1538168ac76d1eb657.866425000000000004 Ether
0xd9ee4ddeb11763d53846d249ef4ea36a9c604054a58e9664c81a499921f376fc54937609 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x3faf44565c296c45beb2645f3343a4390b724f5c0.661485953844761576 Ether
0xd882691bd9f3a740348c952447f1b55682b1533b297d53285f8f706068b8ecb754937599 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080xe8d206d8111b86960f607b25b40200b4161b10432.899300000000060002 Ether
0x3770feec200f3a1422703c85c98d0fddbe7f220c7b88da17a0cf5a53c65acf0f549375610 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080xb9072080c6c95202e759720ad5dc5c5d7b1f68ea0.050492111915526345 Ether
0x7b3fc50b09c173c1f5ff679a6c822b5fce49bf1a43a685a91377e214f72acfcc549375510 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x1264b98fcea22f514220758fdd071e2de62d48120.236261996830599999 Ether
0x3597bd7bce49dd729026da7fb5973d4cedfe6581ff6769988f34524c30f39169549375311 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x8fb6840a46a8d143dac1301f560976b953a095c50.128300564646305876 Ether
0x73eed3b738a644449cd37428b22b9dd0c8687ecdb0583462fe921cafb1f9d1ba549375311 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080xdb257b0828e5a936a91f6db440c1bf66d8569f330.03949996 Ether
0xb876330e7dc61b3e66a4a6bb3367c32fdc52b89823b3801b0e727bdb254ba491549375012 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x78cfbc84a8d95c3b79eba4ba5ab88cec276338cc0.94220053870479809 Ether
[ Download CSV Export  ] 
Warning: The compiled contract might be susceptible to ZeroFunctionSelector (very low-severity) Solidity compiler bugs.

Contract Source Code Verified (Exact match)
Contract Name: Exchange
Compiler Version: v0.4.16+commit.d7661dd9
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts
pragma solidity ^0.4.16;

contract Token {
    bytes32 public standard;
    bytes32 public name;
    bytes32 public symbol;
    uint256 public totalSupply;
    uint8 public decimals;
    bool public allowTransactions;
    mapping (address => uint256) public balanceOf;
    mapping (address => mapping (address => uint256)) public allowance;
    function transfer(address _to, uint256 _value) returns (bool success);
    function approveAndCall(address _spender, uint256 _value, bytes _extraData) returns (bool success);
    function approve(address _spender, uint256 _value) returns (bool success);
    function transferFrom(address _from, address _to, uint256 _value) returns (bool success);
}

contract Exchange {
  function assert(bool assertion) {
    if (!assertion) throw;
  }
  function safeMul(uint a, uint b) returns (uint) {
    uint c = a * b;
    assert(a == 0 || c / a == b);
    return c;
  }

  function safeSub(uint a, uint b) returns (uint) {
    assert(b <= a);
    return a - b;
  }

  function safeAdd(uint a, uint b) returns (uint) {
    uint c = a + b;
    assert(c>=a && c>=b);
    return c;
  }
  address public owner;
  mapping (address => uint256) public invalidOrder;
  event SetOwner(address indexed previousOwner, address indexed newOwner);
  modifier onlyOwner {
    assert(msg.sender == owner);
    _;
  }
  function setOwner(address newOwner) onlyOwner {
    SetOwner(owner, newOwner);
    owner = newOwner;
  }
  function getOwner() returns (address out) {
    return owner;
  }
  function invalidateOrdersBefore(address user, uint256 nonce) onlyAdmin {
    if (nonce < invalidOrder[user]) throw;
    invalidOrder[user] = nonce;
  }

  mapping (address => mapping (address => uint256)) public tokens; //mapping of token addresses to mapping of account balances

  mapping (address => bool) public admins;
  mapping (address => uint256) public lastActiveTransaction;
  mapping (bytes32 => uint256) public orderFills;
  address public feeAccount;
  uint256 public inactivityReleasePeriod;
  mapping (bytes32 => bool) public traded;
  mapping (bytes32 => bool) public withdrawn;
  event Order(address tokenBuy, uint256 amountBuy, address tokenSell, uint256 amountSell, uint256 expires, uint256 nonce, address user, uint8 v, bytes32 r, bytes32 s);
  event Cancel(address tokenBuy, uint256 amountBuy, address tokenSell, uint256 amountSell, uint256 expires, uint256 nonce, address user, uint8 v, bytes32 r, bytes32 s);
  event Trade(address tokenBuy, uint256 amountBuy, address tokenSell, uint256 amountSell, address get, address give);
  event Deposit(address token, address user, uint256 amount, uint256 balance);
  event Withdraw(address token, address user, uint256 amount, uint256 balance);

  function setInactivityReleasePeriod(uint256 expiry) onlyAdmin returns (bool success) {
    if (expiry > 1000000) throw;
    inactivityReleasePeriod = expiry;
    return true;
  }

  function Exchange(address feeAccount_) {
    owner = msg.sender;
    feeAccount = feeAccount_;
    inactivityReleasePeriod = 100000;
  }

  function setAdmin(address admin, bool isAdmin) onlyOwner {
    admins[admin] = isAdmin;
  }

  modifier onlyAdmin {
    if (msg.sender != owner && !admins[msg.sender]) throw;
    _;
  }

  function() external {
    throw;
  }

  function depositToken(address token, uint256 amount) {
    tokens[token][msg.sender] = safeAdd(tokens[token][msg.sender], amount);
    lastActiveTransaction[msg.sender] = block.number;
    if (!Token(token).transferFrom(msg.sender, this, amount)) throw;
    Deposit(token, msg.sender, amount, tokens[token][msg.sender]);
  }

  function deposit() payable {
    tokens[address(0)][msg.sender] = safeAdd(tokens[address(0)][msg.sender], msg.value);
    lastActiveTransaction[msg.sender] = block.number;
    Deposit(address(0), msg.sender, msg.value, tokens[address(0)][msg.sender]);
  }

  function withdraw(address token, uint256 amount) returns (bool success) {
    if (safeSub(block.number, lastActiveTransaction[msg.sender]) < inactivityReleasePeriod) throw;
    if (tokens[token][msg.sender] < amount) throw;
    tokens[token][msg.sender] = safeSub(tokens[token][msg.sender], amount);
    if (token == address(0)) {
      if (!msg.sender.send(amount)) throw;
    } else {
      if (!Token(token).transfer(msg.sender, amount)) throw;
    }
    Withdraw(token, msg.sender, amount, tokens[token][msg.sender]);
  }

  function adminWithdraw(address token, uint256 amount, address user, uint256 nonce, uint8 v, bytes32 r, bytes32 s, uint256 feeWithdrawal) onlyAdmin returns (bool success) {
    bytes32 hash = keccak256(this, token, amount, user, nonce);
    if (withdrawn[hash]) throw;
    withdrawn[hash] = true;
    if (ecrecover(keccak256("\x19Ethereum Signed Message:\n32", hash), v, r, s) != user) throw;
    if (feeWithdrawal > 50 finney) feeWithdrawal = 50 finney;
    if (tokens[token][user] < amount) throw;
    tokens[token][user] = safeSub(tokens[token][user], amount);
    tokens[token][feeAccount] = safeAdd(tokens[token][feeAccount], safeMul(feeWithdrawal, amount) / 1 ether);
    amount = safeMul((1 ether - feeWithdrawal), amount) / 1 ether;
    if (token == address(0)) {
      if (!user.send(amount)) throw;
    } else {
      if (!Token(token).transfer(user, amount)) throw;
    }
    lastActiveTransaction[user] = block.number;
    Withdraw(token, user, amount, tokens[token][user]);
  }

  function balanceOf(address token, address user) constant returns (uint256) {
    return tokens[token][user];
  }

  function trade(uint256[8] tradeValues, address[4] tradeAddresses, uint8[2] v, bytes32[4] rs) onlyAdmin returns (bool success) {
    /* amount is in amountBuy terms */
    /* tradeValues
       [0] amountBuy
       [1] amountSell
       [2] expires
       [3] nonce
       [4] amount
       [5] tradeNonce
       [6] feeMake
       [7] feeTake
     tradeAddressses
       [0] tokenBuy
       [1] tokenSell
       [2] maker
       [3] taker
     */
    if (invalidOrder[tradeAddresses[2]] > tradeValues[3]) throw;
    bytes32 orderHash = keccak256(this, tradeAddresses[0], tradeValues[0], tradeAddresses[1], tradeValues[1], tradeValues[2], tradeValues[3], tradeAddresses[2]);
    if (ecrecover(keccak256("\x19Ethereum Signed Message:\n32", orderHash), v[0], rs[0], rs[1]) != tradeAddresses[2]) throw;
    bytes32 tradeHash = keccak256(orderHash, tradeValues[4], tradeAddresses[3], tradeValues[5]); 
    if (ecrecover(keccak256("\x19Ethereum Signed Message:\n32", tradeHash), v[1], rs[2], rs[3]) != tradeAddresses[3]) throw;
    if (traded[tradeHash]) throw;
    traded[tradeHash] = true;
    if (tradeValues[6] > 100 finney) tradeValues[6] = 100 finney;
    if (tradeValues[7] > 100 finney) tradeValues[7] = 100 finney;
    if (safeAdd(orderFills[orderHash], tradeValues[4]) > tradeValues[0]) throw;
    if (tokens[tradeAddresses[0]][tradeAddresses[3]] < tradeValues[4]) throw;
    if (tokens[tradeAddresses[1]][tradeAddresses[2]] < (safeMul(tradeValues[1], tradeValues[4]) / tradeValues[0])) throw;
    tokens[tradeAddresses[0]][tradeAddresses[3]] = safeSub(tokens[tradeAddresses[0]][tradeAddresses[3]], tradeValues[4]);
    tokens[tradeAddresses[0]][tradeAddresses[2]] = safeAdd(tokens[tradeAddresses[0]][tradeAddresses[2]], safeMul(tradeValues[4], ((1 ether) - tradeValues[6])) / (1 ether));
    tokens[tradeAddresses[0]][feeAccount] = safeAdd(tokens[tradeAddresses[0]][feeAccount], safeMul(tradeValues[4], tradeValues[6]) / (1 ether));
    tokens[tradeAddresses[1]][tradeAddresses[2]] = safeSub(tokens[tradeAddresses[1]][tradeAddresses[2]], safeMul(tradeValues[1], tradeValues[4]) / tradeValues[0]);
    tokens[tradeAddresses[1]][tradeAddresses[3]] = safeAdd(tokens[tradeAddresses[1]][tradeAddresses[3]], safeMul(safeMul(((1 ether) - tradeValues[7]), tradeValues[1]), tradeValues[4]) / tradeValues[0] / (1 ether));
    tokens[tradeAddresses[1]][feeAccount] = safeAdd(tokens[tradeAddresses[1]][feeAccount], safeMul(safeMul(tradeValues[7], tradeValues[1]), tradeValues[4]) / tradeValues[0] / (1 ether));
    orderFills[orderHash] = safeAdd(orderFills[orderHash], tradeValues[4]);
    lastActiveTransaction[tradeAddresses[2]] = block.number;
    lastActiveTransaction[tradeAddresses[3]] = block.number;
  }
}

    Contract ABI  
[{"constant":false,"inputs":[{"name":"assertion","type":"bool"}],"name":"assert","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"setOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"token","type":"address"},{"name":"amount","type":"uint256"},{"name":"user","type":"address"},{"name":"nonce","type":"uint256"},{"name":"v","type":"uint8"},{"name":"r","type":"bytes32"},{"name":"s","type":"bytes32"},{"name":"feeWithdrawal","type":"uint256"}],"name":"adminWithdraw","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"lastActiveTransaction","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"token","type":"address"},{"name":"amount","type":"uint256"}],"name":"depositToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"withdrawn","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"admins","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"admin","type":"address"},{"name":"isAdmin","type":"bool"}],"name":"setAdmin","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"tokens","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"feeAccount","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"invalidOrder","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"getOwner","outputs":[{"name":"out","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"a","type":"uint256"},{"name":"b","type":"uint256"}],"name":"safeSub","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"user","type":"address"},{"name":"nonce","type":"uint256"}],"name":"invalidateOrdersBefore","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"a","type":"uint256"},{"name":"b","type":"uint256"}],"name":"safeMul","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"deposit","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"traded","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"expiry","type":"uint256"}],"name":"setInactivityReleasePeriod","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"a","type":"uint256"},{"name":"b","type":"uint256"}],"name":"safeAdd","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"tradeValues","type":"uint256[8]"},{"name":"tradeAddresses","type":"address[4]"},{"name":"v","type":"uint8[2]"},{"name":"rs","type":"bytes32[4]"}],"name":"trade","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"inactivityReleasePeriod","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"token","type":"address"},{"name":"amount","type":"uint256"}],"name":"withdraw","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"orderFills","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"token","type":"address"},{"name":"user","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"feeAccount_","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":false,"stateMutability":"nonpayable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"SetOwner","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"tokenBuy","type":"address"},{"indexed":false,"name":"amountBuy","type":"uint256"},{"indexed":false,"name":"tokenSell","type":"address"},{"indexed":false,"name":"amountSell","type":"uint256"},{"indexed":false,"name":"expires","type":"uint256"},{"indexed":false,"name":"nonce","type":"uint256"},{"indexed":false,"name":"user","type":"address"},{"indexed":false,"name":"v","type":"uint8"},{"indexed":false,"name":"r","type":"bytes32"},{"indexed":false,"name":"s","type":"bytes32"}],"name":"Order","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"tokenBuy","type":"address"},{"indexed":false,"name":"amountBuy","type":"uint256"},{"indexed":false,"name":"tokenSell","type":"address"},{"indexed":false,"name":"amountSell","type":"uint256"},{"indexed":false,"name":"expires","type":"uint256"},{"indexed":false,"name":"nonce","type":"uint256"},{"indexed":false,"name":"user","type":"address"},{"indexed":false,"name":"v","type":"uint8"},{"indexed":false,"name":"r","type":"bytes32"},{"indexed":false,"name":"s","type":"bytes32"}],"name":"Cancel","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"tokenBuy","type":"address"},{"indexed":false,"name":"amountBuy","type":"uint256"},{"indexed":false,"name":"tokenSell","type":"address"},{"indexed":false,"name":"amountSell","type":"uint256"},{"indexed":false,"name":"get","type":"address"},{"indexed":false,"name":"give","type":"address"}],"name":"Trade","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"token","type":"address"},{"indexed":false,"name":"user","type":"address"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"balance","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"token","type":"address"},{"indexed":false,"name":"user","type":"address"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"balance","type":"uint256"}],"name":"Withdraw","type":"event"}]

  Contract Creation Code Switch To Opcodes View
6060604052341561000f57600080fd5b604051602080611d0c833981016040528080519150505b60008054600160a060020a03338116600160a060020a0319928316179092556006805492841692909116919091179055620186a06007555b505b611c9d8061006f6000396000f3006060604052361561012d5763ffffffff60e060020a6000350416630674763c811461014057806313af40351461015a5780632295115b1461017b578063254dcfe2146101ca578063338b5dea146101fb5780633823d66c1461021f578063429b62e5146102495780634b0bddd21461027c578063508493bc146102a257806365e17c9d146102d957806383dbb27b14610308578063893d20e8146103395780638da5cb5b14610368578063a293d1e814610397578063b12de559146103c2578063d05c78da146103e6578063d0e30db014610411578063d58133231461041b578063dd93c74a14610445578063e6cb90131461046f578063ef3435881461049a578063f31174ee14610566578063f3fef3a31461058b578063f7213db6146105c1578063f7888aec146105e9575b341561013857600080fd5b5b600080fd5b005b341561014b57600080fd5b61013e6004351515610620565b005b341561016557600080fd5b61013e600160a060020a0360043516610630565b005b341561018657600080fd5b6101b6600160a060020a03600435811690602435906044351660643560ff6084351660a43560c43560e4356106b4565b604051901515815260200160405180910390f35b34156101d557600080fd5b6101e9600160a060020a0360043516610ad9565b60405190815260200160405180910390f35b341561020657600080fd5b61013e600160a060020a0360043516602435610aeb565b005b341561022a57600080fd5b6101b6600435610c62565b604051901515815260200160405180910390f35b341561025457600080fd5b6101b6600160a060020a0360043516610c77565b604051901515815260200160405180910390f35b341561028757600080fd5b61013e600160a060020a03600435166024351515610c8c565b005b34156102ad57600080fd5b6101e9600160a060020a0360043581169060243516610cd1565b60405190815260200160405180910390f35b34156102e457600080fd5b6102ec610cee565b604051600160a060020a03909116815260200160405180910390f35b341561031357600080fd5b6101e9600160a060020a0360043516610cfd565b60405190815260200160405180910390f35b341561034457600080fd5b6102ec610d0f565b604051600160a060020a03909116815260200160405180910390f35b341561037357600080fd5b6102ec610d1f565b604051600160a060020a03909116815260200160405180910390f35b34156103a257600080fd5b6101e9600435602435610d2e565b60405190815260200160405180910390f35b34156103cd57600080fd5b61013e600160a060020a0360043516602435610d47565b005b34156103f157600080fd5b6101e9600435602435610dcf565b60405190815260200160405180910390f35b61013e610dfe565b005b341561042657600080fd5b6101b6600435610eea565b604051901515815260200160405180910390f35b341561045057600080fd5b6101b6600435610eff565b604051901515815260200160405180910390f35b341561047a57600080fd5b6101e9600435602435610f61565b60405190815260200160405180910390f35b34156104a557600080fd5b6101b6600461010481600861010060405190810160405291908282610100808284378201915050505050919080608001906004806020026040519081016040529190828260808082843782019150505050509190806040019060028060200260405190810160405280929190826002602002808284378201915050505050919080608001906004806020026040519081016040529190828260808082843750939550610f89945050505050565b604051901515815260200160405180910390f35b341561057157600080fd5b6101e9611a1a565b60405190815260200160405180910390f35b341561059657600080fd5b6101b6600160a060020a0360043516602435611a20565b604051901515815260200160405180910390f35b34156105cc57600080fd5b6101e9600435611c32565b60405190815260200160405180910390f35b34156105f457600080fd5b6101e9600160a060020a0360043581169060243516611c44565b60405190815260200160405180910390f35b80151561062c57600080fd5b5b50565b60005461064b9033600160a060020a03908116911614610620565b600054600160a060020a0380831691167fcbf985117192c8f614a58aaf97226bb80a754772f5f6edf06f87c675f2e6c66360405160405180910390a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b60008054819033600160a060020a039081169116148015906106ef5750600160a060020a03331660009081526003602052604090205460ff16155b156106f957600080fd5b308a8a8a8a6040516c01000000000000000000000000600160a060020a039687168102825294861685026014820152602881019390935293169091026048820152605c810191909152607c0160405190819003902060008181526009602052604090205490915060ff161561076d57600080fd5b60008181526009602052604090819020805460ff19166001908117909155600160a060020a038a16918390517f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0160405180910390208888886040516000815260200160405260006040516020015260405193845260ff90921660208085019190915260408085019290925260608401929092526080909201915160208103908084039060008661646e5a03f1151561083157600080fd5b505060206040510351600160a060020a03161461084d57600080fd5b66b1a2bc2ec500008311156108675766b1a2bc2ec5000092505b600160a060020a03808b166000908152600260209081526040808320938c16835292905220548990101561089a57600080fd5b600160a060020a03808b166000908152600260209081526040808320938c16835292905220546108ca908a610d2e565b600160a060020a038b811660009081526002602090815260408083208d85168452909152808220939093556006549091168152205461092590670de0b6b3a7640000610916868d610dcf565b81151561091f57fe5b04610f61565b600160a060020a03808c16600090815260026020908152604080832060065490941683529290522055670de0b6b3a76400006109638482038b610dcf565b81151561096c57fe5b049850600160a060020a038a1615156109b557600160a060020a03881689156108fc028a604051600060405180830381858888f1935050505015156109b057600080fd5b610a38565b89600160a060020a031663a9059cbb898b60006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b1515610a1257600080fd5b6102c65a03f11515610a2357600080fd5b505050604051805190501515610a3857600080fd5b5b600160a060020a038089166000818152600460209081526040808320439055938e1682526002815283822092825291909152819020547ff341246adaac6f497bc2a656f546ab9e182111d630394f0c57c710a59a2cb567918c918b918d919051600160a060020a0394851681529290931660208301526040808301919091526060820192909252608001905180910390a15b5b5098975050505050505050565b60046020526000908152604090205481565b600160a060020a0380831660009081526002602090815260408083203390941683529290522054610b1c9082610f61565b600160a060020a0380841660008181526002602090815260408083203395861684528252808320959095556004905283812043905590926323b872dd92913091869190516020015260405160e060020a63ffffffff8616028152600160a060020a0393841660048201529190921660248201526044810191909152606401602060405180830381600087803b1515610bb357600080fd5b6102c65a03f11515610bc457600080fd5b505050604051805190501515610bd957600080fd5b600160a060020a03808316600090815260026020908152604080832033948516845290915290819020547fdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d79285929091859151600160a060020a0394851681529290931660208301526040808301919091526060820192909252608001905180910390a15b5050565b60096020526000908152604090205460ff1681565b60036020526000908152604090205460ff1681565b600054610ca79033600160a060020a03908116911614610620565b600160a060020a0382166000908152600360205260409020805460ff19168215151790555b5b5050565b600260209081526000928352604080842090915290825290205481565b600654600160a060020a031681565b60016020526000908152604090205481565b600054600160a060020a03165b90565b600054600160a060020a031681565b6000610d3c83831115610620565b508082035b92915050565b60005433600160a060020a03908116911614801590610d7f5750600160a060020a03331660009081526003602052604090205460ff16155b15610d8957600080fd5b600160a060020a038216600090815260016020526040902054811015610dae57600080fd5b600160a060020a03821660009081526001602052604090208190555b5b5050565b6000828202610df3841580610dee5750838583811515610deb57fe5b04145b610620565b8091505b5092915050565b33600160a060020a031660009081527fac33ff75c19e70fe83507db0d683fd3465c996598dc972688b7ace676c89077b6020526040902054610e409034610f61565b33600160a060020a03811660008181527fac33ff75c19e70fe83507db0d683fd3465c996598dc972688b7ace676c89077b60208181526040808420968755600482528084204390559383525292547fdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d793929134919051600160a060020a0394851681529290931660208301526040808301919091526060820192909252608001905180910390a15b565b60086020526000908152604090205460ff1681565b6000805433600160a060020a03908116911614801590610f385750600160a060020a03331660009081526003602052604090205460ff16155b15610f4257600080fd5b620f4240821115610f5257600080fd5b50600781905560015b5b919050565b6000828201610df3848210801590610dee5750838210155b610620565b8091505b5092915050565b600080548190819033600160a060020a03908116911614801590610fc65750600160a060020a03331660009081526003602052604090205460ff16155b15610fd057600080fd5b8660035b6020020151600160008860025b6020020151600160a060020a0316600160a060020a0316815260200190815260200160002054111561101257600080fd5b308660005b60200201518860005b60200201518860015b60200201518a60015b60200201518b60025b60200201518c60035b60200201518c60025b60200201516040516c01000000000000000000000000600160a060020a03998a168102825297891688026014820152602881019690965293871686026048860152605c850192909252607c840152609c8301529092160260bc82015260d00160405190819003902091508560025b6020020151600160a060020a03166001836040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c016040519081900390208760005b60200201518760005b60200201518860015b60200201516040516000815260200160405260006040516020015260405193845260ff90921660208085019190915260408085019290925260608401929092526080909201915160208103908084039060008661646e5a03f1151561118057600080fd5b505060206040510351600160a060020a03161461119c57600080fd5b818760045b60200201518760035b60200201518960055b60200201516040519384526020840192909252600160a060020a03166c010000000000000000000000000260408084019190915260548301919091526074909101905190819003902090508560035b6020020151600160a060020a03166001826040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c016040519081900390208760015b60200201518760025b60200201518860035b60200201516040516000815260200160405260006040516020015260405193845260ff90921660208085019190915260408085019290925260608401929092526080909201915160208103908084039060008661646e5a03f115156112c757600080fd5b505060206040510351600160a060020a0316146112e357600080fd5b60008181526008602052604090205460ff16156112ff57600080fd5b6000818152600860205260409020805460ff1916600117905567016345785d8a00008760065b602002015111156113435767016345785d8a00008760065b60200201525b67016345785d8a00008760075b6020020151111561136e5767016345785d8a00008760075b60200201525b8660005b6020020151600083815260056020526040902054611398908960045b6020020151610f61565b11156113a357600080fd5b8660045b60200201516002600088815b6020020151600160a060020a0316815260208101919091526040016000908120908860035b6020020151600160a060020a0316600160a060020a0316815260200190815260200160002054101561140957600080fd5b8660005b602002015161142c8860015b60200201518960045b6020020151610dcf565b81151561143557fe5b04600260008860015b6020020151600160a060020a0316815260208101919091526040016000908120908860025b6020020151600160a060020a0316600160a060020a0316815260200190815260200160002054101561149457600080fd5b6114f06002600088815b6020020151600160a060020a0316815260208101919091526040016000908120908860035b6020020151600160a060020a031681526020810191909152604001600020548860045b6020020151610d2e565b6002600088815b6020020151600160a060020a0316815260208101919091526040016000908120908860035b6020020151600160a060020a0316815260208101919091526040016000908120919091556115ca9060029088815b6020020151600160a060020a0316815260208101919091526040016000908120908860025b6020020151600160a060020a03168152602081019190915260400160002054670de0b6b3a76400006109168a60045b60200201518b60065b6020020151670de0b6b3a764000003610dcf565b81151561091f57fe5b04610f61565b6002600088815b6020020151600160a060020a0316815260208101919091526040016000908120908860025b6020020151600160a060020a03168152602081019190915260400160009081209190915561168c9060029088815b6020020151600160a060020a0390811682526020808301939093526040918201600090812060065490921681529252902054670de0b6b3a76400006109168a60045b60200201518b6006611422565b6020020151610dcf565b81151561091f57fe5b04610f61565b6002600088815b6020020151600160a060020a039081168252602080830193909352604091820160009081206006549092168152925281209190915561174f906002908860015b6020020151600160a060020a0316815260208101919091526040016000908120908860025b6020020151600160a060020a0316815260208101919091526040016000908120549089905b60200201516117408a60015b60200201518b6004611422565b6020020151610dcf565b81151561174957fe5b04610d2e565b600260008860015b6020020151600160a060020a0316815260208101919091526040016000908120908860025b6020020151600160a060020a03168152602081019190915260400160009081209190915561185a906002908860015b6020020151600160a060020a0316815260208101919091526040016000908120908860035b6020020151600160a060020a03168152602081019190915260400160009081205490670de0b6b3a7640000908a905b602002015161184161182f8c60075b6020020151670de0b6b3a7640000038d6001611422565b6020020151610dcf565b8c6004611422565b6020020151610dcf565b81151561184a57fe5b0481151561091f57fe5b04610f61565b600260008860015b6020020151600160a060020a0316815260208101919091526040016000908120908860035b6020020151600160a060020a031681526020810191909152604001600090812091909155611947906002908860015b6020020151600160a060020a039081168252602080830193909352604091820160009081206006549092168152925281205490670de0b6b3a7640000908a905b602002015161184161182f8c60075b60200201518d6001611422565b6020020151610dcf565b8c6004611422565b6020020151610dcf565b81151561184a57fe5b0481151561091f57fe5b04610f61565b600260008860015b6020020151600160a060020a0390811682526020808301939093526040918201600090812060065490921681529083528181209390935584835260059091529020546119a79088600461138e565b6020020151610f61565b60008381526005602052604081209190915543906004908860025b6020020151600160a060020a03168152602081019190915260400160009081209190915543906004908860035b6020020151600160a060020a031681526020810191909152604001600020555b5b5050949350505050565b60075481565b600754600160a060020a033316600090815260046020526040812054909190611a4a904390610d2e565b1015611a5557600080fd5b600160a060020a038084166000908152600260209081526040808320339094168352929052205482901015611a8957600080fd5b600160a060020a0380841660009081526002602090815260408083203390941683529290522054611aba9083610d2e565b600160a060020a03808516600081815260026020908152604080832033909516835293905291909120919091551515611b2357600160a060020a03331682156108fc0283604051600060405180830381858888f193505050501515611b1e57600080fd5b611ba6565b82600160a060020a031663a9059cbb338460006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b1515611b8057600080fd5b6102c65a03f11515611b9157600080fd5b505050604051805190501515611ba657600080fd5b5b600160a060020a03808416600090815260026020908152604080832033948516845290915290819020547ff341246adaac6f497bc2a656f546ab9e182111d630394f0c57c710a59a2cb5679286929091869151600160a060020a0394851681529290931660208301526040808301919091526060820192909252608001905180910390a15b92915050565b60056020526000908152604090205481565b600160a060020a038083166000908152600260209081526040808320938516835292905220545b929150505600a165627a7a7230582011e441ee389dad20321e055f3c597af6c5b1c374e4c13ea473f285fc075e8dbc0029000000000000000000000000034767f3c519f361c5ecf46ebfc08981c629d381

    Constructor Arguments (ABI-encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000034767f3c519f361c5ecf46ebfc08981c629d381

-----Decoded View---------------
Found 1 constructor arguments :
Arg [0] : 000000000000000000000000034767f3c519f361c5ecf46ebfc08981c629d381


   Swarm Source:
bzzr://11e441ee389dad20321e055f3c597af6c5b1c374e4c13ea473f285fc075e8dbc

 

View All
Block Age txn Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "downvote" button for any spammy posts, and the "upvote" for interesting conversations.