Contract 0x1267414d191D0e6449dD54635521B8094be381d4

 

Contract Overview

Balance:
0 BNB

BNB Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xe2785cbea1bb1c41b8271808e2221ba0a7246b972bb9a44eae8e19fe4b70cfbeIncrease Lock91794222021-07-15 13:36:27102 days 19 hrs ago0xbc4ebc3052ae49cfad21487b2c3065919e935bb8 IN  0x1267414d191d0e6449dd54635521b8094be381d40 BNB0.00014538
0x567411ad28a7d09a9003800685d312e57999d2386567c57894b1b1dcaa8a35eaIncrease Lock91794112021-07-15 13:35:54102 days 19 hrs ago0xbc4ebc3052ae49cfad21487b2c3065919e935bb8 IN  0x1267414d191d0e6449dd54635521b8094be381d40 BNB0.00014538
0x67fe4562818a76c4d3c6701cfb810b4583c7c4c8ba1d5497b8bf648ffd55b312Withdraw Tokens91793202021-07-15 13:31:21102 days 19 hrs ago0xbc4ebc3052ae49cfad21487b2c3065919e935bb8 IN  0x1267414d191d0e6449dd54635521b8094be381d40 BNB0.000500615
0x46ca5d19048b80f6ff6d6749d075bfce5952caebecf816abbffee3a119fa27950x6080604089006472021-07-05 21:02:48112 days 12 hrs ago0xbc4ebc3052ae49cfad21487b2c3065919e935bb8 IN  Contract Creation0 BNB0.002497385
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ZootLockContract

Compiler Version
v0.7.0+commit.9e61f92b

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at BscScan.com on 2021-07-05
*/

// SPDX-License-Identifier: MIT

pragma solidity ^0.7.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) {
        // Solidity only automatically asserts when dividing by 0
        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;
    }
}

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
    );
}

pragma solidity ^0.7.0;


contract ZootLockContract {

    //Enable SafeMath
    using SafeMath for uint256;

    address public owner;
    address public contractAddress;
    uint256 public oneDay = 86400;      // in seconds
    uint256 public currentLockTimer;    // in seconds

    IERC20 public tokenContract;

    //Events
    event OwnershipTransferred(address indexed _previousOwner, address indexed _newOwner);
    event OwnershipRenounced(address indexed _previousOwner, address indexed _newOwner);

    //On deployment
    constructor(IERC20 _tokenContract) {
        owner = msg.sender;
        tokenContract = _tokenContract;
        contractAddress = address(this);
        currentLockTimer = block.timestamp;
    }

    //Withdraw tokens
    function withdrawTokens(uint256 _numberOfTokens) public onlyOwner {
        require(block.timestamp > currentLockTimer, "Tokens are currently locked even to the contract admin");
        require(tokenContract.transfer(msg.sender, _numberOfTokens));
    }

    //Increase lock duration in days
    function increaseLock(uint256 _numberOfDays) public onlyOwner {
        uint256 _increaseLockDays = _numberOfDays.mul(oneDay);
        currentLockTimer = currentLockTimer.add(_increaseLockDays);
    }

    //Transfer ownership to new owner
    function transferOwnership(address _newOwner) public onlyOwner {
        require(_newOwner != address(0), "New owner cannot be a zero address");
        emit OwnershipTransferred(owner, _newOwner);
        owner = _newOwner;
    }

    //Remove owner from the contract
    function renounceOwnership() public onlyOwner {
        emit OwnershipRenounced(owner, address(0));
        owner = address(0);
    }

    //Modifiers
    modifier onlyOwner() {
        require(owner == msg.sender, "Only current owner can call this function");
        _;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IERC20","name":"_tokenContract","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"_newOwner","type":"address"}],"name":"OwnershipRenounced","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"},{"inputs":[],"name":"contractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentLockTimer","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numberOfDays","type":"uint256"}],"name":"increaseLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"oneDay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tokenContract","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numberOfTokens","type":"uint256"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526201518060025534801561001757600080fd5b506040516106b63803806106b68339818101604052602081101561003a57600080fd5b5051600080546001600160a01b03199081163317909155600480546001600160a01b039093169282169290921790915560018054909116301790554260035561062e806100886000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c8063715018a611610066578063715018a6146101125780638da5cb5b1461011a578063c14f909114610122578063f2fde38b1461012a578063f6b4dfb41461015057610093565b80631c5a091414610098578063315a095d146100b75780634bd9351b146100d457806355a373d6146100ee575b600080fd5b6100b5600480360360208110156100ae57600080fd5b5035610158565b005b6100b5600480360360208110156100cd57600080fd5b50356101cf565b6100dc6102e5565b60408051918252519081900360200190f35b6100f66102eb565b604080516001600160a01b039092168252519081900360200190f35b6100b56102fa565b6100f661038d565b6100dc61039c565b6100b56004803603602081101561014057600080fd5b50356001600160a01b03166103a2565b6100f661048b565b6000546001600160a01b031633146101a15760405162461bcd60e51b81526004018080602001828103825260298152602001806105576029913960400191505060405180910390fd5b60006101b86002548361049a90919063ffffffff16565b6003549091506101c890826104fc565b6003555050565b6000546001600160a01b031633146102185760405162461bcd60e51b81526004018080602001828103825260298152602001806105576029913960400191505060405180910390fd5b60035442116102585760405162461bcd60e51b81526004018080602001828103825260368152602001806105a16036913960400191505060405180910390fd5b600480546040805163a9059cbb60e01b8152339381019390935260248301849052516001600160a01b039091169163a9059cbb9160448083019260209291908290030181600087803b1580156102ad57600080fd5b505af11580156102c1573d6000803e3d6000fd5b505050506040513d60208110156102d757600080fd5b50516102e257600080fd5b50565b60025481565b6004546001600160a01b031681565b6000546001600160a01b031633146103435760405162461bcd60e51b81526004018080602001828103825260298152602001806105576029913960400191505060405180910390fd5b600080546040516001600160a01b03909116907fb48f42c7a4b7d66b43c8fccc1aafdac7c8ca6d024c15bb1d427d547f00024380908390a3600080546001600160a01b0319169055565b6000546001600160a01b031681565b60035481565b6000546001600160a01b031633146103eb5760405162461bcd60e51b81526004018080602001828103825260298152602001806105576029913960400191505060405180910390fd5b6001600160a01b0381166104305760405162461bcd60e51b81526004018080602001828103825260228152602001806105d76022913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031681565b6000826104a9575060006104f6565b828202828482816104b657fe5b04146104f35760405162461bcd60e51b81526004018080602001828103825260218152602001806105806021913960400191505060405180910390fd5b90505b92915050565b6000828201838110156104f3576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fdfe4f6e6c792063757272656e74206f776e65722063616e2063616c6c20746869732066756e6374696f6e536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77546f6b656e73206172652063757272656e746c79206c6f636b6564206576656e20746f2074686520636f6e74726163742061646d696e4e6577206f776e65722063616e6e6f742062652061207a65726f2061646472657373a2646970667358221220bce272be0e11bbcf454834f55d5f67274c52d9e255ebe1b9072eb116bbbe3fac64736f6c63430007000033000000000000000000000000b3d691125514db7a5be3326af86a72ecdc2cde16

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

000000000000000000000000b3d691125514db7a5be3326af86a72ecdc2cde16

-----Decoded View---------------
Arg [0] : _tokenContract (address): 0xb3d691125514db7a5be3326af86a72ecdc2cde16

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000b3d691125514db7a5be3326af86a72ecdc2cde16


Deployed ByteCode Sourcemap

8146:1877:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9204:203;;;;;;;;;;;;;;;;-1:-1:-1;9204:203:0;;:::i;:::-;;8901:257;;;;;;;;;;;;;;;;-1:-1:-1;8901:257:0;;:::i;8303:29::-;;;:::i;:::-;;;;;;;;;;;;;;;;8415:27;;;:::i;:::-;;;;-1:-1:-1;;;;;8415:27:0;;;;;;;;;;;;;;9734:136;;;:::i;8239:20::-;;;:::i;8358:31::-;;;:::i;9454:234::-;;;;;;;;;;;;;;;;-1:-1:-1;9454:234:0;-1:-1:-1;;;;;9454:234:0;;:::i;8266:30::-;;;:::i;9204:203::-;9935:5;;-1:-1:-1;;;;;9935:5:0;9944:10;9935:19;9927:73;;;;-1:-1:-1;;;9927:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9277:25:::1;9305;9323:6;;9305:13;:17;;:25;;;;:::i;:::-;9360:16;::::0;9277:53;;-1:-1:-1;9360:39:0::1;::::0;9277:53;9360:20:::1;:39::i;:::-;9341:16;:58:::0;-1:-1:-1;;9204:203:0:o;8901:257::-;9935:5;;-1:-1:-1;;;;;9935:5:0;9944:10;9935:19;9927:73;;;;-1:-1:-1;;;9927:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9004:16:::1;;8986:15;:34;8978:101;;;;-1:-1:-1::0;;;8978:101:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9098:13;::::0;;:51:::1;::::0;;-1:-1:-1;;;9098:51:0;;9121:10:::1;9098:51:::0;;::::1;::::0;;;;;;;;;;;-1:-1:-1;;;;;9098:13:0;;::::1;::::0;:22:::1;::::0;:51;;;;;::::1;::::0;;;;;;;;:13:::1;::::0;:51;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;9098:51:0;9090:60:::1;;;::::0;::::1;;8901:257:::0;:::o;8303:29::-;;;;:::o;8415:27::-;;;-1:-1:-1;;;;;8415:27:0;;:::o;9734:136::-;9935:5;;-1:-1:-1;;;;;9935:5:0;9944:10;9935:19;9927:73;;;;-1:-1:-1;;;9927:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9830:1:::1;9815:5:::0;;9796:37:::1;::::0;-1:-1:-1;;;;;9815:5:0;;::::1;::::0;9796:37:::1;::::0;9830:1;;9796:37:::1;9860:1;9844:18:::0;;-1:-1:-1;;;;;;9844:18:0::1;::::0;;9734:136::o;8239:20::-;;;-1:-1:-1;;;;;8239:20:0;;:::o;8358:31::-;;;;:::o;9454:234::-;9935:5;;-1:-1:-1;;;;;9935:5:0;9944:10;9935:19;9927:73;;;;-1:-1:-1;;;9927:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;9536:23:0;::::1;9528:70;;;;-1:-1:-1::0;;;9528:70:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9635:5;::::0;;9614:38:::1;::::0;-1:-1:-1;;;;;9614:38:0;;::::1;::::0;9635:5;::::1;::::0;9614:38:::1;::::0;::::1;9663:5;:17:::0;;-1:-1:-1;;;;;;9663:17:0::1;-1:-1:-1::0;;;;;9663:17:0;;;::::1;::::0;;;::::1;::::0;;9454:234::o;8266:30::-;;;-1:-1:-1;;;;;8266:30:0;;:::o;2224:471::-;2282:7;2527:6;2523:47;;-1:-1:-1;2557:1:0;2550:8;;2523:47;2594:5;;;2598:1;2594;:5;:1;2618:5;;;;;:10;2610:56;;;;-1:-1:-1;;;2610:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2686:1;-1:-1:-1;2224:471:0;;;;;:::o;894:181::-;952:7;984:5;;;1008:6;;;;1000:46;;;;;-1:-1:-1;;;1000:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

ipfs://bce272be0e11bbcf454834f55d5f67274c52d9e255ebe1b9072eb116bbbe3fac
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.