Overview
ETH Balance
0.01 ETH
Eth Value
$36.19 (@ $3,619.11/ETH)More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 120 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Refund | 5455379 | 2437 days ago | IN | 0 ETH | 0.00001936 | ||||
Refund | 5452206 | 2438 days ago | IN | 0 ETH | 0.00002766 | ||||
Refund | 5448366 | 2438 days ago | IN | 0 ETH | 0.00001936 | ||||
Refund | 5448366 | 2438 days ago | IN | 0 ETH | 0.00001936 | ||||
Refund | 5448366 | 2438 days ago | IN | 0 ETH | 0.00001936 | ||||
Refund | 5448363 | 2438 days ago | IN | 0 ETH | 0.00001936 | ||||
Refund | 5448362 | 2438 days ago | IN | 0 ETH | 0.00001936 | ||||
Refund | 5448359 | 2438 days ago | IN | 0 ETH | 0.00001936 | ||||
Refund | 5448355 | 2438 days ago | IN | 0 ETH | 0.00001936 | ||||
Refund | 5448355 | 2438 days ago | IN | 0 ETH | 0.00001936 | ||||
Refund | 5448354 | 2438 days ago | IN | 0 ETH | 0.00001936 | ||||
Refund | 5448354 | 2438 days ago | IN | 0 ETH | 0.00001936 | ||||
Refund | 5445490 | 2439 days ago | IN | 0 ETH | 0.00003873 | ||||
Refund | 5439632 | 2440 days ago | IN | 0 ETH | 0.00001936 | ||||
Refund | 5438433 | 2440 days ago | IN | 0 ETH | 0.00009878 | ||||
Refund | 5437659 | 2440 days ago | IN | 0 ETH | 0.00004067 | ||||
Refund | 5437321 | 2440 days ago | IN | 0 ETH | 0.00001936 | ||||
Refund | 5437294 | 2440 days ago | IN | 0 ETH | 0.00001936 | ||||
Refund | 5437293 | 2440 days ago | IN | 0 ETH | 0.00001936 | ||||
Refund | 5437291 | 2440 days ago | IN | 0 ETH | 0.00001936 | ||||
Refund | 5437290 | 2440 days ago | IN | 0 ETH | 0.00001936 | ||||
Refund | 5437288 | 2440 days ago | IN | 0 ETH | 0.00001936 | ||||
Refund | 5437288 | 2440 days ago | IN | 0 ETH | 0.00001936 | ||||
Refund | 5437288 | 2440 days ago | IN | 0 ETH | 0.00001936 | ||||
Refund | 5437287 | 2440 days ago | IN | 0 ETH | 0.00001936 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
5455379 | 2437 days ago | 0.03 ETH | ||||
5448366 | 2438 days ago | 0.01 ETH | ||||
5448366 | 2438 days ago | 0.01 ETH | ||||
5448366 | 2438 days ago | 0.01 ETH | ||||
5448363 | 2438 days ago | 0.01 ETH | ||||
5448362 | 2438 days ago | 0.01 ETH | ||||
5448359 | 2438 days ago | 0.02 ETH | ||||
5448355 | 2438 days ago | 0.01 ETH | ||||
5448355 | 2438 days ago | 0.01 ETH | ||||
5448354 | 2438 days ago | 0.01 ETH | ||||
5448354 | 2438 days ago | 0.01 ETH | ||||
5445490 | 2439 days ago | 0.01 ETH | ||||
5439632 | 2440 days ago | 0.01 ETH | ||||
5438433 | 2440 days ago | 0.01 ETH | ||||
5437659 | 2440 days ago | 0.01 ETH | ||||
5437321 | 2440 days ago | 0.01 ETH | ||||
5437294 | 2440 days ago | 0.01 ETH | ||||
5437293 | 2440 days ago | 0.01 ETH | ||||
5437291 | 2440 days ago | 0.01 ETH | ||||
5437290 | 2440 days ago | 0.01 ETH | ||||
5437288 | 2440 days ago | 0.35 ETH | ||||
5437288 | 2440 days ago | 0.01 ETH | ||||
5437288 | 2440 days ago | 0.01 ETH | ||||
5437287 | 2440 days ago | 0.01 ETH | ||||
5437287 | 2440 days ago | 0.01 ETH |
Loading...
Loading
Contract Name:
NBAOnlineLaunchPromotion
Compiler Version
v0.4.21-nightly.2018.3.5+commit.cd6ffbdf
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-04-10 */ pragma solidity ^0.4.19; // "Proof of Commitment" fun pre-launch competition for NBAOnline! // Full details and game smart contract will shortly be able: // ~~ https://nbaonline.io ~~ // This contest will award some of the keen NBAOnline players // ALL ETHER DEPOSITED INTO THIS PROMO CAN BE WITHDRAWN BY PLAYER AT ANY // TIME BUT PRIZES WILL BE DRAWN: SATURDAY 14TH APRIL (LAUNCH) // AT WHICH POINT ALL ETHER WILL ALSO BE REFUNDED TO PLAYERS // PRIZES: // 0.5 ether (top eth deposit) // 0.35 ether (1 random deposit) // 0.15 ether (1 random deposit) contract NBAOnlineLaunchPromotion { // First Goo Players! mapping(address => uint256) public deposits; mapping(address => bool) depositorAlreadyStored; address[] public depositors; // To trigger contest end only address public ownerAddress; // Flag so can only be awarded once bool public prizesAwarded = false; // Ether to be returned to depositor on launch // 1day = 86400 uint256 public constant LAUNCH_DATE = 1523678400; // Saturday, 14 April 2018 00:00:00 (seconds) ET // Proof of Commitment contest prizes uint256 private constant TOP_DEPOSIT_PRIZE = 0.5 ether; uint256 private constant RANDOM_DEPOSIT_PRIZE1 = 0.35 ether; uint256 private constant RANDOM_DEPOSIT_PRIZE2 = 0.15 ether; function NBAOnlineLaunchPromotion() public payable { require(msg.value == 1 ether); // Owner must provide enough for prizes ownerAddress = msg.sender; } function deposit() external payable { uint256 existing = deposits[msg.sender]; // Safely store the ether sent deposits[msg.sender] = SafeMath.add(msg.value, existing); // Finally store contest details if (msg.value >= 0.01 ether && !depositorAlreadyStored[msg.sender]) { depositors.push(msg.sender); depositorAlreadyStored[msg.sender] = true; } } function refund() external { // Safely transfer players deposit back uint256 depositAmount = deposits[msg.sender]; deposits[msg.sender] = 0; // Can't withdraw twice obviously msg.sender.transfer(depositAmount); } function refundPlayer(address depositor) external { require(msg.sender == ownerAddress); // Safely transfer back to player uint256 depositAmount = deposits[depositor]; deposits[depositor] = 0; // Can't withdraw twice obviously // Sends back to correct depositor depositor.transfer(depositAmount); } function awardPrizes() external { require(msg.sender == ownerAddress); require(now >= LAUNCH_DATE); require(!prizesAwarded); // Ensure only ran once prizesAwarded = true; uint256 highestDeposit; address highestDepositWinner; for (uint256 i = 0; i < depositors.length; i++) { address depositor = depositors[i]; // No tie allowed! if (deposits[depositor] > highestDeposit) { highestDeposit = deposits[depositor]; highestDepositWinner = depositor; } } uint256 numContestants = depositors.length; uint256 seed1 = numContestants + block.timestamp; uint256 seed2 = seed1 + (numContestants*2); address randomDepositWinner1 = depositors[randomContestant(numContestants, seed1)]; address randomDepositWinner2 = depositors[randomContestant(numContestants, seed2)]; // Just incase while(randomDepositWinner2 == randomDepositWinner1) { seed2++; randomDepositWinner2 = depositors[randomContestant(numContestants, seed2)]; } highestDepositWinner.transfer(TOP_DEPOSIT_PRIZE); randomDepositWinner1.transfer(RANDOM_DEPOSIT_PRIZE1); randomDepositWinner2.transfer(RANDOM_DEPOSIT_PRIZE2); } // Random enough for small contest function randomContestant(uint256 contestants, uint256 seed) constant internal returns (uint256 result){ return addmod(uint256(block.blockhash(block.number-1)), seed, contestants); } } 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 Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"prizesAwarded","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"awardPrizes","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"depositor","type":"address"}],"name":"refundPlayer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"refund","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"ownerAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"LAUNCH_DATE","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"deposit","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"depositors","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"deposits","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":true,"stateMutability":"payable","type":"constructor"}]
Contract Creation Code
60606040526000600360146101000a81548160ff021916908315150217905550670de0b6b3a76400003414151561003557600080fd5b33600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610b03806100856000396000f300606060405260043610610099576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063107a83e21461009e57806337e50f39146100cb578063446fcf22146100e0578063590e1ae3146101195780638f84aa091461012e578063bd93f49314610183578063d0e30db0146101ac578063e4b2fb79146101b6578063fc7e286d14610219575b600080fd5b34156100a957600080fd5b6100b1610266565b604051808215151515815260200191505060405180910390f35b34156100d657600080fd5b6100de610279565b005b34156100eb57600080fd5b610117600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610620565b005b341561012457600080fd5b61012c610747565b005b341561013957600080fd5b610141610811565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561018e57600080fd5b610196610837565b6040518082815260200191505060405180910390f35b6101b461083f565b005b34156101c157600080fd5b6101d760048080359060200190919050506109f2565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561022457600080fd5b610250600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610a31565b6040518082815260200191505060405180910390f35b600360149054906101000a900460ff1681565b6000806000806000806000806000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156102e357600080fd5b635ad17cc042101515156102f657600080fd5b600360149054906101000a900460ff1615151561031257600080fd5b6001600360146101000a81548160ff021916908315150217905550600096505b6002805490508710156104145760028781548110151561034e57fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169550886000808873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115610407576000808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205498508597505b8680600101975050610332565b60028054905094504285019350600285028401925060026104358686610a49565b81548110151561044157fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169150600261047b8685610a49565b81548110151561048757fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505b8173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561053d57828060010193505060026104fe8685610a49565b81548110151561050a57fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506104b6565b8773ffffffffffffffffffffffffffffffffffffffff166108fc6706f05b59d3b200009081150290604051600060405180830381858888f19350505050151561058557600080fd5b8173ffffffffffffffffffffffffffffffffffffffff166108fc6704db7325476300009081150290604051600060405180830381858888f1935050505015156105cd57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166108fc670214e8348c4f00009081150290604051600060405180830381858888f19350505050151561061557600080fd5b505050505050505050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561067e57600080fd5b6000808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060008060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050151561074357600080fd5b5050565b60008060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060008060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050151561080e57600080fd5b50565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b635ad17cc081565b60008060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905061088c3482610a68565b6000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550662386f26fc10000341015801561092f5750600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b156109ef57600280548060010182816109489190610a86565b9160005260206000209001600033909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505060018060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505b50565b600281815481101515610a0157fe5b90600052602060002090016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006020528060005260406000206000915090505481565b600082801515610a5557fe5b8260014303406001900408905092915050565b6000808284019050838110151515610a7c57fe5b8091505092915050565b815481835581811511610aad57818360005260206000209182019101610aac9190610ab2565b5b505050565b610ad491905b80821115610ad0576000816000905550600101610ab8565b5090565b905600a165627a7a72305820ed95ecaa9bfd65ae4365c729d927ac90fccc8e63e56cc5ab8647b494e094e2900029
Deployed Bytecode
0x606060405260043610610099576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063107a83e21461009e57806337e50f39146100cb578063446fcf22146100e0578063590e1ae3146101195780638f84aa091461012e578063bd93f49314610183578063d0e30db0146101ac578063e4b2fb79146101b6578063fc7e286d14610219575b600080fd5b34156100a957600080fd5b6100b1610266565b604051808215151515815260200191505060405180910390f35b34156100d657600080fd5b6100de610279565b005b34156100eb57600080fd5b610117600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610620565b005b341561012457600080fd5b61012c610747565b005b341561013957600080fd5b610141610811565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561018e57600080fd5b610196610837565b6040518082815260200191505060405180910390f35b6101b461083f565b005b34156101c157600080fd5b6101d760048080359060200190919050506109f2565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561022457600080fd5b610250600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610a31565b6040518082815260200191505060405180910390f35b600360149054906101000a900460ff1681565b6000806000806000806000806000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156102e357600080fd5b635ad17cc042101515156102f657600080fd5b600360149054906101000a900460ff1615151561031257600080fd5b6001600360146101000a81548160ff021916908315150217905550600096505b6002805490508710156104145760028781548110151561034e57fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169550886000808873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541115610407576000808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205498508597505b8680600101975050610332565b60028054905094504285019350600285028401925060026104358686610a49565b81548110151561044157fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169150600261047b8685610a49565b81548110151561048757fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505b8173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561053d57828060010193505060026104fe8685610a49565b81548110151561050a57fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506104b6565b8773ffffffffffffffffffffffffffffffffffffffff166108fc6706f05b59d3b200009081150290604051600060405180830381858888f19350505050151561058557600080fd5b8173ffffffffffffffffffffffffffffffffffffffff166108fc6704db7325476300009081150290604051600060405180830381858888f1935050505015156105cd57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166108fc670214e8348c4f00009081150290604051600060405180830381858888f19350505050151561061557600080fd5b505050505050505050565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561067e57600080fd5b6000808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060008060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050151561074357600080fd5b5050565b60008060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060008060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050151561080e57600080fd5b50565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b635ad17cc081565b60008060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905061088c3482610a68565b6000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550662386f26fc10000341015801561092f5750600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b156109ef57600280548060010182816109489190610a86565b9160005260206000209001600033909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505060018060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505b50565b600281815481101515610a0157fe5b90600052602060002090016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006020528060005260406000206000915090505481565b600082801515610a5557fe5b8260014303406001900408905092915050565b6000808284019050838110151515610a7c57fe5b8091505092915050565b815481835581811511610aad57818360005260206000209182019101610aac9190610ab2565b5b505050565b610ad491905b80821115610ad0576000816000905550600101610ab8565b5090565b905600a165627a7a72305820ed95ecaa9bfd65ae4365c729d927ac90fccc8e63e56cc5ab8647b494e094e2900029
Swarm Source
bzzr://ed95ecaa9bfd65ae4365c729d927ac90fccc8e63e56cc5ab8647b494e094e290
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $3,623.67 | 0.01 | $36.24 |
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.