Contract Overview
Balance: 0 Ether
Ether Value: $0
Transactions: 3 txns
Misc:
Address Watch: Add To Watch List
Contract Creator: 0xf0ea6ce7d210ee58e83a463af13989b5c2dbe108at txn 0xb02fe1c6b725cf1a454959407dcd7b482ba53128906db4eb17a4e19189276bac
 Latest 3 txns

TxHash Age From To Value [TxFee]
0x3a83e48b53b1c5482ee48e6142ab616f3bb72ffe4d4e890bfa950ccc2c576c1170 days 35 mins ago0x2a956dbce7beecdc065e1e17a82966aaf06a498c  IN   0x3c0cd870bb7ed4dadd80c8313645b9107b34e2590 Ether0.00290606
0x75519bbf1d3fed082a19bfd0eb004f5ea30d339d6bd27c2ae63f3726ae27121970 days 4 hrs ago0xf0ea6ce7d210ee58e83a463af13989b5c2dbe108  IN   0x3c0cd870bb7ed4dadd80c8313645b9107b34e2590 Ether0.001743444
0xb02fe1c6b725cf1a454959407dcd7b482ba53128906db4eb17a4e19189276bac70 days 4 hrs ago0xf0ea6ce7d210ee58e83a463af13989b5c2dbe108  IN    Contract Creation0 Ether0.0028734717
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 2 Internal Transactions

ParentTxHash Block Age From To Value
0x3a83e48b53b1c5482ee48e6142ab616f3bb72ffe4d4e890bfa950ccc2c576c11648471370 days 35 mins ago0x3c0cd870bb7ed4dadd80c8313645b9107b34e259  Contract Creation0 Ether
0x75519bbf1d3fed082a19bfd0eb004f5ea30d339d6bd27c2ae63f3726ae271219648383070 days 4 hrs ago0x3c0cd870bb7ed4dadd80c8313645b9107b34e259  Contract Creation0 Ether
[ Download CSV Export  ] 
Contract Source Code Verified (Exact Match)
Contract Name: StrongHandsManager
Compiler Text: v0.4.25+commit.59dbf8f1
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.25;

interface HourglassInterface {
    function buy(address _playerAddress) payable external returns(uint256);
    function sell(uint256 _amountOfTokens) external;
    function reinvest() external;
    function withdraw() external;
    function transfer(address _toAddress, uint256 _amountOfTokens) external returns(bool);
    function balanceOf(address _customerAddress) view external returns(uint256);
    function myDividends(bool _includeReferralBonus) external view returns(uint256);
}

contract StrongHandsManager {
    
    event CreatedStrongHand(address indexed owner, address indexed strongHand);
    
    mapping (address => address) public strongHands;
    
    function isStrongHand()
        public
        view
        returns (bool)
    {
        return strongHands[msg.sender] != address(0);
    }
    
    function myStrongHand()
        external
        view
        returns (address)
    {  
        require(isStrongHand(), "You are not a Stronghand");
        
        return strongHands[msg.sender];
    }
    
    function create(uint256 _unlockAfterNDays)
        public
    {
        require(!isStrongHand(), "You already became a Stronghand");
        require(_unlockAfterNDays > 0);
        
        address owner = msg.sender;
    
        strongHands[owner] = new StrongHand(owner, _unlockAfterNDays);
        
        emit CreatedStrongHand(owner, strongHands[owner]);
    }
}

contract StrongHand {

    HourglassInterface constant p3dContract = HourglassInterface(0xB3775fB83F7D12A36E0475aBdD1FCA35c091efBe);
    
    address public owner;
    
    uint256 public creationDate;
    
    uint256 public unlockAfterNDays;
    
    modifier timeLocked()
    {
        require(now >= creationDate + unlockAfterNDays * 1 days);
        _;
    }
    
    modifier onlyOwner()
    {
        require(msg.sender == owner);
        _;
    }
    
    constructor(address _owner, uint256 _unlockAfterNDays)
        public
    {
        owner = _owner;
        unlockAfterNDays =_unlockAfterNDays;
        
        creationDate = now;
    }
    
    function() public payable {}
    
    function isLocked()
        public
        view
        returns(bool)
    {
        return now < creationDate + unlockAfterNDays * 1 days;
    }
    
    function lockedUntil()
        external
        view
        returns(uint256)
    {
        return creationDate + unlockAfterNDays * 1 days;
    }
    
    function extendLock(uint256 _howManyDays)
        external
        onlyOwner
    {
        uint256 newLockTime = unlockAfterNDays + _howManyDays;
        
        require(newLockTime > unlockAfterNDays);
        
        unlockAfterNDays = newLockTime;
    }
    
    //safety functions
    
    function withdraw()
        external
        onlyOwner
    {
        owner.transfer(address(this).balance);
    }
    
    function buyWithBalance()
        external
        onlyOwner
    {
       p3dContract.buy.value(address(this).balance)(0x1EB2acB92624DA2e601EEb77e2508b32E49012ef);
    }
    
    //P3D functions
    
    function balanceOf()
        external
        view
        returns(uint256)
    {
        return p3dContract.balanceOf(address(this));
    }
    
    function dividendsOf()
        external
        view
        returns(uint256)
    {
        return p3dContract.myDividends(true);
    }
    
    function buy()
        external
        payable
        onlyOwner
    {
        p3dContract.buy.value(msg.value)(0x1EB2acB92624DA2e601EEb77e2508b32E49012ef);
    }
    
    function reinvest()
        external
        onlyOwner
    {
        p3dContract.reinvest();
    }

    function withdrawDividends()
        external
        onlyOwner
    {
        p3dContract.withdraw();
        
        owner.transfer(address(this).balance);
    }
    
    function sell(uint256 _amount)
        external
        timeLocked
        onlyOwner
    {
        p3dContract.sell(_amount);
        
        owner.transfer(address(this).balance);
    }
    
    function transfer(address _toAddress, uint256 _amountOfTokens)
        external
        timeLocked
        onlyOwner
        returns(bool)
    {
        return p3dContract.transfer(_toAddress, _amountOfTokens);
    }
}

    Contract ABI  
[{"constant":true,"inputs":[],"name":"myStrongHand","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isStrongHand","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_unlockAfterNDays","type":"uint256"}],"name":"create","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"strongHands","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"strongHand","type":"address"}],"name":"CreatedStrongHand","type":"event"}]

  Contract Creation Code Switch To Opcodes View
608060405234801561001057600080fd5b50610c3b806100206000396000f3006080604052600436106100615763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416631698933d8114610066578063364832cd14610097578063780900dc146100c05780639b8b03a2146100da575b600080fd5b34801561007257600080fd5b5061007b6100fb565b60408051600160a060020a039092168252519081900360200190f35b3480156100a357600080fd5b506100ac61018f565b604080519115158252519081900360200190f35b3480156100cc57600080fd5b506100d86004356101ad565b005b3480156100e657600080fd5b5061007b600160a060020a03600435166102db565b600061010561018f565b151561017257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f596f7520617265206e6f742061205374726f6e6768616e640000000000000000604482015290519081900360640190fd5b5033600090815260208190526040902054600160a060020a031690565b33600090815260208190526040902054600160a060020a0316151590565b60006101b761018f565b1561022357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f596f7520616c726561647920626563616d652061205374726f6e6768616e6400604482015290519081900360640190fd5b6000821161023057600080fd5b5033808261023c6102f6565b600160a060020a0390921682526020820152604080519182900301906000f08015801561026d573d6000803e3d6000fd5b50600160a060020a03828116600081815260208190526040808220805473ffffffffffffffffffffffffffffffffffffffff1916958516959095179485905551939092169290917f15eb2b62fd7142e67b6f072d081cb3b43220bee243cb154ef21059b5ae629a9891a35050565b600060208190529081526040902054600160a060020a031681565b60405161090980610307833901905600608060405234801561001057600080fd5b5060405160408061090983398101604052805160209091015160008054600160a060020a031916600160a060020a03909316929092178255600255426001556108aa90819061005f90396000f3006080604052600436106100c15763ffffffff60e060020a60003504166305b3441081146100c35780632e92abdd146100ea57806334a6074e146100ff5780633ccfd60b1461011457806344ee3a1c14610129578063665b9cca14610141578063722713f7146101565780638da5cb5b1461016b578063a4e2d6341461019c578063a6f2ae3a146101c5578063a9059cbb146101cd578063ce0617ec146101f1578063e4849b3214610206578063f0f9a7291461021e578063fdb5a03e14610233575b005b3480156100cf57600080fd5b506100d8610248565b60408051918252519081900360200190f35b3480156100f657600080fd5b506100c161024e565b34801561010b57600080fd5b506100c161030c565b34801561012057600080fd5b506100c16103d5565b34801561013557600080fd5b506100c1600435610427565b34801561014d57600080fd5b506100d8610458565b34801561016257600080fd5b506100d861045e565b34801561017757600080fd5b506101806104fe565b60408051600160a060020a039092168252519081900360200190f35b3480156101a857600080fd5b506101b161050d565b604080519115158252519081900360200190f35b6100c1610520565b3480156101d957600080fd5b506101b1600160a060020a03600435166024356105b9565b3480156101fd57600080fd5b506100d861069a565b34801561021257600080fd5b506100c16004356106ab565b34801561022a57600080fd5b506100d861078b565b34801561023f57600080fd5b506100c16107fb565b60015481565b600054600160a060020a0316331461026557600080fd5b73b3775fb83f7d12a36e0475abdd1fca35c091efbe600160a060020a0316633ccfd60b6040518163ffffffff1660e060020a028152600401600060405180830381600087803b1580156102b757600080fd5b505af11580156102cb573d6000803e3d6000fd5b505060008054604051600160a060020a039091169350303180156108fc02935091818181858888f19350505050158015610309573d6000803e3d6000fd5b50565b600054600160a060020a0316331461032357600080fd5b604080517ff088d547000000000000000000000000000000000000000000000000000000008152731eb2acb92624da2e601eeb77e2508b32e49012ef6004820152905173b3775fb83f7d12a36e0475abdd1fca35c091efbe9163f088d5479130319160248082019260209290919082900301818588803b1580156103a657600080fd5b505af11580156103ba573d6000803e3d6000fd5b50505050506040513d60208110156103d157600080fd5b5050565b600054600160a060020a031633146103ec57600080fd5b60008054604051600160a060020a0390911691303180156108fc02929091818181858888f19350505050158015610309573d6000803e3d6000fd5b60008054600160a060020a0316331461043f57600080fd5b5060025480820190811161045257600080fd5b60025550565b60025481565b604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009173b3775fb83f7d12a36e0475abdd1fca35c091efbe916370a082319160248082019260209290919082900301818787803b1580156104cd57600080fd5b505af11580156104e1573d6000803e3d6000fd5b505050506040513d60208110156104f757600080fd5b5051905090565b600054600160a060020a031681565b6002546001546201518090910201421090565b600054600160a060020a0316331461053757600080fd5b604080517ff088d547000000000000000000000000000000000000000000000000000000008152731eb2acb92624da2e601eeb77e2508b32e49012ef6004820152905173b3775fb83f7d12a36e0475abdd1fca35c091efbe9163f088d54791349160248082019260209290919082900301818588803b1580156103a657600080fd5b6002546001546000916201518002014210156105d457600080fd5b600054600160a060020a031633146105eb57600080fd5b604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160a060020a038516600482015260248101849052905173b3775fb83f7d12a36e0475abdd1fca35c091efbe9163a9059cbb9160448083019260209291908290030181600087803b15801561066757600080fd5b505af115801561067b573d6000803e3d6000fd5b505050506040513d602081101561069157600080fd5b50519392505050565b600254600154620151809091020190565b60025462015180026001540142101515156106c557600080fd5b600054600160a060020a031633146106dc57600080fd5b73b3775fb83f7d12a36e0475abdd1fca35c091efbe600160a060020a031663e4849b32826040518263ffffffff1660e060020a02815260040180828152602001915050600060405180830381600087803b15801561073957600080fd5b505af115801561074d573d6000803e3d6000fd5b505060008054604051600160a060020a039091169350303180156108fc02935091818181858888f193505050501580156103d1573d6000803e3d6000fd5b604080517f688abbf700000000000000000000000000000000000000000000000000000000815260016004820152905160009173b3775fb83f7d12a36e0475abdd1fca35c091efbe9163688abbf79160248082019260209290919082900301818787803b1580156104cd57600080fd5b600054600160a060020a0316331461081257600080fd5b73b3775fb83f7d12a36e0475abdd1fca35c091efbe600160a060020a031663fdb5a03e6040518163ffffffff1660e060020a028152600401600060405180830381600087803b15801561086457600080fd5b505af1158015610878573d6000803e3d6000fd5b505050505600a165627a7a72305820bccfa8e97ada1399ebe31db40ccf0db7f76fae202d84b8c3f32d0d984d1b5cc30029a165627a7a72305820c2c0150c071cdfbf7bbe505316d2e0c486bb3ff724bdbdcda788bb99f0e26f6e0029

   Swarm Source:
bzzr://c2c0150c071cdfbf7bbe505316d2e0c486bb3ff724bdbdcda788bb99f0e26f6e

 

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.