ETH Price: $3,552.00 (+1.57%)
Gas: 34 Gwei

Contract

0xB95feeaD4A52137202456dc6a304f617e52BfC63
 

Overview

ETH Balance

0.0099 ETH

Eth Value

$35.16 (@ $3,552.00/ETH)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Withdraw77090112019-05-06 18:55:121787 days ago1557168912IN
0xB95feeaD...7e52BfC63
0 ETH0.00008273
Withdraw63546042018-09-18 13:18:262018 days ago1537276706IN
0xB95feeaD...7e52BfC63
0 ETH0.000096345
Buy Block63448112018-09-16 22:23:372019 days ago1537136617IN
0xB95feeaD...7e52BfC63
0.01 ETH0.000260323
Buy Block60530902018-07-29 20:04:302068 days ago1532894670IN
0xB95feeaD...7e52BfC63
0.005 ETH0.000100821.001
Withdraw60244832018-07-25 0:09:352073 days ago1532477375IN
0xB95feeaD...7e52BfC63
0 ETH0.000019261
Buy Block58108392018-06-18 12:32:402110 days ago1529325160IN
0xB95feeaD...7e52BfC63
0.005 ETH0.000428635
Buy Block58107402018-06-18 12:04:362110 days ago1529323476IN
0xB95feeaD...7e52BfC63
0.005 ETH0.000085721
Buy Block58107162018-06-18 11:57:532110 days ago1529323073IN
0xB95feeaD...7e52BfC63
0.005 ETH0.000604356
Withdraw58104432018-06-18 10:53:012110 days ago1529319181IN
0xB95feeaD...7e52BfC63
0 ETH0.000038532
Buy Block58099492018-06-18 8:48:282110 days ago1529311708IN
0xB95feeaD...7e52BfC63
0.005 ETH0.000171452
Withdraw58099472018-06-18 8:47:302110 days ago1529311650IN
0xB95feeaD...7e52BfC63
0 ETH0.000096345
Buy Block58099422018-06-18 8:46:062110 days ago1529311566IN
0xB95feeaD...7e52BfC63
0.01 ETH0.000260323
Buy Block58098632018-06-18 8:27:442110 days ago1529310464IN
0xB95feeaD...7e52BfC63
0.005 ETH0.000302173
Withdraw58098292018-06-18 8:17:052110 days ago1529309825IN
0xB95feeaD...7e52BfC63
0 ETH0.00005783
Buy Block58098232018-06-18 8:15:262110 days ago1529309726IN
0xB95feeaD...7e52BfC63
0.005 ETH0.000115661
0x6080604058097892018-06-18 8:06:502110 days ago1529309210IN
 Create: st4ck
0 ETH0.000960622.1

Latest 5 internal transactions

Advanced mode:
Parent Txn Hash Block From To Value
63546042018-09-18 13:18:262018 days ago1537276706
0xB95feeaD...7e52BfC63
0.0051 ETH
60244832018-07-25 0:09:352073 days ago1532477375
0xB95feeaD...7e52BfC63
0.015 ETH
58104432018-06-18 10:53:012110 days ago1529319181
0xB95feeaD...7e52BfC63
0.0101 ETH
58099472018-06-18 8:47:302110 days ago1529311650
0xB95feeaD...7e52BfC63
0.0099 ETH
58098292018-06-18 8:17:052110 days ago1529309825
0xB95feeaD...7e52BfC63
0.005 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
st4ck

Compiler Version
v0.4.24+commit.e67f0147

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2018-06-18
*/

pragma solidity ^0.4.20;

contract st4ck {
    address[][] public wereld;
    address public owner = 0x5372260584003e8Ae3a24E9dF09fa96037a04c2b;
    mapping(address => uint) public balance; 
    bool public rowQuiter = false;
    
    function st4ckCount() public view returns (uint) {
        return wereld.length;
    }
    
    function st4ckHeight(uint x) public view returns (uint) {
        return wereld[x].length;
    }
    
    function price(uint y) public pure returns(uint)   {
        return 0.005 ether * (uint(2)**y);
    }
    
    function setRowQuiter(bool newValue) public {
        require(msg.sender == owner);
        rowQuiter = newValue;
    }
    
    function buyBlock(uint x, uint y) public payable {
        balance[msg.sender] += msg.value;
        require(balance[msg.sender] >= price(y));
        balance[msg.sender] -= price(y);
        if(x == wereld.length) {
            require(rowQuiter == false);
            wereld.length++;
        }
        else if (x > wereld.length) {
            revert();
        }
        require(y == wereld[x].length);
        wereld[x].push(msg.sender);
            
        if(y == 0) {
            balance[owner] += price(y);
        }
        else {
            balance[wereld[x][y - 1]] += price(y) * 99 / 100;
            balance[owner] += price(y) * 1 / 100;
        }  
        
    }
    
    function withdraw() public {
        msg.sender.transfer(balance[msg.sender]);
        balance[msg.sender] = 0;
    }
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[{"name":"y","type":"uint256"}],"name":"price","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[],"name":"st4ckCount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newValue","type":"bool"}],"name":"setRowQuiter","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"x","type":"uint256"}],"name":"st4ckHeight","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"},{"name":"","type":"uint256"}],"name":"wereld","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"x","type":"uint256"},{"name":"y","type":"uint256"}],"name":"buyBlock","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rowQuiter","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"}]

608060405260018054600160a060020a031916735372260584003e8ae3a24e9df09fa96037a04c2b1790556003805460ff1916905534801561004057600080fd5b50610589806100506000396000f3006080604052600436106100a35763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166326a49e3781146100a8578063275e2d3f146100d25780633ccfd60b146100e75780637e33e361146100fe5780638da5cb5b146101185780639d3aee8d14610149578063ae7385a514610161578063d3481bd01461017c578063e3d670d71461018a578063fface4a3146101ab575b600080fd5b3480156100b457600080fd5b506100c06004356101d4565b60408051918252519081900360200190f35b3480156100de57600080fd5b506100c06101e3565b3480156100f357600080fd5b506100fc6101ea565b005b34801561010a57600080fd5b506100fc6004351515610234565b34801561012457600080fd5b5061012d61025e565b60408051600160a060020a039092168252519081900360200190f35b34801561015557600080fd5b506100c060043561026d565b34801561016d57600080fd5b5061012d60043560243561028f565b6100fc6004356024356102d0565b34801561019657600080fd5b506100c0600160a060020a03600435166104b7565b3480156101b757600080fd5b506101c06104c9565b604080519115158252519081900360200190f35b60020a6611c37937e080000290565b6000545b90565b3360008181526002602052604080822054905181156108fc0292818181858888f19350505050158015610221573d6000803e3d6000fd5b5033600090815260026020526040812055565b600154600160a060020a0316331461024b57600080fd5b6003805460ff1916911515919091179055565b600154600160a060020a031681565b6000808281548110151561027d57fe5b60009182526020909120015492915050565b600080548390811061029d57fe5b90600052602060002001818154811015156102b457fe5b600091825260209091200154600160a060020a03169150829050565b3360009081526002602052604090208054340190556102ee816101d4565b33600090815260026020526040902054101561030957600080fd5b610312816101d4565b3360009081526002602052604081208054929092039091555482141561035a5760035460ff161561034257600080fd5b600080549061035490600183016104d2565b50610369565b60005482111561036957600080fd5b600080548390811061037757fe5b600091825260209091200154811461038e57600080fd5b600080548390811061039c57fe5b600091825260208083209091018054600181018255908352912001805473ffffffffffffffffffffffffffffffffffffffff19163317905580151561040a576103e4816101d4565b600154600160a060020a03166000908152600260205260409020805490910190556104b3565b6064610415826101d4565b60630281151561042157fe5b0460026000808581548110151561043457fe5b906000526020600020016001850381548110151561044e57fe5b6000918252602080832090910154600160a060020a031683528201929092526040019020805490910190556064610484826101d4565b81151561048d57fe5b600154600160a060020a0316600090815260026020526040902080549290910490910190555b5050565b60026020526000908152604090205481565b60035460ff1681565b8154818355818111156104f6576000838152602090206104f69181019083016104fb565b505050565b6101e791905b8082111561051e5760006105158282610522565b50600101610501565b5090565b50805460008255906000526020600020908101906105409190610543565b50565b6101e791905b8082111561051e57600081556001016105495600a165627a7a7230582094769db67972d97299861314f1c4701b70e6368b526f9a49e4f397eeff4237270029

Deployed Bytecode

0x6080604052600436106100a35763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166326a49e3781146100a8578063275e2d3f146100d25780633ccfd60b146100e75780637e33e361146100fe5780638da5cb5b146101185780639d3aee8d14610149578063ae7385a514610161578063d3481bd01461017c578063e3d670d71461018a578063fface4a3146101ab575b600080fd5b3480156100b457600080fd5b506100c06004356101d4565b60408051918252519081900360200190f35b3480156100de57600080fd5b506100c06101e3565b3480156100f357600080fd5b506100fc6101ea565b005b34801561010a57600080fd5b506100fc6004351515610234565b34801561012457600080fd5b5061012d61025e565b60408051600160a060020a039092168252519081900360200190f35b34801561015557600080fd5b506100c060043561026d565b34801561016d57600080fd5b5061012d60043560243561028f565b6100fc6004356024356102d0565b34801561019657600080fd5b506100c0600160a060020a03600435166104b7565b3480156101b757600080fd5b506101c06104c9565b604080519115158252519081900360200190f35b60020a6611c37937e080000290565b6000545b90565b3360008181526002602052604080822054905181156108fc0292818181858888f19350505050158015610221573d6000803e3d6000fd5b5033600090815260026020526040812055565b600154600160a060020a0316331461024b57600080fd5b6003805460ff1916911515919091179055565b600154600160a060020a031681565b6000808281548110151561027d57fe5b60009182526020909120015492915050565b600080548390811061029d57fe5b90600052602060002001818154811015156102b457fe5b600091825260209091200154600160a060020a03169150829050565b3360009081526002602052604090208054340190556102ee816101d4565b33600090815260026020526040902054101561030957600080fd5b610312816101d4565b3360009081526002602052604081208054929092039091555482141561035a5760035460ff161561034257600080fd5b600080549061035490600183016104d2565b50610369565b60005482111561036957600080fd5b600080548390811061037757fe5b600091825260209091200154811461038e57600080fd5b600080548390811061039c57fe5b600091825260208083209091018054600181018255908352912001805473ffffffffffffffffffffffffffffffffffffffff19163317905580151561040a576103e4816101d4565b600154600160a060020a03166000908152600260205260409020805490910190556104b3565b6064610415826101d4565b60630281151561042157fe5b0460026000808581548110151561043457fe5b906000526020600020016001850381548110151561044e57fe5b6000918252602080832090910154600160a060020a031683528201929092526040019020805490910190556064610484826101d4565b81151561048d57fe5b600154600160a060020a0316600090815260026020526040902080549290910490910190555b5050565b60026020526000908152604090205481565b60035460ff1681565b8154818355818111156104f6576000838152602090206104f69181019083016104fb565b505050565b6101e791905b8082111561051e5760006105158282610522565b50600101610501565b5090565b50805460008255906000526020600020908101906105409190610543565b50565b6101e791905b8082111561051e57600081556001016105495600a165627a7a7230582094769db67972d97299861314f1c4701b70e6368b526f9a49e4f397eeff4237270029

Swarm Source

bzzr://94769db67972d97299861314f1c4701b70e6368b526f9a49e4f397eeff423727

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.