ETH Price: $3,405.43 (+6.68%)
Gas: 18 Gwei

Contract

0x6e50bFdc05Da19B0038649199f92c26c328e2c93
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

1 address found via
Transaction Hash
Method
Block
From
To
Release Lock196086102024-04-08 4:36:1198 days ago1712550971IN
0x6e50bFdc...c328e2c93
0 ETH0.000468269.33774728
Release Lock196086062024-04-08 4:35:2398 days ago1712550923IN
0x6e50bFdc...c328e2c93
0 ETH0.000669149.95052752
Withdraw Fee181774842023-09-20 13:45:23299 days ago1695217523IN
0x6e50bFdc...c328e2c93
0 ETH0.000384512.67710098
Release Lock172430542023-05-12 8:49:59430 days ago1683881399IN
0x6e50bFdc...c328e2c93
0 ETH0.0023443646.74977864
Set Fee170820672023-04-19 17:16:35453 days ago1681924595IN
0x6e50bFdc...c328e2c93
0 ETH0.0022676286.20508005
Lock170168142023-04-10 9:07:35462 days ago1681117655IN
0x6e50bFdc...c328e2c93
0.05 ETH0.0043879218.16910092
Lock169747252023-04-04 9:44:23468 days ago1680601463IN
0x6e50bFdc...c328e2c93
0.05 ETH0.004798920.64516139
Lock169551142023-04-01 15:13:59471 days ago1680362039IN
0x6e50bFdc...c328e2c93
0 ETH0.0058052526.10557416
Lock169535472023-04-01 9:55:47471 days ago1680342947IN
0x6e50bFdc...c328e2c93
0 ETH0.00486718.97084335
0x60806040169523752023-04-01 5:58:11471 days ago1680328691IN
 Create: RectLocker
0 ETH0.0407051618.70614897

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To
181774842023-09-20 13:45:23299 days ago1695217523
0x6e50bFdc...c328e2c93
0.1 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
RectLocker

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 3 : RectLocker.sol
// SPDX-License-Identifier: BUSL-1.1
// 2023 Rectngl - Locker Contracts
// https://rectngl.com

// To conduct a support act for good projects we implement a commercial locker contract whose free for everyone with at least one year's commitment.
// Method
// 1. trust
// 2. short
// 3. vesting

// Business Source License 1.1
// License text copyright © 2023 Rectngl Ltd, All Rights Reserved. "Business Source License" is a trademark of Rectngl Ltd.

// Terms

// The Licensor hereby grants you the right to copy, modify, create derivative works, redistribute, and make non-production use of the Licensed Work. The Licensor may make an Additional Use Grant, above, permitting limited production use.
// Effective on the Change Date, or the fourth anniversary of the first publicly available distribution of a specific version of the Licensed Work under this License, whichever comes first, the Licensor hereby grants you rights under the terms of the Change License, and the rights granted in the paragraph above terminate.
// If your use of the Licensed Work does not comply with the requirements currently in effect as described in this License, you must purchase a commercial license from the Licensor, its affiliated entities, or authorized resellers, or you must refrain from using the Licensed Work.
// All copies of the original and modified Licensed Work, and derivative works of the Licensed Work, are subject to this License. This License applies separately for each version of the Licensed Work and the Change Date may vary for each version of the Licensed Work released by Licensor.
// You must conspicuously display this License on each original or modified copy of the Licensed Work. If you receive the Licensed Work in original or modified form from a third party, the terms and conditions set forth in this License apply to your use of that work.
// Any use of the Licensed Work in violation of this License will automatically terminate your rights under this License for the current and all other versions of the Licensed Work.
// This License does not grant you any right in any trademark or logo of Licensor or its affiliates (provided that you may use a trademark or logo of Licensor as expressly required by this License).
// TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON AN "AS IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND TITLE.

pragma solidity ^0.8.14;

import "@openzeppelin/contracts/access/Ownable.sol";

interface ERC20 {
    function balanceOf(address account) external view returns (uint256);

    function allowance(address owner, address spender)
        external
        view
        returns (uint256);

    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    function transfer(address recipient, uint256 amount)
        external
        returns (bool);
}

interface IUniswapV2Factory {
    event PairCreated(
        address indexed token0,
        address indexed token1,
        address pair,
        uint256
    );

    function feeTo() external view returns (address);

    function feeToSetter() external view returns (address);

    function getPair(address tokenA, address tokenB)
        external
        view
        returns (address pair);

    function allPairs(uint256) external view returns (address pair);

    function allPairsLength() external view returns (uint256);

    function createPair(address tokenA, address tokenB)
        external
        returns (address pair);

    function setFeeTo(address) external;

    function setFeeToSetter(address) external;
}

interface IUniswapV2Pair {
    event Approval(
        address indexed owner,
        address indexed spender,
        uint256 value
    );
    event Transfer(address indexed from, address indexed to, uint256 value);

    function name() external pure returns (string memory);

    function symbol() external pure returns (string memory);

    function decimals() external pure returns (uint8);

    function totalSupply() external view returns (uint256);

    function balanceOf(address owner) external view returns (uint256);

    function allowance(address owner, address spender)
        external
        view
        returns (uint256);

    function approve(address spender, uint256 value) external returns (bool);

    function transfer(address to, uint256 value) external returns (bool);

    function transferFrom(
        address from,
        address to,
        uint256 value
    ) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);

    function PERMIT_TYPEHASH() external pure returns (bytes32);

    function nonces(address owner) external view returns (uint256);

    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    event Swap(
        address indexed sender,
        uint256 amount0In,
        uint256 amount1In,
        uint256 amount0Out,
        uint256 amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);

    function MINIMUM_LIQUIDITY() external pure returns (uint256);

    function factory() external view returns (address);

    function token0() external view returns (address);

    function token1() external view returns (address);

    function getReserves()
        external
        view
        returns (
            uint112 reserve0,
            uint112 reserve1,
            uint32 blockTimestampLast
        );

    function price0CumulativeLast() external view returns (uint256);

    function price1CumulativeLast() external view returns (uint256);

    function kLast() external view returns (uint256);

    function swap(
        uint256 amount0Out,
        uint256 amount1Out,
        address to,
        bytes calldata data
    ) external;

    function skim(address to) external;

    function sync() external;

    function initialize(address, address) external;
}

contract RectLocker is Ownable {
    event TrustLock(uint256 amount, address from, address tokenAddress);
    event ShortLock(uint256 amount, address from, address tokenAddress);
    event ReleaseLock(uint256 amount, address to, address tokenAddress);
    event ClaimTGE(uint256 amount, address tokenAddress);
    event ClaimVesting(uint256 amount, address tokenAddress);
    event ExtendLock(uint256 newUnlockDate, address from, address tokenAddress);

    modifier onlyEOA() {
        require(msg.sender == tx.origin, "Only EOA");
        _;
    }

    uint256 public totalLocked;
    uint256 public vestingFee = 0.5 ether;
    uint256 public shortFee = 1 ether;

    struct LockInfo {
        address owner;
        address tokenAddress;
        uint256 releaseDate;
        uint256 lockDate;
        uint256 amount;
        uint8 method;
        bool isLpToken;
    }

    struct LockVestingInfo {
        address owner;
        address tokenAddress;
        uint256 lockDate;
        uint256 amount;
        uint256 dynamicAmount;
        uint256 initDate;
        uint24 dayCliff;
        uint16 totalStep;
        uint16 currentStep;
        uint8 percentCliff;
        uint8 percentTGE;
        uint8 method;
        bool isLpToken;
    }

    struct AccountInfo {
        uint256 lockedCount;
        uint256 lockedVestingCount;
        mapping(uint256 => LockInfo) lockinfo;
        mapping(uint256 => LockVestingInfo) lockvestinginfo;
    }

    mapping(address => AccountInfo) public locker;

    constructor(uint256 _shortFee, uint256 _vestingFee) {
        shortFee = _shortFee;
        vestingFee = _vestingFee;
    }

    //----STATEFUL

    //---LOCKING---
    function lock(
        uint256 unlockDate,
        address tokenAddress,
        uint256 amount
    ) external payable onlyEOA {
        if (unlockDate >= block.timestamp + 365 days) {
            trustLock(unlockDate, tokenAddress, amount);
        } else {
            shortLock(unlockDate, tokenAddress, amount);
        }
    }

    function trustLock(
        uint256 unlockDate,
        address tokenAddress,
        uint256 amount
    ) internal {
        (uint256 balance, uint256 allowance, ERC20 tokens) = _tokenProxy(
            tokenAddress,
            msg.sender
        );
        require(unlockDate >= block.timestamp, "Invalid date");
        require(allowance >= amount, "please adjust allowances");
        require(unlockDate >= block.timestamp + 365 days, "invalid date");
        require(
            balance >= amount && balance > 0 && amount > 0,
            "invalid amount"
        );
        AccountInfo storage AInfo = locker[msg.sender];
        AInfo.lockedCount++;
        AInfo.lockinfo[AInfo.lockedCount] = LockInfo({
            owner: msg.sender,
            tokenAddress: tokenAddress,
            releaseDate: unlockDate,
            lockDate: block.timestamp,
            amount: amount,
            method: 1,
            isLpToken: checkIsLpToken(tokenAddress)
        });
        totalLocked++;
        require(
            tokens.transferFrom(msg.sender, address(this), amount),
            "tx failed"
        );
        emit TrustLock(amount, msg.sender, tokenAddress);
    }

    function shortLock(
        uint256 unlockDate,
        address tokenAddress,
        uint256 amount
    ) internal {
        (uint256 balance, uint256 allowance, ERC20 tokens) = _tokenProxy(
            tokenAddress,
            msg.sender
        );
        require(
            balance >= amount && balance > 0 && amount > 0,
            "invalid amount"
        );
        require(allowance >= amount, "please adjust allowances");
        require(msg.value >= shortFee, "invalid payable amount");
        require(unlockDate >= block.timestamp, "Invalid date");
        AccountInfo storage AInfo = locker[msg.sender];
        AInfo.lockedCount++;
        AInfo.lockinfo[AInfo.lockedCount] = LockInfo({
            owner: msg.sender,
            tokenAddress: tokenAddress,
            releaseDate: unlockDate,
            lockDate: block.timestamp,
            amount: amount,
            method: 2,
            isLpToken: checkIsLpToken(tokenAddress)
        });
        totalLocked++;
        require(
            tokens.transferFrom(msg.sender, address(this), amount),
            "tx failed"
        );
        emit ShortLock(amount, msg.sender, tokenAddress);
    }

    function vestingLock(
        address tokenAddress,
        uint256 amount,
        uint256 init_date,
        uint8 percentTGE,
        uint8 percentCliff,
        uint16 dayCliff
    ) public payable onlyEOA {
        (uint256 balance, uint256 allowance, ERC20 tokens) = _tokenProxy(
            tokenAddress,
            msg.sender
        );
        require(init_date >= block.timestamp, "Invalid date");
        require(allowance >= amount, "please adjust allowances");
        require(msg.value >= vestingFee, "invalid payable amount");
        require(
            balance >= amount && balance > 0 && amount > 0 && dayCliff > 0,
            "invalid amount / vlaue"
        );
        require(
            percentTGE > 0 && percentTGE < 100,
            "invalid tge percentage, use trustlock instead"
        );
        require(
            percentCliff > 0 && percentCliff < 100,
            "invalid tge percentage, use trustlock instead"
        );

        //-----------------------
        AccountInfo storage AInfo = locker[msg.sender];
        AInfo.lockedVestingCount++;

        AInfo.lockvestinginfo[AInfo.lockedVestingCount] = LockVestingInfo({
            owner: msg.sender,
            tokenAddress: tokenAddress,
            lockDate: block.timestamp,
            amount: amount,
            dynamicAmount: amount,
            initDate: init_date,
            totalStep: ((100 - percentTGE) % percentCliff) == 0
                ? (((100 - percentTGE) / percentCliff) + 1)
                : (((100 - percentTGE) / percentCliff) + 2),
            currentStep: 0,
            percentCliff: percentCliff,
            percentTGE: percentTGE,
            dayCliff: dayCliff * 1 days,
            method: 3,
            isLpToken: checkIsLpToken(tokenAddress)
        });
        totalLocked++;
        require(
            tokens.transferFrom(msg.sender, address(this), amount),
            "tx failed"
        );
    }

    function checkIsLpToken(address token) private view returns (bool) {
        address possibleFactoryAddress;
        try IUniswapV2Pair(token).factory() returns (address factory) {
            possibleFactoryAddress = factory;
        } catch {
            return false;
        }

        if (
            possibleFactoryAddress != address(0) &&
            _isValidLpToken(token, possibleFactoryAddress)
        ) return true;
        else return false;
    }

    function _isValidLpToken(address token, address factory)
        private
        view
        returns (bool)
    {
        IUniswapV2Pair pair = IUniswapV2Pair(token);
        address factoryPair = IUniswapV2Factory(factory).getPair(
            pair.token0(),
            pair.token1()
        );
        return factoryPair == token;
    }

    //---EXTEND---
    function extendLock(uint256 lockId, uint256 newUnlockDate)
        external
        payable
        onlyEOA
    {
        require(msg.value >= (shortFee * 80) / 100, "invalid payable amount");
        LockInfo storage LInfo = locker[msg.sender].lockinfo[lockId];
        require(msg.sender == LInfo.owner, "invalid owner");
        require(LInfo.amount > 0, "this lock id is already unlocked");
        require(newUnlockDate > LInfo.releaseDate, "invalid new unlock date");

        LInfo.releaseDate = newUnlockDate;
        emit ExtendLock(newUnlockDate, msg.sender, LInfo.tokenAddress);
    }

    //---RELEASE---
    function releaseLock(uint256 lockId) external onlyEOA {
        LockInfo storage LInfo = locker[msg.sender].lockinfo[lockId];
        (uint256 balance, , ERC20 tokens) = _tokenProxy(
            LInfo.tokenAddress,
            address(this)
        );

        require(block.timestamp >= LInfo.releaseDate, "Not unlocked yet");
        require(msg.sender == LInfo.owner, "invalid owner");
        require(balance > 0 && LInfo.amount > 0, "invalid balance");
        uint256 txAmount = LInfo.amount;
        LInfo.amount = 0;
        totalLocked--;
        require(
            tokens.transfer(msg.sender, txAmount),
            "tx failed / non standard token"
        );
        emit ReleaseLock(txAmount, msg.sender, LInfo.tokenAddress);
    }

    function releaseVesting(uint256 lockId) external onlyEOA {
        LockVestingInfo storage LVInfo = locker[msg.sender].lockvestinginfo[
            lockId
        ];
        (uint256 balance, , ERC20 tokens) = _tokenProxy(
            LVInfo.tokenAddress,
            address(this)
        );
        require(msg.sender == LVInfo.owner, "invalid owner");
        require(balance > 0 && LVInfo.amount > 0, "invalid balance");
        require(LVInfo.dynamicAmount > 0, "vesting finished");
        if (LVInfo.currentStep == 0) {
            //RELEASE TGE
            require(block.timestamp >= LVInfo.initDate, "invalid TGE Date");
            uint256 rAmount = ((LVInfo.amount * LVInfo.percentTGE) * 100) /
                10000;
            LVInfo.dynamicAmount -= rAmount;
            LVInfo.currentStep++;
            require(
                tokens.transfer(msg.sender, rAmount),
                "tx failed / non standard token"
            );
            emit ClaimTGE(rAmount, LVInfo.tokenAddress);
        } else if (LVInfo.currentStep == LVInfo.totalStep - 1) {
            //FINAL RELEASE
            require(
                block.timestamp >=
                    LVInfo.initDate + (LVInfo.dayCliff * LVInfo.currentStep),
                "invalid cliff date"
            );
            LVInfo.currentStep++;
            uint256 rAmount = LVInfo.dynamicAmount;
            LVInfo.dynamicAmount = 0;
            LVInfo.amount = 0;
            totalLocked--;
            require(
                tokens.transfer(msg.sender, rAmount),
                "tx failed / non standard token"
            );
            emit ReleaseLock(rAmount, msg.sender, LVInfo.tokenAddress);
        } else {
            //RELEASE CYCLE
            require(
                block.timestamp >=
                    LVInfo.initDate + (LVInfo.dayCliff * LVInfo.currentStep),
                "invalid cliff date"
            );
            LVInfo.currentStep++;
            uint256 rAmount = ((LVInfo.amount * LVInfo.percentCliff) * 100) /
                10000;
            LVInfo.dynamicAmount -= rAmount;
            require(
                tokens.transfer(msg.sender, rAmount),
                "tx failed / non standard token"
            );
            emit ClaimVesting(rAmount, LVInfo.tokenAddress);
        }
    }

    //----VIEW
    function _tokenProxy(address tokenAddress, address owner)
        private
        view
        returns (
            uint256 balance,
            uint256 allowance,
            ERC20 token
        )
    {
        ERC20 tokens = ERC20(tokenAddress);
        uint256 balances = tokens.balanceOf(owner);
        uint256 allowances = tokens.allowance(owner, address(this));
        return (balances, allowances, tokens);
    }

    function viewLockCount(address addr)
        public
        view
        returns (uint256 lockedCount, uint256 lockedVestingCount)
    {
        AccountInfo storage AInfo = locker[addr];
        return (AInfo.lockedCount, AInfo.lockedVestingCount);
    }

    function viewLockVestingByID(uint256 id, address addr)
        public
        view
        returns (LockVestingInfo memory LVInfo)
    {
        AccountInfo storage AInfo = locker[addr];
        LockVestingInfo storage LVInfos = AInfo.lockvestinginfo[id];

        return (LVInfos);
    }

    function viewLockByID(uint256 id, address addr)
        public
        view
        returns (LockInfo memory LInfo)
    {
        AccountInfo storage AInfo = locker[addr];
        LockInfo storage LInfos = AInfo.lockinfo[id];

        return (LInfos);
    }

    //----ALIGNMENT
    function setFee(uint256 shortValue, uint256 vestingValue) public onlyOwner {
        shortFee = shortValue;
        vestingFee = vestingValue;
    }

    function withdrawFee() external onlyOwner {
        require(address(this).balance > 0, "Zero Balance");
        payable(msg.sender).transfer(address(this).balance);
    }

    receive() external payable {}
}

File 2 of 3 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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 {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 3 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

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

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":"_shortFee","type":"uint256"},{"internalType":"uint256","name":"_vestingFee","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"tokenAddress","type":"address"}],"name":"ClaimTGE","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"tokenAddress","type":"address"}],"name":"ClaimVesting","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newUnlockDate","type":"uint256"},{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"address","name":"tokenAddress","type":"address"}],"name":"ExtendLock","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"address","name":"tokenAddress","type":"address"}],"name":"ReleaseLock","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"address","name":"tokenAddress","type":"address"}],"name":"ShortLock","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"address","name":"tokenAddress","type":"address"}],"name":"TrustLock","type":"event"},{"inputs":[{"internalType":"uint256","name":"lockId","type":"uint256"},{"internalType":"uint256","name":"newUnlockDate","type":"uint256"}],"name":"extendLock","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"unlockDate","type":"uint256"},{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"lock","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"locker","outputs":[{"internalType":"uint256","name":"lockedCount","type":"uint256"},{"internalType":"uint256","name":"lockedVestingCount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"lockId","type":"uint256"}],"name":"releaseLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"lockId","type":"uint256"}],"name":"releaseVesting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"shortValue","type":"uint256"},{"internalType":"uint256","name":"vestingValue","type":"uint256"}],"name":"setFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"shortFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalLocked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vestingFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"init_date","type":"uint256"},{"internalType":"uint8","name":"percentTGE","type":"uint8"},{"internalType":"uint8","name":"percentCliff","type":"uint8"},{"internalType":"uint16","name":"dayCliff","type":"uint16"}],"name":"vestingLock","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"addr","type":"address"}],"name":"viewLockByID","outputs":[{"components":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"releaseDate","type":"uint256"},{"internalType":"uint256","name":"lockDate","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint8","name":"method","type":"uint8"},{"internalType":"bool","name":"isLpToken","type":"bool"}],"internalType":"struct RectLocker.LockInfo","name":"LInfo","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"viewLockCount","outputs":[{"internalType":"uint256","name":"lockedCount","type":"uint256"},{"internalType":"uint256","name":"lockedVestingCount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"addr","type":"address"}],"name":"viewLockVestingByID","outputs":[{"components":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"lockDate","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"dynamicAmount","type":"uint256"},{"internalType":"uint256","name":"initDate","type":"uint256"},{"internalType":"uint24","name":"dayCliff","type":"uint24"},{"internalType":"uint16","name":"totalStep","type":"uint16"},{"internalType":"uint16","name":"currentStep","type":"uint16"},{"internalType":"uint8","name":"percentCliff","type":"uint8"},{"internalType":"uint8","name":"percentTGE","type":"uint8"},{"internalType":"uint8","name":"method","type":"uint8"},{"internalType":"bool","name":"isLpToken","type":"bool"}],"internalType":"struct RectLocker.LockVestingInfo","name":"LVInfo","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040526706f05b59d3b20000600255670de0b6b3a76400006003553480156200002957600080fd5b5060405162002605380380620026058339810160408190526200004c91620000b6565b620000573362000066565b600391909155600255620000db565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008060408385031215620000ca57600080fd5b505080516020909101519092909150565b61251a80620000eb6000396000f3fe6080604052600436106101025760003560e01c80638334c1bf11610095578063d71c9c1211610064578063d71c9c12146102f2578063e941fa7814610326578063f2fde38b1461033b578063f4bd688b1461035b578063f9cd40411461037b57600080fd5b80638334c1bf1461024e5780638da5cb5b146102645780639d9cd6711461028c578063cf27cfc4146102df57600080fd5b806356891412116100d1578063568914121461017f578063629296ab1461019557806366d65136146101b5578063715018a61461023957600080fd5b8063070d66bf1461010e57806314d33ea9146101235780633b8072701461013657806352f7c9881461015f57600080fd5b3661010957005b600080fd5b61012161011c366004611f30565b6104ed565b005b610121610131366004611f7d565b610696565b34801561014257600080fd5b5061014c60035481565b6040519081526020015b60405180910390f35b34801561016b57600080fd5b5061012161017a366004611f30565b610b11565b34801561018b57600080fd5b5061014c60015481565b3480156101a157600080fd5b506101216101b0366004611ff0565b610b24565b3480156101c157600080fd5b506101d56101d0366004612009565b610d43565b604051610156919081516001600160a01b0390811682526020808401519091169082015260408083015190820152606080830151908201526080808301519082015260a08281015160ff169082015260c09182015115159181019190915260e00190565b34801561024557600080fd5b50610121610e04565b34801561025a57600080fd5b5061014c60025481565b34801561027057600080fd5b506000546040516001600160a01b039091168152602001610156565b34801561029857600080fd5b506102ca6102a7366004612039565b6001600160a01b0316600090815260046020526040902080546001909101549091565b60408051928352602083019190915201610156565b6101216102ed36600461205d565b610e18565b3480156102fe57600080fd5b506102ca61030d366004612039565b6004602052600090815260409020805460019091015482565b34801561033257600080fd5b50610121610e66565b34801561034757600080fd5b50610121610356366004612039565b610edc565b34801561036757600080fd5b50610121610376366004611ff0565b610f52565b34801561038757600080fd5b506104e0610396366004612009565b604080516101a081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e081018290526101008101829052610120810182905261014081018290526101608101829052610180810191909152506001600160a01b038082166000908152600460208181526040808420878552600390810183529381902081516101a0810183528154871681526001820154909616928601929092526002820154908501529182015460608401528101546080830152600581015460a08301526006015462ffffff811660c083015261ffff63010000008204811660e0840152600160281b82041661010083015260ff600160381b82048116610120840152600160401b82048116610140840152600160481b82048116610160840152600160501b90910416151561018082015292915050565b6040516101569190612095565b3332146105155760405162461bcd60e51b815260040161050c9061216b565b60405180910390fd5b6064600354605061052691906121a3565b61053091906121d0565b34101561054f5760405162461bcd60e51b815260040161050c906121e4565b3360008181526004602090815260408083208684526002019091529020805490916001600160a01b03909116146105985760405162461bcd60e51b815260040161050c90612214565b60008160040154116105ec5760405162461bcd60e51b815260206004820181905260248201527f74686973206c6f636b20696420697320616c726561647920756e6c6f636b6564604482015260640161050c565b8060020154821161063f5760405162461bcd60e51b815260206004820152601760248201527f696e76616c6964206e657720756e6c6f636b2064617465000000000000000000604482015260640161050c565b6002810182905560018101546040517fa6252cfcb71af2cf86c5280690d202df12d472986a6f2c2af988b4a46f7b525a9161068991859133916001600160a01b039091169061223b565b60405180910390a1505050565b3332146106b55760405162461bcd60e51b815260040161050c9061216b565b60008060006106c489336115fb565b925092509250428710156106ea5760405162461bcd60e51b815260040161050c9061225a565b8782101561070a5760405162461bcd60e51b815260040161050c90612280565b60025434101561072c5760405162461bcd60e51b815260040161050c906121e4565b87831015801561073c5750600083115b80156107485750600088115b8015610758575060008461ffff16115b61079d5760405162461bcd60e51b8152602060048201526016602482015275696e76616c696420616d6f756e74202f20766c61756560501b604482015260640161050c565b60008660ff161180156107b3575060648660ff16105b6107cf5760405162461bcd60e51b815260040161050c906122b7565b60008560ff161180156107e5575060648560ff16105b6108015760405162461bcd60e51b815260040161050c906122b7565b336000908152600460205260408120600181018054919261082183612304565b9190505550604051806101a00160405280336001600160a01b031681526020018b6001600160a01b031681526020014281526020018a81526020018a81526020018981526020018661ffff166201518061087b919061231d565b62ffffff168152602001876108918a606461233c565b61089b9190612355565b60ff16156108c957876108af8a606461233c565b6108b99190612377565b6108c4906002612399565b6108ea565b876108d58a606461233c565b6108df9190612377565b6108ea906001612399565b60ff9081168252600060208301528881166040830152891660608201526003608082015260a00161091a8c6116f6565b151590526001828101546000908152600380850160209081526040808420865181546001600160a01b03199081166001600160a01b0392831617835593880151828801805490951691161790925585015160028201556060850151918101919091556080840151600482015560a0840151600582015560c08401516006909101805460e08601516101008701516101208801516101408901516101608a0151610180909a015162ffffff90971664ffffffffff1990951694909417630100000061ffff948516021767ffffff00000000001916600160281b939092169290920267ff00000000000000191617600160381b60ff928316021769ffff00000000000000001916600160401b9282169290920269ff000000000000000000191691909117600160481b91909616029490941760ff60501b1916600160501b9115159190910217909255805491610a6d83612304565b90915550506040516323b872dd60e01b8152336004820152306024820152604481018a90526001600160a01b038316906323b872dd906064016020604051808303816000875af1158015610ac5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae991906123b2565b610b055760405162461bcd60e51b815260040161050c906123d4565b50505050505050505050565b610b19611796565b600391909155600255565b333214610b435760405162461bcd60e51b815260040161050c9061216b565b336000908152600460209081526040808320848452600201909152812060018101549091908190610b7d906001600160a01b0316306115fb565b92505091508260020154421015610bc95760405162461bcd60e51b815260206004820152601060248201526f139bdd081d5b9b1bd8dad959081e595d60821b604482015260640161050c565b82546001600160a01b03163314610bf25760405162461bcd60e51b815260040161050c90612214565b600082118015610c06575060008360040154115b610c445760405162461bcd60e51b815260206004820152600f60248201526e696e76616c69642062616c616e636560881b604482015260640161050c565b600483018054600091829055600180549192610c5f836123f7565b909155505060405163a9059cbb60e01b8152336004820152602481018290526001600160a01b0383169063a9059cbb906044016020604051808303816000875af1158015610cb1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cd591906123b2565b610cf15760405162461bcd60e51b815260040161050c9061240e565b60018401546040517ffb6a5cee65f35db7dfbd9922139ae18999b7ded7bbdb940d3d417c0f71784b3b91610d3491849133916001600160a01b039091169061223b565b60405180910390a15050505050565b6040805160e081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810191909152506001600160a01b0380821660009081526004602081815260408084208785526002908101835293819020815160e08101835281548716815260018201549096169286019290925292810154928401929092526003820154606084015281015460808301526005015460ff80821660a084015261010090910416151560c08201525b92915050565b610e0c611796565b610e1660006117f0565b565b333214610e375760405162461bcd60e51b815260040161050c9061216b565b610e45426301e13380612445565b8310610e5b57610e56838383611840565b505050565b610e56838383611b24565b610e6e611796565b60004711610ead5760405162461bcd60e51b815260206004820152600c60248201526b5a65726f2042616c616e636560a01b604482015260640161050c565b60405133904780156108fc02916000818181858888f19350505050158015610ed9573d6000803e3d6000fd5b50565b610ee4611796565b6001600160a01b038116610f495760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161050c565b610ed9816117f0565b333214610f715760405162461bcd60e51b815260040161050c9061216b565b336000908152600460209081526040808320848452600301909152812060018101549091908190610fab906001600160a01b0316306115fb565b85549294509250506001600160a01b03163314610fda5760405162461bcd60e51b815260040161050c90612214565b600082118015610fee575060008360030154115b61102c5760405162461bcd60e51b815260206004820152600f60248201526e696e76616c69642062616c616e636560881b604482015260640161050c565b60008360040154116110735760405162461bcd60e51b815260206004820152601060248201526f1d995cdd1a5b99c8199a5b9a5cda195960821b604482015260640161050c565b6006830154600160281b900461ffff1660000361123c5782600501544210156110d15760405162461bcd60e51b815260206004820152601060248201526f696e76616c696420544745204461746560801b604482015260640161050c565b60068301546003840154600091612710916110f691600160401b900460ff16906121a3565b6111019060646121a3565b61110b91906121d0565b9050808460040160008282546111219190612458565b9091555050600684018054600160281b900461ffff169060056111438361246b565b825461ffff9182166101009390930a92830291909202199091161790555060405163a9059cbb60e01b8152336004820152602481018290526001600160a01b0383169063a9059cbb906044016020604051808303816000875af11580156111ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111d291906123b2565b6111ee5760405162461bcd60e51b815260040161050c9061240e565b6001840154604080518381526001600160a01b0390921660208301527f98ec46ce6c46f6237d883bdd26307c71a7d365fe16aeb5289fd05a93707eb91d91015b60405180910390a1506115f5565b6006830154611258906001906301000000900461ffff1661248c565b600684015461ffff918216600160281b9091049091160361141c5760068301546112929061ffff600160281b8204169062ffffff1661231d565b62ffffff1683600501546112a69190612445565b4210156112ea5760405162461bcd60e51b8152602060048201526012602482015271696e76616c696420636c696666206461746560701b604482015260640161050c565b600683018054600160281b900461ffff169060056113078361246b565b825461ffff9182166101009390930a92830291909202199091161790555060048301805460009182905560038501829055600180549192611347836123f7565b909155505060405163a9059cbb60e01b8152336004820152602481018290526001600160a01b0383169063a9059cbb906044016020604051808303816000875af1158015611399573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113bd91906123b2565b6113d95760405162461bcd60e51b815260040161050c9061240e565b60018401546040517ffb6a5cee65f35db7dfbd9922139ae18999b7ded7bbdb940d3d417c0f71784b3b9161122e91849133916001600160a01b039091169061223b565b600683015461143b9061ffff600160281b8204169062ffffff1661231d565b62ffffff16836005015461144f9190612445565b4210156114935760405162461bcd60e51b8152602060048201526012602482015271696e76616c696420636c696666206461746560701b604482015260640161050c565b600683018054600160281b900461ffff169060056114b08361246b565b91906101000a81548161ffff021916908361ffff1602179055505060006127108460060160079054906101000a900460ff1660ff1685600301546114f491906121a3565b6114ff9060646121a3565b61150991906121d0565b90508084600401600082825461151f9190612458565b909155505060405163a9059cbb60e01b8152336004820152602481018290526001600160a01b0383169063a9059cbb906044016020604051808303816000875af1158015611571573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061159591906123b2565b6115b15760405162461bcd60e51b815260040161050c9061240e565b6001840154604080518381526001600160a01b0390921660208301527f5305930a091aeadd798c41af1e3f90431e45612bbd47246372f8be1d366a177b9101610d34565b50505050565b6040516370a0823160e01b81526001600160a01b0382811660048301526000918291829186918391908316906370a0823190602401602060405180830381865afa15801561164d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061167191906124ae565b604051636eb1769f60e11b81526001600160a01b03888116600483015230602483015291925060009184169063dd62ed3e90604401602060405180830381865afa1580156116c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116e791906124ae565b91989197509195509350505050565b600080826001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611753575060408051601f3d908101601f19168201909252611750918101906124c7565b60015b6117605750600092915050565b90506001600160a01b0381161580159061177f575061177f8382611dcd565b1561178d5750600192915050565b50600092915050565b6000546001600160a01b03163314610e165760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161050c565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080600061184f85336115fb565b925092509250428610156118755760405162461bcd60e51b815260040161050c9061225a565b838210156118955760405162461bcd60e51b815260040161050c90612280565b6118a3426301e13380612445565b8610156118e15760405162461bcd60e51b815260206004820152600c60248201526b696e76616c6964206461746560a01b604482015260640161050c565b8383101580156118f15750600083115b80156118fd5750600084115b61193a5760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5908185b5bdd5b9d60921b604482015260640161050c565b33600090815260046020526040812080549091829061195883612304565b90915550506040805160e0810182523381526001600160a01b038816602082015290810188905242606082015260808101869052600160a082015260c081016119a0886116f6565b1515905281546000908152600280840160209081526040808420855181546001600160a01b039182166001600160a01b0319918216178355938701516001808401805492909316919095161790559085015192810192909255606084015160038301556080840151600483015560a08401516005909201805460c09095015115156101000261ffff1990951660ff9093169290921793909317905581549190611a4883612304565b90915550506040516323b872dd60e01b8152336004820152306024820152604481018690526001600160a01b038316906323b872dd906064016020604051808303816000875af1158015611aa0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ac491906123b2565b611ae05760405162461bcd60e51b815260040161050c906123d4565b7fb136bb34a4804f38785e171e0087bb58f34e67db05ff2c346303dece42b406ff853388604051611b139392919061223b565b60405180910390a150505050505050565b6000806000611b3385336115fb565b925092509250838310158015611b495750600083115b8015611b555750600084115b611b925760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5908185b5bdd5b9d60921b604482015260640161050c565b83821015611bb25760405162461bcd60e51b815260040161050c90612280565b600354341015611bd45760405162461bcd60e51b815260040161050c906121e4565b42861015611bf45760405162461bcd60e51b815260040161050c9061225a565b336000908152600460205260408120805490918290611c1283612304565b90915550506040805160e0810182523381526001600160a01b038816602082015290810188905242606082015260808101869052600260a082015260c08101611c5a886116f6565b1515905281546000908152600280840160209081526040808420855181546001600160a01b039182166001600160a01b0319918216178355938701516001808401805492909316919095161790559085015192810192909255606084015160038301556080840151600483015560a08401516005909201805460c09095015115156101000261ffff1990951660ff9093169290921793909317905581549190611d0283612304565b90915550506040516323b872dd60e01b8152336004820152306024820152604481018690526001600160a01b038316906323b872dd906064016020604051808303816000875af1158015611d5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d7e91906123b2565b611d9a5760405162461bcd60e51b815260040161050c906123d4565b7f0908f40594d6f06ebef775b814a44d1e4f481c394ef97e26253870041f16cf45853388604051611b139392919061223b565b6000808390506000836001600160a01b031663e6a43905836001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015611e22573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e4691906124c7565b846001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa158015611e84573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ea891906124c7565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604401602060405180830381865afa158015611ef3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f1791906124c7565b6001600160a01b03908116908616149250505092915050565b60008060408385031215611f4357600080fd5b50508035926020909101359150565b6001600160a01b0381168114610ed957600080fd5b803560ff81168114611f7857600080fd5b919050565b60008060008060008060c08789031215611f9657600080fd5b8635611fa181611f52565b95506020870135945060408701359350611fbd60608801611f67565b9250611fcb60808801611f67565b915060a087013561ffff81168114611fe257600080fd5b809150509295509295509295565b60006020828403121561200257600080fd5b5035919050565b6000806040838503121561201c57600080fd5b82359150602083013561202e81611f52565b809150509250929050565b60006020828403121561204b57600080fd5b813561205681611f52565b9392505050565b60008060006060848603121561207257600080fd5b83359250602084013561208481611f52565b929592945050506040919091013590565b81516001600160a01b031681526101a0810160208301516120c160208401826001600160a01b03169052565b5060408301516040830152606083015160608301526080830151608083015260a083015160a083015260c083015161210060c084018262ffffff169052565b5060e083015161211660e084018261ffff169052565b506101008381015161ffff16908301526101208084015160ff9081169184019190915261014080850151821690840152610160808501519091169083015261018080840151801515828501525b505092915050565b6020808252600890820152674f6e6c7920454f4160c01b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610dfe57610dfe61218d565b634e487b7160e01b600052601260045260246000fd5b6000826121df576121df6121ba565b500490565b6020808252601690820152751a5b9d985b1a59081c185e58589b1948185b5bdd5b9d60521b604082015260600190565b6020808252600d908201526c34b73b30b634b21037bbb732b960991b604082015260600190565b9283526001600160a01b03918216602084015216604082015260600190565b6020808252600c908201526b496e76616c6964206461746560a01b604082015260600190565b60208082526018908201527f706c656173652061646a75737420616c6c6f77616e6365730000000000000000604082015260600190565b6020808252602d908201527f696e76616c6964207467652070657263656e746167652c20757365207472757360408201526c1d1b1bd8dac81a5b9cdd195859609a1b606082015260800190565b6000600182016123165761231661218d565b5060010190565b62ffffff8181168382160280821691908281146121635761216361218d565b60ff8281168282160390811115610dfe57610dfe61218d565b600060ff831680612368576123686121ba565b8060ff84160691505092915050565b600060ff83168061238a5761238a6121ba565b8060ff84160491505092915050565b60ff8181168382160190811115610dfe57610dfe61218d565b6000602082840312156123c457600080fd5b8151801515811461205657600080fd5b6020808252600990820152681d1e0819985a5b195960ba1b604082015260600190565b6000816124065761240661218d565b506000190190565b6020808252601e908201527f7478206661696c6564202f206e6f6e207374616e6461726420746f6b656e0000604082015260600190565b80820180821115610dfe57610dfe61218d565b81810381811115610dfe57610dfe61218d565b600061ffff8083168181036124825761248261218d565b6001019392505050565b61ffff8281168282160390808211156124a7576124a761218d565b5092915050565b6000602082840312156124c057600080fd5b5051919050565b6000602082840312156124d957600080fd5b815161205681611f5256fea26469706673582212205eea9ded9fc620384b01d2146b671a6e39f3c2755cdb5e319e28cfa9336a846764736f6c6343000813003300000000000000000000000000000000000000000000000000b1a2bc2ec50000000000000000000000000000000000000000000000000000007c585087238000

Deployed Bytecode

0x6080604052600436106101025760003560e01c80638334c1bf11610095578063d71c9c1211610064578063d71c9c12146102f2578063e941fa7814610326578063f2fde38b1461033b578063f4bd688b1461035b578063f9cd40411461037b57600080fd5b80638334c1bf1461024e5780638da5cb5b146102645780639d9cd6711461028c578063cf27cfc4146102df57600080fd5b806356891412116100d1578063568914121461017f578063629296ab1461019557806366d65136146101b5578063715018a61461023957600080fd5b8063070d66bf1461010e57806314d33ea9146101235780633b8072701461013657806352f7c9881461015f57600080fd5b3661010957005b600080fd5b61012161011c366004611f30565b6104ed565b005b610121610131366004611f7d565b610696565b34801561014257600080fd5b5061014c60035481565b6040519081526020015b60405180910390f35b34801561016b57600080fd5b5061012161017a366004611f30565b610b11565b34801561018b57600080fd5b5061014c60015481565b3480156101a157600080fd5b506101216101b0366004611ff0565b610b24565b3480156101c157600080fd5b506101d56101d0366004612009565b610d43565b604051610156919081516001600160a01b0390811682526020808401519091169082015260408083015190820152606080830151908201526080808301519082015260a08281015160ff169082015260c09182015115159181019190915260e00190565b34801561024557600080fd5b50610121610e04565b34801561025a57600080fd5b5061014c60025481565b34801561027057600080fd5b506000546040516001600160a01b039091168152602001610156565b34801561029857600080fd5b506102ca6102a7366004612039565b6001600160a01b0316600090815260046020526040902080546001909101549091565b60408051928352602083019190915201610156565b6101216102ed36600461205d565b610e18565b3480156102fe57600080fd5b506102ca61030d366004612039565b6004602052600090815260409020805460019091015482565b34801561033257600080fd5b50610121610e66565b34801561034757600080fd5b50610121610356366004612039565b610edc565b34801561036757600080fd5b50610121610376366004611ff0565b610f52565b34801561038757600080fd5b506104e0610396366004612009565b604080516101a081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e081018290526101008101829052610120810182905261014081018290526101608101829052610180810191909152506001600160a01b038082166000908152600460208181526040808420878552600390810183529381902081516101a0810183528154871681526001820154909616928601929092526002820154908501529182015460608401528101546080830152600581015460a08301526006015462ffffff811660c083015261ffff63010000008204811660e0840152600160281b82041661010083015260ff600160381b82048116610120840152600160401b82048116610140840152600160481b82048116610160840152600160501b90910416151561018082015292915050565b6040516101569190612095565b3332146105155760405162461bcd60e51b815260040161050c9061216b565b60405180910390fd5b6064600354605061052691906121a3565b61053091906121d0565b34101561054f5760405162461bcd60e51b815260040161050c906121e4565b3360008181526004602090815260408083208684526002019091529020805490916001600160a01b03909116146105985760405162461bcd60e51b815260040161050c90612214565b60008160040154116105ec5760405162461bcd60e51b815260206004820181905260248201527f74686973206c6f636b20696420697320616c726561647920756e6c6f636b6564604482015260640161050c565b8060020154821161063f5760405162461bcd60e51b815260206004820152601760248201527f696e76616c6964206e657720756e6c6f636b2064617465000000000000000000604482015260640161050c565b6002810182905560018101546040517fa6252cfcb71af2cf86c5280690d202df12d472986a6f2c2af988b4a46f7b525a9161068991859133916001600160a01b039091169061223b565b60405180910390a1505050565b3332146106b55760405162461bcd60e51b815260040161050c9061216b565b60008060006106c489336115fb565b925092509250428710156106ea5760405162461bcd60e51b815260040161050c9061225a565b8782101561070a5760405162461bcd60e51b815260040161050c90612280565b60025434101561072c5760405162461bcd60e51b815260040161050c906121e4565b87831015801561073c5750600083115b80156107485750600088115b8015610758575060008461ffff16115b61079d5760405162461bcd60e51b8152602060048201526016602482015275696e76616c696420616d6f756e74202f20766c61756560501b604482015260640161050c565b60008660ff161180156107b3575060648660ff16105b6107cf5760405162461bcd60e51b815260040161050c906122b7565b60008560ff161180156107e5575060648560ff16105b6108015760405162461bcd60e51b815260040161050c906122b7565b336000908152600460205260408120600181018054919261082183612304565b9190505550604051806101a00160405280336001600160a01b031681526020018b6001600160a01b031681526020014281526020018a81526020018a81526020018981526020018661ffff166201518061087b919061231d565b62ffffff168152602001876108918a606461233c565b61089b9190612355565b60ff16156108c957876108af8a606461233c565b6108b99190612377565b6108c4906002612399565b6108ea565b876108d58a606461233c565b6108df9190612377565b6108ea906001612399565b60ff9081168252600060208301528881166040830152891660608201526003608082015260a00161091a8c6116f6565b151590526001828101546000908152600380850160209081526040808420865181546001600160a01b03199081166001600160a01b0392831617835593880151828801805490951691161790925585015160028201556060850151918101919091556080840151600482015560a0840151600582015560c08401516006909101805460e08601516101008701516101208801516101408901516101608a0151610180909a015162ffffff90971664ffffffffff1990951694909417630100000061ffff948516021767ffffff00000000001916600160281b939092169290920267ff00000000000000191617600160381b60ff928316021769ffff00000000000000001916600160401b9282169290920269ff000000000000000000191691909117600160481b91909616029490941760ff60501b1916600160501b9115159190910217909255805491610a6d83612304565b90915550506040516323b872dd60e01b8152336004820152306024820152604481018a90526001600160a01b038316906323b872dd906064016020604051808303816000875af1158015610ac5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae991906123b2565b610b055760405162461bcd60e51b815260040161050c906123d4565b50505050505050505050565b610b19611796565b600391909155600255565b333214610b435760405162461bcd60e51b815260040161050c9061216b565b336000908152600460209081526040808320848452600201909152812060018101549091908190610b7d906001600160a01b0316306115fb565b92505091508260020154421015610bc95760405162461bcd60e51b815260206004820152601060248201526f139bdd081d5b9b1bd8dad959081e595d60821b604482015260640161050c565b82546001600160a01b03163314610bf25760405162461bcd60e51b815260040161050c90612214565b600082118015610c06575060008360040154115b610c445760405162461bcd60e51b815260206004820152600f60248201526e696e76616c69642062616c616e636560881b604482015260640161050c565b600483018054600091829055600180549192610c5f836123f7565b909155505060405163a9059cbb60e01b8152336004820152602481018290526001600160a01b0383169063a9059cbb906044016020604051808303816000875af1158015610cb1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cd591906123b2565b610cf15760405162461bcd60e51b815260040161050c9061240e565b60018401546040517ffb6a5cee65f35db7dfbd9922139ae18999b7ded7bbdb940d3d417c0f71784b3b91610d3491849133916001600160a01b039091169061223b565b60405180910390a15050505050565b6040805160e081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810191909152506001600160a01b0380821660009081526004602081815260408084208785526002908101835293819020815160e08101835281548716815260018201549096169286019290925292810154928401929092526003820154606084015281015460808301526005015460ff80821660a084015261010090910416151560c08201525b92915050565b610e0c611796565b610e1660006117f0565b565b333214610e375760405162461bcd60e51b815260040161050c9061216b565b610e45426301e13380612445565b8310610e5b57610e56838383611840565b505050565b610e56838383611b24565b610e6e611796565b60004711610ead5760405162461bcd60e51b815260206004820152600c60248201526b5a65726f2042616c616e636560a01b604482015260640161050c565b60405133904780156108fc02916000818181858888f19350505050158015610ed9573d6000803e3d6000fd5b50565b610ee4611796565b6001600160a01b038116610f495760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161050c565b610ed9816117f0565b333214610f715760405162461bcd60e51b815260040161050c9061216b565b336000908152600460209081526040808320848452600301909152812060018101549091908190610fab906001600160a01b0316306115fb565b85549294509250506001600160a01b03163314610fda5760405162461bcd60e51b815260040161050c90612214565b600082118015610fee575060008360030154115b61102c5760405162461bcd60e51b815260206004820152600f60248201526e696e76616c69642062616c616e636560881b604482015260640161050c565b60008360040154116110735760405162461bcd60e51b815260206004820152601060248201526f1d995cdd1a5b99c8199a5b9a5cda195960821b604482015260640161050c565b6006830154600160281b900461ffff1660000361123c5782600501544210156110d15760405162461bcd60e51b815260206004820152601060248201526f696e76616c696420544745204461746560801b604482015260640161050c565b60068301546003840154600091612710916110f691600160401b900460ff16906121a3565b6111019060646121a3565b61110b91906121d0565b9050808460040160008282546111219190612458565b9091555050600684018054600160281b900461ffff169060056111438361246b565b825461ffff9182166101009390930a92830291909202199091161790555060405163a9059cbb60e01b8152336004820152602481018290526001600160a01b0383169063a9059cbb906044016020604051808303816000875af11580156111ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111d291906123b2565b6111ee5760405162461bcd60e51b815260040161050c9061240e565b6001840154604080518381526001600160a01b0390921660208301527f98ec46ce6c46f6237d883bdd26307c71a7d365fe16aeb5289fd05a93707eb91d91015b60405180910390a1506115f5565b6006830154611258906001906301000000900461ffff1661248c565b600684015461ffff918216600160281b9091049091160361141c5760068301546112929061ffff600160281b8204169062ffffff1661231d565b62ffffff1683600501546112a69190612445565b4210156112ea5760405162461bcd60e51b8152602060048201526012602482015271696e76616c696420636c696666206461746560701b604482015260640161050c565b600683018054600160281b900461ffff169060056113078361246b565b825461ffff9182166101009390930a92830291909202199091161790555060048301805460009182905560038501829055600180549192611347836123f7565b909155505060405163a9059cbb60e01b8152336004820152602481018290526001600160a01b0383169063a9059cbb906044016020604051808303816000875af1158015611399573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113bd91906123b2565b6113d95760405162461bcd60e51b815260040161050c9061240e565b60018401546040517ffb6a5cee65f35db7dfbd9922139ae18999b7ded7bbdb940d3d417c0f71784b3b9161122e91849133916001600160a01b039091169061223b565b600683015461143b9061ffff600160281b8204169062ffffff1661231d565b62ffffff16836005015461144f9190612445565b4210156114935760405162461bcd60e51b8152602060048201526012602482015271696e76616c696420636c696666206461746560701b604482015260640161050c565b600683018054600160281b900461ffff169060056114b08361246b565b91906101000a81548161ffff021916908361ffff1602179055505060006127108460060160079054906101000a900460ff1660ff1685600301546114f491906121a3565b6114ff9060646121a3565b61150991906121d0565b90508084600401600082825461151f9190612458565b909155505060405163a9059cbb60e01b8152336004820152602481018290526001600160a01b0383169063a9059cbb906044016020604051808303816000875af1158015611571573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061159591906123b2565b6115b15760405162461bcd60e51b815260040161050c9061240e565b6001840154604080518381526001600160a01b0390921660208301527f5305930a091aeadd798c41af1e3f90431e45612bbd47246372f8be1d366a177b9101610d34565b50505050565b6040516370a0823160e01b81526001600160a01b0382811660048301526000918291829186918391908316906370a0823190602401602060405180830381865afa15801561164d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061167191906124ae565b604051636eb1769f60e11b81526001600160a01b03888116600483015230602483015291925060009184169063dd62ed3e90604401602060405180830381865afa1580156116c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116e791906124ae565b91989197509195509350505050565b600080826001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611753575060408051601f3d908101601f19168201909252611750918101906124c7565b60015b6117605750600092915050565b90506001600160a01b0381161580159061177f575061177f8382611dcd565b1561178d5750600192915050565b50600092915050565b6000546001600160a01b03163314610e165760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161050c565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080600061184f85336115fb565b925092509250428610156118755760405162461bcd60e51b815260040161050c9061225a565b838210156118955760405162461bcd60e51b815260040161050c90612280565b6118a3426301e13380612445565b8610156118e15760405162461bcd60e51b815260206004820152600c60248201526b696e76616c6964206461746560a01b604482015260640161050c565b8383101580156118f15750600083115b80156118fd5750600084115b61193a5760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5908185b5bdd5b9d60921b604482015260640161050c565b33600090815260046020526040812080549091829061195883612304565b90915550506040805160e0810182523381526001600160a01b038816602082015290810188905242606082015260808101869052600160a082015260c081016119a0886116f6565b1515905281546000908152600280840160209081526040808420855181546001600160a01b039182166001600160a01b0319918216178355938701516001808401805492909316919095161790559085015192810192909255606084015160038301556080840151600483015560a08401516005909201805460c09095015115156101000261ffff1990951660ff9093169290921793909317905581549190611a4883612304565b90915550506040516323b872dd60e01b8152336004820152306024820152604481018690526001600160a01b038316906323b872dd906064016020604051808303816000875af1158015611aa0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ac491906123b2565b611ae05760405162461bcd60e51b815260040161050c906123d4565b7fb136bb34a4804f38785e171e0087bb58f34e67db05ff2c346303dece42b406ff853388604051611b139392919061223b565b60405180910390a150505050505050565b6000806000611b3385336115fb565b925092509250838310158015611b495750600083115b8015611b555750600084115b611b925760405162461bcd60e51b815260206004820152600e60248201526d1a5b9d985b1a5908185b5bdd5b9d60921b604482015260640161050c565b83821015611bb25760405162461bcd60e51b815260040161050c90612280565b600354341015611bd45760405162461bcd60e51b815260040161050c906121e4565b42861015611bf45760405162461bcd60e51b815260040161050c9061225a565b336000908152600460205260408120805490918290611c1283612304565b90915550506040805160e0810182523381526001600160a01b038816602082015290810188905242606082015260808101869052600260a082015260c08101611c5a886116f6565b1515905281546000908152600280840160209081526040808420855181546001600160a01b039182166001600160a01b0319918216178355938701516001808401805492909316919095161790559085015192810192909255606084015160038301556080840151600483015560a08401516005909201805460c09095015115156101000261ffff1990951660ff9093169290921793909317905581549190611d0283612304565b90915550506040516323b872dd60e01b8152336004820152306024820152604481018690526001600160a01b038316906323b872dd906064016020604051808303816000875af1158015611d5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d7e91906123b2565b611d9a5760405162461bcd60e51b815260040161050c906123d4565b7f0908f40594d6f06ebef775b814a44d1e4f481c394ef97e26253870041f16cf45853388604051611b139392919061223b565b6000808390506000836001600160a01b031663e6a43905836001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015611e22573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e4691906124c7565b846001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa158015611e84573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ea891906124c7565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604401602060405180830381865afa158015611ef3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f1791906124c7565b6001600160a01b03908116908616149250505092915050565b60008060408385031215611f4357600080fd5b50508035926020909101359150565b6001600160a01b0381168114610ed957600080fd5b803560ff81168114611f7857600080fd5b919050565b60008060008060008060c08789031215611f9657600080fd5b8635611fa181611f52565b95506020870135945060408701359350611fbd60608801611f67565b9250611fcb60808801611f67565b915060a087013561ffff81168114611fe257600080fd5b809150509295509295509295565b60006020828403121561200257600080fd5b5035919050565b6000806040838503121561201c57600080fd5b82359150602083013561202e81611f52565b809150509250929050565b60006020828403121561204b57600080fd5b813561205681611f52565b9392505050565b60008060006060848603121561207257600080fd5b83359250602084013561208481611f52565b929592945050506040919091013590565b81516001600160a01b031681526101a0810160208301516120c160208401826001600160a01b03169052565b5060408301516040830152606083015160608301526080830151608083015260a083015160a083015260c083015161210060c084018262ffffff169052565b5060e083015161211660e084018261ffff169052565b506101008381015161ffff16908301526101208084015160ff9081169184019190915261014080850151821690840152610160808501519091169083015261018080840151801515828501525b505092915050565b6020808252600890820152674f6e6c7920454f4160c01b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610dfe57610dfe61218d565b634e487b7160e01b600052601260045260246000fd5b6000826121df576121df6121ba565b500490565b6020808252601690820152751a5b9d985b1a59081c185e58589b1948185b5bdd5b9d60521b604082015260600190565b6020808252600d908201526c34b73b30b634b21037bbb732b960991b604082015260600190565b9283526001600160a01b03918216602084015216604082015260600190565b6020808252600c908201526b496e76616c6964206461746560a01b604082015260600190565b60208082526018908201527f706c656173652061646a75737420616c6c6f77616e6365730000000000000000604082015260600190565b6020808252602d908201527f696e76616c6964207467652070657263656e746167652c20757365207472757360408201526c1d1b1bd8dac81a5b9cdd195859609a1b606082015260800190565b6000600182016123165761231661218d565b5060010190565b62ffffff8181168382160280821691908281146121635761216361218d565b60ff8281168282160390811115610dfe57610dfe61218d565b600060ff831680612368576123686121ba565b8060ff84160691505092915050565b600060ff83168061238a5761238a6121ba565b8060ff84160491505092915050565b60ff8181168382160190811115610dfe57610dfe61218d565b6000602082840312156123c457600080fd5b8151801515811461205657600080fd5b6020808252600990820152681d1e0819985a5b195960ba1b604082015260600190565b6000816124065761240661218d565b506000190190565b6020808252601e908201527f7478206661696c6564202f206e6f6e207374616e6461726420746f6b656e0000604082015260600190565b80820180821115610dfe57610dfe61218d565b81810381811115610dfe57610dfe61218d565b600061ffff8083168181036124825761248261218d565b6001019392505050565b61ffff8281168282160390808211156124a7576124a761218d565b5092915050565b6000602082840312156124c057600080fd5b5051919050565b6000602082840312156124d957600080fd5b815161205681611f5256fea26469706673582212205eea9ded9fc620384b01d2146b671a6e39f3c2755cdb5e319e28cfa9336a846764736f6c63430008130033

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

00000000000000000000000000000000000000000000000000b1a2bc2ec50000000000000000000000000000000000000000000000000000007c585087238000

-----Decoded View---------------
Arg [0] : _shortFee (uint256): 50000000000000000
Arg [1] : _vestingFee (uint256): 35000000000000000

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000b1a2bc2ec50000
Arg [1] : 000000000000000000000000000000000000000000000000007c585087238000


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.