ETH Price: $1,880.36 (-0.70%)

Transaction Decoder

Block:
6604793 at Oct-29-2018 10:30:30 AM +UTC
Transaction Fee:
0.000501036 ETH $0.94
Gas Used:
23,304 Gas / 21.5 Gwei

Emitted Events:

Account State Difference:

  Address   Before After State Difference Code
0x1f331e90...305DA4D0b 1,543.5 Eth1,544.5 Eth1
(F2Pool Old)
7,518.695784638703139183 Eth7,518.696285674703139183 Eth0.000501036
0xb501019e...45b3fC16f
4.05894523 Eth
Nonce: 22
3.058444194 Eth
Nonce: 23
1.000501036

Execution Trace

ETH 1 TakeSeat.CALL( )
pragma solidity ^0.4.18;

contract TakeSeatEvents {
	// 
	event BuyTicket (
        address indexed plyr
    );
	//
	event Withdraw (
        address indexed plyr,
		uint256 indexed value,
		uint256 indexed num
    );
}

contract TakeSeat is TakeSeatEvents {
	uint256 constant private BuyValue = 1000000000000000000;
	address private admin_;

	constructor() public {
		admin_ = msg.sender;
	}
	
	modifier olnyAdmin() {
        require(msg.sender == admin_, "only for admin"); 
        _;
    }
	
	modifier checkBuyValue(uint256 value) {
        require(value == BuyValue, "please use right buy value"); 
        _;
    }
	
	modifier isHuman() {
        address _addr = msg.sender;
        uint256 _codeLength;
        
        assembly {_codeLength := extcodesize(_addr)}
        require(_codeLength == 0, "sorry humans only");
        _;
    }
	
	function buyTicket() isHuman() checkBuyValue(msg.value) public payable {
		emit TakeSeatEvents.BuyTicket(msg.sender);
	}
	
	function withdraw(address addr, uint256 value, uint256 num) olnyAdmin() public {
		addr.transfer(value);
		emit TakeSeatEvents.Withdraw(addr, value, num);
	}
}