Contract 0x2a0c0dbecc7e4d658f48e01e3fa353f44050c208

Dex  

 

Contract Overview

IDEX_1
Balance:
47,585.785715246877163168 Ether

EtherValue:
$7,089,806.21 (@ $148.99/ETH)

Token:
TxHash Block Age From To Value [TxFee]
0x7c574988c0a16f1379b356f8d25120c6ae2117770f688f53a234967c18ff208b(pending)2 hrs 1 min ago0xbe5cd185fc72b9c1ac17d6f2612747473e9c3e33 IN 0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080 Ether(Pending)
0xa7198ca3da6c39d58c6ac3f5f009f93599bfc2788a2949a9a7c07c1f606835c8(pending)17 hrs 15 mins ago0xa82e30eecd4c4ded51025efd3b24f06e6b489fad IN 0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080 Ether(Pending)
0x7847f189cfe7fcfccfa157d8e45891f28637128754fe17177bf01045db256361(pending)23 hrs 16 mins ago0xcab2a313e1b494e0823de723abf13c91a3f73229 IN 0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080.002 Ether(Pending)
0xeacc79b6f1601094bc529d7e791b1a191e8f4353273bd05008b4e31e3e96fd2d(pending)23 hrs 18 mins ago0xacd855382358501585bb0192c59c7e616b161c87 IN 0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080 Ether(Pending)
0xd52e40599c71e28b1be53ae856b3fa4172acabc16747aa67237f27d6ab73cb2f(pending)23 hrs 31 mins ago0xb9076539872bcba14dfbdfb0a2ef629a57d8ad67 IN 0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080 Ether(Pending)
0x9cb6e0432ac350cb658592bf66c0f3ca42ff079aa35e32117ac679dc79679cab(pending)23 hrs 31 mins ago0x6f54bbcec0db2eb61d99103d960a949c5750e0a2 IN 0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080 Ether(Pending)
0x2def61cf482c45090fe932c5e4dcefdbbf570b206ff6258439cd5923a52608b2(pending)23 hrs 31 mins ago0x838d4eba84b2ac0efd24d2a35cb942293938b0ad IN 0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080 Ether(Pending)
0xfe5c70fbb2b9e19d264e1f7e716512c156b3e051855493eb72a6f5403f42ab38(pending)23 hrs 31 mins ago0x78aa0fbe42ee56acc4eda02ddd47c901a37fc7db IN 0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080 Ether(Pending)
0x62735a8ebe916b89c0d94cd3875b2ce61ff0e3de8c0e72d5b2019bf2799b9c6f(pending)23 hrs 31 mins ago0x35612dc44808817bc9194d59d9e714fd0d31d33e IN 0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080 Ether(Pending)
0x5430e1dcd816a3c6719253138bd33957a0689a6c8c4cfdd67df70e30cc1b4b80(pending)23 hrs 31 mins ago0xcae88b692027e2ebe0ad0e49b1b15d2748c105b6 IN 0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080 Ether(Pending)
0x75bb86e8a4bb58c0aa5cfcad73188a106ef26f7129b09954c80e9cd17a20b9a7(pending)23 hrs 31 mins ago0x71ab5e64ce1cf1bee274de29f71005f8a54d77ff IN 0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080 Ether(Pending)
0xfcecc7c44ec5dcfcc80b0bf5f19a97e18ce9c94e06dcd41683dcf1e80d9521ed(pending)23 hrs 31 mins ago0x79f7e5286b87f090a678a334fdd5bbd439733eaa IN 0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080 Ether(Pending)
0xc72266d84fb62ed34348fdf5b003d60ea579843528b009706a5d5b91f811023a(pending)3 days 13 hrs ago0xe1bed7ac2c9d58bb16e65d16ddfa52f182e08558 IN 0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080.15 Ether(Pending)
0xd2d4b06c115021381eb6cfab6c6879b394819db50ea22c7aff543a36a104da1372553991 min ago0x94cd9196aa430161649d264d4c3375ab7e02074d IN  IDEX_10.653636145 Ether0.000173625
0xac252e03d6555f3dd7b76bc30754af58227f49845eb34d9be2f803e517627adb72553962 mins ago0x1b7ac388f128f547e9868f16404af2e5dcd506d1 IN  IDEX_10 Ether0.000207795
0x953807210fd8b8fce299158c59748ef301e0b0a9f1579189e2fce72d6baee3f372553943 mins ago0x9d7341490217af698b0b21545b4fcda75a2f549c IN  IDEX_10 Ether0.000300811
0x6abd44e50cb92497dfa3e752a07e111f5d5d341adecdf3c6f1bf54e9081ce5fa72553836 mins ago0x1b7ac388f128f547e9868f16404af2e5dcd506d1 IN  IDEX_10 Ether0.000415135
0x1505e0e9c11a30fb983c56a29bad6293a1cf4e349c97a6d727e5c6fa6a51d45172553816 mins ago0xf8d868bfab71131f7dc0c6efca93b6e639626af6 IN  IDEX_15.5 Ether0.00020835
0x04b4e467aff9cc4e402f16c6ac1bc86cbd94c04882fe0af505a806e021066ed072553758 mins ago0x93d2571f5aba60d2b0746a57d597458cb92391b9 IN  IDEX_12.88 Ether0.00020835
0x27ec4f3ed619fb1f16a3db6ac811d290a4c8b4957e63ec88899efb6383613eef72553758 mins ago0x99f97a87073fb21d6e83442143d3ebf572a5f418 IN  IDEX_11.52 Ether0.000729225
0xc3e39c062d009a3f584c4b863b0a2b3ff8857b8d4c23733785f089b8b10dc1ec72553719 mins ago0x33848a5e907aa4e8e0a24817be3831dde271107a IN  IDEX_12.941106705459999 Ether0.000173625
0x59fd4bce30bd49aaf517608822cda3080fa42cb9e7612c1815f672340d31662272553719 mins ago0x0cd47d0fef5d5cdb01637b0f8132adf69c1167a3 IN  IDEX_10.12 Ether0.00020835
0x617ff861ec7cf2347b2a917789f182b7d9686f8f8d3bc41a982a73595f66c04e72553719 mins ago0xe085bea1eb35c2c3c9431e7214dee8eb88d75c31 IN  IDEX_10.492051353077584 Ether0.000243075
0x815ca9010260367cb3b6f025f38fc0f7c134bd0ba0c0ab7527a5d0fdf72f2a7172553719 mins ago0x11b6b351535e7b846d8300a7e0bf2e9cbeb47dc3 IN  IDEX_10 Ether0.000343944
0x1905971819e787fc167b86af2ee36c89a2ce92a3c70b3316dd41340bdcc2e47a725536910 mins agoIDEX_2 IN  IDEX_10 Ether0.000857784
[ Download CSV Export 

Latest 25 Internal Transaction, Click here to view more Internal Transactions as a result of Contract Execution

Parent TxHash Block Age From To Value
0x2c828086906081d08526bc31f6beaa88a59cb1c078030e54b505454b6967fd5f725536113 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080xd684b50e824658c313bc5ebf5b73bc960c6322f12.933334492049080002 Ether
0xbf5a1d6295f939c2f95a20f465b069294ab7bb3de36a449d3b592e955f937b2a725535414 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x2c674f3822c78d3b58b93869add8fd50e47953b70.8793 Ether
0x2220fb9c7113165be499e7d745e91f107c61f646b906cccada8dd06543e0535a725535115 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080xe625f8e9549c356a101898e000b19c106e76e6000.120656759686859781 Ether
0x3d8ddfd54090bca86b66b234537f9171da6c5dcc2a4c05925c6d5e20c3524760725534616 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080xb4bf0620dad161f24e8366ccf96bd22dd217d6b62.746467073457350274 Ether
0x56d37144927480b51a9d8142bdfd0ead92542f7edcf484352150aa41f70d61e7725534616 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080xd67e62cd8e603c007455afdf436dbda24b8bb7724.064019839299204284 Ether
0xcf037ac5863a55b12bcdcc14ad4ea2ecc2195cf300a4aa53fe519e277fec18cd725534118 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x59fa28c118d94f4d0e315c0eecc76924b38e85641.247089966961212875 Ether
0xdcef4d950c7e60cc64316270b276faf3d5531b4a3cd436b561104488a63078a3725530932 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x0ec0bc329067f580ece78b8c0a3d1664764c6b3e3.847574415295150085 Ether
0xa6138912055d9cea6c99dc9a7f7bbea6cea7870cdc9b797760ac40ba3f0c18ff725529936 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x05bb2c35cb56e149c310c5c1447d382eeda3a80d1.999300000000000002 Ether
0x3ae3cb86e85645e1538a8a51d1ceea9a050ee3c7f40c59e564e23349bd906b3d725528938 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x60b19991ead62ae6d616c1843962760b68f7ecf50.510616122919559952 Ether
0xe44c4927ceafd3b0c49117ebdde4293f8ec6dc8ecfe0f48e6c685f1718240628725528938 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x9cb56cf24d6e3ab79bcdba8d70ddbaf3d2f12ccf0.1993 Ether
0x7fe1e637c12cafdd5d01d80db96cd9e9ae75c7307b1c49c0aa6d2e6f0a0a1bdb725528540 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x002323024ccd6b0f191c7223fc2190870c6c92256.451041815612758062 Ether
0x27809804ea17dbb98a4df8685efd7dff96148cab04adc2da5ecab5578386c075725528540 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x9cb56cf24d6e3ab79bcdba8d70ddbaf3d2f12ccf0.19937 Ether
0x3067aa8fedf92ad7107f55925cbcfb3f980d246508b8aafb2e3faba29c75f649725527545 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x16ccc8790e2b1d8c580540ebfe61b7707b1893a119.88372293000000001 Ether
0xa99867530912492c1e376eb7d096b7f2430e61c770e2f8aa043585bb4635b634725524755 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x13e009e182bc7ee1f64fe5ac09da2db33c02e3be2.680142405595653875 Ether
0xeabcd3a509cf45c81ddbc40a28183c12260259bb31a2a25f34fcd8bd5e734960725524556 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x6f72d9d38c670ba5176542e12e8699c4bef2a72240.422752052999807235 Ether
0x53eacb29c55b1cd72d37a46dc9a7db8e57238aab0d6e8d78de37869cba7d5d83725524058 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080xa881e7264cfa774545ca0d805ec83e2725a94b221.371866859397548103 Ether
0xefba25bd6dda9eb7ede09abf3a7c9f034440458ce4bc06cd682318132e1e1dd772552361 hr ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080xba7c5d7496a7246f5abfb5938ef540fc6986d18a0.49937 Ether
0x710421a41d48d65d46589dcb3a6cf96ba62c0542f8222c1def7f49652c11c64272552361 hr ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x241545a2e94a9890917e88c3ee4c0b3fac0d27f30.18984125 Ether
0x093adc52822975330556b759ef03b938fa403bbc2622cde0d725520fae73b33872552131 hr 10 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x5028b64c6915d316160dbc4b3eccff007c1ca2c00.345554 Ether
0x8c2efe7af32798e60a232677802e5d5f525542098fb7e5b700aa18ffa83a8e7672552111 hr 11 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x4c39ada0340c1eb3cee343f44819323dd29081a90.83178 Ether
0x3b8275d7c28be2eb2f44072615e61c9c150677b5afaacf2a382015a5c36e598072552041 hr 13 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080xf296a42cdcb35ade8054c545f58c5d290c016dd80.060049269653999264 Ether
0xf35e68e3cfaf05bd0ffb38f160e46d73664c589598bc24e2a3c908f52e4ea3c872551971 hr 15 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080xb78208606bbb64daf61a119f4d2f9c72b56749770.862903930265946735 Ether
0x4cc41ad109d0f43af13a8c931008e5aea4b99dd510e15df2c7a4836d4d45e08a72551851 hr 19 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x79b7dfeb73722f6b45fc07fff6fee902afc045963.845126102134958864 Ether
0xa48817a0c520728ff46b01a1e69b414ced3135b298f4e2ff9c0d8f223e63338572551851 hr 19 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080xa1dc29270c60dd37d64643d20151b7ee1806b7760.255259399700363215 Ether
0x17f66de6d896797366fec17389dba79db8687a171b915829822396acdd0cc1e172551691 hr 23 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080xa881e7264cfa774545ca0d805ec83e2725a94b220.942148777171522945 Ether
[ Download CSV Export 
Warning: The compiled contract might be susceptible to ExpExponentCleanup (medium/high-severity), NestedArrayFunctionCallDecoder (medium-severity), 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 (Optimizer):  200


Contract Source Code
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
6060604052341561000f57600080fd5b604051602080611d0c833981016040528080519150505b60008054600160a060020a03338116600160a060020a0319928316179092556006805492841692909116919091179055620186a06007555b505b611c9d8061006f6000396000f3006060604052361561012d5763ffffffff60e060020a6000350416630674763c811461014057806313af40351461015a5780632295115b1461017b578063254dcfe2146101ca578063338b5dea146101fb5780633823d66c1461021f578063429b62e5146102495780634b0bddd21461027c578063508493bc146102a257806365e17c9d146102d957806383dbb27b14610308578063893d20e8146103395780638da5cb5b14610368578063a293d1e814610397578063b12de559146103c2578063d05c78da146103e6578063d0e30db014610411578063d58133231461041b578063dd93c74a14610445578063e6cb90131461046f578063ef3435881461049a578063f31174ee14610566578063f3fef3a31461058b578063f7213db6146105c1578063f7888aec146105e9575b341561013857600080fd5b5b600080fd5b005b341561014b57600080fd5b61013e6004351515610620565b005b341561016557600080fd5b61013e600160a060020a0360043516610630565b005b341561018657600080fd5b6101b6600160a060020a03600435811690602435906044351660643560ff6084351660a43560c43560e4356106b4565b604051901515815260200160405180910390f35b34156101d557600080fd5b6101e9600160a060020a0360043516610ad9565b60405190815260200160405180910390f35b341561020657600080fd5b61013e600160a060020a0360043516602435610aeb565b005b341561022a57600080fd5b6101b6600435610c62565b604051901515815260200160405180910390f35b341561025457600080fd5b6101b6600160a060020a0360043516610c77565b604051901515815260200160405180910390f35b341561028757600080fd5b61013e600160a060020a03600435166024351515610c8c565b005b34156102ad57600080fd5b6101e9600160a060020a0360043581169060243516610cd1565b60405190815260200160405180910390f35b34156102e457600080fd5b6102ec610cee565b604051600160a060020a03909116815260200160405180910390f35b341561031357600080fd5b6101e9600160a060020a0360043516610cfd565b60405190815260200160405180910390f35b341561034457600080fd5b6102ec610d0f565b604051600160a060020a03909116815260200160405180910390f35b341561037357600080fd5b6102ec610d1f565b604051600160a060020a03909116815260200160405180910390f35b34156103a257600080fd5b6101e9600435602435610d2e565b60405190815260200160405180910390f35b34156103cd57600080fd5b61013e600160a060020a0360043516602435610d47565b005b34156103f157600080fd5b6101e9600435602435610dcf565b60405190815260200160405180910390f35b61013e610dfe565b005b341561042657600080fd5b6101b6600435610eea565b604051901515815260200160405180910390f35b341561045057600080fd5b6101b6600435610eff565b604051901515815260200160405180910390f35b341561047a57600080fd5b6101e9600435602435610f61565b60405190815260200160405180910390f35b34156104a557600080fd5b6101b6600461010481600861010060405190810160405291908282610100808284378201915050505050919080608001906004806020026040519081016040529190828260808082843782019150505050509190806040019060028060200260405190810160405280929190826002602002808284378201915050505050919080608001906004806020026040519081016040529190828260808082843750939550610f89945050505050565b604051901515815260200160405180910390f35b341561057157600080fd5b6101e9611a1a565b60405190815260200160405180910390f35b341561059657600080fd5b6101b6600160a060020a0360043516602435611a20565b604051901515815260200160405180910390f35b34156105cc57600080fd5b6101e9600435611c32565b60405190815260200160405180910390f35b34156105f457600080fd5b6101e9600160a060020a0360043581169060243516611c44565b60405190815260200160405180910390f35b80151561062c57600080fd5b5b50565b60005461064b9033600160a060020a03908116911614610620565b600054600160a060020a0380831691167fcbf985117192c8f614a58aaf97226bb80a754772f5f6edf06f87c675f2e6c66360405160405180910390a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b60008054819033600160a060020a039081169116148015906106ef5750600160a060020a03331660009081526003602052604090205460ff16155b156106f957600080fd5b308a8a8a8a6040516c01000000000000000000000000600160a060020a039687168102825294861685026014820152602881019390935293169091026048820152605c810191909152607c0160405190819003902060008181526009602052604090205490915060ff161561076d57600080fd5b60008181526009602052604090819020805460ff19166001908117909155600160a060020a038a16918390517f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0160405180910390208888886040516000815260200160405260006040516020015260405193845260ff90921660208085019190915260408085019290925260608401929092526080909201915160208103908084039060008661646e5a03f1151561083157600080fd5b505060206040510351600160a060020a03161461084d57600080fd5b66b1a2bc2ec500008311156108675766b1a2bc2ec5000092505b600160a060020a03808b166000908152600260209081526040808320938c16835292905220548990101561089a57600080fd5b600160a060020a03808b166000908152600260209081526040808320938c16835292905220546108ca908a610d2e565b600160a060020a038b811660009081526002602090815260408083208d85168452909152808220939093556006549091168152205461092590670de0b6b3a7640000610916868d610dcf565b81151561091f57fe5b04610f61565b600160a060020a03808c16600090815260026020908152604080832060065490941683529290522055670de0b6b3a76400006109638482038b610dcf565b81151561096c57fe5b049850600160a060020a038a1615156109b557600160a060020a03881689156108fc028a604051600060405180830381858888f1935050505015156109b057600080fd5b610a38565b89600160a060020a031663a9059cbb898b60006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b1515610a1257600080fd5b6102c65a03f11515610a2357600080fd5b505050604051805190501515610a3857600080fd5b5b600160a060020a038089166000818152600460209081526040808320439055938e1682526002815283822092825291909152819020547ff341246adaac6f497bc2a656f546ab9e182111d630394f0c57c710a59a2cb567918c918b918d919051600160a060020a0394851681529290931660208301526040808301919091526060820192909252608001905180910390a15b5b5098975050505050505050565b60046020526000908152604090205481565b600160a060020a0380831660009081526002602090815260408083203390941683529290522054610b1c9082610f61565b600160a060020a0380841660008181526002602090815260408083203395861684528252808320959095556004905283812043905590926323b872dd92913091869190516020015260405160e060020a63ffffffff8616028152600160a060020a0393841660048201529190921660248201526044810191909152606401602060405180830381600087803b1515610bb357600080fd5b6102c65a03f11515610bc457600080fd5b505050604051805190501515610bd957600080fd5b600160a060020a03808316600090815260026020908152604080832033948516845290915290819020547fdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d79285929091859151600160a060020a0394851681529290931660208301526040808301919091526060820192909252608001905180910390a15b5050565b60096020526000908152604090205460ff1681565b60036020526000908152604090205460ff1681565b600054610ca79033600160a060020a03908116911614610620565b600160a060020a0382166000908152600360205260409020805460ff19168215151790555b5b5050565b600260209081526000928352604080842090915290825290205481565b600654600160a060020a031681565b60016020526000908152604090205481565b600054600160a060020a03165b90565b600054600160a060020a031681565b6000610d3c83831115610620565b508082035b92915050565b60005433600160a060020a03908116911614801590610d7f5750600160a060020a03331660009081526003602052604090205460ff16155b15610d8957600080fd5b600160a060020a038216600090815260016020526040902054811015610dae57600080fd5b600160a060020a03821660009081526001602052604090208190555b5b5050565b6000828202610df3841580610dee5750838583811515610deb57fe5b04145b610620565b8091505b5092915050565b33600160a060020a031660009081527fac33ff75c19e70fe83507db0d683fd3465c996598dc972688b7ace676c89077b6020526040902054610e409034610f61565b33600160a060020a03811660008181527fac33ff75c19e70fe83507db0d683fd3465c996598dc972688b7ace676c89077b60208181526040808420968755600482528084204390559383525292547fdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d793929134919051600160a060020a0394851681529290931660208301526040808301919091526060820192909252608001905180910390a15b565b60086020526000908152604090205460ff1681565b6000805433600160a060020a03908116911614801590610f385750600160a060020a03331660009081526003602052604090205460ff16155b15610f4257600080fd5b620f4240821115610f5257600080fd5b50600781905560015b5b919050565b6000828201610df3848210801590610dee5750838210155b610620565b8091505b5092915050565b600080548190819033600160a060020a03908116911614801590610fc65750600160a060020a03331660009081526003602052604090205460ff16155b15610fd057600080fd5b8660035b6020020151600160008860025b6020020151600160a060020a0316600160a060020a0316815260200190815260200160002054111561101257600080fd5b308660005b60200201518860005b60200201518860015b60200201518a60015b60200201518b60025b60200201518c60035b60200201518c60025b60200201516040516c01000000000000000000000000600160a060020a03998a168102825297891688026014820152602881019690965293871686026048860152605c850192909252607c840152609c8301529092160260bc82015260d00160405190819003902091508560025b6020020151600160a060020a03166001836040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c016040519081900390208760005b60200201518760005b60200201518860015b60200201516040516000815260200160405260006040516020015260405193845260ff90921660208085019190915260408085019290925260608401929092526080909201915160208103908084039060008661646e5a03f1151561118057600080fd5b505060206040510351600160a060020a03161461119c57600080fd5b818760045b60200201518760035b60200201518960055b60200201516040519384526020840192909252600160a060020a03166c010000000000000000000000000260408084019190915260548301919091526074909101905190819003902090508560035b6020020151600160a060020a03166001826040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c016040519081900390208760015b60200201518760025b60200201518860035b60200201516040516000815260200160405260006040516020015260405193845260ff90921660208085019190915260408085019290925260608401929092526080909201915160208103908084039060008661646e5a03f115156112c757600080fd5b505060206040510351600160a060020a0316146112e357600080fd5b60008181526008602052604090205460ff16156112ff57600080fd5b6000818152600860205260409020805460ff1916600117905567016345785d8a00008760065b602002015111156113435767016345785d8a00008760065b60200201525b67016345785d8a00008760075b6020020151111561136e5767016345785d8a00008760075b60200201525b8660005b6020020151600083815260056020526040902054611398908960045b6020020151610f61565b11156113a357600080fd5b8660045b60200201516002600088815b6020020151600160a060020a0316815260208101919091526040016000908120908860035b6020020151600160a060020a0316600160a060020a0316815260200190815260200160002054101561140957600080fd5b8660005b602002015161142c8860015b60200201518960045b6020020151610dcf565b81151561143557fe5b04600260008860015b6020020151600160a060020a0316815260208101919091526040016000908120908860025b6020020151600160a060020a0316600160a060020a0316815260200190815260200160002054101561149457600080fd5b6114f06002600088815b6020020151600160a060020a0316815260208101919091526040016000908120908860035b6020020151600160a060020a031681526020810191909152604001600020548860045b6020020151610d2e565b6002600088815b6020020151600160a060020a0316815260208101919091526040016000908120908860035b6020020151600160a060020a0316815260208101919091526040016000908120919091556115ca9060029088815b6020020151600160a060020a0316815260208101919091526040016000908120908860025b6020020151600160a060020a03168152602081019190915260400160002054670de0b6b3a76400006109168a60045b60200201518b60065b6020020151670de0b6b3a764000003610dcf565b81151561091f57fe5b04610f61565b6002600088815b6020020151600160a060020a0316815260208101919091526040016000908120908860025b6020020151600160a060020a03168152602081019190915260400160009081209190915561168c9060029088815b6020020151600160a060020a0390811682526020808301939093526040918201600090812060065490921681529252902054670de0b6b3a76400006109168a60045b60200201518b6006611422565b6020020151610dcf565b81151561091f57fe5b04610f61565b6002600088815b6020020151600160a060020a039081168252602080830193909352604091820160009081206006549092168152925281209190915561174f906002908860015b6020020151600160a060020a0316815260208101919091526040016000908120908860025b6020020151600160a060020a0316815260208101919091526040016000908120549089905b60200201516117408a60015b60200201518b6004611422565b6020020151610dcf565b81151561174957fe5b04610d2e565b600260008860015b6020020151600160a060020a0316815260208101919091526040016000908120908860025b6020020151600160a060020a03168152602081019190915260400160009081209190915561185a906002908860015b6020020151600160a060020a0316815260208101919091526040016000908120908860035b6020020151600160a060020a03168152602081019190915260400160009081205490670de0b6b3a7640000908a905b602002015161184161182f8c60075b6020020151670de0b6b3a7640000038d6001611422565b6020020151610dcf565b8c6004611422565b6020020151610dcf565b81151561184a57fe5b0481151561091f57fe5b04610f61565b600260008860015b6020020151600160a060020a0316815260208101919091526040016000908120908860035b6020020151600160a060020a031681526020810191909152604001600090812091909155611947906002908860015b6020020151600160a060020a039081168252602080830193909352604091820160009081206006549092168152925281205490670de0b6b3a7640000908a905b602002015161184161182f8c60075b60200201518d6001611422565b6020020151610dcf565b8c6004611422565b6020020151610dcf565b81151561184a57fe5b0481151561091f57fe5b04610f61565b600260008860015b6020020151600160a060020a0390811682526020808301939093526040918201600090812060065490921681529083528181209390935584835260059091529020546119a79088600461138e565b6020020151610f61565b60008381526005602052604081209190915543906004908860025b6020020151600160a060020a03168152602081019190915260400160009081209190915543906004908860035b6020020151600160a060020a031681526020810191909152604001600020555b5b5050949350505050565b60075481565b600754600160a060020a033316600090815260046020526040812054909190611a4a904390610d2e565b1015611a5557600080fd5b600160a060020a038084166000908152600260209081526040808320339094168352929052205482901015611a8957600080fd5b600160a060020a0380841660009081526002602090815260408083203390941683529290522054611aba9083610d2e565b600160a060020a03808516600081815260026020908152604080832033909516835293905291909120919091551515611b2357600160a060020a03331682156108fc0283604051600060405180830381858888f193505050501515611b1e57600080fd5b611ba6565b82600160a060020a031663a9059cbb338460006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b1515611b8057600080fd5b6102c65a03f11515611b9157600080fd5b505050604051805190501515611ba657600080fd5b5b600160a060020a03808416600090815260026020908152604080832033948516845290915290819020547ff341246adaac6f497bc2a656f546ab9e182111d630394f0c57c710a59a2cb5679286929091869151600160a060020a0394851681529290931660208301526040808301919091526060820192909252608001905180910390a15b92915050565b60056020526000908152604090205481565b600160a060020a038083166000908152600260209081526040808320938516835292905220545b929150505600a165627a7a7230582011e441ee389dad20321e055f3c597af6c5b1c374e4c13ea473f285fc075e8dbc0029000000000000000000000000034767f3c519f361c5ecf46ebfc08981c629d381


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

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000034767f3c519f361c5ecf46ebfc08981c629d381


   Swarm Source:
bzzr://11e441ee389dad20321e055f3c597af6c5b1c374e4c13ea473f285fc075e8dbc
Block Age transaction Difficulty GasUsed Reward
Block Age Uncle Number Difficulty GasUsed Reward
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.