Contract Overview |  IDEX_1
Balance: 54,180.727835604951202505 Ether
Ether Value: $10,981,891.72 (@ $202.69/ETH)
Transactions: 4912751 txns
Misc:
Address Watch: Option Not Available
Contract Creator: 0x33daedabab9085bd1a94460a652e7ffff592dfe3at txn 0x24b99bebf8a908be3d09bb8101446350cc7d1bea467b5242352c9c53e85c5283
Token Balance:
 Latest 25 txns From a total of 4912751 Transactions
(+20 PendingTxns)

TxHash Age From To Value [TxFee]
0xc0cd48e7d19b7cc99b3c98c95e8cb09ab13a016e8b04b96ed17b8d11fbf23603(pending)0x672216812f743e9bff670faec13235c1f7934663  IN  0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080 Ether(Pending)
0x8bd28a7c3ac4b1e70403438bb9828b5d5b59f3ee8963bcf2e407cf4c7a867944(pending)0x31502ea8c2a282bd18594253b1529d7013121325  IN  0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080 Ether(Pending)
0xa7198ca3da6c39d58c6ac3f5f009f93599bfc2788a2949a9a7c07c1f606835c8(pending)0xa82e30eecd4c4ded51025efd3b24f06e6b489fad  IN  0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080 Ether(Pending)
0x20dbeb70dc82a1cf39df2a960d1dc2ae6346ca62b1f22d1ad620d1dcef9f135f(pending)0x3d52bd0ab95be036d788cdd752c696653e99c93d  IN  0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080 Ether(Pending)
0x6dcbbdc3cbcfa5a3d0517de8e7cdc542bccf90b59def42cd3506e4f7b5702a50(pending)0x3522bd2df9ea45ffb4187c96aac9655575b99f03  IN  0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080 Ether(Pending)
0x41a3a686c8a040c6803f79ddaa25456b5aff4ac12b3da4c6f7143deee1d4c52c(pending)0x7cf0dc2fd56f3bca103c53e00e9c9117713558f1  IN  0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080 Ether(Pending)
0x8cdec589932b99a93a87877b9f6c8d5bc187966e8855988deebfaf5b5366184b(pending)0x006c8448192412fb70752214cb7ecc174d48f861  IN  0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080 Ether(Pending)
0xc860163a65808c4250d6c0716f641cdd6c318788d9dbcf2b2848ff7d42243b72(pending)0x49065b8c8a610784659e41df69505e724cdad59a  IN  0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080.099 Ether(Pending)
0xe4a0fe98c9cee879bfd0639075d84700888369fb7f7e915a7936aeb0349c069f(pending)0xc6386d4af0e6185951b3ff7608cd081c84e4c76f  IN  0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080 Ether(Pending)
0x13460c81d75684e31ba41fb6bf36ebf102d2eb9ede8b405fc9d44c235bec97c2(pending)0xae3be00da0b273541021765484bc654df7b715c2  IN  0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080 Ether(Pending)
0xeacc79b6f1601094bc529d7e791b1a191e8f4353273bd05008b4e31e3e96fd2d(pending)0xacd855382358501585bb0192c59c7e616b161c87  IN  0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080 Ether(Pending)
0x5a6360b52878bcadd9a795b91a0cc8b2c3e254149c26024c6abb78d0d9255326(pending)0x3d52bd0ab95be036d788cdd752c696653e99c93d  IN  0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080 Ether(Pending)
0x5efcf6408fb4fcc7f31a4c6a8c1f162a48d1ac0d3731afab7760cb5845050ab1(pending)0x77432c714f6d718926a8c31137a7647cc5f0b606  IN  0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080 Ether(Pending)
0x895f5e2894ebfd12620771295889f5ee45f178d26618b2471993a9356a0a311b(pending)0x28f97b2453324be712c9c0ebdf38d210f7f8398f  IN  0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080 Ether(Pending)
0x0528c84d58b0f84077a56176abd3733089b0017a26afc3167297f0c5464185af(pending)0x52be4509e381e2860fc7e170fafe0ee7be534820  IN  0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080 Ether(Pending)
0x55c95035acaf836607e6cba454a9d7709edb148dad7ae24423d692d736bbac11(pending)0xefd4e29da0dcd4bbf474607fd2145251f4d568e8  IN  0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080 Ether(Pending)
0x13ca47b313142b52781a64589f8256a46b25daad9e53f85c7529ba5b34df8515(pending)0xe63623a42ea29076302849c52802fbcb9026d5c0  IN  0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080 Ether(Pending)
0x4f6f1f82c2428e5e463fea9bf119c110bd9428726254d6a03d56aea9075d50e4(pending)0xd38e5c67423bd0173be5e95be8e211df6656435b  IN  0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080 Ether(Pending)
0x8be7eea183beec11c3f4f5f0c960893994de006b409dc88792f2eee3ef304972(pending)0x19ffa0fb3ff9d0264812dd80995ab1b7918beab4  IN  0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080 Ether(Pending)
0xb6598d44bd25898bce83d19bfc10c0f7455e2e1bd7e4be0cbc7e938a6e228a8c(pending)0x10e49c1d7510fb2938ec51d11c1122bfe620a220  IN  0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080.009993356 Ether(Pending)
0x51a6c414b6643ef740f67d7f07a3a2658b6df20734c93c470e39ef7b0e6d88b4 17 secs agoIDEX_2  IN   IDEX_10 Ether0.0035677
0x4b5ab3514861b31c0d52c582ffa0c7f4cc7c4aa079d132b08a5f791f8f11063a 17 secs agoIDEX_2  IN   IDEX_10 Ether0.0035725
0x37994cd40ea7257b37663a7d35a4e1bce417bf9b86cd5fd456050470cd101b59 17 secs agoIDEX_2  IN   IDEX_10 Ether0.001700125
0xdd81d2b3e4717846a604ed19ba72e938e850a5ea788d5d3b655787671595c4e3 17 secs agoIDEX_2  IN   IDEX_10 Ether0.0035725
0x2360ed2a2f0e8736523c0c9d565455dfa90ade3aaa579e136f99af7573f48262 17 secs ago0xed9ab69e3d55945b0615af237d815a9985d3b739  IN   IDEX_10 Ether0.00110075
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 25 Internal Txns, Click Here To View More View All
ParentTxHash Block Age From To Value
0x37994cd40ea7257b37663a7d35a4e1bce417bf9b86cd5fd456050470cd101b596567573 17 secs ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080xdd5187cadf51321b41d640f49b6132c11cf75fa90.883791851807870991 Ether
0xf8370da8bb616dc037bf47f11c1c3f1044d2e6163ba4ce95c5ae4ed9ac0b0c2c65675662 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080xfded54fe11500a6fe983a2f37669e5323ecee40d4.035052036374995 Ether
0x1ec6341bf5aa21af07f917602b24df6d5f1be03c0bd56515d6e6919eed98c9fd65675652 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x3fefb091e5650963f1aa6ed2fc74a07bb2ba04e13.957500000000000001 Ether
0x0b42b7d668d2e7b1c7a5afd31076919998d10cdeffbf35dad66947e85d9d654965675613 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x006c8448192412fb70752214cb7ecc174d48f8610.148506001265142569 Ether
0x0128d7852be2dca0a0b272b5064f55c1e9abbf95207585744d4d6080ad95a7d465675515 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080xcbd039d17f6ada0f2e4df18c75ca0597bb39ccc09.547148590961334548 Ether
0xc48deb626cfa2b39991b0ccab3223a9f1b800b2637fde70b4e5f03dd263e6bc665675515 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x88f81b9769dc8d89814294f6a42977324e34153b0.225131316245147579 Ether
0xc1851984775804637f265dc83a4bffe3c8304ce209d138d5b7357f0b91a00fe165675515 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080xad392084a155cc14642e696e05d2d709f18ff07e0.868432740854299999 Ether
0x9d153a2ee9b1b71191e47bd6ffbba57771be4f8087517ec383070f8bbc3217d465675496 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x8bf1e0e810919b7a3c7debcd15916e39ebc47b0d5.997500000000000004 Ether
0x437a97a227657190ae0d75463052feccc9979679e5fa18ccd27e57cb25b0ac5e65675437 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x0c22882f967444d11d3d0b09c61ddff9076df90f1.9975 Ether
0xfab5a52a2382d6e81d062fae49fe1f9cee1f704bce880bc6b6180c9f6cd748da65675369 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080xf8fce84bf7549da430d3f4e0c0ea3e7a9745ba4f15.9975 Ether
0x0dafcccc29bc93522e6ee7da4871afae9789cb5720cd94082b639d42d6900c34656752611 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080xcbd039d17f6ada0f2e4df18c75ca0597bb39ccc016.240920933893070379 Ether
0xf739bdab3348f68d5a4820f355577c94d07a8d1e4e3a20ab41ee3d578f8bfa71656752412 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x4c52fae764214697d274a4e88653b95bd820b74a1.536505976000000001 Ether
0x37192803ae44869686b3d02bd23a5c724a6122846fe2c90a489f3cad7b9ebc0e656752412 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080xaf5424f027eb84bd952a5c60773ec1fb5801086b3.855684367399177601 Ether
0xe509bd1cd14a37a9b6a539b6714b9a68f5fca5285e2c7bc5837909e15991855b656751713 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x30e14ab219efb26a893e6ab2381be3bbba814aef2.389266945779154423 Ether
0x2a08670cdaf7b69fd36fa79c85d626a7098315be204ce3ac3ad4fe6d7b7c5007656751713 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080xa3190d96201de0a5dc5734ce56e855c09c760ff20.572147864602868982 Ether
0x17e8a61cb6193208c3b994a7217a51557d051d523a085ae3b334bb9207855038656751115 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080xa6b9fbb5cfb5a52e962383e2693e707fd8788a940.294 Ether
0x74775a9dc808e9a7ebf5866cf490612ba17bd66d9fdeb3473fbdc8efe912e7b2656750715 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080xe6c8d315501662c0ae443c09804cf06227f8610c3.69716550525350273 Ether
0x8bde6a86a9c44d3e2e1523d53bf2b7e3e06a497ceb8b63f36cc7d3d0a19fd6de656750715 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080xefaef3a9b2bc9b1464c1f85715b6915de4ec659d13.378821953225738083 Ether
0x68fdaf464207fd981e193e02693e6b792a6cdb97f4e031b9da299f3381b9069f656749718 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x738175db2c999581f29163e6d4d3516ad4af88340.123567215273687214 Ether
0x1e0f3e5a6fa91ac64c892b7339f922cec6f9b0ec3c9935cb0911f7e4e234fd80656749219 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080xd81161b24c4e1cf0649f5fa047b261039d4477de0.451240383871563874 Ether
0x2e2dd032a826e7a214296b25ec054103fd9b2d0abfce210a3c8075c5245566f3656749119 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x68ca0be9b87dae331e781ca4913b573d930083720.84735 Ether
0x1bf10ec67b315354413565740977498218f4c05b71a57323bd89df4323f6f79a656748720 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080xe6c8d315501662c0ae443c09804cf06227f8610c10.097500000000000005 Ether
0xb4d0ecb3f93104bbb3cad72858bf89f718732e18bbe418b0214444b19d77b0bc656748421 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x13056f737690ac49740fede181ed7a50358bf32d3.130119988012120287 Ether
0x6a56949413e205aae9e64281fdb235e26345cb8412279d24c4e03d6aba430b77656748421 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x04c843c465106d460e067ebbf9f7b8f5aee461c00.220497148850104023 Ether
0xd7352839738208ce737f5fa4bbc69686bcefb1ac8dc663c6163f3d9142169f52656747023 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080xbbded21989f2e98174844834df6a883bfafbe9210.4365 Ether
[ Download CSV Export  ] 
Warning: The Compiled Contract might be susceptible to ExpExponentCleanup (medium/high-severity), NestedArrayFunctionCallDecoder (medium-severity), ZeroFunctionSelector (very low-severity) SolidityCompiler Bugs.

Contract Source Code Verified (Exact Match)
Contract Name: Exchange
Compiler Text: 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

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


   Swarm Source:
bzzr://11e441ee389dad20321e055f3c597af6c5b1c374e4c13ea473f285fc075e8dbc

 

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