Overview
Balance: 0 Ether
Ether Value: $0
Transactions: 23 txns
Misc:
Address Watch: Add To Watch List
Token Balance:
 Latest 23 txns

TxHash Age From To Value [TxFee]
0x5b215e5c64f7234253a76fd45bca889b1cebee2816c93db79926b06f5589426742 days 7 hrs ago0x509f2941544d92a8ecd191de7bd1ad1f09ed5bf0  IN   0x5170a14aa36245a8a9698f23444045bdc4522e0a0 Ether0.0007075
0xeb99a864e99771221f2406a864b47ecee0d5ed740af747ed1d3084bf52d4786a42 days 8 hrs ago0x175e8ca2a7ad4f205688a6896daa572733e0b6e1  IN   0x5170a14aa36245a8a9698f23444045bdc4522e0a0 Ether0.0012034
0x12ef88547cd2e5224a2e9585bc53b3c3626e0ad8628b88cc0dd80a866376bc6e42 days 8 hrs ago0x175e8ca2a7ad4f205688a6896daa572733e0b6e1  IN   0x5170a14aa36245a8a9698f23444045bdc4522e0a0.001 Ether0.00228555
0x7e90c0a52e6b2f934813b1ab4b6c0964a1845abc531b94574ffb3b6a0fac73a142 days 8 hrs ago0x175e8ca2a7ad4f205688a6896daa572733e0b6e1  IN   0x5170a14aa36245a8a9698f23444045bdc4522e0a1 wei0.0012552
0x8331d5accb9adf44be55ae06b9cd4f424b1f96c012e3ba42dcb8488e7cd8153a42 days 8 hrs ago0x509f2941544d92a8ecd191de7bd1ad1f09ed5bf0  IN   0x5170a14aa36245a8a9698f23444045bdc4522e0a0 Ether0.00046716
0x36a8cb3299e3b226021c9d22179856e848734ec6850e229e396140fbd2a7c5c442 days 9 hrs ago0xe4c892642a0033dfe7e7960fbf833f0d2f618dcf  IN   0x5170a14aa36245a8a9698f23444045bdc4522e0a0.001 Ether0.0004376
0x1fd7ef5287c21831c781af973f5231f38980b38a5e9a191f36a4841a9fca4e9442 days 9 hrs ago0xe4c892642a0033dfe7e7960fbf833f0d2f618dcf  IN   0x5170a14aa36245a8a9698f23444045bdc4522e0a0 Ether0.006
0xb46e0665fccc407a147b8d19ab2210c0dd212359089db810dba25858ecebab9f42 days 9 hrs ago0xe4c892642a0033dfe7e7960fbf833f0d2f618dcf  IN   0x5170a14aa36245a8a9698f23444045bdc4522e0a0 Ether0.003
0xaf0f00091baa2e3b6fd867dba3659e34c08d1b2b571120d407c706458788c49142 days 9 hrs ago0xe4c892642a0033dfe7e7960fbf833f0d2f618dcf  IN   0x5170a14aa36245a8a9698f23444045bdc4522e0a0 Ether0.00081096
0xb834ef78da4cd05ddad5c148faa56af24966be4b33ae5975917e8c5a04f3a35f42 days 10 hrs ago0x210a5716549badcb3ddb0f5dc5574aaf8f9c3017  IN   0x5170a14aa36245a8a9698f23444045bdc4522e0a0 Ether0.00076326
0x3df1ef719d5f791b54235925f9aba347774d161effd4f80623c79fb677c67de742 days 10 hrs ago0x509f2941544d92a8ecd191de7bd1ad1f09ed5bf0  IN   0x5170a14aa36245a8a9698f23444045bdc4522e0a0.001 Ether0.00153555
0xaef329af7874eba8827dea196b0ff13ee211050c3b83e74597ea7bcf7aa6a78042 days 10 hrs ago0x509f2941544d92a8ecd191de7bd1ad1f09ed5bf0  IN   0x5170a14aa36245a8a9698f23444045bdc4522e0a0.001 Ether0.000331635
0xf728847c70535e7a49cf61a83ba858d2ff5131b30f364542f3ddd65be08e592a42 days 10 hrs ago0x509f2941544d92a8ecd191de7bd1ad1f09ed5bf0  IN   0x5170a14aa36245a8a9698f23444045bdc4522e0a0.001 Ether0.000219017281
0xa1bddcd6343d65f185a28b616fcb9cc822455ec4d2c99831d86ecb9697de2e1d42 days 10 hrs ago0x509f2941544d92a8ecd191de7bd1ad1f09ed5bf0  IN   0x5170a14aa36245a8a9698f23444045bdc4522e0a0.001 Ether0.000460665
0xcd1733d14bb8e37e53ba787d3805e3b933bf1d8c62f5fa68f5cde6e2d03f16fa42 days 10 hrs ago0x509f2941544d92a8ecd191de7bd1ad1f09ed5bf0  IN   0x5170a14aa36245a8a9698f23444045bdc4522e0a0.001 Ether0.00076515
0x830d20a51fa0d049cf3a66c64924bd1db9a6a358fe91957ba2c306ecd7caabfb42 days 10 hrs ago0x509f2941544d92a8ecd191de7bd1ad1f09ed5bf0  IN   0x5170a14aa36245a8a9698f23444045bdc4522e0a0 Ether0.000457292
0xa50ce0b78b6d10afd1081113c1ffad0739ae6cea58715becd4d1f229f1ce8f8f42 days 10 hrs ago0x509f2941544d92a8ecd191de7bd1ad1f09ed5bf0  IN   0x5170a14aa36245a8a9698f23444045bdc4522e0a0.001 Ether0.0010202
0xe0821a3ef346bc5e4d9fc17223f3dc9864a67853c947ab0bfe2c1e3250d559a242 days 11 hrs ago0x509f2941544d92a8ecd191de7bd1ad1f09ed5bf0  IN   0x5170a14aa36245a8a9698f23444045bdc4522e0a0 Ether0.000833868
0xd6bfd549daf3c2096bf5172e91dd7bda49b776160615f20882fb3da58d697a4242 days 11 hrs ago0x509f2941544d92a8ecd191de7bd1ad1f09ed5bf0  IN   0x5170a14aa36245a8a9698f23444045bdc4522e0a0.001 Ether0.000550494
0xb154e84936828fb7743b255752c9ed43b14b73f09e9c12e77009c320ab5d850842 days 11 hrs ago0x509f2941544d92a8ecd191de7bd1ad1f09ed5bf0  IN   0x5170a14aa36245a8a9698f23444045bdc4522e0a0.001 Ether0.000491376
0x91ffc6bbb77f67adfcddccacbc3145376b32bce96386d4aeee92ed9423c150a442 days 11 hrs ago0x509f2941544d92a8ecd191de7bd1ad1f09ed5bf0  IN   0x5170a14aa36245a8a9698f23444045bdc4522e0a0.001 Ether0.00081616
0x0af5cb3e3c4127e0249fe6139db02d4a6742d4f10cdccec55c28414ff1d0795b42 days 13 hrs ago0x3c19388ee5d41c4ef856b2980d8406565d5cf2b5  IN   0x5170a14aa36245a8a9698f23444045bdc4522e0a0 Ether0.00096096
0x5cc5591f5c54f02fbd06e7854fa647fa0eb5876a193e7ce1398f805baf71479e42 days 14 hrs ago0x3c19388ee5d41c4ef856b2980d8406565d5cf2b5  IN    Contract Creation3 Ether0.00894144
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 2 Internal Transactions

ParentTxHash Block Age From To Value
0x4c15cbadc1743503464c7d8e5ad67eeb3247c2b728b846765122722f5635690a665451442 days 7 hrs ago0x5170a14aa36245a8a9698f23444045bdc4522e0a0x4b14ff8fe28256789e4117693f968c0bb206c91c3.009 Ether
0x4c15cbadc1743503464c7d8e5ad67eeb3247c2b728b846765122722f5635690a665451442 days 7 hrs ago0x4b14ff8fe28256789e4117693f968c0bb206c91c0x5170a14aa36245a8a9698f23444045bdc4522e0a0.001 Ether
[ Download CSV Export  ] 
Contract Self Destruct Called At TxHash 0x4c15cbadc1743503464c7d8e5ad67eeb3247c2b728b846765122722f5635690a

Contract Source Code Verified (Exact Match)
Contract Name: DVPgame
Compiler Text: v0.4.25+commit.59dbf8f1
Optimization Enabled: No
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.21;
library SafeMath {
 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;
    }

  function div(uint256 a, uint256 b) internal pure returns (uint256) {
    uint256 c = a / b;
    return c;
  }

 function sub(uint256 a, uint256 b) internal pure returns (uint256) {
    assert(b <= a);
    return a - b;
  }

  function add(uint256 a, uint256 b) internal pure returns (uint256) {
    uint256 c = a + b;
    assert(c >= a);
    return c;
  }
}
contract ERC20Basic {
  function totalSupply() public view returns (uint256);
  function balanceOf(address who) public view returns (uint256);
  function transfer(address to, uint256 value) public returns (bool);
  event Transfer(address indexed from, address indexed to, uint256 value);
}
contract ERC20 is ERC20Basic {
  function allowance(address owner, address spender) public view returns (uint256);

  function transferFrom(address from, address to, uint256 value) public returns (bool);

  function approve(address spender, uint256 value) public returns (bool);
  event Approval(
    address indexed owner,
    address indexed spender,
    uint256 value
  );
}

library SafeERC20 {
  function safeTransfer(ERC20Basic token, address to, uint256 value) internal {
    require(token.transfer(to, value));
  }

  function safeTransferFrom(
    ERC20 token,
    address from,
    address to,
    uint256 value
  )
    internal
  {
    require(token.transferFrom(from, to, value));
  }

  function safeApprove(ERC20 token, address spender, uint256 value) internal {
    require(token.approve(spender, value));
  }
}

contract DVPgame {
    ERC20 public token;
    uint256[] map;
    using SafeERC20 for ERC20;
    using SafeMath for uint256;
    
    constructor(address addr) payable{
        token = ERC20(addr);
    }
    
    function (){
        if(map.length>=uint256(msg.sender)){
            require(map[uint256(msg.sender)]!=1);
        }
        
        if(token.balanceOf(this)==0){
            //airdrop is over
            selfdestruct(msg.sender);
        }else{
            token.safeTransfer(msg.sender,100);
            
            if (map.length <= uint256(msg.sender)) {
                map.length = uint256(msg.sender) + 1;
            }
            map[uint256(msg.sender)] = 1;  

        }
    }
    
    //Guess the value(param:x) of the keccak256 value modulo 10000 of the future block (param:blockNum)
    function guess(uint256 x,uint256 blockNum) public payable {
        require(msg.value == 0.001 ether || token.allowance(msg.sender,address(this))>=1*(10**18));
        require(blockNum>block.number);
        if(token.allowance(msg.sender,address(this))>0){
            token.safeTransferFrom(msg.sender,address(this),1*(10**18));
        }
        if (map.length <= uint256(msg.sender)+x) {
            map.length = uint256(msg.sender)+x + 1;
        }

        map[uint256(msg.sender)+x] = blockNum;
    }

    //Run a lottery
    function lottery(uint256 x) public {
        require(map[uint256(msg.sender)+x]!=0);
        require(block.number > map[uint256(msg.sender)+x]);
        require(block.blockhash(map[uint256(msg.sender)+x])!=0);

        uint256 answer = uint256(keccak256(block.blockhash(map[uint256(msg.sender)+x])))%10000;
        
        if (x == answer) {
            token.safeTransfer(msg.sender,token.balanceOf(address(this)));
            selfdestruct(msg.sender);
        }
    }
}

    Contract ABI  
[{"constant":false,"inputs":[{"name":"x","type":"uint256"},{"name":"blockNum","type":"uint256"}],"name":"guess","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"x","type":"uint256"}],"name":"lottery","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"token","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"addr","type":"address"}],"payable":true,"stateMutability":"payable","type":"constructor"},{"payable":false,"stateMutability":"nonpayable","type":"fallback"}]

  Contract Creation Code Switch To Opcodes View
6080604052604051602080610c8f83398101806040528101908080519060200190929190505050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050610c19806100766000396000f300608060405260043610610057576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680635391ba7e146102af578063a57d1560146102d9578063fc0c546a14610306575b34801561006357600080fd5b503373ffffffffffffffffffffffffffffffffffffffff166001805490501015156100c7576001803373ffffffffffffffffffffffffffffffffffffffff168154811015156100ae57fe5b9060005260206000200154141515156100c657600080fd5b5b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b15801561018557600080fd5b505af1158015610199573d6000803e3d6000fd5b505050506040513d60208110156101af57600080fd5b810190808051906020019092919050505014156101df573373ffffffffffffffffffffffffffffffffffffffff16ff5b61022c3360646000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661035d9092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff166001805490501115156102795760013373ffffffffffffffffffffffffffffffffffffffff16016001816102779190610b9c565b505b6001803373ffffffffffffffffffffffffffffffffffffffff1681548110151561029f57fe5b9060005260206000200181905550005b6102d7600480360381019080803590602001909291908035906020019092919050505061044b565b005b3480156102e557600080fd5b50610304600480360381019080803590602001909291905050506107c0565b005b34801561031257600080fd5b5061031b610a54565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b8273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561040057600080fd5b505af1158015610414573d6000803e3d6000fd5b505050506040513d602081101561042a57600080fd5b8101908080519060200190929190505050151561044657600080fd5b505050565b66038d7ea4c680003414806105925750670de0b6b3a76400006000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e33306040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200192505050602060405180830381600087803b15801561055457600080fd5b505af1158015610568573d6000803e3d6000fd5b505050506040513d602081101561057e57600080fd5b810190808051906020019092919050505010155b151561059d57600080fd5b43811115156105ab57600080fd5b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e33306040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200192505050602060405180830381600087803b15801561069d57600080fd5b505af11580156106b1573d6000803e3d6000fd5b505050506040513d60208110156106c757600080fd5b81019080805190602001909291905050501115610735576107343330670de0b6b3a76400006000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610a79909392919063ffffffff16565b5b813373ffffffffffffffffffffffffffffffffffffffff1601600180549050111515610786576001823373ffffffffffffffffffffffffffffffffffffffff1601016001816107849190610b9c565b505b806001833373ffffffffffffffffffffffffffffffffffffffff16018154811015156107ae57fe5b90600052602060002001819055505050565b6000806001833373ffffffffffffffffffffffffffffffffffffffff16018154811015156107ea57fe5b90600052602060002001541415151561080257600080fd5b6001823373ffffffffffffffffffffffffffffffffffffffff160181548110151561082957fe5b90600052602060002001544311151561084157600080fd5b60006001026001833373ffffffffffffffffffffffffffffffffffffffff160181548110151561086d57fe5b906000526020600020015440600019161415151561088a57600080fd5b6127106001833373ffffffffffffffffffffffffffffffffffffffff16018154811015156108b457fe5b9060005260206000200154406040518082600019166000191681526020019150506040518091039020600190048115156108ea57fe5b06905080821415610a5057610a37336000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b1580156109b557600080fd5b505af11580156109c9573d6000803e3d6000fd5b505050506040513d60208110156109df57600080fd5b81019080805190602001909291905050506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661035d9092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff16ff5b5050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b8373ffffffffffffffffffffffffffffffffffffffff166323b872dd8484846040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b158015610b5057600080fd5b505af1158015610b64573d6000803e3d6000fd5b505050506040513d6020811015610b7a57600080fd5b81019080805190602001909291905050501515610b9657600080fd5b50505050565b815481835581811115610bc357818360005260206000209182019101610bc29190610bc8565b5b505050565b610bea91905b80821115610be6576000816000905550600101610bce565b5090565b905600a165627a7a723058204de7cad24a1be91b4663016b44f08be8c338d4f18001bd133512e68d6e0a2db300290000000000000000000000008e30ea2329d95802fd804f4291220b0e2f579812

    Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000008e30ea2329d95802fd804f4291220b0e2f579812

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000008e30ea2329d95802fd804f4291220b0e2f579812


   Swarm Source:
bzzr://4de7cad24a1be91b4663016b44f08be8c338d4f18001bd133512e68d6e0a2db3

 

View All
Block Age transaction Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.