Sponsored Link:  Up to 2% Cryptocurrency Cashback - Reserve your card - Monaco App - www.mona.co
Contract Overview | IDEX_1
ETH Balance: 461.428912001697878069 Ether
ETH USD Value: $201,376.81 (@ $436.42/ETH)
No Of Transactions: 11933 txns
Misc
Address Watch Add To Watch List
Contract Creator 0x33daedabab9085bd1a94460a652e7ffff592dfe3at txn 0x24b99bebf8a908be3d09bb8101446350cc7d1bea467b5242352c9c53e85c5283
Token Tracker
  Latest 25 txns from a total Of 11933 transactions View All

TxHash Age From To Value [TxFee]
0x83eaf56d9515ce471f4d1582e71bd68e707cff146b5ce797941ca93b7389589014 mins ago0x9a92b7feb0c4e7f8b1eb51db084358f4ab9497c9  IN   IDEX_10 Ether0.000171888
0x6d59308c3ee06345f902cfeee57ab075c86923a538a3c9e9f1d228572959b2f624 mins ago0xff6c8b5e626eb2ba2268faac6e7661e1ef13b62c  IN   IDEX_10 Ether0.00011528
0x47529fdb3dffe0793e9c400888432a6c9bd965b38d936415849950b8d16add5140 mins ago0xff6c8b5e626eb2ba2268faac6e7661e1ef13b62c  IN   IDEX_10 Ether0.000230304
0x138e41449f5fea7f675b246a675975f5833a2c0dc7c276f0eb965f66e92f9f9649 mins ago0x77a5e23d39b4ff4bc7cf938e4debc9b668033de5  IN   IDEX_10 Ether0.0000944328
0xd3a8cd908bb696c3fd3edd365939dd45a73cf8201983d3dd4b96ddaaa0dbd8d154 mins ago0xfa1dae839a140afb55b678648a6cad6d247504d8  IN   IDEX_10.12118544 Ether0.0002589
0x1d52db2a75d48a111a59e593b99b3338664dc61e090f8a56d3af83d3f5ca60241 hr 5 mins ago0x48999c247d7f5b29659943e9fce53248875c87cb  IN   IDEX_10 Ether0.0000406878
0xb744a792fc07d4882f12450333e01f782c6dfda0a92c341c76745c78b6b7f7441 hr 5 mins ago0x8819d2476a27b16998084050a8c205c3898e9660  IN   IDEX_10 Ether0.0000549024
0x5260babd603acbbee5acacab098985f5e2704e42d509cb4aef476d5eb73377781 hr 16 mins ago0x877da7ee9156df9e0c636c1bbeb19bccba5bce08  IN   IDEX_10 Ether0.000085356
0xc0507e9e61ef102d67e2373b2489cc8fee9ca8c00903e7f9cc545398aa8941b11 hr 22 mins ago0xaad7ffc90ad3af62d472757dcb78b3a6faf840b9  IN   IDEX_10.0078011 Ether0.0001389
0xaaa5e53a366d19e347cc52ec9313f30def5a13b8696cc7ed56cda14ee78752541 hr 31 mins ago0xaad7ffc90ad3af62d472757dcb78b3a6faf840b9  IN   IDEX_10.0028182 Ether0.0001989
0xb5341eacd00113663eab022e8115c8b3f1e7793065e91a8c016c12ee72bea84f1 hr 34 mins ago0x6f642280fa98c0ddfc6fb6f078b91b89df3914ca  IN   IDEX_10 Ether0.0000406494
0xfc801cc3ba7a7812ae5d5a9ca5b9291ba2bef8f87d66714b45baaf8ef976aa631 hr 34 mins ago0x992ce14aa2f6a56f57f10a6cbc33fea71088a751  IN   IDEX_10 Ether0.0000549408
0xfc03dfccc1d92c7bccd5dacc88ea654f5fc84de031a50a00fc524e8427fad9491 hr 36 mins ago0x4532357aaaa23398e5fdb6a5f6069d2cdfa520df  IN   IDEX_10 Ether0.0000944328
0xfcf8bab32c4dec8625370e93083d83d8b4435ef286d8baad874789076a9ed7f01 hr 39 mins ago0xaad7ffc90ad3af62d472757dcb78b3a6faf840b9  IN   IDEX_10.03218121 Ether0.0002589
0x187cc2e66f72bb0d468885f99a762b0b14ff17e3b956680e8293938a097a77161 hr 40 mins ago0xf6a075c956880c63e6115112e85dc89106fb7d73  IN   IDEX_10 Ether0.0000559008
0x69e77fa7a9e6d6da24c73d8e6e2eba970b2d844da9eef32338a30030332ea5321 hr 48 mins ago0x53ff63db82f03fbe068f3ec08e59db05701bda70  IN   IDEX_10 Ether0.00028788
0xcdb4427560182fada759161a9fe447593172c69a224aedd271b3f709aa23dea52 hrs 15 mins ago0x010c331b7de126cb44c238edb27027ea2c4b6e40  IN   IDEX_10 Ether0.0000548382
0x5792d6a66e56add7d969601b12daf60a2baba8cbcb176a5c5ae40a354f2ba4ea2 hrs 25 mins ago0xceceaa8edc0830c7cec497e33bb3a3c28dd55a32  IN   IDEX_10 Ether0.0000854328
0xa5d5f148244804af1db450ecc5ee973365e8784db561ab52cb77ee364be1f8572 hrs 25 mins ago0x8d0353be69aafcc7649f677f1204561b385540d6  IN   IDEX_10 Ether0.0000496494
0x6759f93ff29a445cde0d9b081c1506ac2fd5cd5cbffca999a6ea46c4884a1a312 hrs 28 mins ago0x95d8068d5507be4ff3930a21e29480d629a940ef  IN   IDEX_10 Ether0.000172536
0xc61f929064c365c3827683b4c2911b29fa5f695161a4d5f79d462b0956a0fd572 hrs 35 mins ago0x9ff7d4ab146c37875db0885df2e048d88e190abc  IN   IDEX_10.11 Ether0.0001389
0xfb174611872a306831ff09f30e91fd3252fee0fc01f071fad21c42aa5f6bab022 hrs 51 mins ago0xbd465466e97eee561f988b0e27e885c76f83b288  IN   IDEX_10 Ether0.0000550086
0x00c4833655657876e05ef01cc46131b289c04339442ef6ab900fcc32715781b23 hrs 3 mins ago0x9f9a953a301bc6ceecb2384d9edd53fa4bcf5d1d  IN   IDEX_10 Ether0.0001034712
0x3a1e182262f1a4613a9c2154bba9f15e63d2b34b06a323c03718a1edb7da855e3 hrs 16 mins ago0x70d037c0d1c66318016041c86eabb99c08bb0d86  IN   IDEX_10 Ether0.0000405726
0x87b1d14bce49e39f264bf6ca2bde29f5fa55c5f343bfae5f8d1fb47ff4de09583 hrs 16 mins ago0xa6ce6213db97cdf3a37201fd5bd961c9725066d8  IN   IDEX_10 Ether0.0000496878
[ 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
0x1d52db2a75d48a111a59e593b99b3338664dc61e090f8a56d3af83d3f5ca602446130031 hr 5 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080xaad7ffc90ad3af62d472757dcb78b3a6faf840b90.0055993 Ether
0xb5341eacd00113663eab022e8115c8b3f1e7793065e91a8c016c12ee72bea84f46128921 hr 34 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080xaad7ffc90ad3af62d472757dcb78b3a6faf840b90.00329121 Ether
0xa5d5f148244804af1db450ecc5ee973365e8784db561ab52cb77ee364be1f85746126702 hrs 25 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x95d8068d5507be4ff3930a21e29480d629a940ef0.19994 Ether
0x3a1e182262f1a4613a9c2154bba9f15e63d2b34b06a323c03718a1edb7da855e46124673 hrs 16 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x9a92b7feb0c4e7f8b1eb51db084358f4ab9497c90.04994 Ether
0x87b1d14bce49e39f264bf6ca2bde29f5fa55c5f343bfae5f8d1fb47ff4de095846124653 hrs 16 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080xcad195e26ba32d8f247c96fa6e1a8f5633766dab1.29994 Ether
0x16d900f36e013b5c5c777729d1bc87ee52d0f5079021bc26b29fef360482b1bf46116166 hrs 44 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x5186fcad00a548b01f5274f686132644e7c6748b4.247969119038075414 Ether
0xba7fadf9c4a38cc13d3917a05f58b3935f14c6c9d2737a507bc76978be950d0346111218 hrs 40 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x9ff7d4ab146c37875db0885df2e048d88e190abc0.12994 Ether
0x54e58f8578456766a69b4e8cca0de75fbb8d223d0967334c46b4ccad25f6e2ba461071310 hrs 8 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x1380246d8b27ab6e82f713a7bb28d0b61841d0680.0091522 Ether
0x02d13027c995ebe93371053e0ba41d7d8a86feac6ab799d58992afcc905ab892461060010 hrs 34 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080xd41c64e73bbc1db3132336232e6296db3a8443190.194700251 Ether
0xbb463b35228a6641832cb399d6de6af03cd92b99ef07f0800f2abd26179c65e7461047411 hrs 3 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080xbdad31246370125d74f16b5ca5ee71ef038912030.36994 Ether
0x1f5c7bb5e8a00366b4981c2081e9b92b80a06cab4fcb1b51fea58b7a807e1231460986013 hrs 20 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x70816a5e4b9cb9a10d9f931c61cd6827c2bf05be0.0635763 Ether
0x288395799d7708f6053a6c6b9f969efa4749bfabe4a8a46c3b1328c9777fbb76460970513 hrs 55 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080xb4536686b439869cbbe9de0248b32c492780abd00.09994 Ether
0xf0243e1bf06ebef2d59c20afcfaed81dc2f90e600f0e16a71f2dc22b6b610468460966114 hrs 5 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x7eb0fd6a30d1ff304b8011a6b13673e1f40dfbbc0.59994 Ether
0xf750b8f61e8304e9f1db8d4567d89576f3eb5d273a78b082a6972662a30d5d71460912016 hrs 11 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x3336c63be5a4e3573eb75b92e29a2ee7bafa0e4b0.104590193028024 Ether
0x4ff0abd8ba60c33d772eb855b9ab8e689972186c81617d38dfd0231b2f1f6526460904116 hrs 28 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x718757e061bf23f09d836ccffa3fe6a56af5a77f0.073095033935187591 Ether
0x4a2065ba92024e13cce23cb10815fe48e03b41e22ceddd7573a60c227b5c53bd460903416 hrs 30 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x918453d249a22b6a8535c81e21f7530cd6ab59f14.99994 Ether
0xc7ce2c993e5caca3e3fd6d3ec610d9a5ddb27d0d3c8e399933357b6d206fbf79460889816 hrs 59 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x036a6ed21b1b544ae8ec708750eb8d6e79f3ccb80.209418 Ether
0x7165b412ff5ff611926a913691e7694a3fa0e4f26c5dcea9cb00334d2d17a424460868617 hrs 46 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080xb4536686b439869cbbe9de0248b32c492780abd00.172867852746717067 Ether
0x58bda37d25d353b3c08f68e4dfa5487d8ca8222570e4f23a3a77ccf223034c52460865317 hrs 55 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x08c0e11be174995e0c39f035f90c30bbc806a5340.99994 Ether
0x7b5c55dc7f7492559d042f804c8632166a5b15e739c2c00d7364d2056f950249460862018 hrs 6 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x9a92b7feb0c4e7f8b1eb51db084358f4ab9497c90.0999400080001 Ether
0xc98e5ae855b79508e652c59fcad785fcc586f6306d5f62e5c373c80fa2ca0ec1460851618 hrs 31 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x6a67938b2c9766ad04d285e741274d91c884e8110.38555075 Ether
0x5fd4e9659defedc9abe7990842df9020fe7c0276413519b57999242a0d5b3581460814319 hrs 56 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x3c6438ddd1bca543953327b2cc6391df60a639820.49994 Ether
0xf6033ee77a339fa6fa1fa1d5ddec4b16a9b05486626150aac269e7403ccb1e64460813419 hrs 58 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x45fa2d7669e24332f17665494b0151a30ea6bed30.998742313024860352 Ether
0x4e384c4113610023e918f9b6b17f6b3db50ab0db6d63b9f70e59b242c8dcb547460787720 hrs 57 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080x918453d249a22b6a8535c81e21f7530cd6ab59f15.799940000000000005 Ether
0x20ce08371b7f91dd902d2d82cc081f1de4eef7768d958f02da6a3628480c4832460784321 hrs 5 mins ago0x2a0c0dbecc7e4d658f48e01e3fa353f44050c2080xa9d5dd9bec70496fc30ed0872f0c09cd37b812510.00375055 Ether
[ Download CSV Export  ] 
Warning: The compiled contract might be susceptible to ZeroFunctionSelector (very low-severity) Solidity compiler bugs.

Contract Source Code Verified
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.