Sponsored Link:   Qravity - the only blockchain entertainment production studio and distributor. Learn more.
 Latest 25 txns from a total Of 52005 transactions
View All

TxHash Age From To Value [TxFee]
0x7e0fac7a5c349ae74d175f27c0b29d604423540b3e9568a95bf46bdc7f398faf48 days 2 hrs ago0x1795fc5298eaa9238074abe81ec91fb150ab84f2  IN   0xb626a5facc4de1c813f5293ec3be31979f1d1c780.007793551606655 Ether0.00178286
0xb2cb36374a110972d4764bd91afdfbb147559eedbdc56f9bf45464461f35d8e149 days 19 hrs ago0x3cb0ccfc5493b5dcd362c3be6627182377097de0  IN   0xb626a5facc4de1c813f5293ec3be31979f1d1c780.006064025889814 Ether0.004348437112
0xf1cd1058b2d4178401bc291326d3113fe97685d2f296a998e0653a1563da0e9059 days 8 hrs ago0x8ff70537cea84dcf6e31f8bb28f0acc89a4030a2  IN   0xb626a5facc4de1c813f5293ec3be31979f1d1c780.000643 Ether0.001723172
0xa224232ed26dca7819d13171ebf0bfe73d106a9f00c2cfd8786ee35f88efb90b59 days 13 hrs ago0x8ff70537cea84dcf6e31f8bb28f0acc89a4030a2  IN   0xb626a5facc4de1c813f5293ec3be31979f1d1c780.000643 Ether0.00171694
0x5a8eedce6e9fca8bf69c1e67b6c2bd09bb59a432f9bbcdf153cb724df5c8ce1560 days 2 hrs ago0x2d841e088087d3a447d198725291d485dfba024d  IN   0xb626a5facc4de1c813f5293ec3be31979f1d1c780.784293575421324 Ether0.00221915
0xb326f0057902ad820fd6ea9644404076c63cbff69c88a90bafdea17cdb689ba760 days 5 hrs ago0x2d841e088087d3a447d198725291d485dfba024d  IN   0xb626a5facc4de1c813f5293ec3be31979f1d1c780.771724517367791 Ether0.00222088
0x89533c8c0534752e597553428adbd6dc978a973cc3b8977a3e28a788ccb9945460 days 6 hrs ago0x2d841e088087d3a447d198725291d485dfba024d  IN   0xb626a5facc4de1c813f5293ec3be31979f1d1c780.777663987349484 Ether0.00221766
0xfc001d615bbbbac652e2c970757c8c9208bec30e0a401c533c49c401eaddf3b960 days 13 hrs ago0x2d841e088087d3a447d198725291d485dfba024d  IN   0xb626a5facc4de1c813f5293ec3be31979f1d1c780.804298536273823 Ether0.00220812
0xfe91145d6ada35a79084039ca0adb8acb9c235212f655f5cebae8cc4d22b80cb60 days 13 hrs ago0x2d841e088087d3a447d198725291d485dfba024d  IN   0xb626a5facc4de1c813f5293ec3be31979f1d1c780.802363969566793 Ether0.00220573
0x85d04966c50d6d0e3e6cb03178fdbea58c4078f0f49541a2ea2248d51663c45261 days 14 hrs ago0x2d841e088087d3a447d198725291d485dfba024d  IN   0xb626a5facc4de1c813f5293ec3be31979f1d1c780.855014454906787 Ether0.00220986
0x09603ba8a26295b18d5e158c1da1d0532f946d4bcebbb87f6940b0ad05f2960361 days 14 hrs ago0x2d841e088087d3a447d198725291d485dfba024d  IN   0xb626a5facc4de1c813f5293ec3be31979f1d1c780.844318386882952 Ether0.00222064
0xd6a2ae9a632e71a883c98e943db59dccad0e1b8b1801a852cbee0a80db4fb7f961 days 14 hrs ago0x2d841e088087d3a447d198725291d485dfba024d  IN   0xb626a5facc4de1c813f5293ec3be31979f1d1c780.844809958226348 Ether0.0022136
0xbb4aa307212da99b37ebf605aefad4667f77fe2793ad75bf89819da93acab52b61 days 22 hrs ago0xde424641a7cebd43a9798134e15a321da327a61a  IN   0xb626a5facc4de1c813f5293ec3be31979f1d1c780.079176944235738 Ether0.002233125
0x93a4c587dc54a3b3998e442d68d56e8ac9e62818ce6a749f331a5a262f42b7fa62 days 58 mins ago0x1795fc5298eaa9238074abe81ec91fb150ab84f2  IN   0xb626a5facc4de1c813f5293ec3be31979f1d1c780.007793551606655 Ether0.001039143
0x852a677020373190a404157d2c06840bb487dcda4c7b54f30c4eb117e689042762 days 58 mins ago0x1795fc5298eaa9238074abe81ec91fb150ab84f2  IN   0xb626a5facc4de1c813f5293ec3be31979f1d1c780.009742027800685 Ether0.000889342
0x16d44aba820bccb9ed9b0b72ec5078232f012d61475a4f91a812964a655cf5e962 days 11 hrs ago0x2d841e088087d3a447d198725291d485dfba024d  IN   0xb626a5facc4de1c813f5293ec3be31979f1d1c780.848281954866547 Ether0.00221973
0x7209084135e1cbc372d80128b9f6133ff8e9e6ba6db741a38379ae5c0f5856b463 days 2 hrs ago0x2d841e088087d3a447d198725291d485dfba024d  IN   0xb626a5facc4de1c813f5293ec3be31979f1d1c780.882935807298532 Ether0.00220729
0x5c8329f74d85214236de512ed1849065b0a3d7e4a86a9179de1558b2c39a7e9663 days 5 hrs ago0x2d841e088087d3a447d198725291d485dfba024d  IN   0xb626a5facc4de1c813f5293ec3be31979f1d1c780.892694479657913 Ether0.00221889
0xce7ef8e625bed7bf83f17fca7ee6f27006867aa5ffe7494e46886ec56c27558763 days 11 hrs ago0x2d841e088087d3a447d198725291d485dfba024d  IN   0xb626a5facc4de1c813f5293ec3be31979f1d1c780.911554495631786 Ether0.00221889
0xd70e59fa73cccb2b7f606659fb132cccf90dd6cfd3a2a44ddc50fe840ba39bc064 days 19 hrs ago0x2d841e088087d3a447d198725291d485dfba024d  IN   0xb626a5facc4de1c813f5293ec3be31979f1d1c780.974444261959397 Ether0.0022252
0x85980bf1f92f5c4221943a6312f8c32e3a338c8264ef74fa2282b879b08e63af64 days 19 hrs ago0x2d841e088087d3a447d198725291d485dfba024d  IN   0xb626a5facc4de1c813f5293ec3be31979f1d1c780.975310449684269 Ether0.00221798
0x5727206a41c5766cedeee4b987a5b4277198bfb8eb4e131246ff72a4ab20846d64 days 22 hrs ago0x2d841e088087d3a447d198725291d485dfba024d  IN   0xb626a5facc4de1c813f5293ec3be31979f1d1c780.982178404033242 Ether0.00221715
0x44280ab0e87f39b65787427414732b410e392037bb71c21498ed5a3c2dc7fb5664 days 23 hrs ago0x2d841e088087d3a447d198725291d485dfba024d  IN   0xb626a5facc4de1c813f5293ec3be31979f1d1c780.976815485896192 Ether0.00222411
0x8b6a867746d8302cb7c0e353e642878f7a05bc97bbf641d5859306727ccea08368 days 14 hrs ago0x2d841e088087d3a447d198725291d485dfba024d  IN   0xb626a5facc4de1c813f5293ec3be31979f1d1c780.396645788098889 Ether0.002219265
0xff87d7b16581f02bf10b3c06b7132bf147ce46c8973bd27d805ba65e02ececa168 days 14 hrs ago0x2d841e088087d3a447d198725291d485dfba024d  IN   0xb626a5facc4de1c813f5293ec3be31979f1d1c780.399320064071213 Ether0.002213965
[ 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
0x7e0fac7a5c349ae74d175f27c0b29d604423540b3e9568a95bf46bdc7f398faf555722248 days 2 hrs ago0xb626a5facc4de1c813f5293ec3be31979f1d1c780xcf1cc6ed5b653def7417e3fa93992c3ffe49139b0.007793551606655436 Ether
0xb2cb36374a110972d4764bd91afdfbb147559eedbdc56f9bf45464461f35d8e1554770549 days 19 hrs ago0xb626a5facc4de1c813f5293ec3be31979f1d1c780xcf1cc6ed5b653def7417e3fa93992c3ffe49139b0.006064025889814523 Ether
0xf1cd1058b2d4178401bc291326d3113fe97685d2f296a998e0653a1563da0e90549281259 days 8 hrs ago0xb626a5facc4de1c813f5293ec3be31979f1d1c780xcf1cc6ed5b653def7417e3fa93992c3ffe49139b0.000643 Ether
0xa224232ed26dca7819d13171ebf0bfe73d106a9f00c2cfd8786ee35f88efb90b549156759 days 13 hrs ago0xb626a5facc4de1c813f5293ec3be31979f1d1c780xcf1cc6ed5b653def7417e3fa93992c3ffe49139b0.000643 Ether
0x5a8eedce6e9fca8bf69c1e67b6c2bd09bb59a432f9bbcdf153cb724df5c8ce15548842960 days 2 hrs ago0xb626a5facc4de1c813f5293ec3be31979f1d1c780xcf1cc6ed5b653def7417e3fa93992c3ffe49139b0.784293575421324 Ether
0xb326f0057902ad820fd6ea9644404076c63cbff69c88a90bafdea17cdb689ba7548787960 days 5 hrs ago0xb626a5facc4de1c813f5293ec3be31979f1d1c780xcf1cc6ed5b653def7417e3fa93992c3ffe49139b0.7717245173677915 Ether
0x89533c8c0534752e597553428adbd6dc978a973cc3b8977a3e28a788ccb99454548751160 days 6 hrs ago0xb626a5facc4de1c813f5293ec3be31979f1d1c780xcf1cc6ed5b653def7417e3fa93992c3ffe49139b0.7776639873494848 Ether
0xfc001d615bbbbac652e2c970757c8c9208bec30e0a401c533c49c401eaddf3b9548581860 days 13 hrs ago0xb626a5facc4de1c813f5293ec3be31979f1d1c780xcf1cc6ed5b653def7417e3fa93992c3ffe49139b0.8042985362738235 Ether
0xfe91145d6ada35a79084039ca0adb8acb9c235212f655f5cebae8cc4d22b80cb548579160 days 13 hrs ago0xb626a5facc4de1c813f5293ec3be31979f1d1c780xcf1cc6ed5b653def7417e3fa93992c3ffe49139b0.8023639695667931 Ether
0x85d04966c50d6d0e3e6cb03178fdbea58c4078f0f49541a2ea2248d51663c452547962061 days 14 hrs ago0xb626a5facc4de1c813f5293ec3be31979f1d1c780xcf1cc6ed5b653def7417e3fa93992c3ffe49139b0.8550144549067877 Ether
0x09603ba8a26295b18d5e158c1da1d0532f946d4bcebbb87f6940b0ad05f29603547959761 days 14 hrs ago0xb626a5facc4de1c813f5293ec3be31979f1d1c780xcf1cc6ed5b653def7417e3fa93992c3ffe49139b0.8443183868829526 Ether
0xd6a2ae9a632e71a883c98e943db59dccad0e1b8b1801a852cbee0a80db4fb7f9547958961 days 14 hrs ago0xb626a5facc4de1c813f5293ec3be31979f1d1c780xcf1cc6ed5b653def7417e3fa93992c3ffe49139b0.844809958226348 Ether
0xbb4aa307212da99b37ebf605aefad4667f77fe2793ad75bf89819da93acab52b547776161 days 22 hrs ago0xb626a5facc4de1c813f5293ec3be31979f1d1c780xcf1cc6ed5b653def7417e3fa93992c3ffe49139b0.079176944235738965 Ether
0x93a4c587dc54a3b3998e442d68d56e8ac9e62818ce6a749f331a5a262f42b7fa547711462 days 58 mins ago0xb626a5facc4de1c813f5293ec3be31979f1d1c780xcf1cc6ed5b653def7417e3fa93992c3ffe49139b0.007793551606655436 Ether
0x852a677020373190a404157d2c06840bb487dcda4c7b54f30c4eb117e6890427547711362 days 58 mins ago0xb626a5facc4de1c813f5293ec3be31979f1d1c780xcf1cc6ed5b653def7417e3fa93992c3ffe49139b0.009742027800685311 Ether
0x16d44aba820bccb9ed9b0b72ec5078232f012d61475a4f91a812964a655cf5e9547442562 days 11 hrs ago0xb626a5facc4de1c813f5293ec3be31979f1d1c780xcf1cc6ed5b653def7417e3fa93992c3ffe49139b0.8482819548665472 Ether
0x7209084135e1cbc372d80128b9f6133ff8e9e6ba6db741a38379ae5c0f5856b4547096063 days 2 hrs ago0xb626a5facc4de1c813f5293ec3be31979f1d1c780xcf1cc6ed5b653def7417e3fa93992c3ffe49139b0.8829358072985322 Ether
0x5c8329f74d85214236de512ed1849065b0a3d7e4a86a9179de1558b2c39a7e96547021663 days 5 hrs ago0xb626a5facc4de1c813f5293ec3be31979f1d1c780xcf1cc6ed5b653def7417e3fa93992c3ffe49139b0.8926944796579139 Ether
0xce7ef8e625bed7bf83f17fca7ee6f27006867aa5ffe7494e46886ec56c275587546879663 days 11 hrs ago0xb626a5facc4de1c813f5293ec3be31979f1d1c780xcf1cc6ed5b653def7417e3fa93992c3ffe49139b0.9115544956317866 Ether
0xd70e59fa73cccb2b7f606659fb132cccf90dd6cfd3a2a44ddc50fe840ba39bc0546116864 days 19 hrs ago0xb626a5facc4de1c813f5293ec3be31979f1d1c780xcf1cc6ed5b653def7417e3fa93992c3ffe49139b0.9744442619593975 Ether
0x85980bf1f92f5c4221943a6312f8c32e3a338c8264ef74fa2282b879b08e63af546114864 days 19 hrs ago0xb626a5facc4de1c813f5293ec3be31979f1d1c780xcf1cc6ed5b653def7417e3fa93992c3ffe49139b0.9753104496842698 Ether
0x5727206a41c5766cedeee4b987a5b4277198bfb8eb4e131246ff72a4ab20846d546037264 days 22 hrs ago0xb626a5facc4de1c813f5293ec3be31979f1d1c780xcf1cc6ed5b653def7417e3fa93992c3ffe49139b0.9821784040332426 Ether
0x44280ab0e87f39b65787427414732b410e392037bb71c21498ed5a3c2dc7fb56546024964 days 23 hrs ago0xb626a5facc4de1c813f5293ec3be31979f1d1c780xcf1cc6ed5b653def7417e3fa93992c3ffe49139b0.9768154858961922 Ether
0x8b6a867746d8302cb7c0e353e642878f7a05bc97bbf641d5859306727ccea083543886368 days 14 hrs ago0xb626a5facc4de1c813f5293ec3be31979f1d1c780xf87a7ec94884f44d9de33d36b73f42c7c0dd38b10.39664578809888956 Ether
0xff87d7b16581f02bf10b3c06b7132bf147ce46c8973bd27d805ba65e02ececa1543865268 days 14 hrs ago0xb626a5facc4de1c813f5293ec3be31979f1d1c780xf87a7ec94884f44d9de33d36b73f42c7c0dd38b10.39932006407121373 Ether
[ Download CSV Export  ] 
Warning: The compiled contract might be susceptible to ZeroFunctionSelector (very low-severity) Solidity compiler bugs.

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



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.11;

/*
    Utilities & Common Modifiers
*/
contract Utils {
    /**
        constructor
    */
    function Utils() {
    }

    // verifies that an amount is greater than zero
    modifier greaterThanZero(uint256 _amount) {
        require(_amount > 0);
        _;
    }

    // validates an address - currently only checks that it isn't null
    modifier validAddress(address _address) {
        require(_address != 0x0);
        _;
    }

    // verifies that the address is different than this contract address
    modifier notThis(address _address) {
        require(_address != address(this));
        _;
    }

    // Overflow protected math functions

    /**
        @dev returns the sum of _x and _y, asserts if the calculation overflows

        @param _x   value 1
        @param _y   value 2

        @return sum
    */
    function safeAdd(uint256 _x, uint256 _y) internal returns (uint256) {
        uint256 z = _x + _y;
        assert(z >= _x);
        return z;
    }

    /**
        @dev returns the difference of _x minus _y, asserts if the subtraction results in a negative number

        @param _x   minuend
        @param _y   subtrahend

        @return difference
    */
    function safeSub(uint256 _x, uint256 _y) internal returns (uint256) {
        assert(_x >= _y);
        return _x - _y;
    }

    /**
        @dev returns the product of multiplying _x by _y, asserts if the calculation overflows

        @param _x   factor 1
        @param _y   factor 2

        @return product
    */
    function safeMul(uint256 _x, uint256 _y) internal returns (uint256) {
        uint256 z = _x * _y;
        assert(_x == 0 || z / _x == _y);
        return z;
    }
}

/*
    ERC20 Standard Token interface
*/
contract IERC20Token {
    // these functions aren't abstract since the compiler emits automatically generated getter functions as external
    function name() public constant returns (string) {}
    function symbol() public constant returns (string) {}
    function decimals() public constant returns (uint8) {}
    function totalSupply() public constant returns (uint256) {}
    function balanceOf(address _owner) public constant returns (uint256) { _owner; }
    function allowance(address _owner, address _spender) public constant returns (uint256) { _owner; _spender; }

    function transfer(address _to, uint256 _value) public returns (bool success);
    function transferFrom(address _from, address _to, uint256 _value) public returns (bool success);
    function approve(address _spender, uint256 _value) public returns (bool success);
}

/*
    Owned contract interface
*/
contract IOwned {
    // this function isn't abstract since the compiler emits automatically generated getter functions as external
    function owner() public constant returns (address) {}

    function transferOwnership(address _newOwner) public;
    function acceptOwnership() public;
}

/*
    Token Holder interface
*/
contract ITokenHolder is IOwned {
    function withdrawTokens(IERC20Token _token, address _to, uint256 _amount) public;
}

/*
    EIP228 Token Converter interface
*/
contract ITokenConverter {
    function convertibleTokenCount() public constant returns (uint16);
    function convertibleToken(uint16 _tokenIndex) public constant returns (address);
    function getReturn(IERC20Token _fromToken, IERC20Token _toToken, uint256 _amount) public constant returns (uint256);
    function convert(IERC20Token _fromToken, IERC20Token _toToken, uint256 _amount, uint256 _minReturn) public returns (uint256);
    // deprecated, backward compatibility
    function change(IERC20Token _fromToken, IERC20Token _toToken, uint256 _amount, uint256 _minReturn) public returns (uint256);
}

/*
    Smart Token interface
*/
contract ISmartToken is IOwned, IERC20Token {
    function disableTransfers(bool _disable) public;
    function issue(address _to, uint256 _amount) public;
    function destroy(address _from, uint256 _amount) public;
}

/*
    Bancor Converter Extensions interface
*/
contract IBancorConverterExtensions {
    function formula() public constant returns (IBancorFormula) {}
    function gasPriceLimit() public constant returns (IBancorGasPriceLimit) {}
    function quickConverter() public constant returns (IBancorQuickConverter) {}
}

/*
    Bancor Formula interface
*/
contract IBancorFormula {
    function calculatePurchaseReturn(uint256 _supply, uint256 _reserveBalance, uint32 _reserveRatio, uint256 _depositAmount) public constant returns (uint256);
    function calculateSaleReturn(uint256 _supply, uint256 _reserveBalance, uint32 _reserveRatio, uint256 _sellAmount) public constant returns (uint256);
}

/*
    Bancor Gas Price Limit interface
*/
contract IBancorGasPriceLimit {
    function gasPrice() public constant returns (uint256) {}
}

/*
    Bancor Quick Converter interface
*/
contract IBancorQuickConverter {
    function convert(IERC20Token[] _path, uint256 _amount, uint256 _minReturn) public payable returns (uint256);
    function convertFor(IERC20Token[] _path, uint256 _amount, uint256 _minReturn, address _for) public payable returns (uint256);
}

/*
    Ether Token interface
*/
contract IEtherToken is ITokenHolder, IERC20Token {
    function deposit() public payable;
    function withdraw(uint256 _amount) public;
    function withdrawTo(address _to, uint256 _amount);
}

/*
    Provides support and utilities for contract ownership
*/
contract Owned is IOwned {
    address public owner;
    address public newOwner;

    event OwnerUpdate(address _prevOwner, address _newOwner);

    /**
        @dev constructor
    */
    function Owned() {
        owner = msg.sender;
    }

    // allows execution by the owner only
    modifier ownerOnly {
        assert(msg.sender == owner);
        _;
    }

    /**
        @dev allows transferring the contract ownership
        the new owner still needs to accept the transfer
        can only be called by the contract owner

        @param _newOwner    new contract owner
    */
    function transferOwnership(address _newOwner) public ownerOnly {
        require(_newOwner != owner);
        newOwner = _newOwner;
    }

    /**
        @dev used by a new owner to accept an ownership transfer
    */
    function acceptOwnership() public {
        require(msg.sender == newOwner);
        OwnerUpdate(owner, newOwner);
        owner = newOwner;
        newOwner = 0x0;
    }
}

/*
    Provides support and utilities for contract management
*/
contract Managed {
    address public manager;
    address public newManager;

    event ManagerUpdate(address _prevManager, address _newManager);

    /**
        @dev constructor
    */
    function Managed() {
        manager = msg.sender;
    }

    // allows execution by the manager only
    modifier managerOnly {
        assert(msg.sender == manager);
        _;
    }

    /**
        @dev allows transferring the contract management
        the new manager still needs to accept the transfer
        can only be called by the contract manager

        @param _newManager    new contract manager
    */
    function transferManagement(address _newManager) public managerOnly {
        require(_newManager != manager);
        newManager = _newManager;
    }

    /**
        @dev used by a new manager to accept a management transfer
    */
    function acceptManagement() public {
        require(msg.sender == newManager);
        ManagerUpdate(manager, newManager);
        manager = newManager;
        newManager = 0x0;
    }
}

/*
    We consider every contract to be a 'token holder' since it's currently not possible
    for a contract to deny receiving tokens.

    The TokenHolder's contract sole purpose is to provide a safety mechanism that allows
    the owner to send tokens that were sent to the contract by mistake back to their sender.
*/
contract TokenHolder is ITokenHolder, Owned, Utils {
    /**
        @dev constructor
    */
    function TokenHolder() {
    }

    /**
        @dev withdraws tokens held by the contract and sends them to an account
        can only be called by the owner

        @param _token   ERC20 token contract address
        @param _to      account to receive the new amount
        @param _amount  amount to withdraw
    */
    function withdrawTokens(IERC20Token _token, address _to, uint256 _amount)
        public
        ownerOnly
        validAddress(_token)
        validAddress(_to)
        notThis(_to)
    {
        assert(_token.transfer(_to, _amount));
    }
}

/*
    The smart token controller is an upgradable part of the smart token that allows
    more functionality as well as fixes for bugs/exploits.
    Once it accepts ownership of the token, it becomes the token's sole controller
    that can execute any of its functions.

    To upgrade the controller, ownership must be transferred to a new controller, along with
    any relevant data.

    The smart token must be set on construction and cannot be changed afterwards.
    Wrappers are provided (as opposed to a single 'execute' function) for each of the token's functions, for easier access.

    Note that the controller can transfer token ownership to a new controller that
    doesn't allow executing any function on the token, for a trustless solution.
    Doing that will also remove the owner's ability to upgrade the controller.
*/
contract SmartTokenController is TokenHolder {
    ISmartToken public token;   // smart token

    /**
        @dev constructor
    */
    function SmartTokenController(ISmartToken _token)
        validAddress(_token)
    {
        token = _token;
    }

    // ensures that the controller is the token's owner
    modifier active() {
        assert(token.owner() == address(this));
        _;
    }

    // ensures that the controller is not the token's owner
    modifier inactive() {
        assert(token.owner() != address(this));
        _;
    }

    /**
        @dev allows transferring the token ownership
        the new owner still need to accept the transfer
        can only be called by the contract owner

        @param _newOwner    new token owner
    */
    function transferTokenOwnership(address _newOwner) public ownerOnly {
        token.transferOwnership(_newOwner);
    }

    /**
        @dev used by a new owner to accept a token ownership transfer
        can only be called by the contract owner
    */
    function acceptTokenOwnership() public ownerOnly {
        token.acceptOwnership();
    }

    /**
        @dev disables/enables token transfers
        can only be called by the contract owner

        @param _disable    true to disable transfers, false to enable them
    */
    function disableTokenTransfers(bool _disable) public ownerOnly {
        token.disableTransfers(_disable);
    }

    /**
        @dev withdraws tokens held by the token and sends them to an account
        can only be called by the owner

        @param _token   ERC20 token contract address
        @param _to      account to receive the new amount
        @param _amount  amount to withdraw
    */
    function withdrawFromToken(IERC20Token _token, address _to, uint256 _amount) public ownerOnly {
        ITokenHolder(token).withdrawTokens(_token, _to, _amount);
    }
}

/*
    Bancor Converter v0.4

    The Bancor version of the token converter, allows conversion between a smart token and other ERC20 tokens and between different ERC20 tokens and themselves.

    ERC20 reserve token balance can be virtual, meaning that the calculations are based on the virtual balance instead of relying on
    the actual reserve balance. This is a security mechanism that prevents the need to keep a very large (and valuable) balance in a single contract.

    The converter is upgradable (just like any SmartTokenController).

    WARNING: It is NOT RECOMMENDED to use the converter with Smart Tokens that have less than 8 decimal digits
             or with very small numbers because of precision loss


    Open issues:
    - Front-running attacks are currently mitigated by the following mechanisms:
        - minimum return argument for each conversion provides a way to define a minimum/maximum price for the transaction
        - gas price limit prevents users from having control over the order of execution
      Other potential solutions might include a commit/reveal based schemes
    - Possibly add getters for reserve fields so that the client won't need to rely on the order in the struct
*/
contract BancorConverter is ITokenConverter, SmartTokenController, Managed {
    uint32 private constant MAX_CRR = 1000000;
    uint32 private constant MAX_CONVERSION_FEE = 1000000;

    struct Reserve {
        uint256 virtualBalance;         // virtual balance
        uint32 ratio;                   // constant reserve ratio (CRR), represented in ppm, 1-1000000
        bool isVirtualBalanceEnabled;   // true if virtual balance is enabled, false if not
        bool isPurchaseEnabled;         // is purchase of the smart token enabled with the reserve, can be set by the owner
        bool isSet;                     // used to tell if the mapping element is defined
    }

    string public version = '0.4';
    string public converterType = 'bancor';

    IBancorConverterExtensions public extensions;   // bancor converter extensions contract
    IERC20Token[] public reserveTokens;             // ERC20 standard token addresses
    IERC20Token[] public quickBuyPath;              // conversion path that's used in order to buy the token with ETH
    mapping (address => Reserve) public reserves;   // reserve token addresses -> reserve data
    uint32 private totalReserveRatio = 0;           // used to efficiently prevent increasing the total reserve ratio above 100%
    uint32 public maxConversionFee = 0;             // maximum conversion fee for the lifetime of the contract, represented in ppm, 0...1000000 (0 = no fee, 100 = 0.01%, 1000000 = 100%)
    uint32 public conversionFee = 0;                // current conversion fee, represented in ppm, 0...maxConversionFee
    bool public conversionsEnabled = true;          // true if token conversions is enabled, false if not

    // triggered when a conversion between two tokens occurs (TokenConverter event)
    event Conversion(address indexed _fromToken, address indexed _toToken, address indexed _trader, uint256 _amount, uint256 _return,
                     uint256 _currentPriceN, uint256 _currentPriceD);

    /**
        @dev constructor

        @param  _token              smart token governed by the converter
        @param  _extensions         address of a bancor converter extensions contract
        @param  _maxConversionFee   maximum conversion fee, represented in ppm
        @param  _reserveToken       optional, initial reserve, allows defining the first reserve at deployment time
        @param  _reserveRatio       optional, ratio for the initial reserve
    */
    function BancorConverter(ISmartToken _token, IBancorConverterExtensions _extensions, uint32 _maxConversionFee, IERC20Token _reserveToken, uint32 _reserveRatio)
        SmartTokenController(_token)
        validAddress(_extensions)
        validMaxConversionFee(_maxConversionFee)
    {
        extensions = _extensions;
        maxConversionFee = _maxConversionFee;

        if (address(_reserveToken) != 0x0)
            addReserve(_reserveToken, _reserveRatio, false);
    }

    // validates a reserve token address - verifies that the address belongs to one of the reserve tokens
    modifier validReserve(IERC20Token _address) {
        require(reserves[_address].isSet);
        _;
    }

    // validates a token address - verifies that the address belongs to one of the convertible tokens
    modifier validToken(IERC20Token _address) {
        require(_address == token || reserves[_address].isSet);
        _;
    }

    // verifies that the gas price is lower than the universal limit
    modifier validGasPrice() {
        assert(tx.gasprice <= extensions.gasPriceLimit().gasPrice());
        _;
    }

    // validates maximum conversion fee
    modifier validMaxConversionFee(uint32 _conversionFee) {
        require(_conversionFee >= 0 && _conversionFee <= MAX_CONVERSION_FEE);
        _;
    }

    // validates conversion fee
    modifier validConversionFee(uint32 _conversionFee) {
        require(_conversionFee >= 0 && _conversionFee <= maxConversionFee);
        _;
    }

    // validates reserve ratio range
    modifier validReserveRatio(uint32 _ratio) {
        require(_ratio > 0 && _ratio <= MAX_CRR);
        _;
    }

    // validates a conversion path - verifies that the number of elements is odd and that maximum number of 'hops' is 10
    modifier validConversionPath(IERC20Token[] _path) {
        require(_path.length > 2 && _path.length <= (1 + 2 * 10) && _path.length % 2 == 1);
        _;
    }

    // allows execution only when conversions aren't disabled
    modifier conversionsAllowed {
        assert(conversionsEnabled);
        _;
    }

    /**
        @dev returns the number of reserve tokens defined

        @return number of reserve tokens
    */
    function reserveTokenCount() public constant returns (uint16) {
        return uint16(reserveTokens.length);
    }

    /**
        @dev returns the number of convertible tokens supported by the contract
        note that the number of convertible tokens is the number of reserve token, plus 1 (that represents the smart token)

        @return number of convertible tokens
    */
    function convertibleTokenCount() public constant returns (uint16) {
        return reserveTokenCount() + 1;
    }

    /**
        @dev given a convertible token index, returns its contract address

        @param _tokenIndex  convertible token index

        @return convertible token address
    */
    function convertibleToken(uint16 _tokenIndex) public constant returns (address) {
        if (_tokenIndex == 0)
            return token;
        return reserveTokens[_tokenIndex - 1];
    }

    /*
        @dev allows the owner to update the extensions contract address

        @param _extensions    address of a bancor converter extensions contract
    */
    function setExtensions(IBancorConverterExtensions _extensions)
        public
        ownerOnly
        validAddress(_extensions)
        notThis(_extensions)
    {
        extensions = _extensions;
    }

    /*
        @dev allows the manager to update the quick buy path

        @param _path    new quick buy path, see conversion path format in the BancorQuickConverter contract
    */
    function setQuickBuyPath(IERC20Token[] _path)
        public
        ownerOnly
        validConversionPath(_path)
    {
        quickBuyPath = _path;
    }

    /*
        @dev allows the manager to clear the quick buy path
    */
    function clearQuickBuyPath() public ownerOnly {
        quickBuyPath.length = 0;
    }

    /**
        @dev returns the length of the quick buy path array

        @return quick buy path length
    */
    function getQuickBuyPathLength() public constant returns (uint256) {
        return quickBuyPath.length;
    }

    /**
        @dev disables the entire conversion functionality
        this is a safety mechanism in case of a emergency
        can only be called by the manager

        @param _disable true to disable conversions, false to re-enable them
    */
    function disableConversions(bool _disable) public managerOnly {
        conversionsEnabled = !_disable;
    }

    /**
        @dev updates the current conversion fee
        can only be called by the manager

        @param _conversionFee new conversion fee, represented in ppm
    */
    function setConversionFee(uint32 _conversionFee)
        public
        managerOnly
        validConversionFee(_conversionFee)
    {
        conversionFee = _conversionFee;
    }

    /*
        @dev returns the conversion fee amount for a given return amount

        @return conversion fee amount
    */
    function getConversionFeeAmount(uint256 _amount) public constant returns (uint256) {
        return safeMul(_amount, conversionFee) / MAX_CONVERSION_FEE;
    }

    /**
        @dev defines a new reserve for the token
        can only be called by the owner while the converter is inactive

        @param _token                  address of the reserve token
        @param _ratio                  constant reserve ratio, represented in ppm, 1-1000000
        @param _enableVirtualBalance   true to enable virtual balance for the reserve, false to disable it
    */
    function addReserve(IERC20Token _token, uint32 _ratio, bool _enableVirtualBalance)
        public
        ownerOnly
        inactive
        validAddress(_token)
        notThis(_token)
        validReserveRatio(_ratio)
    {
        require(_token != token && !reserves[_token].isSet && totalReserveRatio + _ratio <= MAX_CRR); // validate input

        reserves[_token].virtualBalance = 0;
        reserves[_token].ratio = _ratio;
        reserves[_token].isVirtualBalanceEnabled = _enableVirtualBalance;
        reserves[_token].isPurchaseEnabled = true;
        reserves[_token].isSet = true;
        reserveTokens.push(_token);
        totalReserveRatio += _ratio;
    }

    /**
        @dev updates one of the token reserves
        can only be called by the owner

        @param _reserveToken           address of the reserve token
        @param _ratio                  constant reserve ratio, represented in ppm, 1-1000000
        @param _enableVirtualBalance   true to enable virtual balance for the reserve, false to disable it
        @param _virtualBalance         new reserve's virtual balance
    */
    function updateReserve(IERC20Token _reserveToken, uint32 _ratio, bool _enableVirtualBalance, uint256 _virtualBalance)
        public
        ownerOnly
        validReserve(_reserveToken)
        validReserveRatio(_ratio)
    {
        Reserve storage reserve = reserves[_reserveToken];
        require(totalReserveRatio - reserve.ratio + _ratio <= MAX_CRR); // validate input

        totalReserveRatio = totalReserveRatio - reserve.ratio + _ratio;
        reserve.ratio = _ratio;
        reserve.isVirtualBalanceEnabled = _enableVirtualBalance;
        reserve.virtualBalance = _virtualBalance;
    }

    /**
        @dev disables purchasing with the given reserve token in case the reserve token got compromised
        can only be called by the owner
        note that selling is still enabled regardless of this flag and it cannot be disabled by the owner

        @param _reserveToken    reserve token contract address
        @param _disable         true to disable the token, false to re-enable it
    */
    function disableReservePurchases(IERC20Token _reserveToken, bool _disable)
        public
        ownerOnly
        validReserve(_reserveToken)
    {
        reserves[_reserveToken].isPurchaseEnabled = !_disable;
    }

    /**
        @dev returns the reserve's virtual balance if one is defined, otherwise returns the actual balance

        @param _reserveToken    reserve token contract address

        @return reserve balance
    */
    function getReserveBalance(IERC20Token _reserveToken)
        public
        constant
        validReserve(_reserveToken)
        returns (uint256)
    {
        Reserve storage reserve = reserves[_reserveToken];
        return reserve.isVirtualBalanceEnabled ? reserve.virtualBalance : _reserveToken.balanceOf(this);
    }

    /**
        @dev returns the expected return for converting a specific amount of _fromToken to _toToken

        @param _fromToken  ERC20 token to convert from
        @param _toToken    ERC20 token to convert to
        @param _amount     amount to convert, in fromToken

        @return expected conversion return amount
    */
    function getReturn(IERC20Token _fromToken, IERC20Token _toToken, uint256 _amount) public constant returns (uint256) {
        require(_fromToken != _toToken); // validate input

        // conversion between the token and one of its reserves
        if (_toToken == token)
            return getPurchaseReturn(_fromToken, _amount);
        else if (_fromToken == token)
            return getSaleReturn(_toToken, _amount);

        // conversion between 2 reserves
        uint256 purchaseReturnAmount = getPurchaseReturn(_fromToken, _amount);
        return getSaleReturn(_toToken, purchaseReturnAmount, safeAdd(token.totalSupply(), purchaseReturnAmount));
    }

    /**
        @dev returns the expected return for buying the token for a reserve token

        @param _reserveToken   reserve token contract address
        @param _depositAmount  amount to deposit (in the reserve token)

        @return expected purchase return amount
    */
    function getPurchaseReturn(IERC20Token _reserveToken, uint256 _depositAmount)
        public
        constant
        active
        validReserve(_reserveToken)
        returns (uint256)
    {
        Reserve storage reserve = reserves[_reserveToken];
        require(reserve.isPurchaseEnabled); // validate input

        uint256 tokenSupply = token.totalSupply();
        uint256 reserveBalance = getReserveBalance(_reserveToken);
        uint256 amount = extensions.formula().calculatePurchaseReturn(tokenSupply, reserveBalance, reserve.ratio, _depositAmount);

        // deduct the fee from the return amount
        uint256 feeAmount = getConversionFeeAmount(amount);
        return safeSub(amount, feeAmount);
    }

    /**
        @dev returns the expected return for selling the token for one of its reserve tokens

        @param _reserveToken   reserve token contract address
        @param _sellAmount     amount to sell (in the smart token)

        @return expected sale return amount
    */
    function getSaleReturn(IERC20Token _reserveToken, uint256 _sellAmount) public constant returns (uint256) {
        return getSaleReturn(_reserveToken, _sellAmount, token.totalSupply());
    }

    /**
        @dev converts a specific amount of _fromToken to _toToken

        @param _fromToken  ERC20 token to convert from
        @param _toToken    ERC20 token to convert to
        @param _amount     amount to convert, in fromToken
        @param _minReturn  if the conversion results in an amount smaller than the minimum return - it is cancelled, must be nonzero

        @return conversion return amount
    */
    function convert(IERC20Token _fromToken, IERC20Token _toToken, uint256 _amount, uint256 _minReturn) public returns (uint256) {
        require(_fromToken != _toToken); // validate input

        // conversion between the token and one of its reserves
        if (_toToken == token)
            return buy(_fromToken, _amount, _minReturn);
        else if (_fromToken == token)
            return sell(_toToken, _amount, _minReturn);

        // conversion between 2 reserves
        uint256 purchaseAmount = buy(_fromToken, _amount, 1);
        return sell(_toToken, purchaseAmount, _minReturn);
    }

    /**
        @dev buys the token by depositing one of its reserve tokens

        @param _reserveToken   reserve token contract address
        @param _depositAmount  amount to deposit (in the reserve token)
        @param _minReturn      if the conversion results in an amount smaller than the minimum return - it is cancelled, must be nonzero

        @return buy return amount
    */
    function buy(IERC20Token _reserveToken, uint256 _depositAmount, uint256 _minReturn)
        public
        conversionsAllowed
        validGasPrice
        greaterThanZero(_minReturn)
        returns (uint256)
    {
        uint256 amount = getPurchaseReturn(_reserveToken, _depositAmount);
        assert(amount != 0 && amount >= _minReturn); // ensure the trade gives something in return and meets the minimum requested amount

        // update virtual balance if relevant
        Reserve storage reserve = reserves[_reserveToken];
        if (reserve.isVirtualBalanceEnabled)
            reserve.virtualBalance = safeAdd(reserve.virtualBalance, _depositAmount);

        // transfer _depositAmount funds from the caller in the reserve token
        assert(_reserveToken.transferFrom(msg.sender, this, _depositAmount));
        // issue new funds to the caller in the smart token
        token.issue(msg.sender, amount);

        // calculate the new price using the simple price formula
        // price = reserve balance / (supply * CRR)
        // CRR is represented in ppm, so multiplying by 1000000
        uint256 reserveAmount = safeMul(getReserveBalance(_reserveToken), MAX_CRR);
        uint256 tokenAmount = safeMul(token.totalSupply(), reserve.ratio);
        Conversion(_reserveToken, token, msg.sender, _depositAmount, amount, reserveAmount, tokenAmount);
        return amount;
    }

    /**
        @dev sells the token by withdrawing from one of its reserve tokens

        @param _reserveToken   reserve token contract address
        @param _sellAmount     amount to sell (in the smart token)
        @param _minReturn      if the conversion results in an amount smaller the minimum return - it is cancelled, must be nonzero

        @return sell return amount
    */
    function sell(IERC20Token _reserveToken, uint256 _sellAmount, uint256 _minReturn)
        public
        conversionsAllowed
        validGasPrice
        greaterThanZero(_minReturn)
        returns (uint256)
    {
        require(_sellAmount <= token.balanceOf(msg.sender)); // validate input

        uint256 amount = getSaleReturn(_reserveToken, _sellAmount);
        assert(amount != 0 && amount >= _minReturn); // ensure the trade gives something in return and meets the minimum requested amount

        uint256 tokenSupply = token.totalSupply();
        uint256 reserveBalance = getReserveBalance(_reserveToken);
        // ensure that the trade will only deplete the reserve if the total supply is depleted as well
        assert(amount < reserveBalance || (amount == reserveBalance && _sellAmount == tokenSupply));

        // update virtual balance if relevant
        Reserve storage reserve = reserves[_reserveToken];
        if (reserve.isVirtualBalanceEnabled)
            reserve.virtualBalance = safeSub(reserve.virtualBalance, amount);

        // destroy _sellAmount from the caller's balance in the smart token
        token.destroy(msg.sender, _sellAmount);
        // transfer funds to the caller in the reserve token
        // the transfer might fail if the actual reserve balance is smaller than the virtual balance
        assert(_reserveToken.transfer(msg.sender, amount));

        // calculate the new price using the simple price formula
        // price = reserve balance / (supply * CRR)
        // CRR is represented in ppm, so multiplying by 1000000
        uint256 reserveAmount = safeMul(getReserveBalance(_reserveToken), MAX_CRR);
        uint256 tokenAmount = safeMul(token.totalSupply(), reserve.ratio);
        Conversion(token, _reserveToken, msg.sender, _sellAmount, amount, tokenAmount, reserveAmount);
        return amount;
    }

    /**
        @dev converts the token to any other token in the bancor network by following a predefined conversion path
        note that when converting from an ERC20 token (as opposed to a smart token), allowance must be set beforehand

        @param _path        conversion path, see conversion path format in the BancorQuickConverter contract
        @param _amount      amount to convert from (in the initial source token)
        @param _minReturn   if the conversion results in an amount smaller than the minimum return - it is cancelled, must be nonzero

        @return tokens issued in return
    */
    function quickConvert(IERC20Token[] _path, uint256 _amount, uint256 _minReturn)
        public
        payable
        validConversionPath(_path)
        returns (uint256)
    {
        IERC20Token fromToken = _path[0];
        IBancorQuickConverter quickConverter = extensions.quickConverter();

        // we need to transfer the source tokens from the caller to the quick converter,
        // so it can execute the conversion on behalf of the caller
        if (msg.value == 0) {
            // not ETH, send the source tokens to the quick converter
            // if the token is the smart token, no allowance is required - destroy the tokens from the caller and issue them to the quick converter
            if (fromToken == token) {
                token.destroy(msg.sender, _amount); // destroy _amount tokens from the caller's balance in the smart token
                token.issue(quickConverter, _amount); // issue _amount new tokens to the quick converter
            }
            else {
                // otherwise, we assume we already have allowance, transfer the tokens directly to the quick converter
                assert(fromToken.transferFrom(msg.sender, quickConverter, _amount));
            }
        }

        // execute the conversion and pass on the ETH with the call
        return quickConverter.convertFor.value(msg.value)(_path, _amount, _minReturn, msg.sender);
    }

    // deprecated, backward compatibility
    function change(IERC20Token _fromToken, IERC20Token _toToken, uint256 _amount, uint256 _minReturn) public returns (uint256) {
        return convert(_fromToken, _toToken, _amount, _minReturn);
    }

    // deprecated, backward compatibility
    function quickChange(IERC20Token[] _path, uint256 _amount, uint256 _minReturn) public returns (uint256) {
        return quickConvert(_path, _amount, _minReturn);
    }

    // deprecated, backward compatibility
    function quickBuy(uint256 _minReturn) public payable returns (uint256) {
        return quickConvert(quickBuyPath, msg.value, _minReturn);
    }

    // deprecated, backward compatibility
    function hasQuickBuyEtherToken() public constant returns (bool) {
        return quickBuyPath.length > 0;
    }

    // deprecated, backward compatibility
    function getQuickBuyEtherToken() public constant returns (IEtherToken) {
        assert(quickBuyPath.length > 0);
        return IEtherToken(quickBuyPath[0]);
    }

    /**
        @dev utility, returns the expected return for selling the token for one of its reserve tokens, given a total supply override

        @param _reserveToken   reserve token contract address
        @param _sellAmount     amount to sell (in the smart token)
        @param _totalSupply    total token supply, overrides the actual token total supply when calculating the return

        @return sale return amount
    */
    function getSaleReturn(IERC20Token _reserveToken, uint256 _sellAmount, uint256 _totalSupply)
        private
        constant
        active
        validReserve(_reserveToken)
        greaterThanZero(_totalSupply)
        returns (uint256)
    {
        Reserve storage reserve = reserves[_reserveToken];
        uint256 reserveBalance = getReserveBalance(_reserveToken);
        uint256 amount = extensions.formula().calculateSaleReturn(_totalSupply, reserveBalance, reserve.ratio, _sellAmount);

        // deduct the fee from the return amount
        uint256 feeAmount = getConversionFeeAmount(amount);
        return safeSub(amount, feeAmount);
    }

    /**
        @dev fallback, buys the smart token with ETH
        note that the purchase will use the price at the time of the purchase
    */
    function() payable {
        quickConvert(quickBuyPath, msg.value, 1);
    }
}

    Contract ABI  
[{"constant":true,"inputs":[{"name":"_reserveToken","type":"address"}],"name":"getReserveBalance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_fromToken","type":"address"},{"name":"_toToken","type":"address"},{"name":"_amount","type":"uint256"}],"name":"getReturn","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"transferTokenOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_disable","type":"bool"}],"name":"disableConversions","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_extensions","type":"address"}],"name":"setExtensions","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"extensions","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_amount","type":"uint256"}],"name":"getConversionFeeAmount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_token","type":"address"},{"name":"_ratio","type":"uint32"},{"name":"_enableVirtualBalance","type":"bool"}],"name":"addReserve","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"acceptTokenOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"converterType","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_token","type":"address"},{"name":"_to","type":"address"},{"name":"_amount","type":"uint256"}],"name":"withdrawFromToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"newManager","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"manager","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"clearQuickBuyPath","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"version","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"conversionFee","outputs":[{"name":"","type":"uint32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_token","type":"address"},{"name":"_to","type":"address"},{"name":"_amount","type":"uint256"}],"name":"withdrawTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_fromToken","type":"address"},{"name":"_toToken","type":"address"},{"name":"_amount","type":"uint256"},{"name":"_minReturn","type":"uint256"}],"name":"change","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_reserveToken","type":"address"},{"name":"_sellAmount","type":"uint256"},{"name":"_minReturn","type":"uint256"}],"name":"sell","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_reserveToken","type":"address"},{"name":"_sellAmount","type":"uint256"}],"name":"getSaleReturn","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_fromToken","type":"address"},{"name":"_toToken","type":"address"},{"name":"_amount","type":"uint256"},{"name":"_minReturn","type":"uint256"}],"name":"convert","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_minReturn","type":"uint256"}],"name":"quickBuy","outputs":[{"name":"","type":"uint256"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[],"name":"acceptOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_disable","type":"bool"}],"name":"disableTokenTransfers","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getQuickBuyPathLength","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"maxConversionFee","outputs":[{"name":"","type":"uint32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"reserveTokenCount","outputs":[{"name":"","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_reserveToken","type":"address"},{"name":"_depositAmount","type":"uint256"}],"name":"getPurchaseReturn","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_reserveToken","type":"address"},{"name":"_depositAmount","type":"uint256"},{"name":"_minReturn","type":"uint256"}],"name":"buy","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_path","type":"address[]"},{"name":"_amount","type":"uint256"},{"name":"_minReturn","type":"uint256"}],"name":"quickChange","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_reserveToken","type":"address"},{"name":"_ratio","type":"uint32"},{"name":"_enableVirtualBalance","type":"bool"},{"name":"_virtualBalance","type":"uint256"}],"name":"updateReserve","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"hasQuickBuyEtherToken","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getQuickBuyEtherToken","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"convertibleTokenCount","outputs":[{"name":"","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"conversionsEnabled","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"acceptManagement","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"reserveTokens","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_path","type":"address[]"}],"name":"setQuickBuyPath","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"newOwner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"reserves","outputs":[{"name":"virtualBalance","type":"uint256"},{"name":"ratio","type":"uint32"},{"name":"isVirtualBalanceEnabled","type":"bool"},{"name":"isPurchaseEnabled","type":"bool"},{"name":"isSet","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newManager","type":"address"}],"name":"transferManagement","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"quickBuyPath","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_reserveToken","type":"address"},{"name":"_disable","type":"bool"}],"name":"disableReservePurchases","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_conversionFee","type":"uint32"}],"name":"setConversionFee","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_path","type":"address[]"},{"name":"_amount","type":"uint256"},{"name":"_minReturn","type":"uint256"}],"name":"quickConvert","outputs":[{"name":"","type":"uint256"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"_tokenIndex","type":"uint16"}],"name":"convertibleToken","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"token","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_token","type":"address"},{"name":"_extensions","type":"address"},{"name":"_maxConversionFee","type":"uint32"},{"name":"_reserveToken","type":"address"},{"name":"_reserveRatio","type":"uint32"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_fromToken","type":"address"},{"indexed":true,"name":"_toToken","type":"address"},{"indexed":true,"name":"_trader","type":"address"},{"indexed":false,"name":"_amount","type":"uint256"},{"indexed":false,"name":"_return","type":"uint256"},{"indexed":false,"name":"_currentPriceN","type":"uint256"},{"indexed":false,"name":"_currentPriceD","type":"uint256"}],"name":"Conversion","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_prevManager","type":"address"},{"indexed":false,"name":"_newManager","type":"address"}],"name":"ManagerUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_prevOwner","type":"address"},{"indexed":false,"name":"_newOwner","type":"address"}],"name":"OwnerUpdate","type":"event"}]

  Contract Creation Code Switch To Opcodes View
606060405260408051908101604052600381527f302e340000000000000000000000000000000000000000000000000000000000602082015260059080516200004d92916020019062000485565b506040805190810160405260068082527f62616e636f72000000000000000000000000000000000000000000000000000060208301529080516200009692916020019062000485565b50600b80546001606860020a0319166c010000000000000000000000001790553415620000c257600080fd5b60405160a0806200344a83398101604052808051919060200180519190602001805191906020018051919060200180519150505b5b845b5b5b5b60008054600160a060020a03191633600160a060020a03161790555b5b5b80600160a060020a03811615156200013157600080fd5b60028054600160a060020a031916600160a060020a0384161790555b5b505060038054600160a060020a03191633600160a060020a03161790555b83600160a060020a03811615156200018357600080fd5b8360008163ffffffff1610158015620001a55750620f424063ffffffff821611155b1515620001b157600080fd5b60078054600160a060020a031916600160a060020a0388811691909117909155600b805467ffffffff00000000191664010000000063ffffffff89160217905584161562000215576200021584846000640100000000620012be6200022682021704565b5b5b5b505b5050505050506200055c565b60005433600160a060020a039081169116146200023f57fe5b600254600160a060020a033081169116638da5cb5b6000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1515620002a557600080fd5b6102c65a03f11515620002b757600080fd5b50505060405180519050600160a060020a031614151515620002d557fe5b82600160a060020a0381161515620002ec57600080fd5b8330600160a060020a031681600160a060020a0316141515156200030f57600080fd5b8360008163ffffffff16118015620003305750620f424063ffffffff821611155b15156200033c57600080fd5b600254600160a060020a03878116911614801590620003815750600160a060020a0386166000908152600a60205260409020600101546601000000000000900460ff16155b8015620003a05750600b54620f424063ffffffff918216870190911611155b1515620003ac57600080fd5b600160a060020a0386166000908152600a602052604081209081556001908101805466010000000000006501000000000063ffffffff1990921663ffffffff8a161764ff000000001916640100000000891515021765ff000000000019169190911766ff000000000000191617905560088054909181016200042f83826200050b565b916000526020600020900160005b8154600160a060020a03808b166101009390930a9283029202191617905550600b805463ffffffff80821688011663ffffffff199091161790555b5b505b505b505b5b505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620004c857805160ff1916838001178555620004f8565b82800160010185558215620004f8579182015b82811115620004f8578251825591602001919060010190620004db565b5b506200050792915062000538565b5090565b8154818355818115116200047f576000838152602090206200047f91810190830162000538565b5b505050565b6200055991905b808211156200050757600081556001016200053f565b5090565b90565b612ede806200056c6000396000f300606060405236156102355763ffffffff60e060020a60003504166315226b5481146102a05780631e1401f8146102d157806321e6b53d1461030b578063228d28201461032c5780632314aad61461034657806324f159c2146103675780632a3c2c56146103965780633291b39a146103be57806338a5e016146103ed5780633e8ff43f1461040257806341a5b33d1461048d57806342906029146104b7578063481c6a75146104e65780634e2280c41461051557806354fd4d501461052a578063579cd3ca146105b55780635e35359e146105e15780635e5144eb1461060b5780636a2724621461064857806372b44b2c1461067f57806375892cf1146106b35780637758c4f8146106f057806379ba50971461070d57806385d5e631146107225780638da5cb5b1461073c5780639396a7f01461076b57806394c275ad146107905780639b99a8e2146107bc578063a2c4c336146107e6578063a59ac6dd1461081a578063a93d7c7214610851578063ab5841f2146108b9578063abeb5f9f146108eb578063b3a9afb714610912578063ba9a8b3714610941578063bf7545581461096b578063c8c2fe6c14610992578063d031370b146109a7578063d395ee0f146109d9578063d4ee1d9014610a2a578063d66bd52414610a59578063e4edf85214610ab4578063e7ee85a514610ad5578063e8c7893414610b07578063ecbca55d14610b2d578063f0843ba914610b4b578063f2c8d24714610ba8578063f2fde38b14610bde578063fc0c546a14610bff575b5b61029c600980548060200260200160405190810160405280929190818152602001828054801561028f57602002820191906000526020600020905b8154600160a060020a03168152600190910190602001808311610271575b5050505050346001610c2e565b505b005b34156102ab57600080fd5b6102bf600160a060020a0360043516610f52565b60405190815260200160405180910390f35b34156102dc57600080fd5b6102bf600160a060020a036004358116906024351660443561103e565b60405190815260200160405180910390f35b341561031657600080fd5b61029e600160a060020a036004351661113b565b005b341561033757600080fd5b61029e60043515156111bc565b005b341561035157600080fd5b61029e600160a060020a0360043516611201565b005b341561037257600080fd5b61037a611275565b604051600160a060020a03909116815260200160405180910390f35b34156103a157600080fd5b6102bf600435611284565b60405190815260200160405180910390f35b34156103c957600080fd5b61029e600160a060020a036004351663ffffffff6024351660443515156112be565b005b34156103f857600080fd5b61029e6114f7565b005b341561040d57600080fd5b610415611566565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156104525780820151818401525b602001610439565b50505050905090810190601f16801561047f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561049857600080fd5b61029e600160a060020a0360043581169060243516604435611604565b005b34156104c257600080fd5b61037a61169a565b604051600160a060020a03909116815260200160405180910390f35b34156104f157600080fd5b61037a6116a9565b604051600160a060020a03909116815260200160405180910390f35b341561052057600080fd5b61029e6116b8565b005b341561053557600080fd5b6104156116e2565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156104525780820151818401525b602001610439565b50505050905090810190601f16801561047f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156105c057600080fd5b6105c8611780565b60405163ffffffff909116815260200160405180910390f35b34156105ec57600080fd5b61029e600160a060020a0360043581169060243516604435611798565b005b341561061657600080fd5b6102bf600160a060020a036004358116906024351660443560643561188b565b60405190815260200160405180910390f35b341561065357600080fd5b6102bf600160a060020a03600435166024356044356118a4565b60405190815260200160405180910390f35b341561068a57600080fd5b6102bf600160a060020a0360043516602435611d08565b60405190815260200160405180910390f35b34156106be57600080fd5b6102bf600160a060020a0360043581169060243516604435606435611d83565b60405190815260200160405180910390f35b6102bf600435611e15565b60405190815260200160405180910390f35b341561071857600080fd5b61029e611e84565b005b341561072d57600080fd5b61029e6004351515611f1f565b005b341561074757600080fd5b61037a611f98565b604051600160a060020a03909116815260200160405180910390f35b341561077657600080fd5b6102bf611fa7565b60405190815260200160405180910390f35b341561079b57600080fd5b6105c8611fae565b60405163ffffffff909116815260200160405180910390f35b34156107c757600080fd5b6107cf611fc2565b60405161ffff909116815260200160405180910390f35b34156107f157600080fd5b6102bf600160a060020a0360043516602435611fc9565b60405190815260200160405180910390f35b341561082557600080fd5b6102bf600160a060020a0360043516602435604435612255565b60405190815260200160405180910390f35b341561085c57600080fd5b6102bf6004602481358181019083013580602081810201604051908101604052809392919081815260200183836020028082843750949650508435946020013593506125b192505050565b60405190815260200160405180910390f35b34156108c457600080fd5b61029e600160a060020a036004351663ffffffff6024351660443515156064356125c8565b005b34156108f657600080fd5b6108fe6126df565b604051901515815260200160405180910390f35b341561091d57600080fd5b61037a6126ea565b604051600160a060020a03909116815260200160405180910390f35b341561094c57600080fd5b6107cf61272e565b60405161ffff909116815260200160405180910390f35b341561097657600080fd5b6108fe612741565b604051901515815260200160405180910390f35b341561099d57600080fd5b61029e61275a565b005b34156109b257600080fd5b61037a6004356127f5565b604051600160a060020a03909116815260200160405180910390f35b34156109e457600080fd5b61029e600460248135818101908301358060208181020160405190810160405280939291908181526020018383602002808284375094965061282795505050505050565b005b3415610a3557600080fd5b61037a612892565b604051600160a060020a03909116815260200160405180910390f35b3415610a6457600080fd5b610a78600160a060020a03600435166128a1565b60405194855263ffffffff90931660208501529015156040808501919091529015156060840152901515608083015260a0909101905180910390f35b3415610abf57600080fd5b61029e600160a060020a03600435166128e7565b005b3415610ae057600080fd5b61037a60043561293a565b604051600160a060020a03909116815260200160405180910390f35b3415610b1257600080fd5b61029e600160a060020a0360043516602435151561296c565b005b3415610b3857600080fd5b61029e63ffffffff600435166129f5565b005b6102bf600460248135818101908301358060208181020160405190810160405280939291908181526020018383602002808284375094965050843594602001359350610c2e92505050565b60405190815260200160405180910390f35b3415610bb357600080fd5b61037a61ffff60043516612a73565b604051600160a060020a03909116815260200160405180910390f35b3415610be957600080fd5b61029e600160a060020a0360043516612ad0565b005b3415610c0a57600080fd5b61037a612b23565b604051600160a060020a03909116815260200160405180910390f35b60008060008560028151118015610c4757506015815111155b8015610c60575060028151811515610c5b57fe5b066001145b1515610c6b57600080fd5b86600081518110610c7857fe5b90602001906020020151600754909350600160a060020a031663c31e05476000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515610ccd57600080fd5b6102c65a03f11515610cde57600080fd5b5050506040518051925050341515610e6d57600254600160a060020a0384811691161415610de057600254600160a060020a031663a24835d1338860405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401600060405180830381600087803b1515610d5c57600080fd5b6102c65a03f11515610d6d57600080fd5b5050600254600160a060020a0316905063867904b4838860405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401600060405180830381600087803b1515610dc757600080fd5b6102c65a03f11515610dd857600080fd5b505050610e6d565b82600160a060020a03166323b872dd33848960006040516020015260405160e060020a63ffffffff8616028152600160a060020a0393841660048201529190921660248201526044810191909152606401602060405180830381600087803b1515610e4a57600080fd5b6102c65a03f11515610e5b57600080fd5b505050604051805190501515610e6d57fe5b5b5b81600160a060020a031663c98fefed34898989336000604051602001526040518663ffffffff1660e060020a028152600401808060200185815260200184815260200183600160a060020a0316600160a060020a03168152602001828103825286818151815260200191508051906020019060200280838360005b83811015610f035780820151818401525b602001610eea565b50505050905001955050505050506020604051808303818588803b1515610f2957600080fd5b6125ee5a03f11515610f3a57600080fd5b5050505060405180519450505b5b5050509392505050565b600160a060020a0381166000908152600a6020526040812060010154819083906601000000000000900460ff161515610f8a57600080fd5b600160a060020a0384166000908152600a602052604090206001810154909250640100000000900460ff166110305783600160a060020a03166370a082313060006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b151561101057600080fd5b6102c65a03f1151561102157600080fd5b50505060405180519050611033565b81545b92505b5b5050919050565b600080600160a060020a03858116908516141561105a57600080fd5b600254600160a060020a03858116911614156110815761107a8584611fc9565b9150611133565b600254600160a060020a03868116911614156110a85761107a8484611d08565b9150611133565b5b6110b38584611fc9565b600254909150611130908590839061112b90600160a060020a03166318160ddd6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561110a57600080fd5b6102c65a03f1151561111b57600080fd5b5050506040518051905085612b32565b612b4c565b91505b509392505050565b60005433600160a060020a0390811691161461115357fe5b600254600160a060020a031663f2fde38b8260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401600060405180830381600087803b15156111a357600080fd5b6102c65a03f115156111b457600080fd5b5050505b5b50565b60035433600160a060020a039081169116146111d457fe5b600b80546cff000000000000000000000000191682156c01000000000000000000000000021790555b5b50565b60005433600160a060020a0390811691161461121957fe5b80600160a060020a038116151561122f57600080fd5b8130600160a060020a031681600160a060020a03161415151561125157600080fd5b60078054600160a060020a031916600160a060020a0385161790555b5b505b505b50565b600754600160a060020a031681565b600b54600090620f4240906112ac90849068010000000000000000900463ffffffff16612d64565b8115156112b557fe5b0490505b919050565b60005433600160a060020a039081169116146112d657fe5b600254600160a060020a033081169116638da5cb5b6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561132257600080fd5b6102c65a03f1151561133357600080fd5b50505060405180519050600160a060020a03161415151561135057fe5b82600160a060020a038116151561136657600080fd5b8330600160a060020a031681600160a060020a03161415151561138857600080fd5b8360008163ffffffff161180156113a85750620f424063ffffffff821611155b15156113b357600080fd5b600254600160a060020a038781169116148015906113f75750600160a060020a0386166000908152600a60205260409020600101546601000000000000900460ff16155b80156114155750600b54620f424063ffffffff918216870190911611155b151561142057600080fd5b600160a060020a0386166000908152600a602052604081209081556001908101805466010000000000006501000000000063ffffffff1990921663ffffffff8a161764ff000000001916640100000000891515021765ff000000000019169190911766ff000000000000191617905560088054909181016114a18382612daa565b916000526020600020900160005b8154600160a060020a03808b166101009390930a9283029202191617905550600b805463ffffffff80821688011663ffffffff199091161790555b5b505b505b505b5b505050565b60005433600160a060020a0390811691161461150f57fe5b600254600160a060020a03166379ba50976040518163ffffffff1660e060020a028152600401600060405180830381600087803b151561154e57600080fd5b6102c65a03f1151561126d57600080fd5b5050505b5b565b60068054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156115fc5780601f106115d1576101008083540402835291602001916115fc565b820191906000526020600020905b8154815290600101906020018083116115df57829003601f168201915b505050505081565b60005433600160a060020a0390811691161461161c57fe5b600254600160a060020a0316635e35359e84848460405160e060020a63ffffffff8616028152600160a060020a0393841660048201529190921660248201526044810191909152606401600060405180830381600087803b151561167f57600080fd5b6102c65a03f115156114ea57600080fd5b5050505b5b505050565b600454600160a060020a031681565b600354600160a060020a031681565b60005433600160a060020a039081169116146116d057fe5b60006111b8600982612daa565b505b5b565b60058054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156115fc5780601f106115d1576101008083540402835291602001916115fc565b820191906000526020600020905b8154815290600101906020018083116115df57829003601f168201915b505050505081565b600b5468010000000000000000900463ffffffff1681565b60005433600160a060020a039081169116146117b057fe5b82600160a060020a03811615156117c657600080fd5b82600160a060020a03811615156117dc57600080fd5b8330600160a060020a031681600160a060020a0316141515156117fe57600080fd5b85600160a060020a031663a9059cbb868660006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b151561185b57600080fd5b6102c65a03f1151561186c57600080fd5b5050506040518051905015156114ea57fe5b5b5b505b505b505b505050565b600061189985858585611d83565b90505b949350505050565b6000806000806000806000600b600c9054906101000a900460ff1615156118c757fe5b600754600160a060020a031663961a929c6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561190f57600080fd5b6102c65a03f1151561192057600080fd5b50505060405180519050600160a060020a031663fe173b976000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561196f57600080fd5b6102c65a03f1151561198057600080fd5b50505060405180513a1115905061199357fe5b87600081116119a157600080fd5b600254600160a060020a03166370a082313360006040516020015260405160e060020a63ffffffff8416028152600160a060020a039091166004820152602401602060405180830381600087803b15156119fa57600080fd5b6102c65a03f11515611a0b57600080fd5b50505060405180518b11159050611a2157600080fd5b611a2b8b8b611d08565b96508615801590611a3c5750888710155b1515611a4457fe5b600254600160a060020a03166318160ddd6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515611a8c57600080fd5b6102c65a03f11515611a9d57600080fd5b505050604051805190509550611ab28b610f52565b945084871080611acb57508487148015611acb5750858a145b5b1515611ad457fe5b600160a060020a038b166000908152600a602052604090206001810154909450640100000000900460ff1615611b13578354611b109088612d93565b84555b600254600160a060020a031663a24835d1338c60405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401600060405180830381600087803b1515611b6957600080fd5b6102c65a03f11515611b7a57600080fd5b5050508a600160a060020a031663a9059cbb338960006040516020015260405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401602060405180830381600087803b1515611bda57600080fd5b6102c65a03f11515611beb57600080fd5b505050604051805190501515611bfd57fe5b611c12611c098c610f52565b620f4240612d64565b600254909350611c8d90600160a060020a03166318160ddd6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515611c6157600080fd5b6102c65a03f11515611c7257600080fd5b5050506040518051600187015490915063ffffffff16612d64565b600254909250600160a060020a03338116918d821691167f431d62569d69247969ee24b65452f881ddcc12e42b7b71c324403449f870c0d38d8b87896040518085815260200184815260200183815260200182815260200194505050505060405180910390a48697505b5b505b5b5050505050509392505050565b600254600090611d7a9084908490600160a060020a03166318160ddd85604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515611d5a57600080fd5b6102c65a03f11515611d6b57600080fd5b50505060405180519050612b4c565b90505b92915050565b600080600160a060020a038681169086161415611d9f57600080fd5b600254600160a060020a0386811691161415611dc757611dc0868585612255565b9150611e0c565b600254600160a060020a0387811691161415611def57611dc08585856118a4565b9150611e0c565b5b611dfc86856001612255565b9050611e098582856118a4565b91505b50949350505050565b6000611e7c6009805480602002602001604051908101604052809291908181526020018280548015611e7057602002820191906000526020600020905b8154600160a060020a03168152600190910190602001808311611e52575b50505050503484610c2e565b90505b919050565b60015433600160a060020a03908116911614611e9f57600080fd5b6000546001547f343765429aea5a34b3ff6a3785a98a5abb2597aca87bfbb58632c173d585373a91600160a060020a039081169116604051600160a060020a039283168152911660208201526040908101905180910390a16001805460008054600160a060020a0319908116600160a060020a038416179091551690555b565b60005433600160a060020a03908116911614611f3757fe5b600254600160a060020a0316631608f18f8260405160e060020a63ffffffff84160281529015156004820152602401600060405180830381600087803b15156111a357600080fd5b6102c65a03f115156111b457600080fd5b5050505b5b50565b600054600160a060020a031681565b6009545b90565b600b54640100000000900463ffffffff1681565b6008545b90565b60025460009081908190819081908190600160a060020a033081169116638da5cb5b83604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561202157600080fd5b6102c65a03f1151561203257600080fd5b50505060405180519050600160a060020a031614151561204e57fe5b600160a060020a0388166000908152600a602052604090206001015488906601000000000000900460ff16151561208457600080fd5b600160a060020a0389166000908152600a60205260409020600181015490965065010000000000900460ff1615156120bb57600080fd5b600254600160a060020a03166318160ddd6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561210357600080fd5b6102c65a03f1151561211457600080fd5b50505060405180519050945061212989610f52565b600754909450600160a060020a0316634b75f54f6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561217457600080fd5b6102c65a03f1151561218557600080fd5b50505060405180516001880154600160a060020a0390911691506329a00e7c908790879063ffffffff168c6000604051602001526040518563ffffffff1660e060020a028152600401808581526020018481526020018363ffffffff1663ffffffff168152602001828152602001945050505050602060405180830381600087803b151561221257600080fd5b6102c65a03f1151561222357600080fd5b50505060405180519050925061223883611284565b91506122448383612d93565b96505b5b505b505050505092915050565b6000806000806000600b600c9054906101000a900460ff16151561227557fe5b600754600160a060020a031663961a929c6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b15156122bd57600080fd5b6102c65a03f115156122ce57600080fd5b50505060405180519050600160a060020a031663fe173b976000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b151561231d57600080fd5b6102c65a03f1151561232e57600080fd5b50505060405180513a1115905061234157fe5b856000811161234f57600080fd5b6123598989611fc9565b9450841580159061236a5750868510155b151561237257fe5b600160a060020a0389166000908152600a602052604090206001810154909450640100000000900460ff16156123b15783546123ae9089612b32565b84555b88600160a060020a03166323b872dd33308b60006040516020015260405160e060020a63ffffffff8616028152600160a060020a0393841660048201529190921660248201526044810191909152606401602060405180830381600087803b151561241b57600080fd5b6102c65a03f1151561242c57600080fd5b50505060405180519050151561243e57fe5b600254600160a060020a031663867904b4338760405160e060020a63ffffffff8516028152600160a060020a0390921660048301526024820152604401600060405180830381600087803b151561249457600080fd5b6102c65a03f115156124a557600080fd5b5050506124bd611c098a610f52565b620f4240612d64565b60025490935061253890600160a060020a03166318160ddd6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515611c6157600080fd5b6102c65a03f11515611c7257600080fd5b5050506040518051600187015490915063ffffffff16612d64565b600254909250600160a060020a03338116918116908b167f431d62569d69247969ee24b65452f881ddcc12e42b7b71c324403449f870c0d38b8988886040518085815260200184815260200183815260200182815260200194505050505060405180910390a48495505b5b505b5b505050509392505050565b60006125be848484610c2e565b90505b9392505050565b6000805433600160a060020a039081169116146125e157fe5b600160a060020a0385166000908152600a602052604090206001015485906601000000000000900460ff16151561261757600080fd5b8460008163ffffffff161180156126375750620f424063ffffffff821611155b151561264257600080fd5b600160a060020a0387166000908152600a602052604090206001810154600b54919450620f424063ffffffff91821692821692909203880116111561268657600080fd5b600183018054600b805463ffffffff928316818416038a01831663ffffffff199182161790915582548815156401000000000264ff0000000019938b169190921617919091161790558383555b5b505b505b5050505050565b600954600090115b90565b6009546000908190116126f957fe5b60098054600090811061270857fe5b906000526020600020900160005b9054906101000a9004600160a060020a031690505b90565b6000612738611fc2565b60010190505b90565b600b546c01000000000000000000000000900460ff1681565b60045433600160a060020a0390811691161461277557600080fd5b6003546004547fbe4cc281795971a471c980e842627a7f1ea3892ddfce8c5b6357cd2611c1973291600160a060020a039081169116604051600160a060020a039283168152911660208201526040908101905180910390a16004805460038054600160a060020a0319908116600160a060020a038416179091551690555b565b600880548290811061280357fe5b906000526020600020900160005b915054906101000a9004600160a060020a031681565b60005433600160a060020a0390811691161461283f57fe5b806002815111801561285357506015815111155b801561286c57506002815181151561286757fe5b066001145b151561287757600080fd5b600982805161126d929160200190612dfe565b505b5b505b50565b600154600160a060020a031681565b600a602052600090815260409020805460019091015463ffffffff81169060ff640100000000820481169165010000000000810482169166010000000000009091041685565b60035433600160a060020a039081169116146128ff57fe5b600354600160a060020a038281169116141561291a57600080fd5b60048054600160a060020a031916600160a060020a0383161790555b5b50565b600980548290811061280357fe5b906000526020600020900160005b915054906101000a9004600160a060020a031681565b60005433600160a060020a0390811691161461298457fe5b600160a060020a0382166000908152600a602052604090206001015482906601000000000000900460ff1615156129ba57600080fd5b600160a060020a0383166000908152600a60205260409020600101805465ff00000000001916831565010000000000021790555b5b505b5050565b60035433600160a060020a03908116911614612a0d57fe5b8060008163ffffffff1610158015612a395750600b5463ffffffff640100000000909104811690821611155b1515612a4457600080fd5b600b80546bffffffff000000000000000019166801000000000000000063ffffffff8516021790555b5b505b50565b600061ffff82161515612a925750600254600160a060020a03166112b9565b6008805461ffff600019850116908110612aa857fe5b906000526020600020900160005b9054906101000a9004600160a060020a031690505b919050565b60005433600160a060020a03908116911614612ae857fe5b600054600160a060020a0382811691161415612b0357600080fd5b60018054600160a060020a031916600160a060020a0383161790555b5b50565b600254600160a060020a031681565b600082820183811015612b4157fe5b8091505b5092915050565b6002546000908190819081908190600160a060020a033081169116638da5cb5b83604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515612ba257600080fd5b6102c65a03f11515612bb357600080fd5b50505060405180519050600160a060020a0316141515612bcf57fe5b600160a060020a0388166000908152600a602052604090206001015488906601000000000000900460ff161515612c0557600080fd5b8660008111612c1357600080fd5b600160a060020a038a166000908152600a602052604090209550612c368a610f52565b600754909550600160a060020a0316634b75f54f6000604051602001526040518163ffffffff1660e060020a028152600401602060405180830381600087803b1515612c8157600080fd5b6102c65a03f11515612c9257600080fd5b50505060405180516001880154600160a060020a0390911691506349f9b0f7908a90889063ffffffff168d6000604051602001526040518563ffffffff1660e060020a028152600401808581526020018481526020018363ffffffff1663ffffffff168152602001828152602001945050505050602060405180830381600087803b1515612d1f57600080fd5b6102c65a03f11515612d3057600080fd5b505050604051805190509350612d4584611284565b9250612d518484612d93565b96505b5b505b505b505050509392505050565b6000828202831580612d805750828482811515612d7d57fe5b04145b1515612b4157fe5b8091505b5092915050565b600081831015612d9f57fe5b508082035b92915050565b81548183558181151161126d5760008381526020902061126d918101908301612e66565b5b505050565b81548183558181151161126d5760008381526020902061126d918101908301612e66565b5b505050565b828054828255906000526020600020908101928215612e55579160200282015b82811115612e555782518254600160a060020a031916600160a060020a039190911617825560209290920191600190910190612e1e565b5b50612e62929150612e87565b5090565b611fab91905b80821115612e625760008155600101612e6c565b5090565b90565b611fab91905b80821115612e62578054600160a060020a0319168155600101612e8d565b5090565b905600a165627a7a723058203bcef28c4ec11ed12402a171b2dd19dc92ac88874efc5b720e6fe0af1749c5bf00290000000000000000000000001f573d6fb3f13d689ff844b4ce37794d79a7ff1c00000000000000000000000097b15506eacce136e8241a354c22e779b664b1030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0829421c1d260bd3cb3e0f06cfe2d52db2ce31500000000000000000000000000000000000000000000000000000000000186a0

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

-----Decoded View---------------
Found 5 constructor arguments :
Arg [0] : 0000000000000000000000001f573d6fb3f13d689ff844b4ce37794d79a7ff1c
Arg [1] : 00000000000000000000000097b15506eacce136e8241a354c22e779b664b103
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [3] : 000000000000000000000000c0829421c1d260bd3cb3e0f06cfe2d52db2ce315
Arg [4] : 00000000000000000000000000000000000000000000000000000000000186a0


   Swarm Source:
bzzr://3bcef28c4ec11ed12402a171b2dd19dc92ac88874efc5b720e6fe0af1749c5bf

 

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.