ETH Price: $3,542.32 (-0.91%)
Gas: 19 Gwei

Contract

0xC49564C76f18124408d7b5Bc9E71EF3Df7E9f451
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
0x60c06040150195022022-06-24 17:47:10643 days ago1656092830IN
 Create: NftaniaLiquidityLocker
0 ETH0.0219913431.58659718

Advanced mode:
Parent Txn Hash Block From To Value
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
NftaniaLiquidityLocker

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 4 : liquidityLocker.sol
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//                                                                                                                                            //
//      NNNNNNNN        NNNNNNNN   ffffffffffffffff           tttt                                               iiii                         //
//      N:::::::N       N::::::N  f::::::::::::::::f       ttt:::t                                              i::::i                        //
//      N::::::::N      N::::::N f::::::::::::::::::f      t:::::t                                               iiii                         //
//      N:::::::::N     N::::::N f::::::fffffff:::::f      t:::::t                                                                            //
//      N::::::::::N    N::::::N f:::::f       ffffffttttttt:::::ttttttt      aaaaaaaaaaaaa  nnnn  nnnnnnnn    iiiiiii   aaaaaaaaaaaaa        //
//      N:::::::::::N   N::::::N f:::::f             t:::::::::::::::::t      a::::::::::::a n:::nn::::::::nn  i:::::i   a::::::::::::a       //
//      N:::::::N::::N  N::::::Nf:::::::ffffff       t:::::::::::::::::t      aaaaaaaaa:::::an::::::::::::::nn  i::::i   aaaaaaaaa:::::a      //
//      N::::::N N::::N N::::::Nf::::::::::::f       tttttt:::::::tttttt               a::::ann:::::::::::::::n i::::i            a::::a      //
//      N::::::N  N::::N:::::::Nf::::::::::::f             t:::::t              aaaaaaa:::::a  n:::::nnnn:::::n i::::i     aaaaaaa:::::a      //
//      N::::::N   N:::::::::::Nf:::::::ffffff             t:::::t            aa::::::::::::a  n::::n    n::::n i::::i   aa::::::::::::a      //
//      N::::::N    N::::::::::N f:::::f                   t:::::t           a::::aaaa::::::a  n::::n    n::::n i::::i  a::::aaaa::::::a      //
//      N::::::N     N:::::::::N f:::::f                   t:::::t    tttttta::::a    a:::::a  n::::n    n::::n i::::i a::::a    a:::::a      //
//      N::::::N      N::::::::Nf:::::::f                  t::::::tttt:::::ta::::a    a:::::a  n::::n    n::::ni::::::ia::::a    a:::::a      //
//      N::::::N       N:::::::Nf:::::::f                  tt::::::::::::::ta:::::aaaa::::::a  n::::n    n::::ni::::::ia:::::aaaa::::::a      //
//      N::::::N        N::::::Nf:::::::f                    tt:::::::::::tt a::::::::::aa:::a n::::n    n::::ni::::::i a::::::::::aa:::a     //
//      NNNNNNNN         NNNNNNNfffffffff                      ttttttttttt    aaaaaaaaaa  aaaa nnnnnn    nnnnnniiiiiiii  aaaaaaaaaa  aaaa     //
//                                                                                                                                            //
//                                                                                                                                            //
//                                                               .:~7JY5PPP5YJ7~:.                                                            //    
//                                                        :7P#@@@@@@@@@@@@@@@@@@@#P7:                                                         //    
//                                                    .7B@@@@@@@@@@@@@@@@@@@@@@@@@@@@@B7.                                                     //    
//                                                  !B@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@B!                                                   //    
//                                                J@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@J                                                 //    
//                                              ?@@@@@@@@@@@@@@&GJ!^.......^!JG&@@@@@@@@@@@@@@?                                               //    
//                                            :&@@@@@@@@@@@@P~.                 .~P@@@@@@@@@@@@&:                                             //    
//                                           7@@@@@@@@@@@#!                         !#@@@@@@@@@@@7                                            //    
//                                          ?@@@@@@@@@@&~                             ~&@@@@@@@@@@?                                           //    
//                                         !@@@@@@@@@@P                                 P@@@@@@@@@@!                                          //    
//                                        .@@@@@@@@@@J                                   J@@@@@@@@@@.                                         //    
//                                        5@@@@@@@@@G                                     G@@@@@@@@@5                                         //    
//                                        @@@@@@@@@@.                                     .@@@@@@@@@@                                         //    
//                                       :@@@@@@@@@#                                       #@@@@@@@@@:                                        //    
//                                       ^@@@@@@@@@G                                       G@@@@@@@@@^                                        //    
//                                       ^@@@@@@@@@G                                       G@@@@@@@@@^                                        //    
//                                       ^@@@@@@@@@G                                       G@@@@@@@@@^                                        //    
//                                       ^@@@@@@@@@G                                       G@@@@@@@@@^                                        //    
//                                       ^@@@@@@@@@G                                       G@@@@@@@@@^                                        //    
//                                       ^@@@@@@@@@G                                       G@@@@@@@@@^                                        //    
//                                       :@@@@@@@@@G                                       G@@@@@@@@@:                                        //    
//                               .^!JYYYYG@@@@@@@@@&YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY&@@@@@@@@@GYYYYJ7^.                                //    
//                            .Y&@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&Y.                             //    
//                          .G@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@G.                           //    
//                         .&@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&.                          //    
//                         #@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#                          //    
//                        .@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.                         //    
//                        .@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.                         //    
//                        .@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.                         //    
//                        .@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&GY!^..     ..:^75#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.                         //    
//                        .@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@G!.                    :?#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.                         //    
//                        .@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#7.                          .Y&@@@@@@@@@@@@@@@@@@@@@@@@@@@.                         //    
//                        .@@@@@@@@@@@@@@@@@@@@@@@@@@@@#^                                7&@@@@@@@@@@@@@@@@@@@@@@@@@.                         //    
//                        .@@@@@@@@@@@@@@@@@@@@@@@@@@@?                  .::::.            P@@@@@@@@@@@@@@@@@@@@@@@@.                         //    
//                        .@@@@@@@@@@@@@@@@@@@@@@@@@&:       &@&&&&@Y !G&@@@@@@@&5:         !@@@@@@@@@@@@@@@@@@@@@@@.                         //    
//                        .@@@@@@@@@@@@@@@@@@@@@@@@@.        @@@@@@@&&@@@@@@@@@@@@@5         !@@@@@@@@@@@@@@@@@@@@@@.                         //    
//                        .@@@@@@@@@@@@@@@@@@@@@@@@~         @@@@@@@@@@&##&@@@@@@@@@!         Y@@@@@@@@@@@@@@@@@@@@@.                         //    
//                        .@@@@@@@@@@@@@@@@@@@@@@@#          @@@@@@@@B.     P@@@@@@@B         .@@@@@@@@@@@@@@@@@@@@@.                         //    
//                        .@@@@@@@@@@@@@@@@@@@@@@@?          @@@@@@@@       .@@@@@@@#          #@@@@@@@@@@@@@@@@@@@@.                         //    
//                        .@@@@@@@@@@@@@@@@@@@@@@@7          @@@@@@@&       .@@@@@@@#          G@@@@@@@@@@@@@@@@@@@@.                         //    
//                        .@@@@@@@@@@@@@@@@@@@@@@@J          @@@@@@@&       .@@@@@@@#          B@@@@@@@@@@@@@@@@@@@@.                         //    
//                        .@@@@@@@@@@@@@@@@@@@@@@@B          @@@@@@@&       .@@@@@@@#          &@@@@@@@@@@@@@@@@@@@@.                         //    
//                        .@@@@@@@@@@@@@@@@@@@@@@@@^         @@@@@@@&       .@@@@@@@#         J@@@@@@@@@@@@@@@@@@@@@.                         //    
//                        .@@@@@@@@@@@@@@@@@@@@@@@@&.        @@@@@@@&       .@@@@@@@#        ~@@@@@@@@@@@@@@@@@@@@@@.                         //    
//                        .@@@@@@@@@@@@@@@@@@@@@@@@@&.       @@@@@@@&       .@@@@@@@#       ~@@@@@@@@@@@@@@@@@@@@@@@.                         //    
//                        .@@@@@@@@@@@@@@@@@@@@@@@@@@@!      ^~~~~~~^        ^^^^^~~:      Y@@@@@@@@@@@@@@@@@@@@@@@@.                         //    
//                        .@@@@@@@@@@@@@@@@@@@@@@@@@@@@B:                                ~&@@@@@@@@@@@@@@@@@@@@@@@@@.                         //    
//                        .@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@B~                            7&@@@@@@@@@@@@@@@@@@@@@@@@@@@.                         //    
//                        .@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&P~.                    .!G@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.                         //    
//                        .@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&P?~..        .:~JB&@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.                         //    
//                        .@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&&&&&@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.                         //    
//                        .@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.                         //    
//                         &@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&                          //    
//                         :@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@:                          //    
//                          .B@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@B.                           //    
//                            :P&@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&P^                             //    
//                               .~J5PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP5J~.                                //    
//                                                                                                                                            //
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

// SPDX-License-Identifier: MIT

// @title: Nftania NFT2.0
// @author: Nftania.com
// @custom: security-contact [email protected]
// @Contract: Nftania Liquidity Locker

pragma solidity 0.8.15;

import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/07b1b472c0ac3e50963c8d52cd2dac6e7e05260c/contracts/token/ERC20/utils/SafeERC20.sol";


contract NftaniaLiquidityLocker {
    using SafeERC20 for IERC20;

    IERC20 private token;
    address private immutable beneficiaryWallet;
    address private owner;
    string private beneficiaryName;
    uint private immutable unlockTime;

    constructor(string memory _beneficiaryName, uint256 _unlockTime, address _beneficiaryWallet) {
        owner = msg.sender;
        require (_beneficiaryWallet != address(0),"Liquiditylocker: beneficiary Wallet cannot be the address of zero");
        require(_unlockTime >= block.timestamp ,"Liquiditylocker: unlock Time should be in the future");
        beneficiaryWallet = _beneficiaryWallet; 
        beneficiaryName = _beneficiaryName;        
        unlockTime = _unlockTime;
    }

    fallback() external payable {}
    receive() external payable {}

    function setPairToken (IERC20 _token) public {
        require(owner == msg.sender,"Liquiditylocker: This function can be called by owner only");
        require (address(_token) != address(0),"Liquiditylocker: token cannot be the address of zero");
        token = _token;
    }

    function getInfo() public view virtual returns 
    (address _contractOwner, address _benefeciaryWallet, string memory _beneficiaryName,
        IERC20 _token, uint256 _unlockTime ,uint256 _remainingTime, uint256 _contractBalance) {
        require(address(token) != address(0),"Liquiditylocker: token is not set yet, token should defined in advance");
        _contractBalance = token.balanceOf(address(this));
        if (unlockTime > block.timestamp){_remainingTime = unlockTime - block.timestamp;} else {_remainingTime = 0;}
        return (owner, beneficiaryWallet, beneficiaryName, token, unlockTime, _remainingTime, _contractBalance);
    }

    function unlockTokens() public virtual returns (uint256 _amount, address _beneficiaryWallet){
        require(block.timestamp >= unlockTime,"liquidity Lock: Current time is before unlock time");
        require(address(token) != address(0),"Liquiditylocker: Token address is not set yet");
        _amount = token.balanceOf(address(this));
        token.safeTransfer(beneficiaryWallet, _amount);
        return (_amount, beneficiaryWallet);
    }

}

File 3 of 4 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.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 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'
        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) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _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
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 4 of 4 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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");

        (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");

        (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");

        (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");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal 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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 5 of 4 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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 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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from,
        address to,
        uint256 amount
    ) external returns (bool);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_beneficiaryName","type":"string"},{"internalType":"uint256","name":"_unlockTime","type":"uint256"},{"internalType":"address","name":"_beneficiaryWallet","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"getInfo","outputs":[{"internalType":"address","name":"_contractOwner","type":"address"},{"internalType":"address","name":"_benefeciaryWallet","type":"address"},{"internalType":"string","name":"_beneficiaryName","type":"string"},{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"_unlockTime","type":"uint256"},{"internalType":"uint256","name":"_remainingTime","type":"uint256"},{"internalType":"uint256","name":"_contractBalance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"}],"name":"setPairToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unlockTokens","outputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_beneficiaryWallet","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60c06040523480156200001157600080fd5b5060405162000ece38038062000ece8339810160408190526200003491620001a4565b600180546001600160a01b031916331790556001600160a01b038116620000d25760405162461bcd60e51b815260206004820152604160248201527f4c69717569646974796c6f636b65723a2062656e65666963696172792057616c60448201527f6c65742063616e6e6f74206265207468652061646472657373206f66207a65726064820152606f60f81b608482015260a4015b60405180910390fd5b428210156200014a5760405162461bcd60e51b815260206004820152603460248201527f4c69717569646974796c6f636b65723a20756e6c6f636b2054696d652073686f60448201527f756c6420626520696e20746865206675747572650000000000000000000000006064820152608401620000c9565b6001600160a01b03811660805260026200016584826200032e565b505060a05250620003fa565b634e487b7160e01b600052604160045260246000fd5b80516001600160a01b03811681146200019f57600080fd5b919050565b600080600060608486031215620001ba57600080fd5b83516001600160401b0380821115620001d257600080fd5b818601915086601f830112620001e757600080fd5b815181811115620001fc57620001fc62000171565b604051601f8201601f19908116603f0116810190838211818310171562000227576200022762000171565b816040528281526020935089848487010111156200024457600080fd5b600091505b8282101562000268578482018401518183018501529083019062000249565b828211156200027a5760008484830101525b8097505050508086015193505050620002966040850162000187565b90509250925092565b600181811c90821680620002b457607f821691505b602082108103620002d557634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200032957600081815260208120601f850160051c81016020861015620003045750805b601f850160051c820191505b81811015620003255782815560010162000310565b5050505b505050565b81516001600160401b038111156200034a576200034a62000171565b62000362816200035b84546200029f565b84620002db565b602080601f8311600181146200039a5760008415620003815750858301515b600019600386901b1c1916600185901b17855562000325565b600085815260208120601f198616915b82811015620003cb57888601518255948401946001909101908401620003aa565b5085821015620003ea5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a051610a8b62000443600039600081816102e7015281816103120152818161037e015261044901526000818161035a015281816105c101526105ea0152610a8b6000f3fe6080604052600436106100355760003560e01c8063093ed8ba1461003e5780635a9b0b891461005e578063f968f4931461008f57005b3661003c57005b005b34801561004a57600080fd5b5061003c6100593660046108b8565b6100c1565b34801561006a57600080fd5b506100736101db565b604051610086979695949392919061093d565b60405180910390f35b34801561009b57600080fd5b506100a4610444565b604080519283526001600160a01b03909116602083015201610086565b6001546001600160a01b031633146101465760405162461bcd60e51b815260206004820152603a60248201527f4c69717569646974796c6f636b65723a20546869732066756e6374696f6e206360448201527f616e2062652063616c6c6564206279206f776e6572206f6e6c7900000000000060648201526084015b60405180910390fd5b6001600160a01b0381166101b95760405162461bcd60e51b815260206004820152603460248201527f4c69717569646974796c6f636b65723a20746f6b656e2063616e6e6f74206265604482015273207468652061646472657373206f66207a65726f60601b606482015260840161013d565b600080546001600160a01b0319166001600160a01b0392909216919091179055565b60008054819060609082908190819081906001600160a01b03166102765760405162461bcd60e51b815260206004820152604660248201527f4c69717569646974796c6f636b65723a20746f6b656e206973206e6f7420736560448201527f74207965742c20746f6b656e2073686f756c6420646566696e656420696e20616064820152656476616e636560d01b608482015260a40161013d565b6000546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa1580156102be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102e2919061098c565b9050427f0000000000000000000000000000000000000000000000000000000000000000111561033d57610336427f00000000000000000000000000000000000000000000000000000000000000006109a5565b9150610342565b600091505b600154600054600280546001600160a01b03938416937f00000000000000000000000000000000000000000000000000000000000000009316907f0000000000000000000000000000000000000000000000000000000000000000908790879085906103ad906109ca565b80601f01602080910402602001604051908101604052809291908181526020018280546103d9906109ca565b80156104265780601f106103fb57610100808354040283529160200191610426565b820191906000526020600020905b81548152906001019060200180831161040957829003601f168201915b50505050509450965096509650965096509650965090919293949596565b6000807f00000000000000000000000000000000000000000000000000000000000000004210156104d25760405162461bcd60e51b815260206004820152603260248201527f6c6971756964697479204c6f636b3a2043757272656e742074696d65206973206044820152716265666f726520756e6c6f636b2074696d6560701b606482015260840161013d565b6000546001600160a01b03166105405760405162461bcd60e51b815260206004820152602d60248201527f4c69717569646974796c6f636b65723a20546f6b656e2061646472657373206960448201526c1cc81b9bdd081cd95d081e595d609a1b606482015260840161013d565b6000546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015610588573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105ac919061098c565b6000549092506105e6906001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000008461060c565b50907f000000000000000000000000000000000000000000000000000000000000000090565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261065e908490610663565b505050565b60006106b8826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166107359092919063ffffffff16565b80519091501561065e57808060200190518101906106d69190610a04565b61065e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161013d565b6060610744848460008561074e565b90505b9392505050565b6060824710156107af5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161013d565b6001600160a01b0385163b6108065760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161013d565b600080866001600160a01b031685876040516108229190610a26565b60006040518083038185875af1925050503d806000811461085f576040519150601f19603f3d011682016040523d82523d6000602084013e610864565b606091505b509150915061087482828661087f565b979650505050505050565b6060831561088e575081610747565b82511561089e5782518084602001fd5b8160405162461bcd60e51b815260040161013d9190610a42565b6000602082840312156108ca57600080fd5b81356001600160a01b038116811461074757600080fd5b60005b838110156108fc5781810151838201526020016108e4565b8381111561090b576000848401525b50505050565b600081518084526109298160208601602086016108e1565b601f01601f19169290920160200192915050565b600060018060a01b03808a168352808916602084015260e0604084015261096760e0840189610911565b9616606083015250608081019390935260a083019190915260c0909101529392505050565b60006020828403121561099e57600080fd5b5051919050565b6000828210156109c557634e487b7160e01b600052601160045260246000fd5b500390565b600181811c908216806109de57607f821691505b6020821081036109fe57634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215610a1657600080fd5b8151801515811461074757600080fd5b60008251610a388184602087016108e1565b9190910192915050565b602081526000610747602083018461091156fea2646970667358221220abb42a41409d47322c25d8ba5265e233725d0e01e01fda14072a1a5579a0c18164736f6c634300080f003300000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000063aee0d0000000000000000000000000a4396fa102fe283b36bb122eee57cc33400ffd5800000000000000000000000000000000000000000000000000000000000000194e6674616e69613a204c69717569646974792057616c6c657400000000000000

Deployed Bytecode

0x6080604052600436106100355760003560e01c8063093ed8ba1461003e5780635a9b0b891461005e578063f968f4931461008f57005b3661003c57005b005b34801561004a57600080fd5b5061003c6100593660046108b8565b6100c1565b34801561006a57600080fd5b506100736101db565b604051610086979695949392919061093d565b60405180910390f35b34801561009b57600080fd5b506100a4610444565b604080519283526001600160a01b03909116602083015201610086565b6001546001600160a01b031633146101465760405162461bcd60e51b815260206004820152603a60248201527f4c69717569646974796c6f636b65723a20546869732066756e6374696f6e206360448201527f616e2062652063616c6c6564206279206f776e6572206f6e6c7900000000000060648201526084015b60405180910390fd5b6001600160a01b0381166101b95760405162461bcd60e51b815260206004820152603460248201527f4c69717569646974796c6f636b65723a20746f6b656e2063616e6e6f74206265604482015273207468652061646472657373206f66207a65726f60601b606482015260840161013d565b600080546001600160a01b0319166001600160a01b0392909216919091179055565b60008054819060609082908190819081906001600160a01b03166102765760405162461bcd60e51b815260206004820152604660248201527f4c69717569646974796c6f636b65723a20746f6b656e206973206e6f7420736560448201527f74207965742c20746f6b656e2073686f756c6420646566696e656420696e20616064820152656476616e636560d01b608482015260a40161013d565b6000546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa1580156102be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102e2919061098c565b9050427f0000000000000000000000000000000000000000000000000000000063aee0d0111561033d57610336427f0000000000000000000000000000000000000000000000000000000063aee0d06109a5565b9150610342565b600091505b600154600054600280546001600160a01b03938416937f000000000000000000000000a4396fa102fe283b36bb122eee57cc33400ffd589316907f0000000000000000000000000000000000000000000000000000000063aee0d0908790879085906103ad906109ca565b80601f01602080910402602001604051908101604052809291908181526020018280546103d9906109ca565b80156104265780601f106103fb57610100808354040283529160200191610426565b820191906000526020600020905b81548152906001019060200180831161040957829003601f168201915b50505050509450965096509650965096509650965090919293949596565b6000807f0000000000000000000000000000000000000000000000000000000063aee0d04210156104d25760405162461bcd60e51b815260206004820152603260248201527f6c6971756964697479204c6f636b3a2043757272656e742074696d65206973206044820152716265666f726520756e6c6f636b2074696d6560701b606482015260840161013d565b6000546001600160a01b03166105405760405162461bcd60e51b815260206004820152602d60248201527f4c69717569646974796c6f636b65723a20546f6b656e2061646472657373206960448201526c1cc81b9bdd081cd95d081e595d609a1b606482015260840161013d565b6000546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015610588573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105ac919061098c565b6000549092506105e6906001600160a01b03167f000000000000000000000000a4396fa102fe283b36bb122eee57cc33400ffd588461060c565b50907f000000000000000000000000a4396fa102fe283b36bb122eee57cc33400ffd5890565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261065e908490610663565b505050565b60006106b8826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166107359092919063ffffffff16565b80519091501561065e57808060200190518101906106d69190610a04565b61065e5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161013d565b6060610744848460008561074e565b90505b9392505050565b6060824710156107af5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161013d565b6001600160a01b0385163b6108065760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161013d565b600080866001600160a01b031685876040516108229190610a26565b60006040518083038185875af1925050503d806000811461085f576040519150601f19603f3d011682016040523d82523d6000602084013e610864565b606091505b509150915061087482828661087f565b979650505050505050565b6060831561088e575081610747565b82511561089e5782518084602001fd5b8160405162461bcd60e51b815260040161013d9190610a42565b6000602082840312156108ca57600080fd5b81356001600160a01b038116811461074757600080fd5b60005b838110156108fc5781810151838201526020016108e4565b8381111561090b576000848401525b50505050565b600081518084526109298160208601602086016108e1565b601f01601f19169290920160200192915050565b600060018060a01b03808a168352808916602084015260e0604084015261096760e0840189610911565b9616606083015250608081019390935260a083019190915260c0909101529392505050565b60006020828403121561099e57600080fd5b5051919050565b6000828210156109c557634e487b7160e01b600052601160045260246000fd5b500390565b600181811c908216806109de57607f821691505b6020821081036109fe57634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215610a1657600080fd5b8151801515811461074757600080fd5b60008251610a388184602087016108e1565b9190910192915050565b602081526000610747602083018461091156fea2646970667358221220abb42a41409d47322c25d8ba5265e233725d0e01e01fda14072a1a5579a0c18164736f6c634300080f0033

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

00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000063aee0d0000000000000000000000000a4396fa102fe283b36bb122eee57cc33400ffd5800000000000000000000000000000000000000000000000000000000000000194e6674616e69613a204c69717569646974792057616c6c657400000000000000

-----Decoded View---------------
Arg [0] : _beneficiaryName (string): Nftania: Liquidity Wallet
Arg [1] : _unlockTime (uint256): 1672405200
Arg [2] : _beneficiaryWallet (address): 0xA4396FA102fE283B36bB122EEe57CC33400ffD58

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 0000000000000000000000000000000000000000000000000000000063aee0d0
Arg [2] : 000000000000000000000000a4396fa102fe283b36bb122eee57cc33400ffd58
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000019
Arg [4] : 4e6674616e69613a204c69717569646974792057616c6c657400000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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