ETH Price: $3,210.75 (+2.99%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim Distributi...214012512024-12-14 14:07:5946 days ago1734185279IN
0xd9965e5c...86ac52B88
0 ETH0.001056689.08863931
Claim Distributi...212849352024-11-28 8:14:2363 days ago1732781663IN
0xd9965e5c...86ac52B88
0 ETH0.001084539.32821731
Claim Distributi...200054772024-06-02 16:58:11241 days ago1717347491IN
0xd9965e5c...86ac52B88
0 ETH0.0017219114.81036341
Claim Distributi...197958682024-05-04 9:32:23271 days ago1714815143IN
0xd9965e5c...86ac52B88
0 ETH0.000731696.29335004
Claim Distributi...197812052024-05-02 8:20:23273 days ago1714638023IN
0xd9965e5c...86ac52B88
0 ETH0.000738297.44515669
Add Whitelist197521912024-04-28 7:01:11277 days ago1714287671IN
0xd9965e5c...86ac52B88
0 ETH0.000812745.44252171
Add Whitelist197013412024-04-21 4:17:47284 days ago1713673067IN
0xd9965e5c...86ac52B88
0 ETH0.001002166.71100694
Claim Distributi...196915892024-04-19 19:33:23285 days ago1713555203IN
0xd9965e5c...86ac52B88
0 ETH0.000943378.11410877
Add Whitelist196877412024-04-19 6:36:11286 days ago1713508571IN
0xd9965e5c...86ac52B88
0 ETH0.001398719.36650736
Claim Distributi...196832852024-04-18 15:37:59286 days ago1713454679IN
0xd9965e5c...86ac52B88
0 ETH0.0021860218.80417472
Set Vesting196800542024-04-18 4:47:47287 days ago1713415667IN
0xd9965e5c...86ac52B88
0 ETH0.000300098.46373326
Set Vesting196730102024-04-17 5:09:11288 days ago1713330551IN
0xd9965e5c...86ac52B88
0 ETH0.000408687.12380266
Claim Distributi...196703112024-04-16 20:05:59288 days ago1713297959IN
0xd9965e5c...86ac52B88
0 ETH0.001096389.43017554
Add Whitelist196700462024-04-16 19:12:23288 days ago1713294743IN
0xd9965e5c...86ac52B88
0 ETH0.0016047310.74697837
Claim Distributi...196686872024-04-16 14:38:11288 days ago1713278291IN
0xd9965e5c...86ac52B88
0 ETH0.0027955524.04490791
Add Whitelist196685122024-04-16 14:02:47288 days ago1713276167IN
0xd9965e5c...86ac52B88
0 ETH0.0024371416.3203156
Add Whitelist196684892024-04-16 13:57:59288 days ago1713275879IN
0xd9965e5c...86ac52B88
0 ETH0.0019579113.11112383
Claim Distributi...196667612024-04-16 8:09:47289 days ago1713254987IN
0xd9965e5c...86ac52B88
0 ETH0.000908489.16142805
Claim Distributi...196667292024-04-16 8:03:23289 days ago1713254603IN
0xd9965e5c...86ac52B88
0 ETH0.000918639.26382488
Add Whitelist196666082024-04-16 7:39:11289 days ago1713253151IN
0xd9965e5c...86ac52B88
0 ETH0.0015341710.27358586
Add Whitelist196666032024-04-16 7:38:11289 days ago1713253091IN
0xd9965e5c...86ac52B88
0 ETH0.0015816210.59131714
Add Whitelist196663252024-04-16 6:41:47289 days ago1713249707IN
0xd9965e5c...86ac52B88
0 ETH0.0015191110.17517626
Claim Distributi...195236702024-03-27 5:40:47309 days ago1711518047IN
0xd9965e5c...86ac52B88
0 ETH0.0023482820.19788768
Claim Distributi...194970252024-03-23 11:33:11313 days ago1711193591IN
0xd9965e5c...86ac52B88
0 ETH0.0019697316.94194415
Claim Distributi...194970012024-03-23 11:28:23313 days ago1711193303IN
0xd9965e5c...86ac52B88
0 ETH0.0019415716.69973521
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DecubateVesting

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
london EvmVersion
File 1 of 10 : DecubateVesting.sol
// SPDX-License-Identifier: MIT

//** Decubate Locking Contract */
//** Author Aaron & Vipin : Decubate Vesting Contract 2021.6 */

pragma solidity 0.8.10;

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

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

  /**
   *
   * @dev whitelistPools store all active whitelist members.
   *
   */

  MaxTokenTransferValue public maxTokenTransfer;
  VestingPool[] public vestingPools;

  IERC20 private _token;

  constructor(address token) {
    _token = IERC20(token);
  }

  modifier optionExists(uint256 _option) {
    require(_option < vestingPools.length, "Vesting option does not exist");
    _;
  }

  modifier userInWhitelist(uint256 _option, address _wallet) {
    require(_option < vestingPools.length, "Vesting option does not exist");
    require(
      vestingPools[_option].hasWhitelist[_wallet].active,
      "User is not in whitelist"
    );
    _;
  }

  function addVestingStrategy(
    string memory _name,
    uint256 _cliff,
    uint256 _start,
    uint256 _duration,
    uint256 _initialUnlockPercent,
    bool _revocable
  ) external override onlyOwner returns (bool) {
    VestingPool storage newStrategy = vestingPools.push();

    newStrategy.cliff = _start.add(_cliff);
    newStrategy.name = _name;
    newStrategy.start = _start;
    newStrategy.duration = _duration;
    newStrategy.initialUnlockPercent = _initialUnlockPercent;
    newStrategy.revocable = _revocable;

    return true;
  }

  function setVestingStrategy(
    uint256 _strategy,
    string memory _name,
    uint256 _cliff,
    uint256 _start,
    uint256 _duration,
    uint256 _initialUnlockPercent,
    bool _revocable
  ) external override onlyOwner returns (bool) {
    require(_strategy < vestingPools.length, "Strategy does not exist");

    VestingPool storage vest = vestingPools[_strategy];

    vest.cliff = _start.add(_cliff);
    vest.name = _name;
    vest.start = _start;
    vest.duration = _duration;
    vest.initialUnlockPercent = _initialUnlockPercent;
    vest.revocable = _revocable;

    return true;
  }

  function setMaxTokenTransfer(uint256 _amount, bool _active)
    external
    onlyOwner
    returns (bool)
  {
    maxTokenTransfer.amount = _amount;
    maxTokenTransfer.active = _active;
    return true;
  }

  function getAllVestingPools() external view returns (VestingInfo[] memory) {
    VestingInfo[] memory infoArr = new VestingInfo[](vestingPools.length);

    for (uint256 i = 0; i < vestingPools.length; i++) {
      infoArr[i] = getVestingInfo(i);
    }

    return infoArr;
  }

  /**
   *
   * @dev get vesting info
   *
   * @param {uint256} strategy of vesting info
   *
   * @return return vesting strategy
   *
   */
  function getVestingInfo(uint256 _strategy)
    public
    view
    optionExists(_strategy)
    returns (VestingInfo memory)
  {
    return
      VestingInfo({
        name: vestingPools[_strategy].name,
        cliff: vestingPools[_strategy].cliff,
        start: vestingPools[_strategy].start,
        duration: vestingPools[_strategy].duration,
        initialUnlockPercent: vestingPools[_strategy].initialUnlockPercent,
        revocable: vestingPools[_strategy].revocable
      });
  }

  /**
   *
   * @dev add the address to whitelist
   *
   * @param {address} address of the user
   *
   * @return {bool} return status of the whitelist
   *
   */
  function addWhitelist(
    address _wallet,
    uint256 _dcbAmount,
    uint256 _option
  ) public override onlyOwner optionExists(_option) returns (bool) {
    HasWhitelist storage whitelist = vestingPools[_option].hasWhitelist[
      _wallet
    ];
    require(!whitelist.active, "Whitelist already available");

    WhitelistInfo[] storage pool = vestingPools[_option].whitelistPool;

    whitelist.active = true;
    whitelist.arrIdx = pool.length;

    pool.push(
      WhitelistInfo({
        wallet: _wallet,
        dcbAmount: _dcbAmount,
        distributedAmount: 0,
        joinDate: block.timestamp,
        revoke: false,
        disabled: false
      })
    );

    emit AddWhitelist(_wallet);

    return true;
  }

  function batchAddWhitelist(
    address[] memory wallets,
    uint256[] memory amounts,
    uint256 option
  ) external onlyOwner returns (bool) {
    require(wallets.length == amounts.length, "Sizes of inputs do not match");

    for (uint256 i = 0; i < wallets.length; i++) {
      addWhitelist(wallets[i], amounts[i], option);
    }

    return true;
  }

  /**
   *
   * @dev set the address as whitelist user address
   *
   * @param {address} address of the user
   *
   * @return {bool} return status of the whitelist
   *
   */
  function setWhitelist(
    address _wallet,
    uint256 _dcbAmount,
    uint256 _option
  )
    external
    override
    onlyOwner
    userInWhitelist(_option, _wallet)
    returns (bool)
  {
    uint256 idx = vestingPools[_option].hasWhitelist[_wallet].arrIdx;
    WhitelistInfo storage info = vestingPools[_option].whitelistPool[idx];
    info.dcbAmount = _dcbAmount;

    return true;
  }

  /**
   *
   * @dev set the address as whitelist user address
   *
   * @param {address} address of the user
   *
   * @return {Whitelist} return whitelist instance
   *
   */
  function getWhitelist(uint256 _option, address _wallet)
    external
    view
    userInWhitelist(_option, _wallet)
    returns (WhitelistInfo memory)
  {
    uint256 idx = vestingPools[_option].hasWhitelist[_wallet].arrIdx;
    return vestingPools[_option].whitelistPool[idx];
  }

  /**
   *
   * @dev set token address for contract
   *
   * @param {_token} address of IERC20 instance
   * @return {bool} return status of token address
   *
   */
  function setToken(address _addr) external override onlyOwner returns (bool) {
    _token = IERC20(_addr);
    return true;
  }

  /**
   *
   * @dev getter function for deployed decubate token address
   *
   * @return {address} return deployment address of decubate token
   *
   */
  function getToken() external view override returns (address) {
    return address(_token);
  }

  /**
   *
   * @dev calculate the total vested amount by the time
   *
   * @param {address} user wallet address
   *
   * @return {uint256} return vested amount
   *
   */
  function calculateVestAmount(uint256 _option, address _wallet)
    internal
    view
    userInWhitelist(_option, _wallet)
    returns (uint256)
  {
    uint256 idx = vestingPools[_option].hasWhitelist[_wallet].arrIdx;
    WhitelistInfo memory whitelist = vestingPools[_option].whitelistPool[idx];
    VestingPool storage vest = vestingPools[_option];

    // initial unlock
      uint256 initial = whitelist.dcbAmount.mul(vest.initialUnlockPercent).div(
        1000
      );

    if(whitelist.revoke) {
      return whitelist.dcbAmount;
    }
    if (block.timestamp < vest.start) {
      return 0;
    } 
    else if(block.timestamp >= vest.start && block.timestamp < vest.cliff) {
      return initial;
    } 
    else if(block.timestamp >= vest.cliff && block.timestamp < vest.cliff.add(vest.duration)) {
      // remaining locked token
      uint256 remaining = whitelist.dcbAmount.sub(initial); //More accurate

      // return initial unlock + remaining x % of time passed
      return
        initial +
        remaining.mul(block.timestamp.sub(vest.cliff)).div(vest.duration);
    } 
    else {
      return whitelist.dcbAmount;
    }
  }

  /**
   *
   * @dev calculate releasable amount by subtracting distributed amount
   *
   * @param {address} investor wallet address
   *
   * @return {uint256} releasable amount of the whitelist
   *
   */
  function calculateReleasableAmount(uint256 _option, address _wallet)
    internal
    view
    userInWhitelist(_option, _wallet)
    returns (uint256)
  {
    uint256 idx = vestingPools[_option].hasWhitelist[_wallet].arrIdx;
    return
      calculateVestAmount(_option, _wallet).sub(
        vestingPools[_option].whitelistPool[idx].distributedAmount
      );
  }

  /**
   *
   * @dev distribute the token to the investors
   *
   * @param {address} wallet address of the investor
   *
   * @return {bool} return status of distribution
   *
   */
  function claimDistribution(uint256 _option, address _wallet)
    external
    override
    nonReentrant
    returns (bool)
  {
    uint256 idx = vestingPools[_option].hasWhitelist[_wallet].arrIdx;
    WhitelistInfo storage whitelist = vestingPools[_option].whitelistPool[idx];

    require(!whitelist.disabled, "User is disabled from claiming token");

    uint256 releaseAmount = calculateReleasableAmount(_option, _wallet);

    require(releaseAmount > 0, "Zero amount to claim");

    if (maxTokenTransfer.active && releaseAmount > maxTokenTransfer.amount) {
      releaseAmount = maxTokenTransfer.amount;
    }

    whitelist.distributedAmount = whitelist.distributedAmount.add(
      releaseAmount
    );

    _token.transfer(_wallet, releaseAmount);

    emit Claim(_wallet, releaseAmount, _option, block.timestamp);

    return true;
  }

  /**
   *
   * @dev allow the owner to revoke the vesting
   *
   */
  function revoke(uint256 _option, address _wallet)
    public
    onlyOwner
    userInWhitelist(_option, _wallet)
  {
    uint256 idx = vestingPools[_option].hasWhitelist[_wallet].arrIdx;
    WhitelistInfo storage whitelist = vestingPools[_option].whitelistPool[idx];

    require(vestingPools[_option].revocable, "Strategy is not revocable");
    require(!whitelist.revoke, "already revoked");

    whitelist.revoke = true;

    emit Revoked(_wallet);
  }

  /**
   *
   * @dev allow the owner to enable/disable the vesting
   *
   * User will not be able to claim his tokens, but claimable balance remains unchanged
   *
   */
  function setVesting(uint256 _option, address _wallet, bool _status)
    public
    onlyOwner
    userInWhitelist(_option, _wallet)
  {
    uint256 idx = vestingPools[_option].hasWhitelist[_wallet].arrIdx;
    WhitelistInfo storage whitelist = vestingPools[_option].whitelistPool[idx];

    whitelist.disabled = _status;

    emit StatusChanged(_wallet,_status);
  }

  /**
   *
   * @dev Allow owner to transfer token from contract
   *
   * @param {address} contract address of corresponding token
   * @param {uint256} amount of token to be transferred
   *
   * This is a generalized function which can be used to transfer any accidentally
   * sent (including DCB) out of the contract to wowner
   *
   */
  function transferToken(address _addr, uint256 _amount)
    external
    onlyOwner
    returns (bool)
  {
    IERC20 token = IERC20(_addr);
    bool success = token.transfer(address(owner()), _amount);
    return success;
  }

  /**
   *
   * @dev Retrieve total amount of token from the contract
   *
   * @param {address} address of the token
   *
   * @return {uint256} total amount of token
   *
   */
  function getTotalToken(address _addr) external view returns (uint256) {
    IERC20 token = IERC20(_addr);
    return token.balanceOf(address(this));
  }

  function hasWhitelist(uint256 _option, address _wallet)
    external
    view
    returns (bool)
  {
    return vestingPools[_option].hasWhitelist[_wallet].active;
  }

  function getVestAmount(uint256 _option, address _wallet)
    external
    view
    override
    returns (uint256)
  {
    return calculateVestAmount(_option, _wallet);
  }

  function getReleasableAmount(uint256 _option, address _wallet)
    external
    view
    override
    returns (uint256)
  {
    return calculateReleasableAmount(_option, _wallet);
  }

  function getWhitelistPool(uint256 _option)
    external
    view
    optionExists(_option)
    returns (WhitelistInfo[] memory)
  {
    return vestingPools[_option].whitelistPool;
  }
}

File 2 of 10 : IDecubateVesting.sol
// SPDX-License-Identifier: MIT

//** Decubate Vesting Factory Contract */
//** Author Vipin : Decubate Crowfunding 2021.5 */

pragma solidity ^0.8.8;

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

interface IDecubateVesting {
  /**
   *
   * @dev this event will call when new token added to the contract
   * currently, we are supporting DCB token and this will be used for future implementation
   *
   */
  event AddToken(address indexed token);

  /**
   *
   * @dev this event will be called each time a user claims some tokens
   *
   */
  event Claim(
    address indexed token,
    uint256 amount,
    uint256 indexed option,
    uint256 time
  );

  /**
   *
   * @dev this event calls when new whitelist member joined to the pool
   *
   */
  event AddWhitelist(address indexed wallet);

  /**
   *
   * @dev this event call when distirbuted token revoked
   *
   */
  event Revoked(address indexed wallet);

  /**
   *
   * @dev this event call when token claim status is changed for a user
   *
   */
  event StatusChanged(address indexed wallet, bool status);

  /**
   *
   * @dev define vesting informations like x%, x months
   *
   */
  struct VestingInfo {
    string name;
    uint256 cliff;
    uint256 start;
    uint256 duration;
    uint256 initialUnlockPercent;
    bool revocable;
  }

  struct VestingPool {
    string name;
    uint256 cliff;
    uint256 start;
    uint256 duration;
    uint256 initialUnlockPercent;
    WhitelistInfo[] whitelistPool;
    mapping(address => HasWhitelist) hasWhitelist;
    bool revocable;
  }

  struct MaxTokenTransferValue {
    uint256 amount;
    bool active;
  }

  /**
   *
   * @dev WhiteInfo is the struct type which store whitelist information
   *
   */
  struct WhitelistInfo {
    address wallet;
    uint256 dcbAmount;
    uint256 distributedAmount;
    uint256 joinDate;
    bool revoke;
    bool disabled;
  }

  struct HasWhitelist {
    uint256 arrIdx;
    bool active;
  }

  /**
   *
   * inherit functions will be used in contract
   *
   */

  function getVestAmount(uint256 _option, address _wallet)
    external
    view
    returns (uint256);

  function getReleasableAmount(uint256 _option, address _wallet)
    external
    view
    returns (uint256);

  function getVestingInfo(uint256 _strategy)
    external
    view
    returns (VestingInfo memory);

  function addVestingStrategy(
    string memory _name,
    uint256 _cliff,
    uint256 _start,
    uint256 _duration,
    uint256 _initialUnlockPercent,
    bool _revocable
  ) external returns (bool);

  function setVestingStrategy(
    uint256 _strategy,
    string memory _name,
    uint256 _cliff,
    uint256 _start,
    uint256 _duration,
    uint256 _initialUnlockPercent,
    bool _revocable
  ) external returns (bool);

  function addWhitelist(
    address _wallet,
    uint256 _dcbAmount,
    uint256 _option
  ) external returns (bool);

  function getWhitelist(uint256 _option, address _wallet)
    external
    view
    returns (WhitelistInfo memory);

  function setWhitelist(
    address _wallet,
    uint256 _dcbAmount,
    uint256 _option
  ) external returns (bool);

  function setToken(address _addr) external returns (bool);

  function getToken() external view returns (address);

  function claimDistribution(uint256 _option, address _wallet)
    external
    returns (bool);

  function getWhitelistPool(uint256 _option)
    external
    view
    returns (WhitelistInfo[] memory);
}

File 3 of 10 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

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 generally not needed starting with Solidity 0.8, since 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 subtraction 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 10 : 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;
    }
}

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

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

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

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

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

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

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

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 6 of 10 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.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));
        }
    }

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @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 10 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

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

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

File 9 of 10 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

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 making 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 10 of 10 : 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);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"token","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"}],"name":"AddToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"wallet","type":"address"}],"name":"AddWhitelist","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"option","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"time","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"wallet","type":"address"}],"name":"Revoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"wallet","type":"address"},{"indexed":false,"internalType":"bool","name":"status","type":"bool"}],"name":"StatusChanged","type":"event"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"uint256","name":"_cliff","type":"uint256"},{"internalType":"uint256","name":"_start","type":"uint256"},{"internalType":"uint256","name":"_duration","type":"uint256"},{"internalType":"uint256","name":"_initialUnlockPercent","type":"uint256"},{"internalType":"bool","name":"_revocable","type":"bool"}],"name":"addVestingStrategy","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"},{"internalType":"uint256","name":"_dcbAmount","type":"uint256"},{"internalType":"uint256","name":"_option","type":"uint256"}],"name":"addWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"wallets","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"uint256","name":"option","type":"uint256"}],"name":"batchAddWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_option","type":"uint256"},{"internalType":"address","name":"_wallet","type":"address"}],"name":"claimDistribution","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAllVestingPools","outputs":[{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"cliff","type":"uint256"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"uint256","name":"initialUnlockPercent","type":"uint256"},{"internalType":"bool","name":"revocable","type":"bool"}],"internalType":"struct IDecubateVesting.VestingInfo[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_option","type":"uint256"},{"internalType":"address","name":"_wallet","type":"address"}],"name":"getReleasableAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"getTotalToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_option","type":"uint256"},{"internalType":"address","name":"_wallet","type":"address"}],"name":"getVestAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_strategy","type":"uint256"}],"name":"getVestingInfo","outputs":[{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"cliff","type":"uint256"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"uint256","name":"initialUnlockPercent","type":"uint256"},{"internalType":"bool","name":"revocable","type":"bool"}],"internalType":"struct IDecubateVesting.VestingInfo","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_option","type":"uint256"},{"internalType":"address","name":"_wallet","type":"address"}],"name":"getWhitelist","outputs":[{"components":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint256","name":"dcbAmount","type":"uint256"},{"internalType":"uint256","name":"distributedAmount","type":"uint256"},{"internalType":"uint256","name":"joinDate","type":"uint256"},{"internalType":"bool","name":"revoke","type":"bool"},{"internalType":"bool","name":"disabled","type":"bool"}],"internalType":"struct IDecubateVesting.WhitelistInfo","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_option","type":"uint256"}],"name":"getWhitelistPool","outputs":[{"components":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint256","name":"dcbAmount","type":"uint256"},{"internalType":"uint256","name":"distributedAmount","type":"uint256"},{"internalType":"uint256","name":"joinDate","type":"uint256"},{"internalType":"bool","name":"revoke","type":"bool"},{"internalType":"bool","name":"disabled","type":"bool"}],"internalType":"struct IDecubateVesting.WhitelistInfo[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_option","type":"uint256"},{"internalType":"address","name":"_wallet","type":"address"}],"name":"hasWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokenTransfer","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bool","name":"active","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_option","type":"uint256"},{"internalType":"address","name":"_wallet","type":"address"}],"name":"revoke","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bool","name":"_active","type":"bool"}],"name":"setMaxTokenTransfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"setToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_option","type":"uint256"},{"internalType":"address","name":"_wallet","type":"address"},{"internalType":"bool","name":"_status","type":"bool"}],"name":"setVesting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_strategy","type":"uint256"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"uint256","name":"_cliff","type":"uint256"},{"internalType":"uint256","name":"_start","type":"uint256"},{"internalType":"uint256","name":"_duration","type":"uint256"},{"internalType":"uint256","name":"_initialUnlockPercent","type":"uint256"},{"internalType":"bool","name":"_revocable","type":"bool"}],"name":"setVestingStrategy","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"},{"internalType":"uint256","name":"_dcbAmount","type":"uint256"},{"internalType":"uint256","name":"_option","type":"uint256"}],"name":"setWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transferToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"vestingPools","outputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"cliff","type":"uint256"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"uint256","name":"initialUnlockPercent","type":"uint256"},{"internalType":"bool","name":"revocable","type":"bool"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b50604051620026b9380380620026b98339810160408190526200003491620000b9565b6200003f3362000069565b60018055600580546001600160a01b0319166001600160a01b0392909216919091179055620000eb565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208284031215620000cc57600080fd5b81516001600160a01b0381168114620000e457600080fd5b9392505050565b6125be80620000fb6000396000f3fe608060405234801561001057600080fd5b50600436106101735760003560e01c80639627e1f7116100de578063c47c9f3c11610097578063e54b17ba11610071578063e54b17ba1461035f578063ea0cdeff1461037f578063f2fde38b146103a5578063ffbd30bc146103b857600080fd5b8063c47c9f3c14610319578063c5460e7114610339578063cecd8b0a1461034c57600080fd5b80639627e1f71461029557806397d21c1e146102a8578063993b1893146102bb578063a19d21b0146102e0578063a5902fac146102f3578063afee1ff11461030657600080fd5b806340349ced1161013057806340349ced1461022057806369f1f052146102335780636abfd40714610254578063715018a61461026757806379bf4a631461026f5780638da5cb5b1461028457600080fd5b80631072cbea14610178578063144fa6d7146101a057806320d154da146101b357806320f6b0a9146101c857806321df0da7146101e85780633801381b1461020d575b600080fd5b61018b610186366004611dc0565b6103cb565b60405190151581526020015b60405180910390f35b61018b6101ae366004611dea565b610475565b6101c66101c1366004611e05565b6104a3565b005b6101db6101d6366004611e31565b6106c7565b6040516101979190611eec565b6005546001600160a01b03165b6040516001600160a01b039091168152602001610197565b61018b61021b366004611eff565b6108c1565b6101c661022e366004611f40565b6109ea565b610246610241366004611e05565b610b67565b604051908152602001610197565b61018b610262366004611f80565b610b7a565b6101c6610ba1565b610277610bb5565b6040516101979190611fb0565b6000546001600160a01b03166101f5565b61018b6102a3366004611eff565b610c8b565b61018b6102b63660046120c9565b610ed6565b6102ce6102c9366004611e31565b610fb4565b6040516101979695949392919061214b565b6102466102ee366004611dea565b61108c565b61018b610301366004611e05565b6110f9565b61018b610314366004611e05565b61139b565b61032c610327366004611e05565b6113e7565b60405161019791906121cd565b610246610347366004611e05565b611595565b61018b61035a36600461226a565b6115a1565b61037261036d366004611e31565b611663565b6040516101979190612333565b600254600354610390919060ff1682565b60408051928352901515602083015201610197565b6101c66103b3366004611dea565b611755565b61018b6103c6366004612381565b6117ce565b60006103d5611861565b8260006001600160a01b03821663a9059cbb6103f96000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018790526044016020604051808303816000875af1158015610446573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061046a91906123f8565b925050505b92915050565b600061047f611861565b50600580546001600160a01b0319166001600160a01b03831617905560015b919050565b6104ab611861565b6004548290829082106104d95760405162461bcd60e51b81526004016104d090612415565b60405180910390fd5b600482815481106104ec576104ec61244c565b600091825260208083206001600160a01b03851684526006600890930201919091019052604090206001015460ff166105375760405162461bcd60e51b81526004016104d090612462565b60006004858154811061054c5761054c61244c565b600091825260208083206001600160a01b03881684526006600890930201919091019052604081205460048054919350908790811061058d5761058d61244c565b906000526020600020906008020160050182815481106105af576105af61244c565b90600052602060002090600502019050600486815481106105d2576105d261244c565b600091825260209091206007600890920201015460ff166106355760405162461bcd60e51b815260206004820152601960248201527f5374726174656779206973206e6f74207265766f6361626c650000000000000060448201526064016104d0565b600481015460ff161561067c5760405162461bcd60e51b815260206004820152600f60248201526e185b1c9958591e481c995d9bdad959608a1b60448201526064016104d0565b60048101805460ff191660011790556040516001600160a01b038616907fb6fa8b8bd5eab60f292eca876e3ef90722275b785309d84b1de113ce0b8c4e7490600090a2505050505050565b6107026040518060c0016040528060608152602001600081526020016000815260200160008152602001600081526020016000151581525090565b600454829081106107255760405162461bcd60e51b81526004016104d090612415565b6040518060c00160405280600485815481106107435761074361244c565b9060005260206000209060080201600001805461075f90612499565b80601f016020809104026020016040519081016040528092919081815260200182805461078b90612499565b80156107d85780601f106107ad576101008083540402835291602001916107d8565b820191906000526020600020905b8154815290600101906020018083116107bb57829003601f168201915b50505050508152602001600485815481106107f5576107f561244c565b90600052602060002090600802016001015481526020016004858154811061081f5761081f61244c565b9060005260206000209060080201600201548152602001600485815481106108495761084961244c565b9060005260206000209060080201600301548152602001600485815481106108735761087361244c565b90600052602060002090600802016004015481526020016004858154811061089d5761089d61244c565b600091825260209091206007600890920201015460ff161515905291505b50919050565b60006108cb611861565b6004548290859082106108f05760405162461bcd60e51b81526004016104d090612415565b600482815481106109035761090361244c565b600091825260208083206001600160a01b03851684526006600890930201919091019052604090206001015460ff1661094e5760405162461bcd60e51b81526004016104d090612462565b6000600485815481106109635761096361244c565b600091825260208083206001600160a01b038b168452600660089093020191909101905260408120546004805491935090879081106109a4576109a461244c565b906000526020600020906008020160050182815481106109c6576109c661244c565b60009182526020909120600160059092020181018890559450505050509392505050565b6109f2611861565b600454839083908210610a175760405162461bcd60e51b81526004016104d090612415565b60048281548110610a2a57610a2a61244c565b600091825260208083206001600160a01b03851684526006600890930201919091019052604090206001015460ff16610a755760405162461bcd60e51b81526004016104d090612462565b600060048681548110610a8a57610a8a61244c565b600091825260208083206001600160a01b038916845260066008909302019190910190526040812054600480549193509088908110610acb57610acb61244c565b90600052602060002090600802016005018281548110610aed57610aed61244c565b90600052602060002090600502019050848160040160016101000a81548160ff021916908315150217905550856001600160a01b03167f6303039f3f903247906337ae51ea67063408be3dbc7a2f517044e91404293a6186604051610b56911515815260200190565b60405180910390a250505050505050565b6000610b7383836118bb565b9392505050565b6000610b84611861565b506002919091556003805460ff1916911515919091179055600190565b610ba9611861565b610bb36000611b57565b565b60045460609060009067ffffffffffffffff811115610bd657610bd6612012565b604051908082528060200260200182016040528015610c4257816020015b610c2f6040518060c0016040528060608152602001600081526020016000815260200160008152602001600081526020016000151581525090565b815260200190600190039081610bf45790505b50905060005b6004548110156108bb57610c5b816106c7565b828281518110610c6d57610c6d61244c565b60200260200101819052508080610c83906124e4565b915050610c48565b6000610c95611861565b60045482908110610cb85760405162461bcd60e51b81526004016104d090612415565b600060048481548110610ccd57610ccd61244c565b600091825260208083206001600160a01b038a168452600660089093020191909101905260409020600181015490915060ff1615610d4d5760405162461bcd60e51b815260206004820152601b60248201527f57686974656c69737420616c726561647920617661696c61626c65000000000060448201526064016104d0565b600060048581548110610d6257610d6261244c565b9060005260206000209060080201600501905060018260010160006101000a81548160ff02191690831515021790555080805490508260000181905550806040518060c00160405280896001600160a01b031681526020018881526020016000815260200142815260200160001515815260200160001515815250908060018154018082558091505060019003906000526020600020906005020160009091909190915060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060208201518160010155604082015181600201556060820151816003015560808201518160040160006101000a81548160ff02191690831515021790555060a08201518160040160016101000a81548160ff0219169083151502179055505050866001600160a01b03167fe463fa6bdecb16f96f58191d902152633214e760ea443684105a7eef1ad16b9d60405160405180910390a25060019695505050505050565b6000610ee0611861565b6004548810610f315760405162461bcd60e51b815260206004820152601760248201527f537472617465677920646f6573206e6f7420657869737400000000000000000060448201526064016104d0565b600060048981548110610f4657610f4661244c565b90600052602060002090600802019050610f698787611ba790919063ffffffff16565b60018201558751610f8090829060208b0190611d10565b50600281019590955550600384019290925560048301556007909101805460ff191691151591909117905550600192915050565b60048181548110610fc457600080fd5b9060005260206000209060080201600091509050806000018054610fe790612499565b80601f016020809104026020016040519081016040528092919081815260200182805461101390612499565b80156110605780601f1061103557610100808354040283529160200191611060565b820191906000526020600020905b81548152906001019060200180831161104357829003601f168201915b505050600184015460028501546003860154600487015460079097015495969295919450925060ff1686565b6040516370a0823160e01b815230600482015260009082906001600160a01b038216906370a0823190602401602060405180830381865afa1580156110d5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b7391906124ff565b60006002600154141561114e5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104d0565b600260018190555060006004848154811061116b5761116b61244c565b600091825260208083206001600160a01b0387168452600660089093020191909101905260408120546004805491935090869081106111ac576111ac61244c565b906000526020600020906008020160050182815481106111ce576111ce61244c565b906000526020600020906005020190508060040160019054906101000a900460ff16156112495760405162461bcd60e51b8152602060048201526024808201527f557365722069732064697361626c65642066726f6d20636c61696d696e67207460448201526337b5b2b760e11b60648201526084016104d0565b60006112558686611bb3565b90506000811161129e5760405162461bcd60e51b81526020600482015260146024820152735a65726f20616d6f756e7420746f20636c61696d60601b60448201526064016104d0565b60035460ff1680156112b1575060025481115b156112bb57506002545b60028201546112ca9082611ba7565b600283015560055460405163a9059cbb60e01b81526001600160a01b038781166004830152602482018490529091169063a9059cbb906044016020604051808303816000875af1158015611322573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061134691906123f8565b506040805182815242602082015287916001600160a01b038816917f45c072aa05b9853b5a993de7a28bc332ee01404a628cec1a23ce0f659f842ef1910160405180910390a350506001808055949350505050565b6000600483815481106113b0576113b061244c565b600091825260208083206001600160a01b03861684526006600890930201919091019052604090206001015460ff16905092915050565b6040805160c081018252600080825260208201819052918101829052606081018290526080810182905260a081019190915260045483908390821061143e5760405162461bcd60e51b81526004016104d090612415565b600482815481106114515761145161244c565b600091825260208083206001600160a01b03851684526006600890930201919091019052604090206001015460ff1661149c5760405162461bcd60e51b81526004016104d090612462565b6000600486815481106114b1576114b161244c565b90600052602060002090600802016006016000866001600160a01b03166001600160a01b03168152602001908152602001600020600001549050600486815481106114fe576114fe61244c565b906000526020600020906008020160050181815481106115205761152061244c565b60009182526020918290206040805160c081018252600590930290910180546001600160a01b031683526001810154938301939093526002830154908201526003820154606082015260049091015460ff8082161515608084015261010090910416151560a08201529350505b505092915050565b6000610b738383611bb3565b60006115ab611861565b82518451146115fc5760405162461bcd60e51b815260206004820152601c60248201527f53697a6573206f6620696e7075747320646f206e6f74206d617463680000000060448201526064016104d0565b60005b84518110156116585761164585828151811061161d5761161d61244c565b60200260200101518583815181106116375761163761244c565b602002602001015185610c8b565b5080611650816124e4565b9150506115ff565b506001949350505050565b600454606090829081106116895760405162461bcd60e51b81526004016104d090612415565b6004838154811061169c5761169c61244c565b9060005260206000209060080201600501805480602002602001604051908101604052809291908181526020016000905b828210156117495760008481526020908190206040805160c0810182526005860290920180546001600160a01b0316835260018082015484860152600282015492840192909252600381015460608401526004015460ff8082161515608085015261010090910416151560a083015290835290920191016116cd565b50505050915050919050565b61175d611861565b6001600160a01b0381166117c25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104d0565b6117cb81611b57565b50565b60006117d8611861565b600480546001810182556000919091526008027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b016118178688611ba7565b6001820155875161182e90829060208b0190611d10565b50600281019590955550600384019290925560048301556007909101805460ff1916911515919091179055506001919050565b6000546001600160a01b03163314610bb35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104d0565b6000828260048054905082106118e35760405162461bcd60e51b81526004016104d090612415565b600482815481106118f6576118f661244c565b600091825260208083206001600160a01b03851684526006600890930201919091019052604090206001015460ff166119415760405162461bcd60e51b81526004016104d090612462565b6000600486815481106119565761195661244c565b600091825260208083206001600160a01b0389168452600660089093020191909101905260408120546004805491935090889081106119975761199761244c565b906000526020600020906008020160050182815481106119b9576119b961244c565b600091825260208083206040805160c081018252600590940290910180546001600160a01b031684526001810154928401929092526002820154908301526003810154606083015260049081015460ff8082161515608085015261010090910416151560a083015280549193509089908110611a3757611a3761244c565b906000526020600020906008020190506000611a706103e8611a6a84600401548660200151611cec90919063ffffffff16565b90611cf8565b9050826080015115611a8b57505060200151935061158d9050565b8160020154421015611aa457600096505050505061158d565b81600201544210158015611abb5750816001015442105b15611acb57955061158d92505050565b81600101544210158015611af0575060038201546001830154611aed91611ba7565b42105b15611b48576020830151600090611b079083611d04565b9050611b328360030154611a6a611b2b866001015442611d0490919063ffffffff16565b8490611cec565b611b3c9083612518565b9750505050505061158d565b505060200151935061158d9050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000610b738284612518565b600082826004805490508210611bdb5760405162461bcd60e51b81526004016104d090612415565b60048281548110611bee57611bee61244c565b600091825260208083206001600160a01b03851684526006600890930201919091019052604090206001015460ff16611c395760405162461bcd60e51b81526004016104d090612462565b600060048681548110611c4e57611c4e61244c565b90600052602060002090600802016006016000866001600160a01b03166001600160a01b03168152602001908152602001600020600001549050611ce260048781548110611c9e57611c9e61244c565b90600052602060002090600802016005018281548110611cc057611cc061244c565b906000526020600020906005020160020154611cdc88886118bb565b90611d04565b9695505050505050565b6000610b738284612530565b6000610b73828461254f565b6000610b738284612571565b828054611d1c90612499565b90600052602060002090601f016020900481019282611d3e5760008555611d84565b82601f10611d5757805160ff1916838001178555611d84565b82800160010185558215611d84579182015b82811115611d84578251825591602001919060010190611d69565b50611d90929150611d94565b5090565b5b80821115611d905760008155600101611d95565b80356001600160a01b038116811461049e57600080fd5b60008060408385031215611dd357600080fd5b611ddc83611da9565b946020939093013593505050565b600060208284031215611dfc57600080fd5b610b7382611da9565b60008060408385031215611e1857600080fd5b82359150611e2860208401611da9565b90509250929050565b600060208284031215611e4357600080fd5b5035919050565b6000815180845260005b81811015611e7057602081850181015186830182015201611e54565b81811115611e82576000602083870101525b50601f01601f19169290920160200192915050565b6000815160c08452611eac60c0850182611e4a565b90506020830151602085015260408301516040850152606083015160608501526080830151608085015260a0830151151560a08501528091505092915050565b602081526000610b736020830184611e97565b600080600060608486031215611f1457600080fd5b611f1d84611da9565b95602085013595506040909401359392505050565b80151581146117cb57600080fd5b600080600060608486031215611f5557600080fd5b83359250611f6560208501611da9565b91506040840135611f7581611f32565b809150509250925092565b60008060408385031215611f9357600080fd5b823591506020830135611fa581611f32565b809150509250929050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b8281101561200557603f19888603018452611ff3858351611e97565b94509285019290850190600101611fd7565b5092979650505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561205157612051612012565b604052919050565b600082601f83011261206a57600080fd5b813567ffffffffffffffff81111561208457612084612012565b612097601f8201601f1916602001612028565b8181528460208386010111156120ac57600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600080600060e0888a0312156120e457600080fd5b87359650602088013567ffffffffffffffff81111561210257600080fd5b61210e8a828b01612059565b96505060408801359450606088013593506080880135925060a0880135915060c088013561213b81611f32565b8091505092959891949750929550565b60c08152600061215e60c0830189611e4a565b602083019790975250604081019490945260608401929092526080830152151560a090910152919050565b80516001600160a01b0316825260208082015190830152604080820151908301526060808201519083015260808082015115159083015260a0908101511515910152565b60c0810161046f8284612189565b600067ffffffffffffffff8211156121f5576121f5612012565b5060051b60200190565b600082601f83011261221057600080fd5b81356020612225612220836121db565b612028565b82815260059290921b8401810191818101908684111561224457600080fd5b8286015b8481101561225f5780358352918301918301612248565b509695505050505050565b60008060006060848603121561227f57600080fd5b833567ffffffffffffffff8082111561229757600080fd5b818601915086601f8301126122ab57600080fd5b813560206122bb612220836121db565b82815260059290921b8401810191818101908a8411156122da57600080fd5b948201945b838610156122ff576122f086611da9565b825294820194908201906122df565b9750508701359250508082111561231557600080fd5b50612322868287016121ff565b925050604084013590509250925092565b6020808252825182820181905260009190848201906040850190845b8181101561237557612362838551612189565b9284019260c0929092019160010161234f565b50909695505050505050565b60008060008060008060c0878903121561239a57600080fd5b863567ffffffffffffffff8111156123b157600080fd5b6123bd89828a01612059565b9650506020870135945060408701359350606087013592506080870135915060a08701356123ea81611f32565b809150509295509295509295565b60006020828403121561240a57600080fd5b8151610b7381611f32565b6020808252601d908201527f56657374696e67206f7074696f6e20646f6573206e6f74206578697374000000604082015260600190565b634e487b7160e01b600052603260045260246000fd5b60208082526018908201527f55736572206973206e6f7420696e2077686974656c6973740000000000000000604082015260600190565b600181811c908216806124ad57607f821691505b602082108114156108bb57634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156124f8576124f86124ce565b5060010190565b60006020828403121561251157600080fd5b5051919050565b6000821982111561252b5761252b6124ce565b500190565b600081600019048311821515161561254a5761254a6124ce565b500290565b60008261256c57634e487b7160e01b600052601260045260246000fd5b500490565b600082821015612583576125836124ce565b50039056fea264697066735822122031b6f694fbc7825720694fcd8f6f006c8fd80527873fd205daffd05ea427182164736f6c634300080a0033000000000000000000000000549020a9cb845220d66d3e9c6d9f9ef61c981102

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101735760003560e01c80639627e1f7116100de578063c47c9f3c11610097578063e54b17ba11610071578063e54b17ba1461035f578063ea0cdeff1461037f578063f2fde38b146103a5578063ffbd30bc146103b857600080fd5b8063c47c9f3c14610319578063c5460e7114610339578063cecd8b0a1461034c57600080fd5b80639627e1f71461029557806397d21c1e146102a8578063993b1893146102bb578063a19d21b0146102e0578063a5902fac146102f3578063afee1ff11461030657600080fd5b806340349ced1161013057806340349ced1461022057806369f1f052146102335780636abfd40714610254578063715018a61461026757806379bf4a631461026f5780638da5cb5b1461028457600080fd5b80631072cbea14610178578063144fa6d7146101a057806320d154da146101b357806320f6b0a9146101c857806321df0da7146101e85780633801381b1461020d575b600080fd5b61018b610186366004611dc0565b6103cb565b60405190151581526020015b60405180910390f35b61018b6101ae366004611dea565b610475565b6101c66101c1366004611e05565b6104a3565b005b6101db6101d6366004611e31565b6106c7565b6040516101979190611eec565b6005546001600160a01b03165b6040516001600160a01b039091168152602001610197565b61018b61021b366004611eff565b6108c1565b6101c661022e366004611f40565b6109ea565b610246610241366004611e05565b610b67565b604051908152602001610197565b61018b610262366004611f80565b610b7a565b6101c6610ba1565b610277610bb5565b6040516101979190611fb0565b6000546001600160a01b03166101f5565b61018b6102a3366004611eff565b610c8b565b61018b6102b63660046120c9565b610ed6565b6102ce6102c9366004611e31565b610fb4565b6040516101979695949392919061214b565b6102466102ee366004611dea565b61108c565b61018b610301366004611e05565b6110f9565b61018b610314366004611e05565b61139b565b61032c610327366004611e05565b6113e7565b60405161019791906121cd565b610246610347366004611e05565b611595565b61018b61035a36600461226a565b6115a1565b61037261036d366004611e31565b611663565b6040516101979190612333565b600254600354610390919060ff1682565b60408051928352901515602083015201610197565b6101c66103b3366004611dea565b611755565b61018b6103c6366004612381565b6117ce565b60006103d5611861565b8260006001600160a01b03821663a9059cbb6103f96000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018790526044016020604051808303816000875af1158015610446573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061046a91906123f8565b925050505b92915050565b600061047f611861565b50600580546001600160a01b0319166001600160a01b03831617905560015b919050565b6104ab611861565b6004548290829082106104d95760405162461bcd60e51b81526004016104d090612415565b60405180910390fd5b600482815481106104ec576104ec61244c565b600091825260208083206001600160a01b03851684526006600890930201919091019052604090206001015460ff166105375760405162461bcd60e51b81526004016104d090612462565b60006004858154811061054c5761054c61244c565b600091825260208083206001600160a01b03881684526006600890930201919091019052604081205460048054919350908790811061058d5761058d61244c565b906000526020600020906008020160050182815481106105af576105af61244c565b90600052602060002090600502019050600486815481106105d2576105d261244c565b600091825260209091206007600890920201015460ff166106355760405162461bcd60e51b815260206004820152601960248201527f5374726174656779206973206e6f74207265766f6361626c650000000000000060448201526064016104d0565b600481015460ff161561067c5760405162461bcd60e51b815260206004820152600f60248201526e185b1c9958591e481c995d9bdad959608a1b60448201526064016104d0565b60048101805460ff191660011790556040516001600160a01b038616907fb6fa8b8bd5eab60f292eca876e3ef90722275b785309d84b1de113ce0b8c4e7490600090a2505050505050565b6107026040518060c0016040528060608152602001600081526020016000815260200160008152602001600081526020016000151581525090565b600454829081106107255760405162461bcd60e51b81526004016104d090612415565b6040518060c00160405280600485815481106107435761074361244c565b9060005260206000209060080201600001805461075f90612499565b80601f016020809104026020016040519081016040528092919081815260200182805461078b90612499565b80156107d85780601f106107ad576101008083540402835291602001916107d8565b820191906000526020600020905b8154815290600101906020018083116107bb57829003601f168201915b50505050508152602001600485815481106107f5576107f561244c565b90600052602060002090600802016001015481526020016004858154811061081f5761081f61244c565b9060005260206000209060080201600201548152602001600485815481106108495761084961244c565b9060005260206000209060080201600301548152602001600485815481106108735761087361244c565b90600052602060002090600802016004015481526020016004858154811061089d5761089d61244c565b600091825260209091206007600890920201015460ff161515905291505b50919050565b60006108cb611861565b6004548290859082106108f05760405162461bcd60e51b81526004016104d090612415565b600482815481106109035761090361244c565b600091825260208083206001600160a01b03851684526006600890930201919091019052604090206001015460ff1661094e5760405162461bcd60e51b81526004016104d090612462565b6000600485815481106109635761096361244c565b600091825260208083206001600160a01b038b168452600660089093020191909101905260408120546004805491935090879081106109a4576109a461244c565b906000526020600020906008020160050182815481106109c6576109c661244c565b60009182526020909120600160059092020181018890559450505050509392505050565b6109f2611861565b600454839083908210610a175760405162461bcd60e51b81526004016104d090612415565b60048281548110610a2a57610a2a61244c565b600091825260208083206001600160a01b03851684526006600890930201919091019052604090206001015460ff16610a755760405162461bcd60e51b81526004016104d090612462565b600060048681548110610a8a57610a8a61244c565b600091825260208083206001600160a01b038916845260066008909302019190910190526040812054600480549193509088908110610acb57610acb61244c565b90600052602060002090600802016005018281548110610aed57610aed61244c565b90600052602060002090600502019050848160040160016101000a81548160ff021916908315150217905550856001600160a01b03167f6303039f3f903247906337ae51ea67063408be3dbc7a2f517044e91404293a6186604051610b56911515815260200190565b60405180910390a250505050505050565b6000610b7383836118bb565b9392505050565b6000610b84611861565b506002919091556003805460ff1916911515919091179055600190565b610ba9611861565b610bb36000611b57565b565b60045460609060009067ffffffffffffffff811115610bd657610bd6612012565b604051908082528060200260200182016040528015610c4257816020015b610c2f6040518060c0016040528060608152602001600081526020016000815260200160008152602001600081526020016000151581525090565b815260200190600190039081610bf45790505b50905060005b6004548110156108bb57610c5b816106c7565b828281518110610c6d57610c6d61244c565b60200260200101819052508080610c83906124e4565b915050610c48565b6000610c95611861565b60045482908110610cb85760405162461bcd60e51b81526004016104d090612415565b600060048481548110610ccd57610ccd61244c565b600091825260208083206001600160a01b038a168452600660089093020191909101905260409020600181015490915060ff1615610d4d5760405162461bcd60e51b815260206004820152601b60248201527f57686974656c69737420616c726561647920617661696c61626c65000000000060448201526064016104d0565b600060048581548110610d6257610d6261244c565b9060005260206000209060080201600501905060018260010160006101000a81548160ff02191690831515021790555080805490508260000181905550806040518060c00160405280896001600160a01b031681526020018881526020016000815260200142815260200160001515815260200160001515815250908060018154018082558091505060019003906000526020600020906005020160009091909190915060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060208201518160010155604082015181600201556060820151816003015560808201518160040160006101000a81548160ff02191690831515021790555060a08201518160040160016101000a81548160ff0219169083151502179055505050866001600160a01b03167fe463fa6bdecb16f96f58191d902152633214e760ea443684105a7eef1ad16b9d60405160405180910390a25060019695505050505050565b6000610ee0611861565b6004548810610f315760405162461bcd60e51b815260206004820152601760248201527f537472617465677920646f6573206e6f7420657869737400000000000000000060448201526064016104d0565b600060048981548110610f4657610f4661244c565b90600052602060002090600802019050610f698787611ba790919063ffffffff16565b60018201558751610f8090829060208b0190611d10565b50600281019590955550600384019290925560048301556007909101805460ff191691151591909117905550600192915050565b60048181548110610fc457600080fd5b9060005260206000209060080201600091509050806000018054610fe790612499565b80601f016020809104026020016040519081016040528092919081815260200182805461101390612499565b80156110605780601f1061103557610100808354040283529160200191611060565b820191906000526020600020905b81548152906001019060200180831161104357829003601f168201915b505050600184015460028501546003860154600487015460079097015495969295919450925060ff1686565b6040516370a0823160e01b815230600482015260009082906001600160a01b038216906370a0823190602401602060405180830381865afa1580156110d5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b7391906124ff565b60006002600154141561114e5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104d0565b600260018190555060006004848154811061116b5761116b61244c565b600091825260208083206001600160a01b0387168452600660089093020191909101905260408120546004805491935090869081106111ac576111ac61244c565b906000526020600020906008020160050182815481106111ce576111ce61244c565b906000526020600020906005020190508060040160019054906101000a900460ff16156112495760405162461bcd60e51b8152602060048201526024808201527f557365722069732064697361626c65642066726f6d20636c61696d696e67207460448201526337b5b2b760e11b60648201526084016104d0565b60006112558686611bb3565b90506000811161129e5760405162461bcd60e51b81526020600482015260146024820152735a65726f20616d6f756e7420746f20636c61696d60601b60448201526064016104d0565b60035460ff1680156112b1575060025481115b156112bb57506002545b60028201546112ca9082611ba7565b600283015560055460405163a9059cbb60e01b81526001600160a01b038781166004830152602482018490529091169063a9059cbb906044016020604051808303816000875af1158015611322573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061134691906123f8565b506040805182815242602082015287916001600160a01b038816917f45c072aa05b9853b5a993de7a28bc332ee01404a628cec1a23ce0f659f842ef1910160405180910390a350506001808055949350505050565b6000600483815481106113b0576113b061244c565b600091825260208083206001600160a01b03861684526006600890930201919091019052604090206001015460ff16905092915050565b6040805160c081018252600080825260208201819052918101829052606081018290526080810182905260a081019190915260045483908390821061143e5760405162461bcd60e51b81526004016104d090612415565b600482815481106114515761145161244c565b600091825260208083206001600160a01b03851684526006600890930201919091019052604090206001015460ff1661149c5760405162461bcd60e51b81526004016104d090612462565b6000600486815481106114b1576114b161244c565b90600052602060002090600802016006016000866001600160a01b03166001600160a01b03168152602001908152602001600020600001549050600486815481106114fe576114fe61244c565b906000526020600020906008020160050181815481106115205761152061244c565b60009182526020918290206040805160c081018252600590930290910180546001600160a01b031683526001810154938301939093526002830154908201526003820154606082015260049091015460ff8082161515608084015261010090910416151560a08201529350505b505092915050565b6000610b738383611bb3565b60006115ab611861565b82518451146115fc5760405162461bcd60e51b815260206004820152601c60248201527f53697a6573206f6620696e7075747320646f206e6f74206d617463680000000060448201526064016104d0565b60005b84518110156116585761164585828151811061161d5761161d61244c565b60200260200101518583815181106116375761163761244c565b602002602001015185610c8b565b5080611650816124e4565b9150506115ff565b506001949350505050565b600454606090829081106116895760405162461bcd60e51b81526004016104d090612415565b6004838154811061169c5761169c61244c565b9060005260206000209060080201600501805480602002602001604051908101604052809291908181526020016000905b828210156117495760008481526020908190206040805160c0810182526005860290920180546001600160a01b0316835260018082015484860152600282015492840192909252600381015460608401526004015460ff8082161515608085015261010090910416151560a083015290835290920191016116cd565b50505050915050919050565b61175d611861565b6001600160a01b0381166117c25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104d0565b6117cb81611b57565b50565b60006117d8611861565b600480546001810182556000919091526008027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b016118178688611ba7565b6001820155875161182e90829060208b0190611d10565b50600281019590955550600384019290925560048301556007909101805460ff1916911515919091179055506001919050565b6000546001600160a01b03163314610bb35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104d0565b6000828260048054905082106118e35760405162461bcd60e51b81526004016104d090612415565b600482815481106118f6576118f661244c565b600091825260208083206001600160a01b03851684526006600890930201919091019052604090206001015460ff166119415760405162461bcd60e51b81526004016104d090612462565b6000600486815481106119565761195661244c565b600091825260208083206001600160a01b0389168452600660089093020191909101905260408120546004805491935090889081106119975761199761244c565b906000526020600020906008020160050182815481106119b9576119b961244c565b600091825260208083206040805160c081018252600590940290910180546001600160a01b031684526001810154928401929092526002820154908301526003810154606083015260049081015460ff8082161515608085015261010090910416151560a083015280549193509089908110611a3757611a3761244c565b906000526020600020906008020190506000611a706103e8611a6a84600401548660200151611cec90919063ffffffff16565b90611cf8565b9050826080015115611a8b57505060200151935061158d9050565b8160020154421015611aa457600096505050505061158d565b81600201544210158015611abb5750816001015442105b15611acb57955061158d92505050565b81600101544210158015611af0575060038201546001830154611aed91611ba7565b42105b15611b48576020830151600090611b079083611d04565b9050611b328360030154611a6a611b2b866001015442611d0490919063ffffffff16565b8490611cec565b611b3c9083612518565b9750505050505061158d565b505060200151935061158d9050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000610b738284612518565b600082826004805490508210611bdb5760405162461bcd60e51b81526004016104d090612415565b60048281548110611bee57611bee61244c565b600091825260208083206001600160a01b03851684526006600890930201919091019052604090206001015460ff16611c395760405162461bcd60e51b81526004016104d090612462565b600060048681548110611c4e57611c4e61244c565b90600052602060002090600802016006016000866001600160a01b03166001600160a01b03168152602001908152602001600020600001549050611ce260048781548110611c9e57611c9e61244c565b90600052602060002090600802016005018281548110611cc057611cc061244c565b906000526020600020906005020160020154611cdc88886118bb565b90611d04565b9695505050505050565b6000610b738284612530565b6000610b73828461254f565b6000610b738284612571565b828054611d1c90612499565b90600052602060002090601f016020900481019282611d3e5760008555611d84565b82601f10611d5757805160ff1916838001178555611d84565b82800160010185558215611d84579182015b82811115611d84578251825591602001919060010190611d69565b50611d90929150611d94565b5090565b5b80821115611d905760008155600101611d95565b80356001600160a01b038116811461049e57600080fd5b60008060408385031215611dd357600080fd5b611ddc83611da9565b946020939093013593505050565b600060208284031215611dfc57600080fd5b610b7382611da9565b60008060408385031215611e1857600080fd5b82359150611e2860208401611da9565b90509250929050565b600060208284031215611e4357600080fd5b5035919050565b6000815180845260005b81811015611e7057602081850181015186830182015201611e54565b81811115611e82576000602083870101525b50601f01601f19169290920160200192915050565b6000815160c08452611eac60c0850182611e4a565b90506020830151602085015260408301516040850152606083015160608501526080830151608085015260a0830151151560a08501528091505092915050565b602081526000610b736020830184611e97565b600080600060608486031215611f1457600080fd5b611f1d84611da9565b95602085013595506040909401359392505050565b80151581146117cb57600080fd5b600080600060608486031215611f5557600080fd5b83359250611f6560208501611da9565b91506040840135611f7581611f32565b809150509250925092565b60008060408385031215611f9357600080fd5b823591506020830135611fa581611f32565b809150509250929050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b8281101561200557603f19888603018452611ff3858351611e97565b94509285019290850190600101611fd7565b5092979650505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561205157612051612012565b604052919050565b600082601f83011261206a57600080fd5b813567ffffffffffffffff81111561208457612084612012565b612097601f8201601f1916602001612028565b8181528460208386010111156120ac57600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600080600060e0888a0312156120e457600080fd5b87359650602088013567ffffffffffffffff81111561210257600080fd5b61210e8a828b01612059565b96505060408801359450606088013593506080880135925060a0880135915060c088013561213b81611f32565b8091505092959891949750929550565b60c08152600061215e60c0830189611e4a565b602083019790975250604081019490945260608401929092526080830152151560a090910152919050565b80516001600160a01b0316825260208082015190830152604080820151908301526060808201519083015260808082015115159083015260a0908101511515910152565b60c0810161046f8284612189565b600067ffffffffffffffff8211156121f5576121f5612012565b5060051b60200190565b600082601f83011261221057600080fd5b81356020612225612220836121db565b612028565b82815260059290921b8401810191818101908684111561224457600080fd5b8286015b8481101561225f5780358352918301918301612248565b509695505050505050565b60008060006060848603121561227f57600080fd5b833567ffffffffffffffff8082111561229757600080fd5b818601915086601f8301126122ab57600080fd5b813560206122bb612220836121db565b82815260059290921b8401810191818101908a8411156122da57600080fd5b948201945b838610156122ff576122f086611da9565b825294820194908201906122df565b9750508701359250508082111561231557600080fd5b50612322868287016121ff565b925050604084013590509250925092565b6020808252825182820181905260009190848201906040850190845b8181101561237557612362838551612189565b9284019260c0929092019160010161234f565b50909695505050505050565b60008060008060008060c0878903121561239a57600080fd5b863567ffffffffffffffff8111156123b157600080fd5b6123bd89828a01612059565b9650506020870135945060408701359350606087013592506080870135915060a08701356123ea81611f32565b809150509295509295509295565b60006020828403121561240a57600080fd5b8151610b7381611f32565b6020808252601d908201527f56657374696e67206f7074696f6e20646f6573206e6f74206578697374000000604082015260600190565b634e487b7160e01b600052603260045260246000fd5b60208082526018908201527f55736572206973206e6f7420696e2077686974656c6973740000000000000000604082015260600190565b600181811c908216806124ad57607f821691505b602082108114156108bb57634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156124f8576124f86124ce565b5060010190565b60006020828403121561251157600080fd5b5051919050565b6000821982111561252b5761252b6124ce565b500190565b600081600019048311821515161561254a5761254a6124ce565b500290565b60008261256c57634e487b7160e01b600052601260045260246000fd5b500490565b600082821015612583576125836124ce565b50039056fea264697066735822122031b6f694fbc7825720694fcd8f6f006c8fd80527873fd205daffd05ea427182164736f6c634300080a0033

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

000000000000000000000000549020a9cb845220d66d3e9c6d9f9ef61c981102

-----Decoded View---------------
Arg [0] : token (address): 0x549020a9Cb845220D66d3E9c6D9F9eF61C981102

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000549020a9cb845220d66d3e9c6d9f9ef61c981102


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  ]

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.