Discover more of Etherscan's tools and services in one place.
Sponsored
Contract Source Code:
File 1 of 1 : PaytoWin
pragma solidity ^0.5.9; contract PaytoWin{ uint public lastblock; uint public lastbuy; address payable public lastaddr; address payable public owner; constructor() public{ owner = msg.sender; } function Buy() public payable{ if (msg.value > lastbuy){ lastaddr.transfer(lastbuy /2); lastbuy = msg.value; lastaddr = msg.sender; lastblock = now;} else { revert();} } function() external { require(now >= 1 days + lastblock); lastbuy = 0; owner.transfer(address(this).balance / 50); msg.sender.transfer(address(this).balance); } function lastblck() public view returns (uint) { return lastblock; } function lstbuy() public view returns (uint) { return lastbuy; } }
Please enter a contract address above to load the contract details and source code.
Please DO NOT store any passwords or private keys here. A private note (up to 100 characters) can be saved and is useful for transaction tracking.
My Name Tag:
Private Note:
This website uses cookies to improve your experience. By continuing to use this website, you agree to its Terms and Privacy Policy.