Latest 25 transactions from a total of 899 transactions

TxHash Age From To Value [TxFee]
0xbec8ab330bac41f61df578e145b9545f12c0ff243c1ca7d04ddf2f03c84a6e3360 days 22 hrs ago0x4fa3d87ab72389ba5608d506452a503d26f5c38e  IN   0x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether0.00027067
0x2e3542c0953adb9b3c15ae490e6e036cee411c228ae023fbd252ac4bf6e7978a60 days 22 hrs ago0x4fa3d87ab72389ba5608d506452a503d26f5c38e  IN   0x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether0.00027067
0xd9beb3bb893d55bd6ec830574f3e2357ae0eb16c9893d14489da6c920a2828ff60 days 22 hrs ago0x4fa3d87ab72389ba5608d506452a503d26f5c38e  IN   0x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether0.00027067
0xc330037eac319542a8b95b7b0fc3c6ebab6869bf9c031c3bb2df28687cc91d6c87 days 6 hrs ago0x676ca875027fd9a5bdbd4f1f0380d8f34d8e1cdf  IN   0x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether0.000030845
0x888d21150c8706bd44b686deca83a43fe9026822c82bfbb68a343f5349ba117687 days 6 hrs ago0x676ca875027fd9a5bdbd4f1f0380d8f34d8e1cdf  IN   0x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether0.000030845
0x59caea4ca467829fa1ec6d2eff72e4551fea82d526ed9c2b579849b0cdf62c0c100 days 1 hr ago0xacb7a6dc0215cfe38e7e22e3f06121d2a1c42f6c  IN   0x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether0.000042209
0xc27f4cbc56fe5787a2df3927c387ae835191b97fa449e30ca9bb4a0f837426fc100 days 1 hr ago0x5ddb6374658768178e577f9bbdc2f41825df7efe  IN   0x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether0.000128273
0xbaef73c55c9b30a5717ee44f434c310b8ad4cb4a079860f6328596582641793f101 days 6 hrs ago0xacb7a6dc0215cfe38e7e22e3f06121d2a1c42f6c  IN   0x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether0.000023165
0x795de8035e11a65284c18d2693bc99ba7a3c67c7a01aa886b847790d8d0a5e9e101 days 6 hrs ago0xacb7a6dc0215cfe38e7e22e3f06121d2a1c42f6c  IN   0x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether0.000023165
0xe627c0fe0ce6ddb819245029f4aeee30318718981b56e3052d587cbf59ec2776101 days 19 hrs ago0xacb7a6dc0215cfe38e7e22e3f06121d2a1c42f6c  IN   0x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether0.000023165
0x58dabcb96af6194eaaf79b387fc1228fe2506673c8f5875c6d01c9f008fd5299101 days 22 hrs ago0xacb7a6dc0215cfe38e7e22e3f06121d2a1c42f6c  IN   0x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether0.000023165
0x02f90e113e15c2ed85502cecce5edcd933010e2e33d0945fe5418174b7083988101 days 22 hrs ago0xacb7a6dc0215cfe38e7e22e3f06121d2a1c42f6c  IN   0x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether0.000023165
0x2c60ae4b922392bbbdf80c95043bcbf2eff0bcce6548038c519f6c3258624d59101 days 23 hrs ago0xacb7a6dc0215cfe38e7e22e3f06121d2a1c42f6c  IN   0x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether0.000023165
0x771141152dccde3f1e3310b45fc82d5d2a59144c5dbcd7a392e07edad33f5738102 days 3 mins ago0xacb7a6dc0215cfe38e7e22e3f06121d2a1c42f6c  IN   0x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether0.000023165
0x5be4ac85a1fc748635521b155f3549caed26e9e7ce204e43c7c27e52c14b576a102 days 12 mins ago0xacb7a6dc0215cfe38e7e22e3f06121d2a1c42f6c  IN   0x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether0.000023165
0xb39e42c4db323e59144ea9ea91869e2cf481a3381111d034f6b5699c48fd67c9102 days 12 mins ago0xcf69f241a3d14289136b34d207a79aecb25f9272  IN   0x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether0.000091892
0x8d9591f65d214466f51aedd41d9a7b0f06cf91e8df4c6e004a31feaf6a4c84f4102 days 19 mins ago0xacb7a6dc0215cfe38e7e22e3f06121d2a1c42f6c  IN   0x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether0.000023165
0x4cea0c9e7e41ce625291e6f1b2d68eac6fc0563451873d1d3c6023ce48f189af102 days 29 mins ago0xcf69f241a3d14289136b34d207a79aecb25f9272  IN   0x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether0.000022973
0x6cbef255ceddc035cc5e9aeed54253244eaf95fa108456db7d7222cfc8f572f3102 days 30 mins ago0x4fa3d87ab72389ba5608d506452a503d26f5c38e  IN   0x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether0.00027067
0x97db082f469556450dc8156e668a43b8c91dc7d94dc7c927029eb7317a60671a102 days 34 mins ago0xacb7a6dc0215cfe38e7e22e3f06121d2a1c42f6c  IN   0x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether0.000023165
0x2a38c534a71f897466756c012272be02185cde809b78e1c64c134e7aec441c42102 days 36 mins ago0xcf69f241a3d14289136b34d207a79aecb25f9272  IN   0x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether0.000022973
0x23e225e4863a9d9cf79a689bd36503796a17e3458914d91b9165b969552597fd102 days 36 mins ago0xcf69f241a3d14289136b34d207a79aecb25f9272  IN   0x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether0.000022973
0x56143c04cee8a620089edadec6ee2a9384a1eac5ae104c4ed4a8d22132fcfa5a102 days 36 mins ago0xcf69f241a3d14289136b34d207a79aecb25f9272  IN   0x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether0.027194
0x8d9798f15b5a655934bab812d5a1cac069ed655f24bc680737924e4b3784e5e2102 days 36 mins ago0xcf69f241a3d14289136b34d207a79aecb25f9272  IN   0x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether0.000042194
0x3f8b0a2f38569857ac601db9376b4fd2cf39ab571af8c1e6dde08963e4b46c39102 days 36 mins ago0xcf69f241a3d14289136b34d207a79aecb25f9272  IN   0x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether0.000083
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 25 Internal Txns, Click here To View More View All
ParentTxHash Block Age From To Value
0x7dae2463b53f0c4b8873ef2853d51c1587af0c54847fe28187505431b663c616450748387 days 6 hrs ago0xf94aac574bfac4f025755d89ecf34f333578b9610x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether
0xd44fb054534bef7c94b89c6ece58a02028cf48936c384f8094591b83f5dd3753450748387 days 6 hrs ago0xf94aac574bfac4f025755d89ecf34f333578b9610x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether
0x19cc2a208097a2c115dbaff1d0b883715d93f4444b9342935220af5afc9ddf84450747987 days 6 hrs ago0xf94aac574bfac4f025755d89ecf34f333578b9610x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether
0x0902a2d73b43e66d54656e1a8a3341f203c0e065b8f69c3cbbd0c15bc69cdcd4450747987 days 6 hrs ago0xf94aac574bfac4f025755d89ecf34f333578b9610x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether
0x7ec567c1fb0977c16e12f4af7967e7f70e92ea770f1508fc7b94f098297fb1ba450747987 days 6 hrs ago0xf94aac574bfac4f025755d89ecf34f333578b9610x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether
0x34ce920ee9587931664c5e3795ea91c6c5f9ffea5caa9d447e90ce96d8c9255d450747987 days 6 hrs ago0xf94aac574bfac4f025755d89ecf34f333578b9610x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether
0xeaaa714603f458b12550b427fa55b75c1d6fd9e25fe313ebd9ac83fd592aa194443139698 days 11 hrs ago0x34f666bc375757806284d532fa25440e4a648dcb0x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether
0xeaaa714603f458b12550b427fa55b75c1d6fd9e25fe313ebd9ac83fd592aa194443139698 days 11 hrs ago0x34f666bc375757806284d532fa25440e4a648dcb0x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether
0x479f2d139b83aae036ecd55e026b457640aaf86f4e7ff46b185b16822d52d7d94413061101 days 6 hrs ago0x3d4c3d42c05ce8fe84058766a96a209ba45d50520x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether
0xfffd691a722d527529c3b2a433dc2d96b8ca0d6795a3d2c1398b131a22d6a39b4413054101 days 6 hrs ago0x3d4c3d42c05ce8fe84058766a96a209ba45d50520x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether
0xbd17ec77523a8d794420beeb7fe1e40a48dc610245d029eeb20cc0feacffcb124413023101 days 6 hrs ago0x0ad62574e9ae471576227b1033cdd0c65146e73b0x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether
0xd34420d4d10eeb9e53fa4f076dda9bc191ea8d4d9b674ee6678d12241bfac66d4412459101 days 8 hrs ago0x13ae09020e107309fbbbf4acd8c59da6f1e850a20x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether
0xc40a222420d6e087350c63ae619bb8267a559ee0db68409fbf6cae8d5d6541ff4412459101 days 8 hrs ago0x13ae09020e107309fbbbf4acd8c59da6f1e850a20x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether
0x689867c14019e55fb27ae536ccde68a4cbdc62004137d232a1b4d57a2442c79c4412439101 days 8 hrs ago0x13ae09020e107309fbbbf4acd8c59da6f1e850a20x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether
0x02959c737a6abf79cae1446800c028648aac8ad75c425923ab978a7a73e9f8694412439101 days 8 hrs ago0x13ae09020e107309fbbbf4acd8c59da6f1e850a20x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether
0x4387a59aa3d981a7ed87340018395a5bf5ae8f3d4f583d7bc8061473254764aa4412439101 days 8 hrs ago0x13ae09020e107309fbbbf4acd8c59da6f1e850a20x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether
0xa0396196f7106cf95fb182e8120d6c2c3872897b8e8c96810c673a45095e31954412439101 days 8 hrs ago0x13ae09020e107309fbbbf4acd8c59da6f1e850a20x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether
0x1ad6abd9beb3a667dd0e6bf6beb4bc9a5b7b304fdfba48598455836d8b371c4b4409426101 days 19 hrs ago0x72be91c45c67e5071b8a4063e9c7b6298f3de0060x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether
0x39a6e3e9857179d03f9a599dbd8dd0c609c09b268a86e46ae1e1aa0886b79e714409412101 days 19 hrs ago0x72be91c45c67e5071b8a4063e9c7b6298f3de0060x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether
0x237cbbf2b9c15427f29c69f675505cd50c30524dd985bcb49952bbad7689aaf14409410101 days 19 hrs ago0x72be91c45c67e5071b8a4063e9c7b6298f3de0060x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether
0x2f330fd4b6949393e1c6d1d43bd191aee4b15a0c5bbe860b722f0d245cdfdd304409397101 days 19 hrs ago0x72be91c45c67e5071b8a4063e9c7b6298f3de0060x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether
0xb355b4623c4ee0db3c60e6257c9a433c4b083c3fd122b8a51d5ec15bc1adfa724409390101 days 19 hrs ago0x72be91c45c67e5071b8a4063e9c7b6298f3de0060x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether
0x71196e7423ada68852b5dd1d768ccfd9d37bf23ac36886c5c53decd93ba9eaab4409385101 days 19 hrs ago0x72be91c45c67e5071b8a4063e9c7b6298f3de0060x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether
0xdab24626680c4bb5286298b56e8ffa78df549101de2fbae47723b5753fbaa1734409353101 days 19 hrs ago0x72be91c45c67e5071b8a4063e9c7b6298f3de0060x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether
0x40c363efeee64faba5cfb465140d85ba91afe71ef22b353f33ad024b923c9f694409347101 days 19 hrs ago0x72be91c45c67e5071b8a4063e9c7b6298f3de0060x006b9bc418e43e92cf8d380c56b8d4be41fda3190 Ether
[ Download CSV Export  ] 
Warning: The Compiled Contract might be susceptible to ExpExponentCleanup (medium/high-severity), EventStructWrongData (very low-severity) SolidityCompiler Bugs.

Contract Source Code Verified (Exact Match)
Contract Name: Bet2Loss
Compiler Version: v0.4.24+commit.e67f0147
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.24;
// Wow. Welcome to hctf2018

library SafeMath {

	function mul(uint256 a, uint256 b) internal pure returns (uint256) {
		if (a == 0) {
			return 0;
		}

		uint256 c = a * b;
		require(c / a == b);

		return c;
	}

	function div(uint256 a, uint256 b) internal pure returns (uint256) {
		require(b > 0); 
		uint256 c = a / b;

		return c;
	}

	function sub(uint256 a, uint256 b) internal pure returns (uint256) {
		require(b <= a);
		uint256 c = a - b;

		return c;
	}

	function add(uint256 a, uint256 b) internal pure returns (uint256) {
		uint256 c = a + b;
		require(c >= a);

		return c;
	}
}

contract ERC20{
	using SafeMath for uint256;

	mapping (address => uint256) public balances;

	uint256 public _totalSupply;

	function totalSupply() public view returns (uint256) {
		return _totalSupply;
	}

	function balanceOf(address owner) public view returns (uint256) {
		return balances[owner];
	}

	function transfer(address _to, uint _value) public returns (bool success){
    	balances[msg.sender] = balances[msg.sender].sub(_value);
    	balances[_to] = balances[_to].add(_value);
    	
    	return true;
  	}
}

contract B2GBToken is ERC20 {

	string public constant name = "test";
	string public constant symbol = "test";
	uint8 public constant decimals = 18;
	uint256 public constant _airdropAmount = 1000;

	uint256 public constant INITIAL_SUPPLY = 20000000000 * (10 ** uint256(decimals));

	mapping(address => bool) initialized;

	constructor() public {
		initialized[msg.sender] = true;
		_totalSupply = INITIAL_SUPPLY;
		balances[msg.sender] = INITIAL_SUPPLY;
	}

	// airdrop
	function AirdropCheck() internal returns (bool success){
		 if (!initialized[msg.sender]) {
            initialized[msg.sender] = true;
            balances[msg.sender] = _airdropAmount;
            _totalSupply += _airdropAmount;
        }
        return true;
	}
}

contract Bet2Loss is B2GBToken{
		uint constant MIN_JACKPOT_BET = 0.1 ether;
		uint constant MIN_BET = 1;
		uint constant MAX_BET = 100000;
		uint constant MAX_MODULO = 100;
		uint constant BET_EXPIRATION_BLOCKS = 250;
		address constant DUMMY_ADDRESS = 0xACB7a6Dc0215cFE38e7e22e3F06121D2a1C42f6C;
		address public owner;
		address private nextOwner;
		uint public maxProfit;
		address public secretSigner;
		uint128 public jackpotSize;
		uint128 public lockedInBets;

		struct Bet {
				uint betnumber;
				uint8 modulo;
				uint40 placeBlockNumber;
				uint40 mask;
				address gambler;
		}

		mapping (uint => Bet) bets;

		event FailedPayment(address indexed beneficiary, uint amount);
		event Payment(address indexed beneficiary, uint amount);
		event Commit(uint commit);

		event GetFlag(
			string b64email,
			string back
		);

		constructor () public {
				owner = msg.sender;
				secretSigner = DUMMY_ADDRESS;
		}

		modifier onlyOwner {
				require (msg.sender == owner, "OnlyOwner methods called by non-owner.");
				_;
		}

		function setSecretSigner(address newSecretSigner) external onlyOwner {
				secretSigner = newSecretSigner;
		}

		function placeBet(uint betMask, uint modulo, uint betnumber, uint commitLastBlock, uint commit, bytes32 r, bytes32 s, uint8 v) external payable {

				// airdrop
				AirdropCheck();

				Bet storage bet = bets[commit];
				require (bet.gambler == address(0), "Bet should be in a 'clean' state.");
				require (balances[msg.sender] >= betnumber, "no more balances");
				require (modulo > 1 && modulo <= MAX_MODULO, "Modulo should be within range.");
				require (betMask >= 0 && betMask < modulo, "Mask should be within range.");
				require (betnumber > 0 && betnumber < 1000, "BetNumber should be within range.");
				

				require (block.number <= commitLastBlock, "Commit has expired.");
				bytes32 signatureHash = keccak256(abi.encodePacked(commitLastBlock, commit));
				require (secretSigner == ecrecover(signatureHash, v, r, s), "ECDSA signature is not valid.");

				uint possibleWinAmount;

				possibleWinAmount = getDiceWinAmount(betnumber, modulo);
				lockedInBets += uint128(possibleWinAmount);

				// require (lockedInBets <= balances[owner], "Cannot afford to lose this bet.");


				balances[msg.sender] = balances[msg.sender].sub(betnumber);
				emit Commit(commit);

				bet.betnumber = betnumber;
				bet.modulo = uint8(modulo);
				bet.placeBlockNumber = uint40(block.number);
				bet.mask = uint40(betMask);
				bet.gambler = msg.sender;
		}

		function settleBet(uint reveal) external {
				AirdropCheck();

				uint commit = uint(keccak256(abi.encodePacked(reveal)));

				Bet storage bet = bets[commit];
				uint placeBlockNumber = bet.placeBlockNumber;

				require (block.number > placeBlockNumber, "settleBet in the same block as placeBet, or before.");
				require (block.number <= placeBlockNumber + BET_EXPIRATION_BLOCKS, "Blockhash can't be queried by EVM.");

				settleBetCommon(bet, reveal);
		}


		function settleBetCommon(Bet storage bet, uint reveal) private {
				uint betnumber = bet.betnumber;
				uint mask = bet.mask;
				uint modulo = bet.modulo;
				uint placeBlockNumber = bet.placeBlockNumber;
				address gambler = bet.gambler;

				require (betnumber != 0, "Bet should be in an 'active' state");

				bytes32 entropy = keccak256(abi.encodePacked(reveal, placeBlockNumber));
				uint dice = uint(entropy) % modulo;

				uint diceWinAmount;
				diceWinAmount = getDiceWinAmount(betnumber, modulo);

				uint diceWin = 0;

				if (dice == mask){
					diceWin = diceWinAmount;
				}

				lockedInBets -= uint128(diceWinAmount);

				sendFunds(gambler, diceWin == 0 ? 1 wei : diceWin , diceWin);
		}

		function getDiceWinAmount(uint amount, uint modulo) private pure returns (uint winAmount) {
			winAmount = amount * modulo;
		}

		function sendFunds(address beneficiary, uint amount, uint successLogAmount) private {
			transfer(beneficiary, amount);
			emit Payment(beneficiary, successLogAmount);
		}
		//flag
		function PayForFlag(string b64email) public payable returns (bool success){
		
			require (balances[msg.sender] > 10000000);
			emit GetFlag(b64email, "Get flag!");
		}
}

    Contract ABI  
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"reveal","type":"uint256"}],"name":"settleBet","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balances","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"INITIAL_SUPPLY","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"_totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"_airdropAmount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"secretSigner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"jackpotSize","outputs":[{"name":"","type":"uint128"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"maxProfit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"betMask","type":"uint256"},{"name":"modulo","type":"uint256"},{"name":"betnumber","type":"uint256"},{"name":"commitLastBlock","type":"uint256"},{"name":"commit","type":"uint256"},{"name":"r","type":"bytes32"},{"name":"s","type":"bytes32"},{"name":"v","type":"uint8"}],"name":"placeBet","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"b64email","type":"string"}],"name":"PayForFlag","outputs":[{"name":"success","type":"bool"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"newSecretSigner","type":"address"}],"name":"setSecretSigner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"lockedInBets","outputs":[{"name":"","type":"uint128"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"beneficiary","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"FailedPayment","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"beneficiary","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"Payment","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"commit","type":"uint256"}],"name":"Commit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"b64email","type":"string"},{"indexed":false,"name":"back","type":"string"}],"name":"GetFlag","type":"event"}]

  Contract Creation Code Switch To Opcodes View
608060405234801561001057600080fd5b50336000818152600260209081526040808320805460ff191660019081179091556b409f9cbc7c4a04c22000000090819055918390529091205560038054600160a060020a031990811690921790556006805490911673acb7a6dc0215cfe38e7e22e3f06121d2a1c42f6c1790556110ed8061008d6000396000f3006080604052600436106101065763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde03811461010b57806316fd381a1461019557806318160ddd146101af57806327e235e3146101d65780632ff2e9dc146101f7578063313ce5671461020c5780633eaaf86b1461023757806347d6cd6b1461024c5780634d61537f1461026157806357246d231461029257806370a08231146102cc5780638da5cb5b146102ed57806395d89b411461010b578063a9059cbb14610302578063b539cd551461033a578063c76c1ba51461034f578063cd09039b14610372578063d702087f146103be578063df88126f146103df575b600080fd5b34801561011757600080fd5b506101206103f4565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561015a578181015183820152602001610142565b50505050905090810190601f1680156101875780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101a157600080fd5b506101ad60043561042b565b005b3480156101bb57600080fd5b506101c46105ee565b60408051918252519081900360200190f35b3480156101e257600080fd5b506101c4600160a060020a03600435166105f4565b34801561020357600080fd5b506101c4610606565b34801561021857600080fd5b50610221610616565b6040805160ff9092168252519081900360200190f35b34801561024357600080fd5b506101c461061b565b34801561025857600080fd5b506101c4610621565b34801561026d57600080fd5b50610276610627565b60408051600160a060020a039092168252519081900360200190f35b34801561029e57600080fd5b506102a7610636565b604080516fffffffffffffffffffffffffffffffff9092168252519081900360200190f35b3480156102d857600080fd5b506101c4600160a060020a036004351661064e565b3480156102f957600080fd5b50610276610669565b34801561030e57600080fd5b50610326600160a060020a0360043516602435610678565b604080519115158252519081900360200190f35b34801561034657600080fd5b506101c46106ec565b6101ad60043560243560443560643560843560a43560c43560ff60e435166106f2565b6040805160206004803580820135601f8101849004840285018401909552848452610326943694929360249392840191908190840183828082843750949750610c4a9650505050505050565b3480156103ca57600080fd5b506101ad600160a060020a0360043516610d3a565b3480156103eb57600080fd5b506102a7610df1565b60408051808201909152600481527f7465737400000000000000000000000000000000000000000000000000000000602082015281565b6000806000610438610e1d565b5083604051602001808281526020019150506040516020818303038152906040526040518082805190602001908083835b602083106104885780518252601f199092019160209182019101610469565b518151602093840361010090810a60001901801990931692909116919091179091526040805193909501839003909220600081815260089092529390206001810154939850965090910464ffffffffff16935050438310915061055d9050576040805160e560020a62461bcd02815260206004820152603360248201527f736574746c6542657420696e207468652073616d6520626c6f636b206173207060448201527f6c6163654265742c206f72206265666f72652e00000000000000000000000000606482015290519081900360840190fd5b60fa81014311156105de576040805160e560020a62461bcd02815260206004820152602260248201527f426c6f636b686173682063616e2774206265207175657269656420627920455660448201527f4d2e000000000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b6105e88285610e70565b50505050565b60015490565b60006020819052908152604090205481565b6b409f9cbc7c4a04c22000000081565b601281565b60015481565b6103e881565b600654600160a060020a031681565b6007546fffffffffffffffffffffffffffffffff1681565b600160a060020a031660009081526020819052604090205490565b600354600160a060020a031681565b33600090815260208190526040812054610698908363ffffffff61103e16565b3360009081526020819052604080822092909255600160a060020a038516815220546106ca908363ffffffff61105516565b600160a060020a03841660009081526020819052604090205550600192915050565b60055481565b60008060006106ff610e1d565b50600087815260086020526040902060018101549093506b0100000000000000000000009004600160a060020a0316156107a9576040805160e560020a62461bcd02815260206004820152602160248201527f4265742073686f756c6420626520696e20612027636c65616e2720737461746560448201527f2e00000000000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b33600090815260208190526040902054891115610810576040805160e560020a62461bcd02815260206004820152601060248201527f6e6f206d6f72652062616c616e63657300000000000000000000000000000000604482015290519081900360640190fd5b60018a118015610821575060648a11155b1515610877576040805160e560020a62461bcd02815260206004820152601e60248201527f4d6f64756c6f2073686f756c642062652077697468696e2072616e67652e0000604482015290519081900360640190fd5b60008b101580156108875750898b105b15156108dd576040805160e560020a62461bcd02815260206004820152601c60248201527f4d61736b2073686f756c642062652077697468696e2072616e67652e00000000604482015290519081900360640190fd5b6000891180156108ee57506103e889105b151561096a576040805160e560020a62461bcd02815260206004820152602160248201527f4265744e756d6265722073686f756c642062652077697468696e2072616e676560448201527f2e00000000000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b438810156109c2576040805160e560020a62461bcd02815260206004820152601360248201527f436f6d6d69742068617320657870697265642e00000000000000000000000000604482015290519081900360640190fd5b878760405160200180838152602001828152602001925050506040516020818303038152906040526040518082805190602001908083835b60208310610a195780518252601f1990920191602091820191016109fa565b51815160209384036101000a600019018019909216911617905260408051929094018290038220600080845283830180875282905260ff8c1684870152606084018e9052608084018d905294519098506001965060a080840196509194601f19820194509281900390910191865af1158015610a99573d6000803e3d6000fd5b5050604051601f190151600654600160a060020a039081169116149050610b0a576040805160e560020a62461bcd02815260206004820152601d60248201527f4543445341207369676e6174757265206973206e6f742076616c69642e000000604482015290519081900360640190fd5b610b14898b61106e565b600780546fffffffffffffffffffffffffffffffff70010000000000000000000000000000000080830482168501821602911617905533600090815260208190526040902054909150610b6d908a63ffffffff61103e16565b336000908152602081815260409182902092909255805189815290517f5bdd2fc99022530157777690475b670d3872f32262eb1d47d9ba8000dad58f87929181900390910190a150509586555050506001909201805460ff191660ff949094169390931765ffffffffff0019166101004364ffffffffff90811691909102919091176affffffffff000000000000191666010000000000009590911694909402939093177fff0000000000000000000000000000000000000000ffffffffffffffffffffff16336b01000000000000000000000002179091555050565b336000908152602081905260408120546298968010610c6857600080fd5b7fdb476abde9678304917d1d7094570a616c0d8a4ee4956de1b2ade393ddcdfaa982604051808060200180602001838103835284818151815260200191508051906020019080838360005b83811015610ccb578181015183820152602001610cb3565b50505050905090810190601f168015610cf85780820380516001836020036101000a031916815260200191505b50928303905250600981527f47657420666c616721000000000000000000000000000000000000000000000060208201526040805191829003019150a1919050565b600354600160a060020a03163314610dc2576040805160e560020a62461bcd02815260206004820152602660248201527f4f6e6c794f776e6572206d6574686f64732063616c6c6564206279206e6f6e2d60448201527f6f776e65722e0000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b6006805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60075470010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1681565b3360009081526002602052604081205460ff161515610e6a57336000908152600260209081526040808320805460ff19166001908117909155918390529091206103e89081905581540190555b50600190565b8154600183015464ffffffffff6601000000000000820481169160ff81169161010082041690600160a060020a036b010000000000000000000000909104166000808080881515610f31576040805160e560020a62461bcd02815260206004820152602260248201527f4265742073686f756c6420626520696e20616e2027616374697665272073746160448201527f7465000000000000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b898660405160200180838152602001828152602001925050506040516020818303038152906040526040518082805190602001908083835b60208310610f885780518252601f199092019160209182019101610f69565b5181516020939093036101000a60001901801990911692169190911790526040519201829003909120965089925086915050811515610fc357fe5b069250610fd0898861106e565b91506000905087831415610fe15750805b600780546fffffffffffffffffffffffffffffffff70010000000000000000000000000000000080830482168690038216029116179055611031858215611028578261102b565b60015b83611072565b5050505050505050505050565b6000808383111561104e57600080fd5b5050900390565b60008282018381101561106757600080fd5b9392505050565b0290565b61107c8383610678565b50604080518281529051600160a060020a038516917fd4f43975feb89f48dd30cabbb32011045be187d1e11c8ea9faa43efc35282519919081900360200190a25050505600a165627a7a72305820bb9fdefcfe1d21b975bbb2258c55fda11c37b3ffc47120c7eefd67d54588ed700029

   Swarm Source:
bzzr://bb9fdefcfe1d21b975bbb2258c55fda11c37b3ffc47120c7eefd67d54588ed70

 

View All
Block Age transaction Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward