ETH Price: $3,020.95 (-4.02%)

Contract

0xD3Ee8242269dAb77eb04581F77692F0E8Aa34A8d

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw All570191602023-02-01 0:37:021038 days ago1675211822IN
Adamant Finance :Token Locker
0 ETH0.000031940.1
Withdraw All306532132022-10-17 20:53:101145 days ago1666039990IN
Adamant Finance :Token Locker
0 ETH0.000033360.1
Withdraw All215899422022-08-27 20:37:231196 days ago1661632643IN
Adamant Finance :Token Locker
0 ETH0.000049555007 ETH0.10505285
Withdraw All202431862022-08-14 15:43:381209 days ago1660491818IN
Adamant Finance :Token Locker
0 ETH0.000043724994 ETH0.10369137
Withdraw All178887682022-07-18 6:53:291236 days ago1658127209IN
Adamant Finance :Token Locker
0 ETH0.000083619482 ETH0.19658844
Withdraw All178693992022-07-18 1:38:531236 days ago1658108333IN
Adamant Finance :Token Locker
0 ETH0.000091605254 ETH0.21795725
Withdraw All129718622022-05-26 6:40:401289 days ago1653547240IN
Adamant Finance :Token Locker
0 ETH0.000152021032 ETH0.36289057
Withdraw All118385602022-05-11 22:02:271304 days ago1652306547IN
Adamant Finance :Token Locker
0 ETH0.00060229147 ETH1.28050674
Withdraw All103383192022-04-22 15:56:251323 days ago1650642985IN
Adamant Finance :Token Locker
0 ETH0.000220295957 ETH0.5196027
Withdraw All96513282022-04-11 17:36:271334 days ago1649698587IN
Adamant Finance :Token Locker
0 ETH0.000188290839 ETH0.44650318
Withdraw All96266272022-04-11 8:19:491334 days ago1649665189IN
Adamant Finance :Token Locker
0 ETH0.000180493427 ETH0.38372322
Withdraw All93341692022-04-05 8:26:531340 days ago1649147213IN
Adamant Finance :Token Locker
0 ETH0.000295853003 ETH0.62714735
Withdraw All93340292022-04-05 8:20:291340 days ago1649146829IN
Adamant Finance :Token Locker
0 ETH0.000294969352 ETH0.62714735
Withdraw All93339532022-04-05 8:18:541340 days ago1649146734IN
Adamant Finance :Token Locker
0 ETH0.000297277255 ETH0.62714735
Withdraw All93180232022-04-04 23:03:131341 days ago1649113393IN
Adamant Finance :Token Locker
0 ETH0.000294094811 ETH0.62526402
Withdraw All92739282022-04-04 3:48:231341 days ago1649044103IN
Adamant Finance :Token Locker
0 ETH0.000234301316 ETH0.49666626
Withdraw All89993872022-03-31 22:42:041345 days ago1648766524IN
Adamant Finance :Token Locker
0 ETH0.000258173959 ETH0.54892555
Withdraw All89216232022-03-30 17:52:111346 days ago1648662731IN
Adamant Finance :Token Locker
0 ETH0.000218983009 ETH0.46418603
Withdraw All88318162022-03-29 13:51:421347 days ago1648561902IN
Adamant Finance :Token Locker
0 ETH0.000201076244 ETH0.42749071
Withdraw All88314112022-03-29 13:45:541347 days ago1648561554IN
Adamant Finance :Token Locker
0 ETH0.000201657204 ETH0.42749071
Withdraw All87894362022-03-28 22:08:441348 days ago1648505324IN
Adamant Finance :Token Locker
0 ETH0.00021996268 ETH0.4658499
Withdraw All87419502022-03-28 6:02:261348 days ago1648447346IN
Adamant Finance :Token Locker
0 ETH0.000162947508 ETH0.34746568
Withdraw All87388772022-03-28 4:59:221348 days ago1648443562IN
Adamant Finance :Token Locker
0 ETH0.000163431876 ETH0.34746568
Withdraw All85923302022-03-25 17:22:151351 days ago1648228935IN
Adamant Finance :Token Locker
0 ETH0.000207256076 ETH0.44064879
Withdraw All85860052022-03-25 15:44:541351 days ago1648223094IN
Adamant Finance :Token Locker
0 ETH0.000196982072 ETH0.4143676
View all transactions

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
570191602023-02-01 0:37:021038 days ago1675211822
Adamant Finance :Token Locker
0 ETH
306532132022-10-17 20:53:101145 days ago1666039990
Adamant Finance :Token Locker
0 ETH
215899422022-08-27 20:37:231196 days ago1661632643
Adamant Finance :Token Locker
0 ETH
202431862022-08-14 15:43:381209 days ago1660491818
Adamant Finance :Token Locker
0 ETH
178887682022-07-18 6:53:291236 days ago1658127209
Adamant Finance :Token Locker
0 ETH
178693992022-07-18 1:38:531236 days ago1658108333
Adamant Finance :Token Locker
0 ETH
129718622022-05-26 6:40:401289 days ago1653547240
Adamant Finance :Token Locker
0 ETH
118385602022-05-11 22:02:271304 days ago1652306547
Adamant Finance :Token Locker
0 ETH
103383192022-04-22 15:56:251323 days ago1650642985
Adamant Finance :Token Locker
0 ETH
96513282022-04-11 17:36:271334 days ago1649698587
Adamant Finance :Token Locker
0 ETH
96266272022-04-11 8:19:491334 days ago1649665189
Adamant Finance :Token Locker
0 ETH
93341692022-04-05 8:26:531340 days ago1649147213
Adamant Finance :Token Locker
0 ETH
93340292022-04-05 8:20:291340 days ago1649146829
Adamant Finance :Token Locker
0 ETH
93339532022-04-05 8:18:541340 days ago1649146734
Adamant Finance :Token Locker
0 ETH
93180232022-04-04 23:03:131341 days ago1649113393
Adamant Finance :Token Locker
0 ETH
92739282022-04-04 3:48:231341 days ago1649044103
Adamant Finance :Token Locker
0 ETH
89993872022-03-31 22:42:041345 days ago1648766524
Adamant Finance :Token Locker
0 ETH
89216232022-03-30 17:52:111346 days ago1648662731
Adamant Finance :Token Locker
0 ETH
89216232022-03-30 17:52:111346 days ago1648662731
Adamant Finance :Token Locker
0 ETH
88318162022-03-29 13:51:421347 days ago1648561902
Adamant Finance :Token Locker
0 ETH
88314112022-03-29 13:45:541347 days ago1648561554
Adamant Finance :Token Locker
0 ETH
87894362022-03-28 22:08:441348 days ago1648505324
Adamant Finance :Token Locker
0 ETH
87419502022-03-28 6:02:261348 days ago1648447346
Adamant Finance :Token Locker
0 ETH
87388772022-03-28 4:59:221348 days ago1648443562
Adamant Finance :Token Locker
0 ETH
85923302022-03-25 17:22:151351 days ago1648228935
Adamant Finance :Token Locker
0 ETH
View All Internal Transactions

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TokenLocker

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Arbiscan.io on 2021-09-17
*/

pragma solidity ^0.6.12;
// SPDX-License-Identifier: UNLICENSED


/**
 * @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, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, 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 (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @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) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @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) {
        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, reverting 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) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting 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) {
        require(b > 0, "SafeMath: modulo by zero");
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * 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);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * 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);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * 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;
    }
}


/**
 * @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);
}


/**
 * @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);
    }

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(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);
            }
        }
    }
}



/**
 * @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");
        }
    }
}


/*
 * @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;
    }
}


/**
 * @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 virtual 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;
    }
}


/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor () internal {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}


contract TokenLocker is Ownable, ReentrancyGuard {
    using SafeERC20 for IERC20;
    using SafeMath for uint256;

    mapping (address => uint256) public balances;

    IERC20 public token;
    address public presale;
    uint256 public unlockTime;
    bool public unlocked = false;

    constructor(address _token, address _presale) public {
        token = IERC20(_token);
        presale = _presale;
        unlockTime = now + 180 days;
    }

    function depositFor(address user, uint256 _amount) public nonReentrant {
        require(msg.sender == presale, "not allowed");
        uint256 userAmount = balances[user];
        balances[user] = userAmount.add(_amount);

        token.safeTransferFrom(msg.sender, address(this), _amount);
        emit Deposited(user, _amount);
    }

    function withdrawAll() external {
        withdraw(balances[msg.sender]);
    }

    function withdraw(uint256 _amount) public nonReentrant{
        require(unlockTime < now || unlocked, "Can't withdraw yet");
        require(balances[msg.sender] >= _amount, "Trying to withdraw too much");

        uint256 userAmount = balances[msg.sender];
        balances[msg.sender] = userAmount.sub(_amount);

        token.safeTransfer(msg.sender, _amount);
        emit Withdrawn(msg.sender, _amount);
    }

    /* ========== RESTRICTED FUNCTIONS ========== */

    function setUnlocked(bool _unlocked) public onlyOwner {
        unlocked = _unlocked;
    }

    /* ========== EVENTS ========== */

    event Deposited(address indexed user, uint256 amount);
    event Withdrawn(address indexed user, uint256 amount);
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_presale","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposited","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":"Withdrawn","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"depositFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presale","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_unlocked","type":"bool"}],"name":"setUnlocked","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token","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":[],"name":"unlockTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unlocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526006805460ff1916905534801561001a57600080fd5b50604051610d68380380610d688339818101604052604081101561003d57600080fd5b50805160209091015160006100506100d8565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060018055600380546001600160a01b039384166001600160a01b0319918216179091556004805492909316911617905562ed4e0042016005556100dc565b3390565b610c7d806100eb6000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c8063715018a611610071578063715018a61461017f578063853828b6146101875780638da5cb5b1461018f578063f2fde38b146101b3578063fc0c546a146101d9578063fdea8e0b146101e1576100b4565b8063142164c4146100b9578063251c1aa3146100da57806327e235e3146100f45780632e1a7d4d1461011a5780632f4f21e2146101375780636a5e265014610163575b600080fd5b6100d8600480360360208110156100cf57600080fd5b503515156101e9565b005b6100e2610270565b60408051918252519081900360200190f35b6100e26004803603602081101561010a57600080fd5b50356001600160a01b0316610276565b6100d86004803603602081101561013057600080fd5b5035610288565b6100d86004803603604081101561014d57600080fd5b506001600160a01b038135169060200135610425565b61016b610567565b604080519115158252519081900360200190f35b6100d8610570565b6100d861062e565b610197610649565b604080516001600160a01b039092168252519081900360200190f35b6100d8600480360360208110156101c957600080fd5b50356001600160a01b0316610658565b61019761076c565b61019761077b565b6101f161078a565b6001600160a01b0316610202610649565b6001600160a01b03161461025d576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6006805460ff1916911515919091179055565b60055481565b60026020526000908152604090205481565b600260015414156102e0576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026001556005544211806102f7575060065460ff165b61033d576040805162461bcd60e51b815260206004820152601260248201527110d85b89dd081dda5d1a191c985dc81e595d60721b604482015290519081900360640190fd5b336000908152600260205260409020548111156103a1576040805162461bcd60e51b815260206004820152601b60248201527f547279696e6720746f20776974686472617720746f6f206d7563680000000000604482015290519081900360640190fd5b336000908152600260205260409020546103bb818361078e565b336000818152600260205260409020919091556003546103e7916001600160a01b0390911690846107eb565b60408051838152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a2505060018055565b6002600154141561047d576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026001556004546001600160a01b031633146104cf576040805162461bcd60e51b815260206004820152600b60248201526a1b9bdd08185b1b1bddd95960aa1b604482015290519081900360640190fd5b6001600160a01b0382166000908152600260205260409020546104f28183610842565b6001600160a01b0380851660009081526002602052604090209190915560035461051f91163330856108a3565b6040805183815290516001600160a01b038516917f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c4919081900360200190a250506001805550565b60065460ff1681565b61057861078a565b6001600160a01b0316610589610649565b6001600160a01b0316146105e4576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b3360009081526002602052604090205461064790610288565b565b6000546001600160a01b031690565b61066061078a565b6001600160a01b0316610671610649565b6001600160a01b0316146106cc576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166107115760405162461bcd60e51b8152600401808060200182810382526026815260200180610bd26026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b031681565b6004546001600160a01b031681565b3390565b6000828211156107e5576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261083d908490610903565b505050565b60008282018381101561089c576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526108fd908590610903565b50505050565b6060610958826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166109b49092919063ffffffff16565b80519091501561083d5780806020019051602081101561097757600080fd5b505161083d5760405162461bcd60e51b815260040180806020018281038252602a815260200180610c1e602a913960400191505060405180910390fd5b60606109c384846000856109cb565b949350505050565b606082471015610a0c5760405162461bcd60e51b8152600401808060200182810382526026815260200180610bf86026913960400191505060405180910390fd5b610a1585610b27565b610a66576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310610aa55780518252601f199092019160209182019101610a86565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610b07576040519150601f19603f3d011682016040523d82523d6000602084013e610b0c565b606091505b5091509150610b1c828286610b2d565b979650505050505050565b3b151590565b60608315610b3c57508161089c565b825115610b4c5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610b96578181015183820152602001610b7e565b50505050905090810190601f168015610bc35780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212205a094cd4b3163804eb54a5252758369e6b9c28739f9e4079bc08504870f2a58364736f6c634300060c003300000000000000000000000009ad12552ec45f82be90b38dfe7b06332a6808640000000000000000000000001219d121dab8b6c81b4a1789fb39e02bf19491bb

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100b45760003560e01c8063715018a611610071578063715018a61461017f578063853828b6146101875780638da5cb5b1461018f578063f2fde38b146101b3578063fc0c546a146101d9578063fdea8e0b146101e1576100b4565b8063142164c4146100b9578063251c1aa3146100da57806327e235e3146100f45780632e1a7d4d1461011a5780632f4f21e2146101375780636a5e265014610163575b600080fd5b6100d8600480360360208110156100cf57600080fd5b503515156101e9565b005b6100e2610270565b60408051918252519081900360200190f35b6100e26004803603602081101561010a57600080fd5b50356001600160a01b0316610276565b6100d86004803603602081101561013057600080fd5b5035610288565b6100d86004803603604081101561014d57600080fd5b506001600160a01b038135169060200135610425565b61016b610567565b604080519115158252519081900360200190f35b6100d8610570565b6100d861062e565b610197610649565b604080516001600160a01b039092168252519081900360200190f35b6100d8600480360360208110156101c957600080fd5b50356001600160a01b0316610658565b61019761076c565b61019761077b565b6101f161078a565b6001600160a01b0316610202610649565b6001600160a01b03161461025d576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6006805460ff1916911515919091179055565b60055481565b60026020526000908152604090205481565b600260015414156102e0576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026001556005544211806102f7575060065460ff165b61033d576040805162461bcd60e51b815260206004820152601260248201527110d85b89dd081dda5d1a191c985dc81e595d60721b604482015290519081900360640190fd5b336000908152600260205260409020548111156103a1576040805162461bcd60e51b815260206004820152601b60248201527f547279696e6720746f20776974686472617720746f6f206d7563680000000000604482015290519081900360640190fd5b336000908152600260205260409020546103bb818361078e565b336000818152600260205260409020919091556003546103e7916001600160a01b0390911690846107eb565b60408051838152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a2505060018055565b6002600154141561047d576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026001556004546001600160a01b031633146104cf576040805162461bcd60e51b815260206004820152600b60248201526a1b9bdd08185b1b1bddd95960aa1b604482015290519081900360640190fd5b6001600160a01b0382166000908152600260205260409020546104f28183610842565b6001600160a01b0380851660009081526002602052604090209190915560035461051f91163330856108a3565b6040805183815290516001600160a01b038516917f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c4919081900360200190a250506001805550565b60065460ff1681565b61057861078a565b6001600160a01b0316610589610649565b6001600160a01b0316146105e4576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b3360009081526002602052604090205461064790610288565b565b6000546001600160a01b031690565b61066061078a565b6001600160a01b0316610671610649565b6001600160a01b0316146106cc576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166107115760405162461bcd60e51b8152600401808060200182810382526026815260200180610bd26026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b031681565b6004546001600160a01b031681565b3390565b6000828211156107e5576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261083d908490610903565b505050565b60008282018381101561089c576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526108fd908590610903565b50505050565b6060610958826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166109b49092919063ffffffff16565b80519091501561083d5780806020019051602081101561097757600080fd5b505161083d5760405162461bcd60e51b815260040180806020018281038252602a815260200180610c1e602a913960400191505060405180910390fd5b60606109c384846000856109cb565b949350505050565b606082471015610a0c5760405162461bcd60e51b8152600401808060200182810382526026815260200180610bf86026913960400191505060405180910390fd5b610a1585610b27565b610a66576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310610aa55780518252601f199092019160209182019101610a86565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610b07576040519150601f19603f3d011682016040523d82523d6000602084013e610b0c565b606091505b5091509150610b1c828286610b2d565b979650505050505050565b3b151590565b60608315610b3c57508161089c565b825115610b4c5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610b96578181015183820152602001610b7e565b50505050905090810190601f168015610bc35780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212205a094cd4b3163804eb54a5252758369e6b9c28739f9e4079bc08504870f2a58364736f6c634300060c0033

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

00000000000000000000000009ad12552ec45f82be90b38dfe7b06332a6808640000000000000000000000001219d121dab8b6c81b4a1789fb39e02bf19491bb

-----Decoded View---------------
Arg [0] : _token (address): 0x09ad12552ec45f82bE90B38dFE7b06332A680864
Arg [1] : _presale (address): 0x1219D121DaB8B6c81B4a1789fB39E02bF19491BB

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000009ad12552ec45f82be90b38dfe7b06332a680864
Arg [1] : 0000000000000000000000001219d121dab8b6c81b4a1789fb39e02bf19491bb


Deployed Bytecode Sourcemap

27467:1657:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28864:93;;;;;;;;;;;;;;;;-1:-1:-1;28864:93:0;;;;:::i;:::-;;27699:25;;;:::i;:::-;;;;;;;;;;;;;;;;27591:44;;;;;;;;;;;;;;;;-1:-1:-1;27591:44:0;-1:-1:-1;;;;;27591:44:0;;:::i;28377:423::-;;;;;;;;;;;;;;;;-1:-1:-1;28377:423:0;;:::i;27937:343::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;27937:343:0;;;;;;;;:::i;27731:28::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;24303:148;;;:::i;28288:81::-;;;:::i;23652:87::-;;;:::i;:::-;;;;-1:-1:-1;;;;;23652:87:0;;;;;;;;;;;;;;24606:244;;;;;;;;;;;;;;;;-1:-1:-1;24606:244:0;-1:-1:-1;;;;;24606:244:0;;:::i;27644:19::-;;;:::i;27670:22::-;;;:::i;28864:93::-;23883:12;:10;:12::i;:::-;-1:-1:-1;;;;;23872:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;23872:23:0;;23864:68;;;;;-1:-1:-1;;;23864:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28929:8:::1;:20:::0;;-1:-1:-1;;28929:20:0::1;::::0;::::1;;::::0;;;::::1;::::0;;28864:93::o;27699:25::-;;;;:::o;27591:44::-;;;;;;;;;;;;;:::o;28377:423::-;26510:1;27116:7;;:19;;27108:63;;;;;-1:-1:-1;;;27108:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;26510:1;27249:7;:18;28450:10:::1;::::0;28463:3:::1;-1:-1:-1::0;28450:16:0;:28:::1;;-1:-1:-1::0;28470:8:0::1;::::0;::::1;;28450:28;28442:59;;;::::0;;-1:-1:-1;;;28442:59:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;28442:59:0;;;;;;;;;;;;;::::1;;28529:10;28520:20;::::0;;;:8:::1;:20;::::0;;;;;:31;-1:-1:-1;28520:31:0::1;28512:71;;;::::0;;-1:-1:-1;;;28512:71:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;28626:10;28596:18;28617:20:::0;;;:8:::1;:20;::::0;;;;;28671:23:::1;28617:20:::0;28686:7;28671:14:::1;:23::i;:::-;28657:10;28648:20;::::0;;;:8:::1;:20;::::0;;;;:46;;;;28707:5:::1;::::0;:39:::1;::::0;-1:-1:-1;;;;;28707:5:0;;::::1;::::0;28738:7;28707:18:::1;:39::i;:::-;28762:30;::::0;;;;;;;28772:10:::1;::::0;28762:30:::1;::::0;;;;;::::1;::::0;;::::1;-1:-1:-1::0;;26466:1:0;27428:22;;28377:423::o;27937:343::-;26510:1;27116:7;;:19;;27108:63;;;;;-1:-1:-1;;;27108:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;26510:1;27249:7;:18;28041:7:::1;::::0;-1:-1:-1;;;;;28041:7:0::1;28027:10;:21;28019:45;;;::::0;;-1:-1:-1;;;28019:45:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;28019:45:0;;;;;;;;;;;;;::::1;;-1:-1:-1::0;;;;;28096:14:0;::::1;28075:18;28096:14:::0;;;:8:::1;:14;::::0;;;;;28138:23:::1;28096:14:::0;28153:7;28138:14:::1;:23::i;:::-;-1:-1:-1::0;;;;;28121:14:0;;::::1;;::::0;;;:8:::1;:14;::::0;;;;:40;;;;28174:5:::1;::::0;:58:::1;::::0;:5:::1;28197:10;28217:4;28224:7:::0;28174:22:::1;:58::i;:::-;28248:24;::::0;;;;;;;-1:-1:-1;;;;;28248:24:0;::::1;::::0;::::1;::::0;;;;;::::1;::::0;;::::1;-1:-1:-1::0;;26466:1:0;27428:22;;-1:-1:-1;27937:343:0:o;27731:28::-;;;;;;:::o;24303:148::-;23883:12;:10;:12::i;:::-;-1:-1:-1;;;;;23872:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;23872:23:0;;23864:68;;;;;-1:-1:-1;;;23864:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24410:1:::1;24394:6:::0;;24373:40:::1;::::0;-1:-1:-1;;;;;24394:6:0;;::::1;::::0;24373:40:::1;::::0;24410:1;;24373:40:::1;24441:1;24424:19:::0;;-1:-1:-1;;;;;;24424:19:0::1;::::0;;24303:148::o;28288:81::-;28349:10;28340:20;;;;:8;:20;;;;;;28331:30;;:8;:30::i;:::-;28288:81::o;23652:87::-;23698:7;23725:6;-1:-1:-1;;;;;23725:6:0;23652:87;:::o;24606:244::-;23883:12;:10;:12::i;:::-;-1:-1:-1;;;;;23872:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;23872:23:0;;23864:68;;;;;-1:-1:-1;;;23864:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;24695:22:0;::::1;24687:73;;;;-1:-1:-1::0;;;24687:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24797:6;::::0;;24776:38:::1;::::0;-1:-1:-1;;;;;24776:38:0;;::::1;::::0;24797:6;::::1;::::0;24776:38:::1;::::0;::::1;24825:6;:17:::0;;-1:-1:-1;;;;;;24825:17:0::1;-1:-1:-1::0;;;;;24825:17:0;;;::::1;::::0;;;::::1;::::0;;24606:244::o;27644:19::-;;;-1:-1:-1;;;;;27644:19:0;;:::o;27670:22::-;;;-1:-1:-1;;;;;27670:22:0;;:::o;22279:106::-;22367:10;22279:106;:::o;3236:158::-;3294:7;3327:1;3322;:6;;3314:49;;;;;-1:-1:-1;;;3314:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3381:5:0;;;3236:158::o;18661:177::-;18771:58;;;-1:-1:-1;;;;;18771:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;18771:58:0;-1:-1:-1;;;18771:58:0;;;18744:86;;18764:5;;18744:19;:86::i;:::-;18661:177;;;:::o;2774:179::-;2832:7;2864:5;;;2888:6;;;;2880:46;;;;;-1:-1:-1;;;2880:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;2944:1;2774:179;-1:-1:-1;;;2774:179:0:o;18846:205::-;18974:68;;;-1:-1:-1;;;;;18974:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;18974:68:0;-1:-1:-1;;;18974:68:0;;;18947:96;;18967:5;;18947:19;:96::i;:::-;18846:205;;;;:::o;20966:761::-;21390:23;21416:69;21444:4;21416:69;;;;;;;;;;;;;;;;;21424:5;-1:-1:-1;;;;;21416:27:0;;;:69;;;;;:::i;:::-;21500:17;;21390:95;;-1:-1:-1;21500:21:0;21496:224;;21642:10;21631:30;;;;;;;;;;;;;;;-1:-1:-1;21631:30:0;21623:85;;;;-1:-1:-1;;;21623:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13757:195;13860:12;13892:52;13914:6;13922:4;13928:1;13931:12;13892:21;:52::i;:::-;13885:59;13757:195;-1:-1:-1;;;;13757:195:0:o;14809:530::-;14936:12;14994:5;14969:21;:30;;14961:81;;;;-1:-1:-1;;;14961:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15061:18;15072:6;15061:10;:18::i;:::-;15053:60;;;;;-1:-1:-1;;;15053:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;15187:12;15201:23;15228:6;-1:-1:-1;;;;;15228:11:0;15248:5;15256:4;15228:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;15228:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15186:75;;;;15279:52;15297:7;15306:10;15318:12;15279:17;:52::i;:::-;15272:59;14809:530;-1:-1:-1;;;;;;;14809:530:0:o;10839:422::-;11206:20;11245:8;;;10839:422::o;17349:742::-;17464:12;17493:7;17489:595;;;-1:-1:-1;17524:10:0;17517:17;;17489:595;17638:17;;:21;17634:439;;17901:10;17895:17;17962:15;17949:10;17945:2;17941:19;17934:44;17849:148;18044:12;18037:20;;-1:-1:-1;;;18037:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

ipfs://5a094cd4b3163804eb54a5252758369e6b9c28739f9e4079bc08504870f2a583

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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