Sponsored:   LH-CRYPTO - 200 instruments (BTC, EUR, GOLD, OIL, SHARES). Leverage up to 1:500. OPEN ACCOUNT
Contract Overview
Balance: 0 Ether
Ether Value: $0
Transactions: 2 txns
Misc:
Address Watch: Add To Watch List
Contract Creator: 0x6a3cacabaa5958a0ca73bd3908445d81852f3a7eat txn 0xbc7ed1db27bc1fb56b37253dffee71348055665e2487ea49ac8f8b2d0ed29369
 Latest 2 txns

TxHash Age From To Value [TxFee]
0x6a05662bf569c95b7f016ed44c14206e08971ecf235dd1b50b4eb15ca166f2c975 days 16 hrs ago0x4469e0e2fe15680912175288086b05e830044f31  IN   0x7eb0e70e68e032b9e09aff75f8a5010830a26a170.08 Ether0.00025707
0xbc7ed1db27bc1fb56b37253dffee71348055665e2487ea49ac8f8b2d0ed2936998 days 16 hrs ago0x6a3cacabaa5958a0ca73bd3908445d81852f3a7e  IN    Contract Creation0 Ether0.006760232


[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 1 Internal Transaction

ParentTxHash Block Age From To Value
0x6a05662bf569c95b7f016ed44c14206e08971ecf235dd1b50b4eb15ca166f2c9627979875 days 16 hrs ago0x7eb0e70e68e032b9e09aff75f8a5010830a26a170x6a3cacabaa5958a0ca73bd3908445d81852f3a7e0.08 Ether
[ Download CSV Export  ] 
Warning: The Compiled Contract might be susceptible to ExpExponentCleanup (medium/high-severity), EventStructWrongData (very low-severity) SolidityCompiler Bugs.

Contract Source Code Verified (Exact Match)
Contract Name: BeatProfitMembership
Compiler Text: v0.4.24+commit.e67f0147
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.24;
contract BeatProfitMembership{
    address owner= 0x6A3CACAbaA5958A0cA73bd3908445d81852F3A7E;
    uint256 [] priceOfPeriod = [10000000000000000, 30000000000000000,300000000000000000,2000000000000000000, 5000000000000000000];
    uint256 [] TimeInSec = [3600, 86400,2592000,31536000];
    
    mapping (address => uint256) public DueTime;
    mapping (address => bool) public Premium;

    constructor() public {
        DueTime[owner] = 4689878400;
        DueTime[0x491cFe3e5eF0C093971DaDdaBce7747EA69A991E] = 4689878400;
        DueTime[0x2ECc452E01f748183d697be4cb1db0531cc8F38F] = 4689878400;
        DueTime[0x353507473A89184e28E8F13e156Dc8055fD62A2C] = 4689878400;
        
        Premium[0x491cFe3e5eF0C093971DaDdaBce7747EA69A991E] = true;
        Premium[0x2ECc452E01f748183d697be4cb1db0531cc8F38F] = true;
        Premium[0x353507473A89184e28E8F13e156Dc8055fD62A2C] = true;
    }

    function extendMembership(uint256 _type) public payable{
    // Type:[0]:hour, [1]:day, [2]:month, [3]:year, [4]:premium
    
        require(msg.value >= priceOfPeriod[_type], "Payment Amount Wrong.");
        if(_type==4){
            // Premium Membership
            Premium[msg.sender] = true;
            DueTime[msg.sender] = 4689878400;
        }
        else if(DueTime[msg.sender]>now){
            DueTime[msg.sender] += mul(div(msg.value, priceOfPeriod[_type]), TimeInSec[_type]);
        }
        else{
            DueTime[msg.sender] = now + mul(div(msg.value, priceOfPeriod[_type]), TimeInSec[_type]);
        }
        
        owner.transfer(msg.value);
    }

    function setPrice(uint256 [] new_prices) public{
        require(msg.sender == owner, "Only Available to BeatProfit Core Team");
        priceOfPeriod[0] = new_prices[0];
        priceOfPeriod[1] = new_prices[1];
        priceOfPeriod[2] = new_prices[2];
        priceOfPeriod[3] = new_prices[3];
        priceOfPeriod[4] = new_prices[4];
    }

    function setMemberShip(address user, uint256 _timestamp) public {
        require(msg.sender==owner);
        DueTime[user]=_timestamp;
    }

  //   Safe Math Functions
    function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
        if (a == 0) {
            return 0;
        }
        c = a * b;
        assert(c / a == b);
        return c;
    }
    function div(uint256 a, uint256 b) internal pure returns (uint256) {return a / b;}
    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 c) {
        c = a + b;
        assert(c >= a);
        return c;
    }
}

    Contract ABI  
[{"constant":false,"inputs":[{"name":"user","type":"address"},{"name":"_timestamp","type":"uint256"}],"name":"setMemberShip","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_type","type":"uint256"}],"name":"extendMembership","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"DueTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"new_prices","type":"uint256[]"}],"name":"setPrice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"Premium","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"}]

  Contract Creation Code Switch To Opcodes View
60008054600160a060020a031916736a3cacabaa5958a0ca73bd3908445d81852f3a7e179055610120604052662386f26fc100006080908152666a94d74f43000060a052670429d069189e000060c052671bc16d674ec8000060e052674563918244f40000610100526100769060019060056101f1565b5060408051608081018252610e10815262015180602082015262278d00918101919091526301e1338060608201526100b2906002906004610248565b503480156100bf57600080fd5b5060008054600160a060020a03168152600360209081526040822064011789dd80908190557fa51956014698c5e063cc56ddc4c8d56b50292bc4a7cc2d7454e0c206e2a9e30d8190557f1ebf48ceff4c2c737a8d1ed9cb80c5e80fec9efb25e54259d29cbb9867dd83b58190557f555f57f17b2e207215deefb71d355c6ad928f82b0d7e832fed05da5efd0ba07655600490527f5c431f27be0f50800ef525405ba44eaf05af4e9b8021c52289c0935d57eb76b18054600160ff1991821681179092557fe6765761e97269fcc33258c3871ba5e9dd5db83343316f688cc0e1d0f5176186805482168317905573353507473a89184e28e8f13e156dc8055fd62a2c9092527f20d92ee11031ab6a0dcb9f6bcf5639e02c1fd1d8e4f5390e5eb71ec78a0524c180549092161790556102a8565b828054828255906000526020600020908101928215610238579160200282015b82811115610238578251829067ffffffffffffffff16905591602001919060010190610211565b5061024492915061028b565b5090565b828054828255906000526020600020908101928215610238579160200282015b82811115610238578251829063ffffffff16905591602001919060010190610268565b6102a591905b808211156102445760008155600101610291565b90565b610573806102b76000396000f30060806040526004361061006c5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306502ac081146100715780639fcaa5ef14610097578063a75f87ce146100a2578063e39dd79c146100d5578063ede493861461012a575b600080fd5b34801561007d57600080fd5b50610095600160a060020a036004351660243561015f565b005b610095600435610192565b3480156100ae57600080fd5b506100c3600160a060020a0360043516610336565b60408051918252519081900360200190f35b3480156100e157600080fd5b5060408051602060048035808201358381028086018501909652808552610095953695939460249493850192918291850190849080828437509497506103489650505050505050565b34801561013657600080fd5b5061014b600160a060020a03600435166104f2565b604080519115158252519081900360200190f35b600054600160a060020a0316331461017657600080fd5b600160a060020a03909116600090815260036020526040902055565b60018054829081106101a057fe5b9060005260206000200154341015151561021b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f5061796d656e7420416d6f756e742057726f6e672e0000000000000000000000604482015290519081900360640190fd5b806004141561025557336000908152600460209081526040808320805460ff191660011790556003909152902064011789dd8090556102f8565b336000908152600360205260409020544210156102cb576102b06102923460018481548110151561028257fe5b9060005260206000200154610507565b60028054849081106102a057fe5b906000526020600020015461051e565b336000908152600360205260409020805490910190556102f8565b6102e16102923460018481548110151561028257fe5b336000908152600360205260409020429190910190555b60008054604051600160a060020a03909116913480156108fc02929091818181858888f19350505050158015610332573d6000803e3d6000fd5b5050565b60036020526000908152604090205481565b600054600160a060020a031633146103e757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f6e6c7920417661696c61626c6520746f204265617450726f66697420436f7260448201527f65205465616d0000000000000000000000000000000000000000000000000000606482015290519081900360840190fd5b8060008151811015156103f657fe5b906020019060200201516001600081548110151561041057fe5b60009182526020909120015580518190600190811061042b57fe5b9060200190602002015160018081548110151561044457fe5b60009182526020909120015580518190600290811061045f57fe5b906020019060200201516001600281548110151561047957fe5b60009182526020909120015580518190600390811061049457fe5b90602001906020020151600160038154811015156104ae57fe5b6000918252602090912001558051819060049081106104c957fe5b90602001906020020151600160048154811015156104e357fe5b60009182526020909120015550565b60046020526000908152604090205460ff1681565b6000818381151561051457fe5b0490505b92915050565b600082151561052f57506000610518565b5081810281838281151561053f57fe5b041461051857fe00a165627a7a72305820f40a52bedaf6891b7b76f06bd2184c0151584a6ed924d1e0e072cd8161419c800029

   Swarm Source:
bzzr://f40a52bedaf6891b7b76f06bd2184c0151584a6ed924d1e0e072cd8161419c80

 

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.