ETH Price: $2,569.39 (+1.46%)

Transaction Decoder

Block:
17436218 at Jun-08-2023 02:36:47 PM +UTC
Transaction Fee:
0.002172780276685046 ETH $5.58
Gas Used:
82,954 Gas / 26.192591999 Gwei

Account State Difference:

  Address   Before After State Difference Code
0x063d8765...289FB2373 0.059259117392499927 Eth0.109259117392499927 Eth0.05
0x0C9e5A7E...29534e8E8
0.928682021570314994 Eth
Nonce: 288
0.626509241293629948 Eth
Nonce: 289
0.302172780276685046
0x240378cF...052e1053d 0.059255217941832927 Eth0.109255217941832927 Eth0.05
0x307239D1...04461E70e 0.063042016740816069 Eth0.113042016740816069 Eth0.05
0x4934f061...861001E22 0.0625796872356953 Eth0.1125796872356953 Eth0.05
(builder0x69)
1.299359956600325259 Eth1.299430467500325259 Eth0.0000705109
0xa9F1A4a2...da43aF9E6 0.058124636485310127 Eth0.108124636485310127 Eth0.05
0xeB9c252F...dBD12cE9d 0.062846481227883837 Eth0.112846481227883837 Eth0.05

Execution Trace

ETH 0.3 Disperse.disperseEther( recipients=[0xa9F1A4a236Dd0862F4590C60FfBfDdDda43aF9E6, 0x063d87657054dd78AfBfB0869808e45289FB2373, 0x240378cF221687B90CA694E171879B2052e1053d, 0xeB9c252F9B41D7685FC8DB2447b095adBD12cE9d, 0x4934f0619a2Ce45e2Ef113515aCc129861001E22, 0x307239D1ecE034F3f008eefBbA9544004461E70e], values=[50000000000000000, 50000000000000000, 50000000000000000, 50000000000000000, 50000000000000000, 50000000000000000] )
  • ETH 0.05 0xa9f1a4a236dd0862f4590c60ffbfdddda43af9e6.CALL( )
  • ETH 0.05 0x063d87657054dd78afbfb0869808e45289fb2373.CALL( )
  • ETH 0.05 0x240378cf221687b90ca694e171879b2052e1053d.CALL( )
  • ETH 0.05 0xeb9c252f9b41d7685fc8db2447b095adbd12ce9d.CALL( )
  • ETH 0.05 0x4934f0619a2ce45e2ef113515acc129861001e22.CALL( )
  • ETH 0.05 0x307239d1ece034f3f008eefbba9544004461e70e.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]));
        }
    }