Latest 25 transactions from a total of 136 transactions

TxHash Age From To Value [TxFee]
0x44922904f23195f67a36a1b1a1567c52a55346c189ef3636d8886cea5596bb2d54 days 13 hrs ago0x0a975d7b53f8da11e64196d53fb35532fea37e86  IN   0x60ec346c2382dda7b6666ad08d178101115e36b60.3 Ether0.0035925388
0xb9118d413a5792b4c600638f9eaac9ddeb0fb809c6faa237be116515f71851cd61 days 21 hrs ago0xdf5c33b9823d85d97a7563ca63fe937428b976cf  IN   0x60ec346c2382dda7b6666ad08d178101115e36b60.16698267 Ether0.002412072
0xa7e7764b83c2e8a40ec9436179da2f5bc59a12a269c397e9de3190f79c016fd461 days 22 hrs ago0xdf5c33b9823d85d97a7563ca63fe937428b976cf  IN   0x60ec346c2382dda7b6666ad08d178101115e36b60.16774512 Ether0.002413224
0xa3e8247d7d7879e650a2c87a41c1b858d265e575e5038d526dc4b742db9ad65e61 days 23 hrs ago0xdf5c33b9823d85d97a7563ca63fe937428b976cf  IN   0x60ec346c2382dda7b6666ad08d178101115e36b60.3349782 Ether0.002683224
0x01172861496349d335ce51324b8d0f48898b453765dae3ca6fbcca777f640d7866 days 20 hrs ago0xba96a5aafe654823f8fb0f210072b32d6b64bc48  IN   0x60ec346c2382dda7b6666ad08d178101115e36b60 Ether0.0025962118
0x65a6e16c782412ddab320ed238777468d46b87a4de44b02f4f9233f9a3c65bbc67 days 13 hrs ago0x7b71e752daffb8d8fbe193344e94cc53e5273a84  IN   0x60ec346c2382dda7b6666ad08d178101115e36b60 Ether0.0026544618
0xa97402e79b4ebe2f8fac8bc7c1726ed59881b4e3cdc0af5c97de3ea342e3ee3667 days 13 hrs ago0xec41558e41484ce52287b0b4bd6e34b5ab7301d9  IN   0x60ec346c2382dda7b6666ad08d178101115e36b60 Ether0.0026247416
0xfb17f489e519ac1706f494e4b3c98e9980050cbdc6d03c83b6f2e647910f189f67 days 15 hrs ago0xec41558e41484ce52287b0b4bd6e34b5ab7301d9  IN   0x60ec346c2382dda7b6666ad08d178101115e36b60.1 Ether0.003206338
0x9b6cf37c635ee745520c498dd66c17196e738758bab11467a50fa759ffa0244270 days 11 hrs ago0x483d272117a1d166ebe42a5798e0c5e1c22623b6  IN   0x60ec346c2382dda7b6666ad08d178101115e36b60.05 Ether0.00268092
0x8569583e25f45608256b4caa6b8dad59a093022cdc5849fac292df46d174659271 days 16 hrs ago0xb1cf10afe955cb09f81398af4c8159346a59e8ab  IN   0x60ec346c2382dda7b6666ad08d178101115e36b60.0033727 Ether0.002413224
0x6b08d5d1ea626e4d74f65225fa80809311bfa89c2d9a34a064cf685830dd280371 days 16 hrs ago0xb1cf10afe955cb09f81398af4c8159346a59e8ab  IN   0x60ec346c2382dda7b6666ad08d178101115e36b60.0033755 Ether0.0027130376
0x3a08fe97bb621a71a21123ea0cce14b100b913362af808bf2b614b0fade7aecc74 days 2 hrs ago0xfc9ba488581d765fd037035010b11c79f81ea2e0  IN   0x60ec346c2382dda7b6666ad08d178101115e36b60.1 Ether0.002682072
0x559fe21e779a14342d88e81a8ffc25189cf9a7e16bd6689bee17eba0880c444780 days 18 hrs ago0x2439b8c07ec5c30792c0837aff842d6f2ee508a2  IN   0x60ec346c2382dda7b6666ad08d178101115e36b60.004087395 Ether0.002827428
0xc47cb76b015ed8897da378384be06ae3091577086c75a18a107b6ba9e153719698 days 12 hrs ago0x533a99a1292c7ddb74621bf288f50fa34d42c79e  IN   0x60ec346c2382dda7b6666ad08d178101115e36b61 Ether0.002684376
0x77ac041fd12c10c32fdf522b0ce9c4d6c840c68185f7233a11473046ecdfe2da104 days 23 hrs ago0x5cd1fea97f27b33af639dd9dca39e4b088536023  IN   0x60ec346c2382dda7b6666ad08d178101115e36b60 Ether0.00171513
0x9823e200a7050171112228d7ac839f6e22b4fa0c098eeb100c09c4af817be558106 days 1 hr ago0xba96a5aafe654823f8fb0f210072b32d6b64bc48  IN   0x60ec346c2382dda7b6666ad08d178101115e36b60 Ether0.003086082
0x9cb915ec9c74629455168416d172bb85a276ceb24280c4f419c500bd2b4f6c5a106 days 1 hr ago0x73bf8b514636a9fe74237319cf38195abd9a3ed0  IN   0x60ec346c2382dda7b6666ad08d178101115e36b60.081308025 Ether0.00162804
0x3749228c64fcb088366094dcaede7a5d475870a03ecbaffb29d54d8273da4d09106 days 1 hr ago0x73bf8b514636a9fe74237319cf38195abd9a3ed0  IN   0x60ec346c2382dda7b6666ad08d178101115e36b60 Ether0.003088386
0xee88c839ba2350ba297a27b54767772158c833b8eec3373fe5edeb1241a1e56e108 days 1 hr ago0xba96a5aafe654823f8fb0f210072b32d6b64bc48  IN   0x60ec346c2382dda7b6666ad08d178101115e36b60.02909244 Ether0.003026964
0x34ca1152ec8fd68dc0eeb68c53ccbd6502bdc502d5cdd726bae4ca17a2f5b12c108 days 20 hrs ago0xba96a5aafe654823f8fb0f210072b32d6b64bc48  IN   0x60ec346c2382dda7b6666ad08d178101115e36b60 Ether0.00308493
0xf5315ef3046f268151621c0912365daf8f93c67f96c24c814cc7241f5ff63180109 days 21 hrs ago0xba96a5aafe654823f8fb0f210072b32d6b64bc48  IN   0x60ec346c2382dda7b6666ad08d178101115e36b60 Ether0.0033420075
0x2c9c10f69ff4b434c60fec6e446a14e71f6fea60d2435863cac8c9545b60b754109 days 21 hrs ago0xba96a5aafe654823f8fb0f210072b32d6b64bc48  IN   0x60ec346c2382dda7b6666ad08d178101115e36b60 Ether0.003256315
0x65333478351c2ca2d20c27649716b07ddd7860add3e750bb087b0f26183a8a0c112 days 21 hrs ago0xba96a5aafe654823f8fb0f210072b32d6b64bc48  IN   0x60ec346c2382dda7b6666ad08d178101115e36b60 Ether0.2160930084
0x394eef25a84f7ec9d48d18bbe1cdca5c93e58086d66b9e22109e6b441feb7d46114 days 3 hrs ago0xd686cc8104cf5e558da6ec22bac15734a7731f48  IN   0x60ec346c2382dda7b6666ad08d178101115e36b60.5 Ether0.003745964
0xc6f7372fb6299f3e6a9cebb515cda396ea178d4f206c75c90cd270b72481756a114 days 3 hrs ago0xd686cc8104cf5e558da6ec22bac15734a7731f48  IN   0x60ec346c2382dda7b6666ad08d178101115e36b60.1 Ether0.0041265376
[ 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
0x44922904f23195f67a36a1b1a1567c52a55346c189ef3636d8886cea5596bb2d452606354 days 13 hrs ago0x60ec346c2382dda7b6666ad08d178101115e36b60xa0530fa979fdbc3c6e8a91573277827826b809500 Ether
0x44922904f23195f67a36a1b1a1567c52a55346c189ef3636d8886cea5596bb2d452606354 days 13 hrs ago0x60ec346c2382dda7b6666ad08d178101115e36b60x479cc461fecd078f766ecc58533d6f69580cf3ac0 Ether
0x44922904f23195f67a36a1b1a1567c52a55346c189ef3636d8886cea5596bb2d452606354 days 13 hrs ago0x60ec346c2382dda7b6666ad08d178101115e36b60xc778417e063141139fce010982780140aa0cd5ab0 Ether
0x44922904f23195f67a36a1b1a1567c52a55346c189ef3636d8886cea5596bb2d452606354 days 13 hrs ago0x60ec346c2382dda7b6666ad08d178101115e36b60xc778417e063141139fce010982780140aa0cd5ab0.3 Ether
0xb9118d413a5792b4c600638f9eaac9ddeb0fb809c6faa237be116515f71851cd447780261 days 21 hrs ago0x60ec346c2382dda7b6666ad08d178101115e36b60xa0530fa979fdbc3c6e8a91573277827826b809500 Ether
0xb9118d413a5792b4c600638f9eaac9ddeb0fb809c6faa237be116515f71851cd447780261 days 21 hrs ago0x60ec346c2382dda7b6666ad08d178101115e36b60x479cc461fecd078f766ecc58533d6f69580cf3ac0 Ether
0xb9118d413a5792b4c600638f9eaac9ddeb0fb809c6faa237be116515f71851cd447780261 days 21 hrs ago0x60ec346c2382dda7b6666ad08d178101115e36b60xc778417e063141139fce010982780140aa0cd5ab0 Ether
0xb9118d413a5792b4c600638f9eaac9ddeb0fb809c6faa237be116515f71851cd447780261 days 21 hrs ago0x60ec346c2382dda7b6666ad08d178101115e36b60xc778417e063141139fce010982780140aa0cd5ab0.16698267 Ether
0xa7e7764b83c2e8a40ec9436179da2f5bc59a12a269c397e9de3190f79c016fd4447763961 days 22 hrs ago0x60ec346c2382dda7b6666ad08d178101115e36b60xa0530fa979fdbc3c6e8a91573277827826b809500 Ether
0xa7e7764b83c2e8a40ec9436179da2f5bc59a12a269c397e9de3190f79c016fd4447763961 days 22 hrs ago0x60ec346c2382dda7b6666ad08d178101115e36b60x479cc461fecd078f766ecc58533d6f69580cf3ac0 Ether
0xa7e7764b83c2e8a40ec9436179da2f5bc59a12a269c397e9de3190f79c016fd4447763961 days 22 hrs ago0x60ec346c2382dda7b6666ad08d178101115e36b60xc778417e063141139fce010982780140aa0cd5ab0 Ether
0xa7e7764b83c2e8a40ec9436179da2f5bc59a12a269c397e9de3190f79c016fd4447763961 days 22 hrs ago0x60ec346c2382dda7b6666ad08d178101115e36b60xc778417e063141139fce010982780140aa0cd5ab0.16774512 Ether
0xa3e8247d7d7879e650a2c87a41c1b858d265e575e5038d526dc4b742db9ad65e447734961 days 23 hrs ago0x60ec346c2382dda7b6666ad08d178101115e36b60xa0530fa979fdbc3c6e8a91573277827826b809500 Ether
0xa3e8247d7d7879e650a2c87a41c1b858d265e575e5038d526dc4b742db9ad65e447734961 days 23 hrs ago0x60ec346c2382dda7b6666ad08d178101115e36b60x479cc461fecd078f766ecc58533d6f69580cf3ac0 Ether
0xa3e8247d7d7879e650a2c87a41c1b858d265e575e5038d526dc4b742db9ad65e447734961 days 23 hrs ago0x60ec346c2382dda7b6666ad08d178101115e36b60xc778417e063141139fce010982780140aa0cd5ab0 Ether
0xa3e8247d7d7879e650a2c87a41c1b858d265e575e5038d526dc4b742db9ad65e447734961 days 23 hrs ago0x60ec346c2382dda7b6666ad08d178101115e36b60xc778417e063141139fce010982780140aa0cd5ab0.3349782 Ether
0x01172861496349d335ce51324b8d0f48898b453765dae3ca6fbcca777f640d78444497066 days 20 hrs ago0x60ec346c2382dda7b6666ad08d178101115e36b60xba96a5aafe654823f8fb0f210072b32d6b64bc480.030815708 Ether
0x01172861496349d335ce51324b8d0f48898b453765dae3ca6fbcca777f640d78444497066 days 20 hrs ago0xc778417e063141139fce010982780140aa0cd5ab0x60ec346c2382dda7b6666ad08d178101115e36b60.030815708 Ether
0x01172861496349d335ce51324b8d0f48898b453765dae3ca6fbcca777f640d78444497066 days 20 hrs ago0x60ec346c2382dda7b6666ad08d178101115e36b60xc778417e063141139fce010982780140aa0cd5ab0 Ether
0x01172861496349d335ce51324b8d0f48898b453765dae3ca6fbcca777f640d78444497066 days 20 hrs ago0x60ec346c2382dda7b6666ad08d178101115e36b60x479cc461fecd078f766ecc58533d6f69580cf3ac0 Ether
0x01172861496349d335ce51324b8d0f48898b453765dae3ca6fbcca777f640d78444497066 days 20 hrs ago0x60ec346c2382dda7b6666ad08d178101115e36b60xa0530fa979fdbc3c6e8a91573277827826b809500 Ether
0x01172861496349d335ce51324b8d0f48898b453765dae3ca6fbcca777f640d78444497066 days 20 hrs ago0x60ec346c2382dda7b6666ad08d178101115e36b60xa0530fa979fdbc3c6e8a91573277827826b809500 Ether
0x65a6e16c782412ddab320ed238777468d46b87a4de44b02f4f9233f9a3c65bbc444007767 days 13 hrs ago0x60ec346c2382dda7b6666ad08d178101115e36b60x7b71e752daffb8d8fbe193344e94cc53e5273a840.31034738 Ether
0x65a6e16c782412ddab320ed238777468d46b87a4de44b02f4f9233f9a3c65bbc444007767 days 13 hrs ago0xc778417e063141139fce010982780140aa0cd5ab0x60ec346c2382dda7b6666ad08d178101115e36b60.31034738 Ether
0x65a6e16c782412ddab320ed238777468d46b87a4de44b02f4f9233f9a3c65bbc444007767 days 13 hrs ago0x60ec346c2382dda7b6666ad08d178101115e36b60xc778417e063141139fce010982780140aa0cd5ab0 Ether
[ Download CSV Export  ] 
Warning: The Compiled Contract might be susceptible to ExpExponentCleanup (medium/high-severity), EventStructWrongData (very low-severity) SolidityCompiler Bugs.

Contract Source Code Verified (Exact Match)
Contract Name: HydroSwap
Compiler Text: v0.4.24+commit.e67f0147
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity 0.4.24;

contract ERC20 {
    function transfer(address to, uint tokens) public returns (bool success);
    function approve(address spender, uint tokens) public returns (bool success);
    function transferFrom(address from, address to, uint tokens) public returns (bool success);
}

contract Exchange {
    function fillOrder(address[5], uint[6], uint, bool, uint8, bytes32, bytes32) public returns (uint);
}

contract WETH {
    function deposit() public payable;
    function withdraw(uint) public;
}

contract HydroSwap {
    address exchangeAddress;
    address tokenProxyAddress;
    address wethAddress;

    uint256 constant MAX_UINT = 2 ** 256 - 1;

    event LogSwapSuccess(bytes32 indexed id);

    constructor(address _exchangeAddress, address _tokenProxyAddress, address _wethAddress) public {
        exchangeAddress = _exchangeAddress;
        tokenProxyAddress = _tokenProxyAddress;
        wethAddress = _wethAddress;
    }

    function swap(
        bytes32 id,
        address[5] orderAddresses,
        uint[6] orderValues,
        uint8 v,
        bytes32 r,
        bytes32 s)
        external
        payable
        returns (uint256 takerTokenFilledAmount)
    {
        address makerTokenAddress = orderAddresses[2];
        address takerTokenAddress = orderAddresses[3];
        uint makerTokenAmount = orderValues[0];
        uint takerTokenAmount = orderValues[1];

        if (takerTokenAddress == wethAddress) {
            require(takerTokenAmount == msg.value, "WRONG_ETH_AMOUNT");
            WETH(wethAddress).deposit.value(takerTokenAmount)();
        } else {
            require(ERC20(takerTokenAddress).transferFrom(msg.sender, this, takerTokenAmount), "TOKEN_TRANSFER_FROM_ERROR");
        }

        require(ERC20(takerTokenAddress).approve(tokenProxyAddress, takerTokenAmount), "TOKEN_APPROVE_ERROR");

        require(
            Exchange(exchangeAddress).fillOrder(orderAddresses, orderValues, takerTokenAmount, true, v, r, s) == takerTokenAmount,
            "FILL_ORDER_ERROR"
        );

        if (makerTokenAddress == wethAddress) {
            WETH(wethAddress).withdraw(makerTokenAmount);
            msg.sender.transfer(makerTokenAmount);
        } else {
            require(ERC20(makerTokenAddress).transfer(msg.sender, makerTokenAmount), "TOKEN_TRANSFER_ERROR");
        }

        emit LogSwapSuccess(id);

        return takerTokenAmount;
    }

    // Need payable fallback function to accept the WETH withdraw funds.
    function() public payable {} 
}

    Contract ABI  
[{"constant":false,"inputs":[{"name":"id","type":"bytes32"},{"name":"orderAddresses","type":"address[5]"},{"name":"orderValues","type":"uint256[6]"},{"name":"v","type":"uint8"},{"name":"r","type":"bytes32"},{"name":"s","type":"bytes32"}],"name":"swap","outputs":[{"name":"takerTokenFilledAmount","type":"uint256"}],"payable":true,"stateMutability":"payable","type":"function"},{"inputs":[{"name":"_exchangeAddress","type":"address"},{"name":"_tokenProxyAddress","type":"address"},{"name":"_wethAddress","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"id","type":"bytes32"}],"name":"LogSwapSuccess","type":"event"}]

  Contract Creation Code Switch To Opcodes View
608060405234801561001057600080fd5b5060405160608061072e83398101604090815281516020830151919092015160008054600160a060020a0319908116600160a060020a039586161782556001805482169486169490941790935560028054909316939091169290921790556106b090819061007e90396000f3006080604052600436106100405763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166362c1f3898114610042575b005b610060600435602460c460ff61018435166101a4356101c435610072565b60408051918252519081900360200190f35b600254600090600160a060020a036040880135811691606089013582169188359160208a01359116831415610182573481146100f8576040805160e560020a62461bcd02815260206004820152601060248201527f57524f4e475f4554485f414d4f554e5400000000000000000000000000000000604482015290519081900360640190fd5b600260009054906101000a9004600160a060020a0316600160a060020a031663d0e30db0826040518263ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004016000604051808303818588803b15801561016457600080fd5b505af1158015610178573d6000803e3d6000fd5b5050505050610272565b604080517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018390529051600160a060020a038516916323b872dd9160648083019260209291908290030181600087803b1580156101f057600080fd5b505af1158015610204573d6000803e3d6000fd5b505050506040513d602081101561021a57600080fd5b50511515610272576040805160e560020a62461bcd02815260206004820152601960248201527f544f4b454e5f5452414e534645525f46524f4d5f4552524f5200000000000000604482015290519081900360640190fd5b600154604080517f095ea7b3000000000000000000000000000000000000000000000000000000008152600160a060020a0392831660048201526024810184905290519185169163095ea7b3916044808201926020929091908290030181600087803b1580156102e157600080fd5b505af11580156102f5573d6000803e3d6000fd5b505050506040513d602081101561030b57600080fd5b50511515610363576040805160e560020a62461bcd02815260206004820152601360248201527f544f4b454e5f415050524f56455f4552524f5200000000000000000000000000604482015290519081900360640190fd5b6000546040517fbc61394a0000000000000000000000000000000000000000000000000000000081528291600160a060020a03169063bc61394a908d908d9085906001908f908f908f90600401808860a08082843790910190508760c080828437909101968752505092151560208086019190915260ff90921660408086019190915260608501919091526080840192909252905160a08084019550919350918290030181600087803b15801561041957600080fd5b505af115801561042d573d6000803e3d6000fd5b505050506040513d602081101561044357600080fd5b50511461049a576040805160e560020a62461bcd02815260206004820152601060248201527f46494c4c5f4f524445525f4552524f5200000000000000000000000000000000604482015290519081900360640190fd5b600254600160a060020a038581169116141561056157600254604080517f2e1a7d4d000000000000000000000000000000000000000000000000000000008152600481018590529051600160a060020a0390921691632e1a7d4d9160248082019260009290919082900301818387803b15801561051657600080fd5b505af115801561052a573d6000803e3d6000fd5b505060405133925084156108fc02915084906000818181858888f1935050505015801561055b573d6000803e3d6000fd5b5061064b565b604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018490529051600160a060020a0386169163a9059cbb9160448083019260209291908290030181600087803b1580156105c957600080fd5b505af11580156105dd573d6000803e3d6000fd5b505050506040513d60208110156105f357600080fd5b5051151561064b576040805160e560020a62461bcd02815260206004820152601460248201527f544f4b454e5f5452414e534645525f4552524f52000000000000000000000000604482015290519081900360640190fd5b6040518b907f963ef0ecf379b815c892a12de830d9e78624ccbd332b264e0b781072fb61158490600090a29a99505050505050505050505600a165627a7a723058208b26c66bbda0d8ef3e47251a92f640db58298e036346c94db42610e1adfc635f0029000000000000000000000000479cc461fecd078f766ecc58533d6f69580cf3ac0000000000000000000000004e9aad8184de8833365fea970cd9149372fdf1e6000000000000000000000000c778417e063141139fce010982780140aa0cd5ab

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

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000479cc461fecd078f766ecc58533d6f69580cf3ac
Arg [1] : 0000000000000000000000004e9aad8184de8833365fea970cd9149372fdf1e6
Arg [2] : 000000000000000000000000c778417e063141139fce010982780140aa0cd5ab


   Swarm Source:
bzzr://8b26c66bbda0d8ef3e47251a92f640db58298e036346c94db42610e1adfc635f

 

View All
Block Age transaction Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward