Transaction Hash:
Block:
11236882 at Nov-11-2020 02:34:49 PM +UTC
Transaction Fee:
0.002595969 ETH
$4.86
Gas Used:
32,049 Gas / 81 Gwei
Emitted Events:
205 |
eTrustmoney.Multisended( value=130000000000000000, sender=[Sender] 0xd1c96a7ae7a3f55f67fc33fa3f373fd7bf687406 )
|
Account State Difference:
Address | Before | After | State Difference | ||
---|---|---|---|---|---|
0xD1C96a7A...7bf687406 |
0.161775579 Eth
Nonce: 18
|
0.02917961 Eth
Nonce: 19
| 0.132595969 | ||
0xD224cA0c...503B79f53
Miner
| (UUPool) | 151.503007500102013302 Eth | 151.505603469102013302 Eth | 0.002595969 | |
0xE58bc8A1...272DcaF0b | 6.762938640628650938 Eth | 6.892938640628650938 Eth | 0.13 |
Execution Trace
ETH 0.13
eTrustmoney.multisendEther( _contributors=[0xE58bc8A11a5584007B33513b653b39C272DcaF0b], _balances=[130000000000000000] )
- ETH 0.13
0xe58bc8a11a5584007b33513b653b39c272dcaf0b.CALL( )
multisendEther[eTrustmoney (ln:54)]
sub[eTrustmoney (ln:59)]
transfer[eTrustmoney (ln:60)]
Multisended[eTrustmoney (ln:62)]
pragma solidity 0.4.24; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } /** * @dev Integer division of two numbers, truncating the quotient. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { // assert(b > 0); // Solidity automatically throws when dividing by 0 uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Substracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend). */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { assert(b <= a); return a - b; } /** * @dev Adds two numbers, throws on overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; assert(c >= a); return c; } } contract eTrustmoney { event Multisended(uint256 value , address sender); using SafeMath for uint256; function multisendEther(address[] _contributors, uint256[] _balances) public payable { uint256 total = msg.value; uint256 i = 0; for (i; i < _contributors.length; i++) { require(total >= _balances[i] ); total = total.sub(_balances[i]); _contributors[i].transfer(_balances[i]); } emit Multisended(msg.value, msg.sender); } }