Contract 0x7f42b448665c736fe827911c65a759d4bc27bd2a

 

Contract Overview

Balance:
0 BNB

BNB Value:
$0.00

Token:
Txn Hash
Block
From
To
Value [Txn Fee]
0xaa68b0190b7e23165a5a894a852636fbd2ae8fd38bf4e572792a2a0832fb032296812982021-08-02 8:17:4618 hrs 51 mins ago0x76be491293ecd94651d90b02d2ffa66c96be273e IN  0x7f42b448665c736fe827911c65a759d4bc27bd2a0 BNB0.000169955
0xa639e177aa076b49df3f121289b290c99c98ee40c1d4bddaecb8f9277df3a28993065872021-07-19 23:38:4114 days 3 hrs ago0xb0824a286c4eff207dac0ad5151cd93739892318 IN  0x7f42b448665c736fe827911c65a759d4bc27bd2a0 BNB0.000169955
0x5fc2286babe8fed798c367f7126b817fbc2c184c405b418d9e788fa5125405cc91213012021-07-13 13:09:0620 days 14 hrs ago0xe44341ed541bcebee90c3643e403f873d8b36978 IN  0x7f42b448665c736fe827911c65a759d4bc27bd2a0 BNB0.000244955
0xe78781ed2506f8ea0139c40d3d26b56845e29cb8802dd5ec81b170ed0777633a90200802021-07-10 0:47:4024 days 2 hrs ago0x3a61911ae8419eb1048e36ee90d77b461da74bcd IN  0x7f42b448665c736fe827911c65a759d4bc27bd2a0 BNB0.000169955
0x2e76a3be2d8059198d17f48d1b21a4074a86605bc33d3d8eb1da687325302d5090187232021-07-09 23:39:4924 days 3 hrs ago0x00d602d8c70b97f140bcad1a72e1c5b38ca19512 IN  0x7f42b448665c736fe827911c65a759d4bc27bd2a0 BNB0.000244955
0x26bab3625b8e88e394cacd67983e24bac2312c35a5137941fdfbaa5ac209325090187152021-07-09 23:39:2524 days 3 hrs ago0x692b4df275d53ded857f787e4b3fa7c6e4e867ef IN  0x7f42b448665c736fe827911c65a759d4bc27bd2a0 BNB0.000244955
0xb803d782a2d005952505f5a590bd286b8ee9825b0e0b452b91c99ec762f27d6990187092021-07-09 23:39:0724 days 3 hrs ago0x4949a10f79eb93aab0a3b235c78b6ce1ba528535 IN  0x7f42b448665c736fe827911c65a759d4bc27bd2a0 BNB0.000244955
0x20e8e8cc66a3f5d4fa129da628e377816d37d17b754db3f9a7fdcbbb7000a3cf90187032021-07-09 23:38:4924 days 3 hrs ago0x027c9f5d5d214dfbb4b0e3277274bf6b8c4a3c2a IN  0x7f42b448665c736fe827911c65a759d4bc27bd2a0 BNB0.000244955
0x69c27e3e267c559844b3fb3985e85bd7da5dc1a8fd03a19ec95df8aa18cac57590186962021-07-09 23:38:2824 days 3 hrs ago0x365eea4f126fd87955711368c34c44d04ad1b5e0 IN  0x7f42b448665c736fe827911c65a759d4bc27bd2a0 BNB0.000244955
0x6e5d8273c6d038bdb5a417b9cdf5ee052c09386885b25ba7cb80a4dbf77c366090186862021-07-09 23:37:5824 days 3 hrs ago0x12888bd634b15ca5d25f59a2f2e3732d09d70551 IN  0x7f42b448665c736fe827911c65a759d4bc27bd2a0 BNB0.000244955
0x296ab39e1303ef9b05fa3a63086ed3d8ba3c1f47d9ccb4628d11bce615f5948c90186722021-07-09 23:37:1624 days 3 hrs ago0x8dfd3218e49aa95350ac4d17e108af4e1a807cda IN  0x7f42b448665c736fe827911c65a759d4bc27bd2a0 BNB0.000244955
0x4ebcc1ad9028211764e1e0ce6dc7a2d788a96ad17dee0da3ea306e8a8648d3ee90186642021-07-09 23:36:5224 days 3 hrs ago0xd1883ea58ecc32ebef85ccec5b335147bb08322c IN  0x7f42b448665c736fe827911c65a759d4bc27bd2a0 BNB0.000244955
0x23fbde0cd342f441c93634c6c54a418f0ec2e4548cd899409ce5f866994aa49588909242021-07-05 12:49:4428 days 14 hrs ago0x70b2f9e2b9139351e46b98da9bb9d58abff80928 IN  0x7f42b448665c736fe827911c65a759d4bc27bd2a0 BNB0.000244955
0xf7212abd6f5dba25eb2c42fde7923361168b4489a9a62ebcd457872d19b7ca8c87589042021-06-30 21:51:0633 days 5 hrs ago0x72fe860cb95c2550eb2cae47567cb31fa2350b04 IN  0x7f42b448665c736fe827911c65a759d4bc27bd2a0 BNB0.000169955
0x63bc6ae19962e218f1a6c9436f06aad8876cb10e334436a7be1990376bba4f3887348772021-06-30 1:36:2434 days 1 hr ago0xccbd1e2cd44cb056ec76f39fc1b8a964870d6ed7 IN  0x7f42b448665c736fe827911c65a759d4bc27bd2a0 BNB0.000244955
0x9a737a02ad2087082566ec37922d39a38d4b5d1fd54e7e448c09f25c550d9ada87347892021-06-30 1:32:0034 days 1 hr ago0xd352b8f57658859989affbdcc0af570be62db4f7 IN  0x7f42b448665c736fe827911c65a759d4bc27bd2a0 BNB0.000244955
0xffb687e4f879ff1047c6490ec74b9f43a5532f11ef9ac29ff853d8c9ef80585887347432021-06-30 1:29:4234 days 1 hr ago0xe430787a4860f9c907cae86c6c1329c8c0889d06 IN  0x7f42b448665c736fe827911c65a759d4bc27bd2a0 BNB0.000244955
0xfda2f8bcad549ca1707222d2b58fb02d1b1deee8a24b00f799d40664f527d0ba87346982021-06-30 1:27:2734 days 1 hr ago0x67995de350488d72713b611830c321fe4f6ba5bf IN  0x7f42b448665c736fe827911c65a759d4bc27bd2a0 BNB0.000244955
0xad1932d8e3659e35f47c5c99c65f712aa667153fec184f7601eff2e5fb5e098087342732021-06-30 1:06:1234 days 2 hrs ago0x5ce838be56a664ce4c012819d138ca8f6631faff IN  0x7f42b448665c736fe827911c65a759d4bc27bd2a0 BNB0.000244955
0x27de9213e142e617b6863679f85afb8cd21c237bb64da2006405e96a7f65f8d387342252021-06-30 1:03:4834 days 2 hrs ago0xe835e29be4919b75b4668d5676e4341518478381 IN  0x7f42b448665c736fe827911c65a759d4bc27bd2a0 BNB0.000244955
0x6fc2e9c16f82b29f03ef900ec213483753512a1b516008a0c1bf2d2182e5cd8685959152021-06-25 5:17:0438 days 21 hrs ago0x38273120e129af93e069d476735a81b3b7451709 IN  0x7f42b448665c736fe827911c65a759d4bc27bd2a0 BNB0.000244955
0xe90b1d633189483726c2e1ec24e9a2b508fa28277fad9b33b7724a01fbc7df4a85917022021-06-25 1:46:1739 days 1 hr ago0xc14d88d049716cc05741c1ecc3e9b86552242b3f IN  0x7f42b448665c736fe827911c65a759d4bc27bd2a0 BNB0.000244955
0xfba351734dec771f603a0e4f785935f19f86c66cfbd0d5a14645bc480e885f0685916362021-06-25 1:42:5939 days 1 hr ago0xca23339676f9eab7cc456cfe50afc1658525cd5b IN  0x7f42b448665c736fe827911c65a759d4bc27bd2a0 BNB0.000244955
0x4b0410acf0ca3c3b5e733e39a54a380d32277f12b12d2596aca8a24a4f9c93fa85912082021-06-25 1:21:3539 days 1 hr ago0xf38c994d434243a7264c52314caa9d34e453b9c6 IN  0x7f42b448665c736fe827911c65a759d4bc27bd2a0 BNB0.000244955
0x6fd72e7fb2b2ccaf85a6ae9e02236b85dfe3a366aca374d3b25c1e9c81bd159785321462021-06-22 23:58:2241 days 3 hrs ago0x14be8546fcbed3a9447dc6c57becc83ea90b3bb1 IN  0x7f42b448665c736fe827911c65a759d4bc27bd2a0 BNB0.000169955
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DeepAirdropStaking

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 999999 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 7 : DeepAirdropStaking.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.7.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";

contract DeepAirdropStaking is Ownable {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    struct UserInfo {
        uint256 amount;
        uint unlocks;
    }

    uint constant LOCK_PERIOD = 21 days;
    IERC20 private _token;
    uint public startTime;
    uint public endTime;

    mapping(address => UserInfo) public userInfo;

    event Lock(address indexed user, uint256 amount, uint unlocksAt);
    event Unlock(address indexed user, uint256 amount);

    constructor(IERC20 token, uint _startTime, uint _endTime) public {
        _token = token;
        startTime = _startTime;
        endTime = _endTime;
    }

    function setTime(uint _startTime, uint _endTime) external onlyOwner {
        startTime = _startTime;
        endTime = _endTime;
    }

    function lock(uint256 amount) external {
        require(block.timestamp > startTime, "Locking is not started yet");
        require(block.timestamp < endTime, "Locking is already finished");
        UserInfo storage user = userInfo[msg.sender];

        _token.safeTransferFrom(msg.sender, address(this), amount);

        user.amount = user.amount.add(amount);
        user.unlocks = block.timestamp + LOCK_PERIOD;
        emit Lock(msg.sender, amount, user.unlocks);
    }

    function unlock() external {
        UserInfo storage user = userInfo[msg.sender];
        require(user.amount > 0, "No tokens to unlock");
        require(block.timestamp >= user.unlocks, "Current time is before release time");

        emit Unlock(msg.sender, user.amount);

        _token.safeTransfer(msg.sender, user.amount);
        user.amount = 0;
    }
}

File 2 of 7 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 3 of 7 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "../GSN/Context.sol";
/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(_owner == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 4 of 7 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

File 5 of 7 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 6 of 7 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "./IERC20.sol";
import "../../math/SafeMath.sol";
import "../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 7 of 7 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
      return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 999999
  },
  "evmVersion": "istanbul",
  "libraries": {
    "": {}
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract ABI

[{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"unlocksAt","type":"uint256"}],"name":"Lock","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Unlock","type":"event"},{"inputs":[],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"lock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"}],"name":"setTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"unlocks","type":"uint256"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b50604051610ea2380380610ea28339818101604052606081101561003357600080fd5b5080516020820151604090920151909190600061004e6100c4565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b0319166001600160a01b0394909416939093179092556002556003556100c8565b3390565b610dcb806100d76000396000f3fe608060405234801561001057600080fd5b50600436106100a35760003560e01c80638da5cb5b11610076578063a69df4b51161005b578063a69df4b514610174578063dd4670641461017c578063f2fde38b14610199576100a3565b80638da5cb5b14610120578063a0355eca14610151576100a3565b80631959a002146100a85780633197cbb6146100f4578063715018a61461010e57806378e9792514610118575b600080fd5b6100db600480360360208110156100be57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166101cc565b6040805192835260208301919091528051918290030190f35b6100fc6101e5565b60408051918252519081900360200190f35b6101166101eb565b005b6100fc6102eb565b6101286102f1565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6101166004803603604081101561016757600080fd5b508035906020013561030d565b6101166103a9565b6101166004803603602081101561019257600080fd5b50356104e8565b610116600480360360208110156101af57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610659565b6004602052600090815260409020805460019091015482565b60035481565b6101f36107e3565b60005473ffffffffffffffffffffffffffffffffffffffff90811691161461027c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b60025481565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b6103156107e3565b60005473ffffffffffffffffffffffffffffffffffffffff90811691161461039e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600291909155600355565b336000908152600460205260409020805461042557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4e6f20746f6b656e7320746f20756e6c6f636b00000000000000000000000000604482015290519081900360640190fd5b8060010154421015610482576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526023815260200180610d236023913960400191505060405180910390fd5b8054604080519182525133917f6381d9813cabeb57471b5a7e05078e64845ccdb563146a6911d536f24ce960f1919081900360200190a280546001546104e29173ffffffffffffffffffffffffffffffffffffffff9091169033906107e7565b60009055565b600254421161055857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4c6f636b696e67206973206e6f74207374617274656420796574000000000000604482015290519081900360640190fd5b60035442106105c857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f4c6f636b696e6720697320616c72656164792066696e69736865640000000000604482015290519081900360640190fd5b33600081815260046020526040902060015490916105fe9173ffffffffffffffffffffffffffffffffffffffff16903085610879565b805461060a9083610914565b815542621baf800160018201819055604080518481526020810192909252805133927f49eaf4942f1237055eb4cfa5f31c9dfe50d5b4ade01e021f7de8be2fbbde557b92908290030190a25050565b6106616107e3565b60005473ffffffffffffffffffffffffffffffffffffffff9081169116146106ea57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116610756576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180610cfd6026913960400191505060405180910390fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b3390565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905261087490849061098f565b505050565b6040805173ffffffffffffffffffffffffffffffffffffffff80861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd0000000000000000000000000000000000000000000000000000000017905261090e90859061098f565b50505050565b60008282018381101561098857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b60006109f1826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610a679092919063ffffffff16565b80519091501561087457808060200190516020811015610a1057600080fd5b5051610874576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180610d6c602a913960400191505060405180910390fd5b6060610a768484600085610a7e565b949350505050565b606082471015610ad9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180610d466026913960400191505060405180910390fd5b610ae285610c38565b610b4d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b60208310610bb657805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101610b79565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610c18576040519150601f19603f3d011682016040523d82523d6000602084013e610c1d565b606091505b5091509150610c2d828286610c3e565b979650505050505050565b3b151590565b60608315610c4d575081610988565b825115610c5d5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610cc1578181015183820152602001610ca9565b50505050905090810190601f168015610cee5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737343757272656e742074696d65206973206265666f72652072656c656173652074696d65416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220b926559e12421282646d7c1817c63e0b1ed0a1beaefbe5fa7cf1ee86b476741264736f6c6343000706003300000000000000000000000060de5f9386b637fe97af1cc05f25548e9baaee1900000000000000000000000000000000000000000000000000000000608c45a000000000000000000000000000000000000000000000000000000000608d9720

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

00000000000000000000000060de5f9386b637fe97af1cc05f25548e9baaee1900000000000000000000000000000000000000000000000000000000608c45a000000000000000000000000000000000000000000000000000000000608d9720

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000060de5f9386b637fe97af1cc05f25548e9baaee19
Arg [1] : 00000000000000000000000000000000000000000000000000000000608c45a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000608d9720


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.