ETH Price: $3,671.77 (+2.40%)

Contract

0x5e9a063dbC650944bDc824bD1c3B3196a5f1F582
 

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw67012852018-11-14 6:01:122208 days ago1542175272IN
0x5e9a063d...6a5f1F582
0 ETH0.000207569
Withdraw Token67012842018-11-14 6:01:062208 days ago1542175266IN
0x5e9a063d...6a5f1F582
0 ETH0.000436339
Trade66899082018-11-12 9:33:522210 days ago1542015232IN
0x5e9a063d...6a5f1F582
0 ETH0.00082789
Trade66898932018-11-12 9:29:542210 days ago1542014994IN
0x5e9a063d...6a5f1F582
0 ETH0.0010096411
Deposit66894942018-11-12 7:49:262210 days ago1542008966IN
0x5e9a063d...6a5f1F582
0.14 ETH0.0004454410
Deposit Token66894922018-11-12 7:48:582210 days ago1542008938IN
0x5e9a063d...6a5f1F582
0 ETH0.0003839310
Withdraw Token66884962018-11-12 3:51:382210 days ago1541994698IN
0x5e9a063d...6a5f1F582
0 ETH0.000307319
Withdraw Token66884692018-11-12 3:46:122210 days ago1541994372IN
0x5e9a063d...6a5f1F582
0 ETH0.0005341111
Withdraw Token66884672018-11-12 3:45:552210 days ago1541994355IN
0x5e9a063d...6a5f1F582
0 ETH0.0006960511
Withdraw Token66884632018-11-12 3:44:382210 days ago1541994278IN
0x5e9a063d...6a5f1F582
0 ETH0.0003654811
Withdraw Token66884612018-11-12 3:44:262210 days ago1541994266IN
0x5e9a063d...6a5f1F582
0 ETH0.0003601111
Withdraw Token66884592018-11-12 3:44:062210 days ago1541994246IN
0x5e9a063d...6a5f1F582
0 ETH0.0008252613
Withdraw66884572018-11-12 3:43:292210 days ago1541994209IN
0x5e9a063d...6a5f1F582
0 ETH0.0003006513
Withdraw66777002018-11-10 9:32:362212 days ago1541842356IN
0x5e9a063d...6a5f1F582
0 ETH0.0004179811
Trade66776912018-11-10 9:30:132212 days ago1541842213IN
0x5e9a063d...6a5f1F582
0 ETH0.0010124611
Trade66706962018-11-09 6:03:102213 days ago1541743390IN
0x5e9a063d...6a5f1F582
0 ETH0.0011767511
Trade66706962018-11-09 6:03:102213 days ago1541743390IN
0x5e9a063d...6a5f1F582
0 ETH0.0011760511
Trade66706892018-11-09 6:00:502213 days ago1541743250IN
0x5e9a063d...6a5f1F582
0 ETH0.0010138711
Trade66706782018-11-09 5:56:332213 days ago1541742993IN
0x5e9a063d...6a5f1F582
0 ETH0.0010138711
Trade66706772018-11-09 5:56:202213 days ago1541742980IN
0x5e9a063d...6a5f1F582
0 ETH0.0010131611
Trade66706762018-11-09 5:56:152213 days ago1541742975IN
0x5e9a063d...6a5f1F582
0 ETH0.0010124611
Trade66706742018-11-09 5:55:542213 days ago1541742954IN
0x5e9a063d...6a5f1F582
0 ETH0.0010131611
Trade66706742018-11-09 5:55:542213 days ago1541742954IN
0x5e9a063d...6a5f1F582
0 ETH0.0010124611
Trade66706712018-11-09 5:55:022213 days ago1541742902IN
0x5e9a063d...6a5f1F582
0 ETH0.0010117511
Trade66706652018-11-09 5:54:032213 days ago1541742843IN
0x5e9a063d...6a5f1F582
0 ETH0.000379610
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
67012852018-11-14 6:01:122208 days ago1542175272
0x5e9a063d...6a5f1F582
0.139782 ETH
66884572018-11-12 3:43:292210 days ago1541994209
0x5e9a063d...6a5f1F582
0.3149801 ETH
66777002018-11-10 9:32:362212 days ago1541842356
0x5e9a063d...6a5f1F582
6.4 ETH
66706652018-11-09 5:54:032213 days ago1541742843
0x5e9a063d...6a5f1F582
0.12035407 ETH
66178102018-10-31 13:35:422222 days ago1540992942
0x5e9a063d...6a5f1F582
0.02 ETH
54854092018-04-22 10:52:592414 days ago1524394379
0x5e9a063d...6a5f1F582
0.056 ETH
53889952018-04-06 4:00:502430 days ago1522987250
0x5e9a063d...6a5f1F582
0.72754383 ETH
53616222018-04-01 15:08:562435 days ago1522595336
0x5e9a063d...6a5f1F582
14 ETH
53616142018-04-01 15:07:152435 days ago1522595235
0x5e9a063d...6a5f1F582
0.78392953 ETH
53615632018-04-01 14:56:262435 days ago1522594586
0x5e9a063d...6a5f1F582
0.03198291 ETH
53615622018-04-01 14:56:192435 days ago1522594579
0x5e9a063d...6a5f1F582
0.08551409 ETH
53612892018-04-01 13:52:432435 days ago1522590763
0x5e9a063d...6a5f1F582
0.72 ETH
53612832018-04-01 13:51:032435 days ago1522590663
0x5e9a063d...6a5f1F582
0.8 ETH
53612772018-04-01 13:49:162435 days ago1522590556
0x5e9a063d...6a5f1F582
0.42557834 ETH
53612602018-04-01 13:44:132435 days ago1522590253
0x5e9a063d...6a5f1F582
0.02589055 ETH
53612512018-04-01 13:42:152435 days ago1522590135
0x5e9a063d...6a5f1F582
4.00457341 ETH
53612462018-04-01 13:40:572435 days ago1522590057
0x5e9a063d...6a5f1F582
0.01791812 ETH
53329662018-03-27 19:58:272439 days ago1522180707
0x5e9a063d...6a5f1F582
7.9 ETH
53329542018-03-27 19:54:362439 days ago1522180476
0x5e9a063d...6a5f1F582
2.4 ETH
53329522018-03-27 19:53:422439 days ago1522180422
0x5e9a063d...6a5f1F582
48 ETH
53051332018-03-23 4:30:462444 days ago1521779446
0x5e9a063d...6a5f1F582
0.01609704 ETH
53026142018-03-22 18:21:492445 days ago1521742909
0x5e9a063d...6a5f1F582
0.08420295 ETH
53026022018-03-22 18:19:282445 days ago1521742768
0x5e9a063d...6a5f1F582
0.03009 ETH
53026002018-03-22 18:19:072445 days ago1521742747
0x5e9a063d...6a5f1F582
350 ETH
52961792018-03-21 16:48:002446 days ago1521650880
0x5e9a063d...6a5f1F582
300 ETH
View All Internal Transactions
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0xE8F4a992...Ce05391c1
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
DecentrEx

Compiler Version
v0.4.19+commit.c4cbbb05

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2018-10-27
*/

pragma solidity ^0.4.19;

contract SafeMath {
    function safeMul(uint a, uint b) internal returns (uint) {
        uint c = a * b;
        assert(a == 0 || c / a == b);
        return c;
    }

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

    function safeAdd(uint a, uint b) internal returns (uint) {
        uint c = a + b;
        assert(c>=a && c>=b);
        return c;
    }

    function assert(bool assertion) internal {
        if (!assertion) throw;
    }
}

contract Token {
    /// @return total amount of tokens
    function totalSupply() constant returns (uint256 supply) {}

    /// @param _owner The address from which the balance will be retrieved
    /// @return The balance
    function balanceOf(address _owner) constant returns (uint256 balance) {}

    /// @notice send `_value` token to `_to` from `msg.sender`
    /// @param _to The address of the recipient
    /// @param _value The amount of token to be transferred
    /// @return Whether the transfer was successful or not
    function transfer(address _to, uint256 _value) returns (bool success) {}

    /// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from`
    /// @param _from The address of the sender
    /// @param _to The address of the recipient
    /// @param _value The amount of token to be transferred
    /// @return Whether the transfer was successful or not
    function transferFrom(address _from, address _to, uint256 _value) returns (bool success) {}

    /// @notice `msg.sender` approves `_addr` to spend `_value` tokens
    /// @param _spender The address of the account able to transfer the tokens
    /// @param _value The amount of wei to be approved for transfer
    /// @return Whether the approval was successful or not
    function approve(address _spender, uint256 _value) returns (bool success) {}

    /// @param _owner The address of the account owning tokens
    /// @param _spender The address of the account able to transfer the tokens
    /// @return Amount of remaining tokens allowed to spent
    function allowance(address _owner, address _spender) constant returns (uint256 remaining) {}

    event Transfer(address indexed _from, address indexed _to, uint256 _value);
    event Approval(address indexed _owner, address indexed _spender, uint256 _value);

    uint public decimals;
    string public name;
}

contract StandardToken is Token {

    function transfer(address _to, uint256 _value) returns (bool success) {
        //Default assumes totalSupply can't be over max (2^256 - 1).
        //If your token leaves out totalSupply and can issue more tokens as time goes on, you need to check if it doesn't wrap.
        //Replace the if with this one instead.
        if (balances[msg.sender] >= _value && balances[_to] + _value > balances[_to]) {
            //if (balances[msg.sender] >= _value && _value > 0) {
            balances[msg.sender] -= _value;
            balances[_to] += _value;
            Transfer(msg.sender, _to, _value);
            return true;
        } else { return false; }
    }

    function transferFrom(address _from, address _to, uint256 _value) returns (bool success) {
        //same as above. Replace this line with the following if you want to protect against wrapping uints.
        if (balances[_from] >= _value && allowed[_from][msg.sender] >= _value && balances[_to] + _value > balances[_to]) {
            //if (balances[_from] >= _value && allowed[_from][msg.sender] >= _value && _value > 0) {
            balances[_to] += _value;
            balances[_from] -= _value;
            allowed[_from][msg.sender] -= _value;
            Transfer(_from, _to, _value);
            return true;
        } else { return false; }
    }

    function balanceOf(address _owner) constant returns (uint256 balance) {
        return balances[_owner];
    }

    function approve(address _spender, uint256 _value) returns (bool success) {
        allowed[msg.sender][_spender] = _value;
        Approval(msg.sender, _spender, _value);
        return true;
    }

    function allowance(address _owner, address _spender) constant returns (uint256 remaining) {
        return allowed[_owner][_spender];
    }

    mapping(address => uint256) balances;

    mapping (address => mapping (address => uint256)) allowed;

    uint256 public totalSupply;
}

contract ReserveToken is StandardToken, SafeMath {
    address public minter;
    function ReserveToken() {
        minter = msg.sender;
    }
    function create(address account, uint amount) {
        if (msg.sender != minter) throw;
        balances[account] = safeAdd(balances[account], amount);
        totalSupply = safeAdd(totalSupply, amount);
    }
    function destroy(address account, uint amount) {
        if (msg.sender != minter) throw;
        if (balances[account] < amount) throw;
        balances[account] = safeSub(balances[account], amount);
        totalSupply = safeSub(totalSupply, amount);
    }
}

contract DecentrEx is SafeMath {
    address public admin; //the admin address
    address public feeAccount; //the account that will receive fees
    uint public feeMake; //percentage times (1 ether)
    uint public feeTake; //percentage times (1 ether)
    mapping (address => mapping (address => uint)) public tokens; //mapping of token addresses to mapping of account balances (token=0 means Ether)
    mapping (address => mapping (bytes32 => bool)) public orders; //mapping of user accounts to mapping of order hashes to booleans (true = submitted by user, equivalent to offchain signature)
    mapping (address => mapping (bytes32 => uint)) public orderFills; //mapping of user accounts to mapping of order hashes to uints (amount of order that has been filled)

    event Order(address tokenGet, uint amountGet, address tokenGive, uint amountGive, uint expires, uint nonce, address user);
    event Cancel(address tokenGet, uint amountGet, address tokenGive, uint amountGive, uint expires, uint nonce, address user, uint8 v, bytes32 r, bytes32 s);
    event Trade(address tokenGet, uint amountGet, address tokenGive, uint amountGive, address get, address give);
    event Deposit(address token, address user, uint amount, uint balance);
    event Withdraw(address token, address user, uint amount, uint balance);

    function DecentrEx(address admin_, address feeAccount_, uint feeMake_, uint feeTake_) {
        admin = admin_;
        feeAccount = feeAccount_;
        feeMake = feeMake_;
        feeTake = feeTake_;
    }

    function() {
        throw;
    }

    function changeAdmin(address admin_) {
        if (msg.sender != admin) throw;
        admin = admin_;
    }

    function changeFeeAccount(address feeAccount_) {
        if (msg.sender != admin) throw;
        feeAccount = feeAccount_;
    }

    function changeFeeMake(uint feeMake_) {
        if (msg.sender != admin) throw;
        if (feeMake_ > feeMake) throw;
        feeMake = feeMake_;
    }

    function changeFeeTake(uint feeTake_) {
        if (msg.sender != admin) throw;
        if (feeTake_ > feeTake) throw;
        feeTake = feeTake_;
    }

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

    function withdraw(uint amount) {
        if (tokens[0][msg.sender] < amount) throw;
        tokens[0][msg.sender] = safeSub(tokens[0][msg.sender], amount);
        if (!msg.sender.call.value(amount)()) throw;
        Withdraw(0, msg.sender, amount, tokens[0][msg.sender]);
    }

    function depositToken(address token, uint amount) {
        //remember to call Token(address).approve(this, amount) or this contract will not be able to do the transfer on your behalf.
        if (token==0) throw;
        if (!Token(token).transferFrom(msg.sender, this, amount)) throw;
        tokens[token][msg.sender] = safeAdd(tokens[token][msg.sender], amount);
        Deposit(token, msg.sender, amount, tokens[token][msg.sender]);
    }

    function withdrawToken(address token, uint amount) {
        if (token==0) throw;
        if (tokens[token][msg.sender] < amount) throw;
        tokens[token][msg.sender] = safeSub(tokens[token][msg.sender], amount);
        if (!Token(token).transfer(msg.sender, amount)) throw;
        Withdraw(token, msg.sender, amount, tokens[token][msg.sender]);
    }

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

    function order(address tokenGet, uint amountGet, address tokenGive, uint amountGive, uint expires, uint nonce) {
        bytes32 hash = sha256(this, tokenGet, amountGet, tokenGive, amountGive, expires, nonce);
        orders[msg.sender][hash] = true;
        Order(tokenGet, amountGet, tokenGive, amountGive, expires, nonce, msg.sender);
    }

    function trade(address tokenGet, uint amountGet, address tokenGive, uint amountGive, uint expires, uint nonce, address user, uint8 v, bytes32 r, bytes32 s, uint amount) {
        //amount is in amountGet terms
        bytes32 hash = sha256(this, tokenGet, amountGet, tokenGive, amountGive, expires, nonce);
        if (!(
        (orders[user][hash] || ecrecover(sha3("\x19Ethereum Signed Message:\n32", hash),v,r,s) == user) &&
        block.number <= expires &&
        safeAdd(orderFills[user][hash], amount) <= amountGet
        )) throw;
        tradeBalances(tokenGet, amountGet, tokenGive, amountGive, user, amount);
        orderFills[user][hash] = safeAdd(orderFills[user][hash], amount);
        Trade(tokenGet, amount, tokenGive, amountGive * amount / amountGet, user, msg.sender);
    }

    function tradeBalances(address tokenGet, uint amountGet, address tokenGive, uint amountGive, address user, uint amount) private {
        uint feeMakeXfer = safeMul(amount, feeMake) / (1 ether);
        uint feeTakeXfer = safeMul(amount, feeTake) / (1 ether);
        uint feeRebateXfer = 0;

        tokens[tokenGet][msg.sender] = safeSub(tokens[tokenGet][msg.sender], safeAdd(amount, feeTakeXfer));
        tokens[tokenGet][user] = safeAdd(tokens[tokenGet][user], safeSub(safeAdd(amount, feeRebateXfer), feeMakeXfer));
        tokens[tokenGet][feeAccount] = safeAdd(tokens[tokenGet][feeAccount], safeSub(safeAdd(feeMakeXfer, feeTakeXfer), feeRebateXfer));
        tokens[tokenGive][user] = safeSub(tokens[tokenGive][user], safeMul(amountGive, amount) / amountGet);
        tokens[tokenGive][msg.sender] = safeAdd(tokens[tokenGive][msg.sender], safeMul(amountGive, amount) / amountGet);
    }

    function testTrade(address tokenGet, uint amountGet, address tokenGive, uint amountGive, uint expires, uint nonce, address user, uint8 v, bytes32 r, bytes32 s, uint amount, address sender) constant returns(bool) {
        if (!(
        tokens[tokenGet][sender] >= amount &&
        availableVolume(tokenGet, amountGet, tokenGive, amountGive, expires, nonce, user, v, r, s) >= amount
        )) return false;
        return true;
    }

    function availableVolume(address tokenGet, uint amountGet, address tokenGive, uint amountGive, uint expires, uint nonce, address user, uint8 v, bytes32 r, bytes32 s) constant returns(uint) {
        bytes32 hash = sha256(this, tokenGet, amountGet, tokenGive, amountGive, expires, nonce);
        if (!(
        (orders[user][hash] || ecrecover(sha3("\x19Ethereum Signed Message:\n32", hash),v,r,s) == user) &&
        block.number <= expires
        )) return 0;
        uint available1 = safeSub(amountGet, orderFills[user][hash]);
        uint available2 = safeMul(tokens[tokenGive][user], amountGet) / amountGive;
        if (available1<available2) return available1;
        return available2;
    }

    function amountFilled(address tokenGet, uint amountGet, address tokenGive, uint amountGive, uint expires, uint nonce, address user, uint8 v, bytes32 r, bytes32 s) constant returns(uint) {
        bytes32 hash = sha256(this, tokenGet, amountGet, tokenGive, amountGive, expires, nonce);
        return orderFills[user][hash];
    }

    function cancelOrder(address tokenGet, uint amountGet, address tokenGive, uint amountGive, uint expires, uint nonce, uint8 v, bytes32 r, bytes32 s) {
        bytes32 hash = sha256(this, tokenGet, amountGet, tokenGive, amountGive, expires, nonce);
        if (!(orders[msg.sender][hash] || ecrecover(sha3("\x19Ethereum Signed Message:\n32", hash),v,r,s) == msg.sender)) throw;
        orderFills[msg.sender][hash] = amountGet;
        Cancel(tokenGet, amountGet, tokenGive, amountGive, expires, nonce, msg.sender, v, r, s);
    }
}

Contract Security Audit

Contract ABI

[{"constant":false,"inputs":[{"name":"tokenGet","type":"address"},{"name":"amountGet","type":"uint256"},{"name":"tokenGive","type":"address"},{"name":"amountGive","type":"uint256"},{"name":"expires","type":"uint256"},{"name":"nonce","type":"uint256"},{"name":"user","type":"address"},{"name":"v","type":"uint8"},{"name":"r","type":"bytes32"},{"name":"s","type":"bytes32"},{"name":"amount","type":"uint256"}],"name":"trade","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"tokenGet","type":"address"},{"name":"amountGet","type":"uint256"},{"name":"tokenGive","type":"address"},{"name":"amountGive","type":"uint256"},{"name":"expires","type":"uint256"},{"name":"nonce","type":"uint256"}],"name":"order","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"bytes32"}],"name":"orderFills","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"tokenGet","type":"address"},{"name":"amountGet","type":"uint256"},{"name":"tokenGive","type":"address"},{"name":"amountGive","type":"uint256"},{"name":"expires","type":"uint256"},{"name":"nonce","type":"uint256"},{"name":"v","type":"uint8"},{"name":"r","type":"bytes32"},{"name":"s","type":"bytes32"}],"name":"cancelOrder","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","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":"tokenGet","type":"address"},{"name":"amountGet","type":"uint256"},{"name":"tokenGive","type":"address"},{"name":"amountGive","type":"uint256"},{"name":"expires","type":"uint256"},{"name":"nonce","type":"uint256"},{"name":"user","type":"address"},{"name":"v","type":"uint8"},{"name":"r","type":"bytes32"},{"name":"s","type":"bytes32"}],"name":"amountFilled","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"tokens","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"feeMake_","type":"uint256"}],"name":"changeFeeMake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"feeMake","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":"tokenGet","type":"address"},{"name":"amountGet","type":"uint256"},{"name":"tokenGive","type":"address"},{"name":"amountGive","type":"uint256"},{"name":"expires","type":"uint256"},{"name":"nonce","type":"uint256"},{"name":"user","type":"address"},{"name":"v","type":"uint8"},{"name":"r","type":"bytes32"},{"name":"s","type":"bytes32"},{"name":"amount","type":"uint256"},{"name":"sender","type":"address"}],"name":"testTrade","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"feeAccount_","type":"address"}],"name":"changeFeeAccount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"feeTake_","type":"uint256"}],"name":"changeFeeTake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"admin_","type":"address"}],"name":"changeAdmin","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"token","type":"address"},{"name":"amount","type":"uint256"}],"name":"withdrawToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"bytes32"}],"name":"orders","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"feeTake","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"deposit","outputs":[],"payable":true,"stateMutability":"payable","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"},{"constant":true,"inputs":[],"name":"admin","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"tokenGet","type":"address"},{"name":"amountGet","type":"uint256"},{"name":"tokenGive","type":"address"},{"name":"amountGive","type":"uint256"},{"name":"expires","type":"uint256"},{"name":"nonce","type":"uint256"},{"name":"user","type":"address"},{"name":"v","type":"uint8"},{"name":"r","type":"bytes32"},{"name":"s","type":"bytes32"}],"name":"availableVolume","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"admin_","type":"address"},{"name":"feeAccount_","type":"address"},{"name":"feeMake_","type":"uint256"},{"name":"feeTake_","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":false,"stateMutability":"nonpayable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"tokenGet","type":"address"},{"indexed":false,"name":"amountGet","type":"uint256"},{"indexed":false,"name":"tokenGive","type":"address"},{"indexed":false,"name":"amountGive","type":"uint256"},{"indexed":false,"name":"expires","type":"uint256"},{"indexed":false,"name":"nonce","type":"uint256"},{"indexed":false,"name":"user","type":"address"}],"name":"Order","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"tokenGet","type":"address"},{"indexed":false,"name":"amountGet","type":"uint256"},{"indexed":false,"name":"tokenGive","type":"address"},{"indexed":false,"name":"amountGive","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":"tokenGet","type":"address"},{"indexed":false,"name":"amountGet","type":"uint256"},{"indexed":false,"name":"tokenGive","type":"address"},{"indexed":false,"name":"amountGive","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"}]

Deployed Bytecode

0x60606040526004361061010e5763ffffffff60e060020a6000350416630a19b14a811461011e5780630b9276661461016d57806319774d431461019f578063278b8c0e146101d35780632e1a7d4d14610212578063338b5dea1461022857806346be96c31461024a578063508493bc1461029357806354d03b5c146102b857806357786394146102ce57806365e17c9d146102e15780636c86888b1461031057806371ffcb161461037c5780638823a9c01461039b5780638f283970146103b15780639e281a98146103d0578063bb5f4629146103f2578063c281309e14610414578063d0e30db014610427578063f7888aec1461042f578063f851a44014610454578063fb6e155f14610467575b341561011957600080fd5b600080fd5b341561012957600080fd5b61016b600160a060020a0360043581169060243590604435811690606435906084359060a4359060c4351660ff60e435166101043561012435610144356104b0565b005b341561017857600080fd5b61016b600160a060020a03600435811690602435906044351660643560843560a435610763565b34156101aa57600080fd5b6101c1600160a060020a03600435166024356108a7565b60405190815260200160405180910390f35b34156101de57600080fd5b61016b600160a060020a03600435811690602435906044351660643560843560a43560ff60c4351660e435610104356108c4565b341561021d57600080fd5b61016b600435610b1b565b341561023357600080fd5b61016b600160a060020a0360043516602435610c50565b341561025557600080fd5b6101c1600160a060020a0360043581169060243590604435811690606435906084359060a4359060c4351660ff60e435166101043561012435610db0565b341561029e57600080fd5b6101c1600160a060020a0360043581169060243516610e77565b34156102c357600080fd5b61016b600435610e94565b34156102d957600080fd5b6101c1610ec3565b34156102ec57600080fd5b6102f4610ec9565b604051600160a060020a03909116815260200160405180910390f35b341561031b57600080fd5b610368600160a060020a0360043581169060243590604435811690606435906084359060a4359060c43581169060ff60e43516906101043590610124359061014435906101643516610ed8565b604051901515815260200160405180910390f35b341561038757600080fd5b61016b600160a060020a0360043516610f43565b34156103a657600080fd5b61016b600435610f8d565b34156103bc57600080fd5b61016b600160a060020a0360043516610fbc565b34156103db57600080fd5b61016b600160a060020a0360043516602435611006565b34156103fd57600080fd5b610368600160a060020a03600435166024356111ad565b341561041f57600080fd5b6101c16111cd565b61016b6111d3565b341561043a57600080fd5b6101c1600160a060020a0360043581169060243516611288565b341561045f57600080fd5b6102f46112b3565b341561047257600080fd5b6101c1600160a060020a0360043581169060243590604435811690606435906084359060a4359060c4351660ff60e4351661010435610124356112c2565b60006002308d8d8d8d8d8d6000604051602001526040516c01000000000000000000000000600160a060020a0398891681028252968816870260148201526028810195909552929095169093026048830152605c820192909252607c810192909252609c82015260bc0160206040518083038160008661646e5a03f1151561053757600080fd5b50506040518051600160a060020a038816600090815260056020908152604080832084845290915290205490925060ff1690508061062c575085600160a060020a03166001826040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0160405180910390208787876040516000815260200160405260006040516020015260405193845260ff90921660208085019190915260408085019290925260608401929092526080909201915160208103908084039060008661646e5a03f1151561061857600080fd5b505060206040510351600160a060020a0316145b80156106385750874311155b80156106725750600160a060020a03861660009081526006602090815260408083208484529091529020548b9061066f90846114f2565b11155b151561067d57600080fd5b61068b8c8c8c8c8a87611516565b600160a060020a03861660009081526006602090815260408083208484529091529020546106b990836114f2565b600160a060020a03871660009081526006602090815260408083208584529091529020557f6effdda786735d5033bfad5f53e5131abcced9e52be6c507b62d639685fbed6d8c838c8e8d830281151561070e57fe5b048a33604051600160a060020a0396871681526020810195909552928516604080860191909152606085019290925284166080840152921660a082015260c001905180910390a1505050505050505050505050565b60006002308888888888886000604051602001526040516c01000000000000000000000000600160a060020a0398891681028252968816870260148201526028810195909552929095169093026048830152605c820192909252607c810192909252609c82015260bc0160206040518083038160008661646e5a03f115156107ea57600080fd5b50506040518051600160a060020a0333908116600090815260056020908152604080832085845290915290819020805460ff191660011790559193507f3f7f2eda73683c21a15f9435af1028c93185b5f1fa38270762dc32be606b3e8592508991899189918991899189919051600160a060020a03978816815260208101969096529386166040808701919091526060860193909352608085019190915260a0840152921660c082015260e001905180910390a150505050505050565b600660209081526000928352604080842090915290825290205481565b60006002308b8b8b8b8b8b6000604051602001526040516c01000000000000000000000000600160a060020a0398891681028252968816870260148201526028810195909552929095169093026048830152605c820192909252607c810192909252609c82015260bc0160206040518083038160008661646e5a03f1151561094b57600080fd5b50506040518051600160a060020a033316600090815260056020908152604080832084845290915290205490925060ff16905080610a40575033600160a060020a03166001826040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0160405180910390208686866040516000815260200160405260006040516020015260405193845260ff90921660208085019190915260408085019290925260608401929092526080909201915160208103908084039060008661646e5a03f11515610a2c57600080fd5b505060206040510351600160a060020a0316145b1515610a4b57600080fd5b33600160a060020a0381166000908152600660209081526040808320858452909152908190208b90557f1e0b760c386003e9cb9bcf4fcf3997886042859d9b6ed6320e804597fcdb28b0918c918c918c918c918c918c91908c908c908c9051600160a060020a039a8b16815260208101999099529689166040808a01919091526060890196909652608088019490945260a087019290925290951660c085015260ff90941660e084015261010083019390935261012082015261014001905180910390a150505050505050505050565b33600160a060020a03166000908152600080516020611763833981519152602052604090205481901015610b4e57600080fd5b33600160a060020a031660009081526000805160206117638339815191526020526040902054610b7e9082611720565b33600160a060020a03166000818152600080516020611763833981519152602052604090819020929092559082905160006040518083038185876187965a03f1925050501515610bcd57600080fd5b33600160a060020a03811660009081526000805160206117638339815191526020526040808220547ff341246adaac6f497bc2a656f546ab9e182111d630394f0c57c710a59a2cb567939185919051600160a060020a0394851681529290931660208301526040808301919091526060820192909252608001905180910390a150565b600160a060020a0382161515610c6557600080fd5b81600160a060020a03166323b872dd33308460006040516020015260405160e060020a63ffffffff8616028152600160a060020a0393841660048201529190921660248201526044810191909152606401602060405180830381600087803b1515610ccf57600080fd5b6102c65a03f11515610ce057600080fd5b505050604051805190501515610cf557600080fd5b600160a060020a0380831660009081526004602090815260408083203390941683529290522054610d2690826114f2565b600160a060020a038381166000908152600460209081526040808320339485168452909152908190208390557fdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d79285929185919051600160a060020a0394851681529290931660208301526040808301919091526060820192909252608001905180910390a15050565b6000806002308d8d8d8d8d8d6000604051602001526040516c01000000000000000000000000600160a060020a0398891681028252968816870260148201526028810195909552929095169093026048830152605c820192909252607c810192909252609c82015260bc0160206040518083038160008661646e5a03f11515610e3857600080fd5b50506040518051600160a060020a03881660009081526006602090815260408083208484529091529020549350915050509a9950505050505050505050565b600460209081526000928352604080842090915290825290205481565b60005433600160a060020a03908116911614610eaf57600080fd5b600254811115610ebe57600080fd5b600255565b60025481565b600154600160a060020a031681565b600160a060020a03808d166000908152600460209081526040808320938516835292905290812054839010801590610f21575082610f1e8e8e8e8e8e8e8e8e8e8e6112c2565b10155b1515610f2f57506000610f33565b5060015b9c9b505050505050505050505050565b60005433600160a060020a03908116911614610f5e57600080fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60005433600160a060020a03908116911614610fa857600080fd5b600354811115610fb757600080fd5b600355565b60005433600160a060020a03908116911614610fd757600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600160a060020a038216151561101b57600080fd5b600160a060020a03808316600090815260046020908152604080832033909416835292905220548190101561104f57600080fd5b600160a060020a03808316600090815260046020908152604080832033909416835292905220546110809082611720565b600160a060020a03808416600081815260046020908152604080832033958616845290915280822094909455909263a9059cbb92918591516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b15156110ff57600080fd5b6102c65a03f1151561111057600080fd5b50505060405180519050151561112557600080fd5b600160a060020a03808316600090815260046020908152604080832033948516845290915290819020547ff341246adaac6f497bc2a656f546ab9e182111d630394f0c57c710a59a2cb5679285929091859151600160a060020a0394851681529290931660208301526040808301919091526060820192909252608001905180910390a15050565b600560209081526000928352604080842090915290825290205460ff1681565b60035481565b33600160a060020a03166000908152600080516020611763833981519152602052604090205461120390346114f2565b33600160a060020a038116600090815260008051602061176383398151915260205260408082208490557fdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d793919291349151600160a060020a0394851681529290931660208301526040808301919091526060820192909252608001905180910390a1565b600160a060020a03918216600090815260046020908152604080832093909416825291909152205490565b600054600160a060020a031681565b6000806000806002308f8f8f8f8f8f6000604051602001526040516c01000000000000000000000000600160a060020a0398891681028252968816870260148201526028810195909552929095169093026048830152605c820192909252607c810192909252609c82015260bc0160206040518083038160008661646e5a03f1151561134d57600080fd5b50506040518051600160a060020a038a16600090815260056020908152604080832084845290915290205490945060ff16905080611442575087600160a060020a03166001846040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0160405180910390208989896040516000815260200160405260006040516020015260405193845260ff90921660208085019190915260408085019290925260608401929092526080909201915160208103908084039060008661646e5a03f1151561142e57600080fd5b505060206040510351600160a060020a0316145b801561144e5750894311155b151561145d57600093506114e1565b600160a060020a038816600090815260066020908152604080832086845290915290205461148c908e90611720565b600160a060020a03808e166000908152600460209081526040808320938d16835292905220549092508b906114c1908f611734565b8115156114ca57fe5b049050808210156114dd578193506114e1565b8093505b5050509a9950505050505050505050565b600082820161150f84821080159061150a5750838210155b611753565b9392505050565b6000806000670de0b6b3a764000061153085600254611734565b81151561153957fe5b049250670de0b6b3a764000061155185600354611734565b81151561155a57fe5b600160a060020a03808c16600090815260046020908152604080832033909416835292905290812054929091049350915061159e9061159986856114f2565b611720565b600160a060020a038a81166000908152600460209081526040808320338516845290915280822093909355908716815220546115ec906115e76115e187856114f2565b86611720565b6114f2565b600160a060020a038a811660009081526004602090815260408083208a851684529091528082209390935560015490911681522054611638906115e761163286866114f2565b84611720565b600160a060020a03808b166000908152600460208181526040808420600154861685528252808420959095558b84168352908152838220928916825291909152205461169890896116898988611734565b81151561169257fe5b04611720565b600160a060020a0388811660009081526004602090815260408083208a851684529091528082209390935533909116815220546116e990896116da8988611734565b8115156116e357fe5b046114f2565b600160a060020a03978816600090815260046020908152604080832033909b16835299905297909720969096555050505050505050565b600061172e83831115611753565b50900390565b600082820261150f84158061150a575083858381151561175057fe5b04145b80151561175f57600080fd5b50560017ef568e3e12ab5b9c7254a8d58478811de00f9e6eb34345acd53bf8fd09d3eca165627a7a72305820eeeadbe00ebf8e13ea7abf94e9e6965c6c9cb2339f31283a9832d02fd41baabe0029

Swarm Source

bzzr://eeeadbe00ebf8e13ea7abf94e9e6965c6c9cb2339f31283a9832d02fd41baabe

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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