ETH Price: $2,799.10 (+2.06%)

Contract

0xbED431d546fdc55668E3963A6c5eB503625221a4
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw Token201784092024-06-26 21:01:23239 days ago1719435683IN
0xbED431d5...3625221a4
0 ETH0.000337315.987011
Withdraw Token190818222024-01-25 6:23:47393 days ago1706163827IN
0xbED431d5...3625221a4
0 ETH0.001064311.88453536
Create Lock180217992023-08-29 17:36:23541 days ago1693330583IN
0xbED431d5...3625221a4
0.1 ETH0.0101866947.77865198
Withdraw Token173007822023-05-20 12:56:47642 days ago1684587407IN
0xbED431d5...3625221a4
0 ETH0.0103702731.69107999
Create Lock164314642023-01-18 5:01:23765 days ago1674018083IN
0xbED431d5...3625221a4
0.1 ETH0.0045407617.98687734
Create Lock164314172023-01-18 4:51:47765 days ago1674017507IN
0xbED431d5...3625221a4
0.1 ETH0.0032739218.16060263
Withdraw Token164275602023-01-17 15:56:47765 days ago1673971007IN
0xbED431d5...3625221a4
0 ETH0.0027672338.19295991
Create Lock161321702022-12-07 10:15:11807 days ago1670408111IN
0xbED431d5...3625221a4
0.1 ETH0.0033353215.6463268
Create Lock161321492022-12-07 10:10:59807 days ago1670407859IN
0xbED431d5...3625221a4
0.1 ETH0.0043760617.3620993
Update Static Fe...161321442022-12-07 10:09:59807 days ago1670407799IN
0xbED431d5...3625221a4
0 ETH0.0008962719.54372545
Update Static Fe...161236812022-12-06 5:32:11808 days ago1670304731IN
0xbED431d5...3625221a4
0 ETH0.0003202613.40709526
Create Lock158695542022-10-31 17:32:23843 days ago1667237543IN
0xbED431d5...3625221a4
0.1 ETH0.0083826839.31951898
Withdraw Token145318802022-04-06 10:45:061052 days ago1649241906IN
0xbED431d5...3625221a4
0 ETH0.0046916152.38872156
Withdraw Token145318722022-04-06 10:42:221052 days ago1649241742IN
0xbED431d5...3625221a4
0 ETH0.0039860144.42874477
Create Lock143387522022-03-07 8:51:531082 days ago1646643113IN
0xbED431d5...3625221a4
0.1 ETH0.0080717831.24443959
Withdraw Token142931722022-02-28 7:06:471089 days ago1646032007IN
0xbED431d5...3625221a4
0 ETH0.0054251935.8662249
Create Lock140869652022-01-27 9:43:451121 days ago1643276625IN
0xbED431d5...3625221a4
0.1 ETH0.0252867394.15815616
Withdraw Token140868852022-01-27 9:25:221121 days ago1643275522IN
0xbED431d5...3625221a4
0 ETH0.0147641697.60655769
Create Lock139509972022-01-06 9:22:581142 days ago1641460978IN
0xbED431d5...3625221a4
0.1 ETH0.02936156137.71453759
Withdraw Token139509912022-01-06 9:20:351142 days ago1641460835IN
0xbED431d5...3625221a4
0 ETH0.0109742122.54287747
Create Lock139509872022-01-06 9:19:081142 days ago1641460748IN
0xbED431d5...3625221a4
0.1 ETH0.02713898127.08611279
Withdraw Token139344952022-01-03 19:50:511144 days ago1641239451IN
0xbED431d5...3625221a4
0 ETH0.0267235176.68430813
Withdraw Token138894392021-12-27 20:35:161151 days ago1640637316IN
0xbED431d5...3625221a4
0 ETH0.017168860.21903845
Create Lock138454642021-12-21 0:47:461158 days ago1640047666IN
0xbED431d5...3625221a4
0.1 ETH0.014474667.89023579
Create Lock138442102021-12-20 20:17:411158 days ago1640031461IN
0xbED431d5...3625221a4
0.1 ETH0.0168245473.99827017
View all transactions

Latest 15 internal transactions

Advanced mode:
Parent Transaction Hash Block
From
To
180217992023-08-29 17:36:23541 days ago1693330583
0xbED431d5...3625221a4
0.1 ETH
164314642023-01-18 5:01:23765 days ago1674018083
0xbED431d5...3625221a4
0.1 ETH
164314172023-01-18 4:51:47765 days ago1674017507
0xbED431d5...3625221a4
0.1 ETH
161321702022-12-07 10:15:11807 days ago1670408111
0xbED431d5...3625221a4
0.1 ETH
161321492022-12-07 10:10:59807 days ago1670407859
0xbED431d5...3625221a4
0.1 ETH
158695542022-10-31 17:32:23843 days ago1667237543
0xbED431d5...3625221a4
0.1 ETH
143387522022-03-07 8:51:531082 days ago1646643113
0xbED431d5...3625221a4
0.1 ETH
140869652022-01-27 9:43:451121 days ago1643276625
0xbED431d5...3625221a4
0.1 ETH
139509972022-01-06 9:22:581142 days ago1641460978
0xbED431d5...3625221a4
0.1 ETH
139509872022-01-06 9:19:081142 days ago1641460748
0xbED431d5...3625221a4
0.1 ETH
138454642021-12-21 0:47:461158 days ago1640047666
0xbED431d5...3625221a4
0.1 ETH
138442102021-12-20 20:17:411158 days ago1640031461
0xbED431d5...3625221a4
0.1 ETH
138442012021-12-20 20:15:581158 days ago1640031358
0xbED431d5...3625221a4
0.1 ETH
138441882021-12-20 20:14:111158 days ago1640031251
0xbED431d5...3625221a4
0.1 ETH
138441772021-12-20 20:11:551158 days ago1640031115
0xbED431d5...3625221a4
0.1 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SphynxLock

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 8 : sphynxlock.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.6;

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

contract SphynxLock is Ownable, ReentrancyGuard {
    using SafeERC20 for IERC20;
    using SafeMath for uint256;
    uint256 public staticFee;
    uint256 public staticLPFee;
    uint256 public performanceFee = 0; // 0%
    address payable public feeWallet;
    uint256 public currentLockId = 0;
    mapping(uint256 => uint256) public lockTimes;
    mapping(uint256 => uint256) public startTimes;
    mapping(uint256 => uint256) public vestingPeriods;
    mapping(uint256 => uint256) public lockedBalances;
    mapping(uint256 => uint256) public withdrawBalances;
    mapping(uint256 => address) public lockedTokens;
    mapping(uint256 => address) public lockedOwners;

    event LockCreated(
        uint256 lockId,
        uint256 lockTime,
        uint256 lockedBalance,
        address lockedToken
    );

    constructor(uint256 _staticFee) {
        staticFee = _staticFee;
        feeWallet = payable(msg.sender);
    }

    function updateStaticFee(uint256 _staticFee) external onlyOwner {
        staticFee = _staticFee;
    }

    function updateFeeWallet(address _feewallet) external onlyOwner {
        feeWallet = payable(_feewallet);
    }

    function updateStaticLPFee(uint256 _staticLPFee) external onlyOwner {
        staticLPFee = _staticLPFee;
    }

    function updatePerformanceFee(uint256 _performanceFee) external onlyOwner {
        performanceFee = _performanceFee;
    }

    function createLock(
        uint256 _lockTime,
        uint256 _vestingPeriods,
        uint256 _lockedBalance,
        address _lockedToken,
        bool _isLP
    ) external payable nonReentrant {
        require(_lockTime > block.timestamp, "invalid-time");
        uint256 serviceFee = _isLP ? staticLPFee : staticFee;
        require(msg.value >= serviceFee, "insuffient-fee");
        feeWallet.transfer(msg.value);
        lockTimes[currentLockId] = _lockTime;
        startTimes[currentLockId] = block.timestamp;
        if(_isLP) {
            lockedBalances[currentLockId] = _lockedBalance;
        } else {
            lockedBalances[currentLockId] = _lockedBalance
            .mul(10000 - performanceFee)
            .div(10000);
        }
        lockedOwners[currentLockId] = msg.sender;
        vestingPeriods[currentLockId] = _vestingPeriods;
        lockedTokens[currentLockId] = _lockedToken;
        IERC20 token = IERC20(_lockedToken);
        uint256 originBalance = token.balanceOf(address(this));
        token.safeTransferFrom(
            msg.sender,
            address(this),
            _lockedBalance
        );
        uint256 afterBalance = token.balanceOf(address(this));
        require(
            afterBalance.sub(originBalance) == _lockedBalance,
            "not-equal-amount"
        );
        if(!_isLP) {
            token.safeTransfer(
            feeWallet,
            _lockedBalance.mul(performanceFee).div(10000)
        );
        }
        emit LockCreated(
            currentLockId,
            _lockTime,
            _lockedBalance,
            _lockedToken
        );
        currentLockId = currentLockId.add(1);
    }

    function withdrawToken(uint256 _lockId) external nonReentrant {
        require(msg.sender == lockedOwners[_lockId], "not-owner");
        uint256 step = (block.timestamp.sub(startTimes[_lockId]))
            .mul(vestingPeriods[_lockId])
            .div((lockTimes[_lockId].sub(startTimes[_lockId])));
        uint256 availableBalance;
        if (block.timestamp > lockTimes[_lockId]) {
            availableBalance = lockedBalances[_lockId];
        } else {
            availableBalance = lockedBalances[_lockId].mul(step).div(
                vestingPeriods[_lockId]
            );
        }
        availableBalance = availableBalance.sub(withdrawBalances[_lockId]);
        withdrawBalances[_lockId] = withdrawBalances[_lockId].add(
            availableBalance
        );
        IERC20 token = IERC20(lockedTokens[_lockId]);
        token.safeTransfer(
            msg.sender,
            availableBalance
        );
    }

    function getAvailableBalance(uint256 _lockId)
        external
        view
        returns (uint256 availableBalance)
    {
        uint256 step = (block.timestamp.sub(startTimes[_lockId]))
            .mul(vestingPeriods[_lockId])
            .div((lockTimes[_lockId].sub(startTimes[_lockId])));
        if (block.timestamp > lockTimes[_lockId]) {
            availableBalance = lockedBalances[_lockId];
        } else {
            availableBalance = lockedBalances[_lockId].mul(step).div(
                vestingPeriods[_lockId]
            );
        }
        availableBalance = availableBalance.sub(withdrawBalances[_lockId]);
    }
}

File 2 of 8 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 8 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
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) {
        unchecked {
            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) {
        unchecked {
            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) {
        unchecked {
            // 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) {
        unchecked {
            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) {
        unchecked {
            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) {
        return a + b;
    }

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

    /**
     * @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.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        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) {
        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) {
        unchecked {
            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.
     *
     * 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) {
        unchecked {
            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) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 4 of 8 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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 7 of 8 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with 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) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

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

pragma solidity ^0.8.0;

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

        uint256 size;
        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");

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_staticFee","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"lockId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lockTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lockedBalance","type":"uint256"},{"indexed":false,"internalType":"address","name":"lockedToken","type":"address"}],"name":"LockCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"uint256","name":"_lockTime","type":"uint256"},{"internalType":"uint256","name":"_vestingPeriods","type":"uint256"},{"internalType":"uint256","name":"_lockedBalance","type":"uint256"},{"internalType":"address","name":"_lockedToken","type":"address"},{"internalType":"bool","name":"_isLP","type":"bool"}],"name":"createLock","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"currentLockId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeWallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_lockId","type":"uint256"}],"name":"getAvailableBalance","outputs":[{"internalType":"uint256","name":"availableBalance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lockTimes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lockedBalances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lockedOwners","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lockedTokens","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"performanceFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"startTimes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"staticFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"staticLPFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feewallet","type":"address"}],"name":"updateFeeWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_performanceFee","type":"uint256"}],"name":"updatePerformanceFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_staticFee","type":"uint256"}],"name":"updateStaticFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_staticLPFee","type":"uint256"}],"name":"updateStaticLPFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"vestingPeriods","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"withdrawBalances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_lockId","type":"uint256"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526000600455600060065534801561001a57600080fd5b50604051611330380380611330833981016040819052610039916100b0565b61004233610060565b60018055600255600580546001600160a01b031916331790556100c9565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100c257600080fd5b5051919050565b611258806100d86000396000f3fe6080604052600436106101355760003560e01c8063715018a6116100ab578063d3c942a61161006f578063d3c942a61461036f578063dcec32941461039c578063e8981330146103d2578063f25f4b56146103f2578063f2fde38b14610412578063f7f995391461043257600080fd5b8063715018a6146102d957806377bbebe6146102ee578063877887821461031b5780638da5cb5b14610331578063aabef0db1461034f57600080fd5b80634d6f2506116100fd5780634d6f2506146102215780634df6cad41461024357806350baa6221461025957806353ed7855146102795780636575c337146102a657806366718524146102b957600080fd5b8063118b41d91461013a578063231051b41461018d57806330a5c2f0146101b15780633972323a146101c757806342d00501146101f4575b600080fd5b34801561014657600080fd5b50610170610155366004611058565b600d602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561019957600080fd5b506101a360025481565b604051908152602001610184565b3480156101bd57600080fd5b506101a360065481565b3480156101d357600080fd5b506101a36101e2366004611058565b600a6020526000908152604090205481565b34801561020057600080fd5b506101a361020f366004611058565b60096020526000908152604090205481565b34801561022d57600080fd5b5061024161023c366004611058565b610452565b005b34801561024f57600080fd5b506101a360035481565b34801561026557600080fd5b50610241610274366004611058565b61048a565b34801561028557600080fd5b506101a3610294366004611058565b600b6020526000908152604090205481565b6102416102b436600461108a565b61065e565b3480156102c557600080fd5b506102416102d4366004611020565b610a48565b3480156102e557600080fd5b50610241610a94565b3480156102fa57600080fd5b506101a3610309366004611058565b60086020526000908152604090205481565b34801561032757600080fd5b506101a360045481565b34801561033d57600080fd5b506000546001600160a01b0316610170565b34801561035b57600080fd5b506101a361036a366004611058565b610aca565b34801561037b57600080fd5b506101a361038a366004611058565b60076020526000908152604090205481565b3480156103a857600080fd5b506101706103b7366004611058565b600c602052600090815260409020546001600160a01b031681565b3480156103de57600080fd5b506102416103ed366004611058565b610b9b565b3480156103fe57600080fd5b50600554610170906001600160a01b031681565b34801561041e57600080fd5b5061024161042d366004611020565b610bca565b34801561043e57600080fd5b5061024161044d366004611058565b610c65565b6000546001600160a01b031633146104855760405162461bcd60e51b815260040161047c9061112d565b60405180910390fd5b600355565b600260015414156104dd5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161047c565b60026001556000818152600d60205260409020546001600160a01b031633146105345760405162461bcd60e51b81526020600482015260096024820152683737ba16b7bbb732b960b91b604482015260640161047c565b60008181526008602090815260408083205460079092528220546105939161055c9190610c94565b60008481526009602090815260408083205460089092529091205461058d9190610587904290610c94565b90610ca0565b90610cac565b600083815260076020526040812054919250904211156105c257506000828152600a60205260409020546105ef565b600083815260096020908152604080832054600a909252909120546105ec919061058d9085610ca0565b90505b6000838152600b6020526040902054610609908290610c94565b6000848152600b60205260409020549091506106259082610cb8565b6000848152600b6020908152604080832093909355600c905220546001600160a01b0316610654813384610cc4565b5050600180555050565b600260015414156106b15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161047c565b60026001554285116106f45760405162461bcd60e51b815260206004820152600c60248201526b696e76616c69642d74696d6560a01b604482015260640161047c565b60008161070357600254610707565b6003545b90508034101561074a5760405162461bcd60e51b815260206004820152600e60248201526d696e7375666669656e742d66656560901b604482015260640161047c565b6005546040516001600160a01b03909116903480156108fc02916000818181858888f19350505050158015610783573d6000803e3d6000fd5b506006805460009081526007602090815260408083208a905592548252600890522042905581156107c7576006546000908152600a602052604090208490556107fa565b6107e761271061058d6004546127106107e091906111bb565b8790610ca0565b6006546000908152600a60205260409020555b600680546000908152600d6020908152604080832080546001600160a01b0319908116331790915584548452600983528184208a905593548352600c90915280822080546001600160a01b038816941684179055516370a0823160e01b81523060048201528592906370a082319060240160206040518083038186803b15801561088357600080fd5b505afa158015610897573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108bb9190611071565b90506108d26001600160a01b038316333089610d2c565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a082319060240160206040518083038186803b15801561091457600080fd5b505afa158015610928573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061094c9190611071565b9050866109598284610c94565b146109995760405162461bcd60e51b815260206004820152601060248201526f1b9bdd0b595c5d585b0b585b5bdd5b9d60821b604482015260640161047c565b846109d6576005546004546109d6916001600160a01b0316906109c5906127109061058d908c90610ca0565b6001600160a01b0386169190610cc4565b60065460408051918252602082018b905281018890526001600160a01b03871660608201527fa1c93684c59637d2336b6a373fcce77fd62da17436a5c2975fc782e8aafe0e969060800160405180910390a1600654610a36906001610cb8565b60065550506001805550505050505050565b6000546001600160a01b03163314610a725760405162461bcd60e51b815260040161047c9061112d565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610abe5760405162461bcd60e51b815260040161047c9061112d565b610ac86000610d6a565b565b60008181526008602090815260408083205460079092528220548291610b1e91610af391610c94565b60008581526009602090815260408083205460089092529091205461058d9190610587904290610c94565b600084815260076020526040902054909150421115610b4d576000838152600a60205260409020549150610b7a565b600083815260096020908152604080832054600a90925290912054610b77919061058d9084610ca0565b91505b6000838152600b6020526040902054610b94908390610c94565b9392505050565b6000546001600160a01b03163314610bc55760405162461bcd60e51b815260040161047c9061112d565b600455565b6000546001600160a01b03163314610bf45760405162461bcd60e51b815260040161047c9061112d565b6001600160a01b038116610c595760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161047c565b610c6281610d6a565b50565b6000546001600160a01b03163314610c8f5760405162461bcd60e51b815260040161047c9061112d565b600255565b6000610b9482846111bb565b6000610b94828461119c565b6000610b94828461117a565b6000610b948284611162565b6040516001600160a01b038316602482015260448101829052610d2790849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610dba565b505050565b6040516001600160a01b0380851660248301528316604482015260648101829052610d649085906323b872dd60e01b90608401610cf0565b50505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000610e0f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610e8c9092919063ffffffff16565b805190915015610d275780806020019051810190610e2d919061103b565b610d275760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161047c565b6060610e9b8484600085610ea3565b949350505050565b606082471015610f045760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161047c565b843b610f525760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161047c565b600080866001600160a01b03168587604051610f6e91906110de565b60006040518083038185875af1925050503d8060008114610fab576040519150601f19603f3d011682016040523d82523d6000602084013e610fb0565b606091505b5091509150610fc0828286610fcb565b979650505050505050565b60608315610fda575081610b94565b825115610fea5782518084602001fd5b8160405162461bcd60e51b815260040161047c91906110fa565b80356001600160a01b038116811461101b57600080fd5b919050565b60006020828403121561103257600080fd5b610b9482611004565b60006020828403121561104d57600080fd5b8151610b9481611214565b60006020828403121561106a57600080fd5b5035919050565b60006020828403121561108357600080fd5b5051919050565b600080600080600060a086880312156110a257600080fd5b8535945060208601359350604086013592506110c060608701611004565b915060808601356110d081611214565b809150509295509295909350565b600082516110f08184602087016111d2565b9190910192915050565b60208152600082518060208401526111198160408501602087016111d2565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115611175576111756111fe565b500190565b60008261119757634e487b7160e01b600052601260045260246000fd5b500490565b60008160001904831182151516156111b6576111b66111fe565b500290565b6000828210156111cd576111cd6111fe565b500390565b60005b838110156111ed5781810151838201526020016111d5565b83811115610d645750506000910152565b634e487b7160e01b600052601160045260246000fd5b8015158114610c6257600080fdfea2646970667358221220fe09838dd1d9060c2d5b25cdb6665fd5db702d0c0a10262fbac45c6e8c4c4d3364736f6c63430008060033000000000000000000000000000000000000000000000000016345785d8a0000

Deployed Bytecode

0x6080604052600436106101355760003560e01c8063715018a6116100ab578063d3c942a61161006f578063d3c942a61461036f578063dcec32941461039c578063e8981330146103d2578063f25f4b56146103f2578063f2fde38b14610412578063f7f995391461043257600080fd5b8063715018a6146102d957806377bbebe6146102ee578063877887821461031b5780638da5cb5b14610331578063aabef0db1461034f57600080fd5b80634d6f2506116100fd5780634d6f2506146102215780634df6cad41461024357806350baa6221461025957806353ed7855146102795780636575c337146102a657806366718524146102b957600080fd5b8063118b41d91461013a578063231051b41461018d57806330a5c2f0146101b15780633972323a146101c757806342d00501146101f4575b600080fd5b34801561014657600080fd5b50610170610155366004611058565b600d602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561019957600080fd5b506101a360025481565b604051908152602001610184565b3480156101bd57600080fd5b506101a360065481565b3480156101d357600080fd5b506101a36101e2366004611058565b600a6020526000908152604090205481565b34801561020057600080fd5b506101a361020f366004611058565b60096020526000908152604090205481565b34801561022d57600080fd5b5061024161023c366004611058565b610452565b005b34801561024f57600080fd5b506101a360035481565b34801561026557600080fd5b50610241610274366004611058565b61048a565b34801561028557600080fd5b506101a3610294366004611058565b600b6020526000908152604090205481565b6102416102b436600461108a565b61065e565b3480156102c557600080fd5b506102416102d4366004611020565b610a48565b3480156102e557600080fd5b50610241610a94565b3480156102fa57600080fd5b506101a3610309366004611058565b60086020526000908152604090205481565b34801561032757600080fd5b506101a360045481565b34801561033d57600080fd5b506000546001600160a01b0316610170565b34801561035b57600080fd5b506101a361036a366004611058565b610aca565b34801561037b57600080fd5b506101a361038a366004611058565b60076020526000908152604090205481565b3480156103a857600080fd5b506101706103b7366004611058565b600c602052600090815260409020546001600160a01b031681565b3480156103de57600080fd5b506102416103ed366004611058565b610b9b565b3480156103fe57600080fd5b50600554610170906001600160a01b031681565b34801561041e57600080fd5b5061024161042d366004611020565b610bca565b34801561043e57600080fd5b5061024161044d366004611058565b610c65565b6000546001600160a01b031633146104855760405162461bcd60e51b815260040161047c9061112d565b60405180910390fd5b600355565b600260015414156104dd5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161047c565b60026001556000818152600d60205260409020546001600160a01b031633146105345760405162461bcd60e51b81526020600482015260096024820152683737ba16b7bbb732b960b91b604482015260640161047c565b60008181526008602090815260408083205460079092528220546105939161055c9190610c94565b60008481526009602090815260408083205460089092529091205461058d9190610587904290610c94565b90610ca0565b90610cac565b600083815260076020526040812054919250904211156105c257506000828152600a60205260409020546105ef565b600083815260096020908152604080832054600a909252909120546105ec919061058d9085610ca0565b90505b6000838152600b6020526040902054610609908290610c94565b6000848152600b60205260409020549091506106259082610cb8565b6000848152600b6020908152604080832093909355600c905220546001600160a01b0316610654813384610cc4565b5050600180555050565b600260015414156106b15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161047c565b60026001554285116106f45760405162461bcd60e51b815260206004820152600c60248201526b696e76616c69642d74696d6560a01b604482015260640161047c565b60008161070357600254610707565b6003545b90508034101561074a5760405162461bcd60e51b815260206004820152600e60248201526d696e7375666669656e742d66656560901b604482015260640161047c565b6005546040516001600160a01b03909116903480156108fc02916000818181858888f19350505050158015610783573d6000803e3d6000fd5b506006805460009081526007602090815260408083208a905592548252600890522042905581156107c7576006546000908152600a602052604090208490556107fa565b6107e761271061058d6004546127106107e091906111bb565b8790610ca0565b6006546000908152600a60205260409020555b600680546000908152600d6020908152604080832080546001600160a01b0319908116331790915584548452600983528184208a905593548352600c90915280822080546001600160a01b038816941684179055516370a0823160e01b81523060048201528592906370a082319060240160206040518083038186803b15801561088357600080fd5b505afa158015610897573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108bb9190611071565b90506108d26001600160a01b038316333089610d2c565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a082319060240160206040518083038186803b15801561091457600080fd5b505afa158015610928573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061094c9190611071565b9050866109598284610c94565b146109995760405162461bcd60e51b815260206004820152601060248201526f1b9bdd0b595c5d585b0b585b5bdd5b9d60821b604482015260640161047c565b846109d6576005546004546109d6916001600160a01b0316906109c5906127109061058d908c90610ca0565b6001600160a01b0386169190610cc4565b60065460408051918252602082018b905281018890526001600160a01b03871660608201527fa1c93684c59637d2336b6a373fcce77fd62da17436a5c2975fc782e8aafe0e969060800160405180910390a1600654610a36906001610cb8565b60065550506001805550505050505050565b6000546001600160a01b03163314610a725760405162461bcd60e51b815260040161047c9061112d565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610abe5760405162461bcd60e51b815260040161047c9061112d565b610ac86000610d6a565b565b60008181526008602090815260408083205460079092528220548291610b1e91610af391610c94565b60008581526009602090815260408083205460089092529091205461058d9190610587904290610c94565b600084815260076020526040902054909150421115610b4d576000838152600a60205260409020549150610b7a565b600083815260096020908152604080832054600a90925290912054610b77919061058d9084610ca0565b91505b6000838152600b6020526040902054610b94908390610c94565b9392505050565b6000546001600160a01b03163314610bc55760405162461bcd60e51b815260040161047c9061112d565b600455565b6000546001600160a01b03163314610bf45760405162461bcd60e51b815260040161047c9061112d565b6001600160a01b038116610c595760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161047c565b610c6281610d6a565b50565b6000546001600160a01b03163314610c8f5760405162461bcd60e51b815260040161047c9061112d565b600255565b6000610b9482846111bb565b6000610b94828461119c565b6000610b94828461117a565b6000610b948284611162565b6040516001600160a01b038316602482015260448101829052610d2790849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610dba565b505050565b6040516001600160a01b0380851660248301528316604482015260648101829052610d649085906323b872dd60e01b90608401610cf0565b50505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000610e0f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610e8c9092919063ffffffff16565b805190915015610d275780806020019051810190610e2d919061103b565b610d275760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161047c565b6060610e9b8484600085610ea3565b949350505050565b606082471015610f045760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161047c565b843b610f525760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161047c565b600080866001600160a01b03168587604051610f6e91906110de565b60006040518083038185875af1925050503d8060008114610fab576040519150601f19603f3d011682016040523d82523d6000602084013e610fb0565b606091505b5091509150610fc0828286610fcb565b979650505050505050565b60608315610fda575081610b94565b825115610fea5782518084602001fd5b8160405162461bcd60e51b815260040161047c91906110fa565b80356001600160a01b038116811461101b57600080fd5b919050565b60006020828403121561103257600080fd5b610b9482611004565b60006020828403121561104d57600080fd5b8151610b9481611214565b60006020828403121561106a57600080fd5b5035919050565b60006020828403121561108357600080fd5b5051919050565b600080600080600060a086880312156110a257600080fd5b8535945060208601359350604086013592506110c060608701611004565b915060808601356110d081611214565b809150509295509295909350565b600082516110f08184602087016111d2565b9190910192915050565b60208152600082518060208401526111198160408501602087016111d2565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115611175576111756111fe565b500190565b60008261119757634e487b7160e01b600052601260045260246000fd5b500490565b60008160001904831182151516156111b6576111b66111fe565b500290565b6000828210156111cd576111cd6111fe565b500390565b60005b838110156111ed5781810151838201526020016111d5565b83811115610d645750506000910152565b634e487b7160e01b600052601160045260246000fd5b8015158114610c6257600080fdfea2646970667358221220fe09838dd1d9060c2d5b25cdb6665fd5db702d0c0a10262fbac45c6e8c4c4d3364736f6c63430008060033

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

000000000000000000000000000000000000000000000000016345785d8a0000

-----Decoded View---------------
Arg [0] : _staticFee (uint256): 100000000000000000

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000016345785d8a0000


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

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.