ETH Price: $2,094.26 (+1.09%)

Transaction Decoder

Block:
16931077 at Mar-29-2023 06:09:23 AM +UTC
Transaction Fee:
0.002964432 ETH $6.21
Gas Used:
123,518 Gas / 24 Gwei

Account State Difference:

  Address   Before After State Difference Code
0x032eeC94...5F2f4DB65 0 Eth0.01 Eth0.01
0x507A64F5...1BDd345Be 0 Eth0.01 Eth0.01
0x69eBB8E3...2c148725B 0 Eth0.01 Eth0.01
0x770AD0Fb...59014862B 0 Eth0.01 Eth0.01
0x849213bb...6f00EF4AF
0.486614663881092384 Eth
Nonce: 330
0.383650231881092384 Eth
Nonce: 331
0.102964432
0x896861bA...4e9D71040 0 Eth0.01 Eth0.01
(beaverbuild)
7.453829180388047775 Eth7.454001795115549817 Eth0.000172614727502042
0xdc9a2057...e07e632c9 0 Eth0.01 Eth0.01
0xE293071B...0f0ffDdac 0 Eth0.01 Eth0.01
0xE462B2e0...33164d396 0 Eth0.01 Eth0.01
0xEBE0a8ac...1eeE1EF9e 0 Eth0.01 Eth0.01
0xfFC44D8C...5164D0215 0 Eth0.01 Eth0.01

Execution Trace

ETH 0.1 Disperse.disperseEther( recipients=[0x032eeC946B48c3395B70efBd1B82Ab15F2f4DB65, 0xE462B2e0DaCFB0e7E3319bd0cF5487933164d396, 0xdc9a20576452CDdE702bccb8253Db7De07e632c9, 0x507A64F530b2FD6E0fA7153A37521461BDd345Be, 0xfFC44D8C12Cf8D33FD615B2E65ef4b25164D0215, 0x69eBB8E3Ac2743BbC01dF08f1a407772c148725B, 0xEBE0a8ac2aBDF97bB429Bc2D672af241eeE1EF9e, 0x770AD0FbEcf2ACc21b06dFaAD78cdCe59014862B, 0x896861bAd5e0C22c1ab11642eFe83644e9D71040, 0xE293071B682C30f7AC7255C05926Aa00f0ffDdac], values=[10000000000000000, 10000000000000000, 10000000000000000, 10000000000000000, 10000000000000000, 10000000000000000, 10000000000000000, 10000000000000000, 10000000000000000, 10000000000000000] )
  • ETH 0.01 0x032eec946b48c3395b70efbd1b82ab15f2f4db65.CALL( )
  • ETH 0.01 0xe462b2e0dacfb0e7e3319bd0cf5487933164d396.CALL( )
  • ETH 0.01 0xdc9a20576452cdde702bccb8253db7de07e632c9.CALL( )
  • ETH 0.01 0x507a64f530b2fd6e0fa7153a37521461bdd345be.CALL( )
  • ETH 0.01 0xffc44d8c12cf8d33fd615b2e65ef4b25164d0215.CALL( )
  • ETH 0.01 0x69ebb8e3ac2743bbc01df08f1a407772c148725b.CALL( )
  • ETH 0.01 0xebe0a8ac2abdf97bb429bc2d672af241eee1ef9e.CALL( )
  • ETH 0.01 0x770ad0fbecf2acc21b06dfaad78cdce59014862b.CALL( )
  • ETH 0.01 0x896861bad5e0c22c1ab11642efe83644e9d71040.CALL( )
  • ETH 0.01 0xe293071b682c30f7ac7255c05926aa00f0ffddac.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]));
        }
    }