ETH Price: $2,418.73 (-0.98%)

Transaction Decoder

Block:
16787260 at Mar-09-2023 01:02:59 AM +UTC
Transaction Fee:
0.003467777659171308 ETH $8.39
Gas Used:
72,828 Gas / 47.615994661 Gwei

Account State Difference:

  Address   Before After State Difference Code
0x6C177b61...c0A10Ce67 0 Eth0.05 Eth0.05
0x8951F25a...587A46d52
2.120351438475669401 Eth
Nonce: 12618
1.866883660816498093 Eth
Nonce: 12619
0.253467777659171308
0x8EE17F4D...270E0A958 0 Eth0.05 Eth0.05
0xAa3b11B4...bceF1ac32 0 Eth0.05 Eth0.05
(Flashbots: Builder)
1.193200195200145706 Eth1.193207478000145706 Eth0.0000072828
0xe6941b33...d9581a7dF 0 Eth0.05 Eth0.05
0xef4ca197...61c70a36D 0.009622863470786555 Eth0.059622863470786555 Eth0.05

Execution Trace

ETH 0.25 Disperse.disperseEther( recipients=[0xef4ca1971f8C667A2387c01c479BD2D61c70a36D, 0x8EE17F4D6097da93a08B24bE0e86e0c270E0A958, 0x6C177b61D83a679D10B185415BaF71Cc0A10Ce67, 0xe6941b332A4e0e6d9c9767Aa15D8173d9581a7dF, 0xAa3b11B4bCD8e1FfCA1763f5DC3953cbceF1ac32], values=[50000000000000000, 50000000000000000, 50000000000000000, 50000000000000000, 50000000000000000] )
  • ETH 0.05 0xef4ca1971f8c667a2387c01c479bd2d61c70a36d.CALL( )
  • ETH 0.05 0x8ee17f4d6097da93a08b24be0e86e0c270e0a958.CALL( )
  • ETH 0.05 0x6c177b61d83a679d10b185415baf71cc0a10ce67.CALL( )
  • ETH 0.05 0xe6941b332a4e0e6d9c9767aa15d8173d9581a7df.CALL( )
  • ETH 0.05 0xaa3b11b4bcd8e1ffca1763f5dc3953cbcef1ac32.CALL( )
    pragma solidity ^0.4.25;
    
    
    interface IERC20 {
        function transfer(address to, uint256 value) external returns (bool);
        function transferFrom(address from, address to, uint256 value) external returns (bool);
    }
    
    
    contract Disperse {
        function disperseEther(address[] recipients, uint256[] values) external payable {
            for (uint256 i = 0; i < recipients.length; i++)
                recipients[i].transfer(values[i]);
            uint256 balance = address(this).balance;
            if (balance > 0)
                msg.sender.transfer(balance);
        }
    
        function disperseToken(IERC20 token, address[] recipients, uint256[] values) external {
            uint256 total = 0;
            for (uint256 i = 0; i < recipients.length; i++)
                total += values[i];
            require(token.transferFrom(msg.sender, address(this), total));
            for (i = 0; i < recipients.length; i++)
                require(token.transfer(recipients[i], values[i]));
        }
    
        function disperseTokenSimple(IERC20 token, address[] recipients, uint256[] values) external {
            for (uint256 i = 0; i < recipients.length; i++)
                require(token.transferFrom(msg.sender, recipients[i], values[i]));
        }
    }