ETH Price: $2,055.49 (+7.85%)
Gas: 0.06 Gwei

Contract Diff Checker

Contract Name:
PaytoWin

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.

Context size (optional):