Contract Address Details

0x8C85CCfFDe61223C7d3E74c59F2113fBdB80235C

Contract Name
TokenVesting
Creator
0x2e95cd–e0fb31 at 0x0edea3–309da7
Balance
0 REI ( )
Tokens
Fetching tokens...
Transactions
0 Transactions
Transfers
1 Transfers
Gas Used
Fetching gas used...
Last Balance Update
24855193
Contract name:
TokenVesting




Optimization enabled
true
Compiler version
v0.8.4+commit.c7e474f2




Optimization runs
200
Verified at
2022-11-30T05:07:59.997557Z

Constructor Arguments

000000000000000000000000000000000000000000000000000000006329e3800000000000000000000000000000000000000000000000000000000000093a800000000000000000000000000000000000000000000000000000000001cd6d000000000000000000000000003cdbb3bc15a031a1a3637f7c06563a7e6b2ac7d400000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000300000000000000000000000006677520c1449d9977e7a245f0797a65e7eff2190000000000000000000000004974946794e3752ebf1bede6de25f0997a611ba80000000000000000000000009b09921538091680e6f29d2347bcdece01fc5501

Arg [0] (uint256) : 1663689600
Arg [1] (uint256) : 604800
Arg [2] (uint256) : 30240000
Arg [3] (address) : 0x3cdbb3bc15a031a1a3637f7c06563a7e6b2ac7d4
Arg [4] (address[]) : [0x06677520c1449d9977e7a245f0797a65e7eff219, 0x4974946794e3752ebf1bede6de25f0997a611ba8, 0x9b09921538091680e6f29d2347bcdece01fc5501]

              

Contract source code

// Sources flattened with hardhat v2.9.2 https://hardhat.org

// File @openzeppelin/contracts/utils/[email protected]

// 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 @openzeppelin/contracts/token/ERC20/[email protected]


// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Moves `amount` tokens from the caller's account to `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);

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

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


// File @openzeppelin/contracts/utils/math/[email protected]


// OpenZeppelin Contracts v4.4.1 (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 substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

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

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

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

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

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}


// File @openzeppelin/contracts/utils/[email protected]


// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


// File @openzeppelin/contracts/token/ERC20/utils/[email protected]


// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;


/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}


// File @openzeppelin/contracts/security/[email protected]


// 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 contracts/REI/TeamLock.sol


pragma solidity 0.8.4;





/**
 * @title TokenVesting
 * @dev A token holder contract that can release its token balance gradually like a
 * typical vesting scheme, with a cliff and vesting period. Optionally revocable by the
 * owner.
 */
contract TokenVesting is Context, ReentrancyGuard  {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    event Released(uint256 amount);

    IERC20 private token;

    uint256 public interval;
    uint256 public duration;

    address[] public requiredSignatories;

    address public beneficiary;

    uint256 public startTime;
    uint256 public released;

    enum Action {
      RELEASE,
      SET_BENEFICIARY,
      ADD_SIGNERE,
      DEL_SIGNERE
    }

    mapping(address => mapping(Action => bool)) public approvals;

    modifier signatoryOnly() {
      bool found = false;
      for (uint256 i = 0; i < requiredSignatories.length; i++) {
        if (requiredSignatories[i] == msg.sender) {
          found = true;
        }
      }
      require(found, "Not signatory");
      _;
    }

    modifier requireApprovalFor(Action action) {
        uint256 approvalsCount = 0;

        for (uint256 i = 0; i < requiredSignatories.length; i++) {
            if(approvals[requiredSignatories[i]][action]) {
                approvalsCount++;
            }

            approvals[requiredSignatories[i]][action] = false;
        }

        require(approvalsCount >= requiredSignatories.length.div(2),"Signatory has not enough approved");
        _;
    }

    constructor (uint256 _start,uint256 _interval,uint256 _duration,address _beneficiary,address[] memory _requiredSignatories)  {
        interval = _interval;
        duration = _duration;
        beneficiary = _beneficiary;

        for (uint256 i = 0; i < _requiredSignatories.length; i++) {
            requiredSignatories.push(_requiredSignatories[i]);
        }

        startTime = _start;
    }

    function setTokenAddr(IERC20 _token) external signatoryOnly  {
        token = IERC20(_token);
    }

    function setBeneficiary(address addr) external signatoryOnly requireApprovalFor(Action.SET_BENEFICIARY) {
      beneficiary = addr;
    }

    function addSigner(address addr) external signatoryOnly requireApprovalFor(Action.ADD_SIGNERE) {
      requiredSignatories.push(addr);
    }

    function delSigner(address addr) external signatoryOnly requireApprovalFor(Action.ADD_SIGNERE) {
      bool flag = false;
      for (uint256 i = 0; i < requiredSignatories.length; i++) {
            if(requiredSignatories[i] == addr) {
                requiredSignatories[i] = requiredSignatories[requiredSignatories.length-1];
                flag = true;

                break;
            }
        }

        if(flag){
            delete requiredSignatories[requiredSignatories.length-1];
            requiredSignatories.pop();
        }
    }

    function approve(Action action) external signatoryOnly {
      approvals[msg.sender][action] = true;
    }

    function release() external nonReentrant {
        uint256 unreleased = releasableAmount();
        require(unreleased > 0, "TokenVesting #release: nothing to release");

        released = released.add(unreleased);

        token.safeTransfer(beneficiary, unreleased);
        emit Released(unreleased);
    }

    function releasableAmount() public view returns (uint256) {
        return vestedAmount().sub(released);
    }

    function vestedAmount() public view returns (uint256) {
        uint256 currentBalance = IERC20(token).balanceOf(address(this));
        uint256 totalBalance = currentBalance.add(released);

        if (block.timestamp >= startTime.add(duration)) {
            return totalBalance;
        } else {
            uint256 numberOfInvervals = block.timestamp.sub(startTime).div(interval);
            uint256 totalIntervals = duration.div(interval);
            return totalBalance.mul(numberOfInvervals).div(totalIntervals);
        }
    }
}
        
>

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"uint256","name":"_start","internalType":"uint256"},{"type":"uint256","name":"_interval","internalType":"uint256"},{"type":"uint256","name":"_duration","internalType":"uint256"},{"type":"address","name":"_beneficiary","internalType":"address"},{"type":"address[]","name":"_requiredSignatories","internalType":"address[]"}]},{"type":"event","name":"Released","inputs":[{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"addSigner","inputs":[{"type":"address","name":"addr","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"approvals","inputs":[{"type":"address","name":"","internalType":"address"},{"type":"uint8","name":"","internalType":"enum TokenVesting.Action"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"approve","inputs":[{"type":"uint8","name":"action","internalType":"enum TokenVesting.Action"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"beneficiary","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"delSigner","inputs":[{"type":"address","name":"addr","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"duration","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"interval","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"releasableAmount","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"release","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"released","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"requiredSignatories","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setBeneficiary","inputs":[{"type":"address","name":"addr","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setTokenAddr","inputs":[{"type":"address","name":"_token","internalType":"contract IERC20"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"startTime","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"vestedAmount","inputs":[]}]
              

Contract Creation Code

0x60806040523480156200001157600080fd5b50604051620016f6380380620016f683398101604081905262000034916200010d565b6001600090815560028590556003849055600580546001600160a01b0319166001600160a01b0385161790555b8151811015620000de5760048282815181106200008e57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015182546001810184556000938452919092200180546001600160a01b0319166001600160a01b0390921691909117905580620000d58162000214565b91505062000061565b50505060069290925550620002529050565b80516001600160a01b03811681146200010857600080fd5b919050565b600080600080600060a0868803121562000125578081fd5b855194506020808701519450604087015193506200014660608801620000f0565b60808801519093506001600160401b038082111562000163578384fd5b818901915089601f83011262000177578384fd5b8151818111156200018c576200018c6200023c565b8060051b604051601f19603f83011681018181108582111715620001b457620001b46200023c565b604052828152858101935084860182860187018e1015620001d3578788fd5b8795505b838610156200020057620001eb81620000f0565b855260019590950194938601938601620001d7565b508096505050505050509295509295909350565b60006000198214156200023557634e487b7160e01b81526011600452602481fd5b5060010190565b634e487b7160e01b600052604160045260246000fd5b61149480620002626000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c806378e9792511610097578063947a36fb11610066578063947a36fb146101ee57806396132521146101f7578063eb12d61e14610200578063fca0025d1461021357600080fd5b806378e979251461018c57806386d1a69f14610195578063883b524f1461019d5780638f7742e5146101b057600080fd5b806338af3eed116100d357806338af3eed1461013e57806344b1231f1461016957806348fec219146101715780635b9400811461018457600080fd5b80630fb5a6b4146100fa5780631c31f710146101165780632ebd1e281461012b575b600080fd5b61010360035481565b6040519081526020015b60405180910390f35b610129610124366004611206565b610226565b005b610129610139366004611206565b610488565b600554610151906001600160a01b031681565b6040516001600160a01b03909116815260200161010d565b610103610534565b61015161017f366004611290565b610649565b610103610673565b61010360065481565b61012961068e565b6101296101ab366004611206565b6107bc565b6101de6101be366004611222565b600860209081526000928352604080842090915290825290205460ff1681565b604051901515815260200161010d565b61010360025481565b61010360075481565b61012961020e366004611206565b610b8b565b610129610221366004611276565b610e14565b6000805b60045481101561029157336001600160a01b03166004828154811061025f57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0316141561027f57600191505b8061028981611415565b91505061022a565b50806102b85760405162461bcd60e51b81526004016102af90611350565b60405180910390fd5b60016000805b6004548110156104345760086000600483815481106102ed57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b0316835282019290925260400181209084600381111561033257634e487b7160e01b600052602160045260246000fd5b600381111561035157634e487b7160e01b600052602160045260246000fd5b815260208101919091526040016000205460ff1615610378578161037481611415565b9250505b6000600860006004848154811061039f57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b031683528201929092526040018120908560038111156103e457634e487b7160e01b600052602160045260246000fd5b600381111561040357634e487b7160e01b600052602160045260246000fd5b81526020810191909152604001600020805460ff19169115159190911790558061042c81611415565b9150506102be565b50600454610443906002610f11565b8110156104625760405162461bcd60e51b81526004016102af9061130f565b5050600580546001600160a01b0319166001600160a01b03939093169290921790915550565b6000805b6004548110156104f357336001600160a01b0316600482815481106104c157634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031614156104e157600191505b806104eb81611415565b91505061048c565b50806105115760405162461bcd60e51b81526004016102af90611350565b50600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001546040516370a0823160e01b815230600482015260009182916001600160a01b03909116906370a082319060240160206040518083038186803b15801561057c57600080fd5b505afa158015610590573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105b491906112a8565b905060006105cd60075483610f2490919063ffffffff16565b90506105e6600354600654610f2490919063ffffffff16565b42106105f25792915050565b600061061560025461060f60065442610f3090919063ffffffff16565b90610f11565b90506000610630600254600354610f1190919063ffffffff16565b90506106408161060f8585610f3c565b94505050505090565b6004818154811061065957600080fd5b6000918252602090912001546001600160a01b0316905081565b6000610689600754610683610534565b90610f30565b905090565b600260005414156106e15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016102af565b600260009081556106f0610673565b9050600081116107545760405162461bcd60e51b815260206004820152602960248201527f546f6b656e56657374696e67202372656c656173653a206e6f7468696e6720746044820152686f2072656c6561736560b81b60648201526084016102af565b6007546107619082610f24565b600755600554600154610781916001600160a01b03918216911683610f48565b6040518181527ffb81f9b30d73d830c3544b34d827c08142579ee75710b490bab0b3995468c5659060200160405180910390a1506001600055565b6000805b60045481101561082757336001600160a01b0316600482815481106107f557634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0316141561081557600191505b8061081f81611415565b9150506107c0565b50806108455760405162461bcd60e51b81526004016102af90611350565b60026000805b6004548110156109c157600860006004838154811061087a57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b031683528201929092526040018120908460038111156108bf57634e487b7160e01b600052602160045260246000fd5b60038111156108de57634e487b7160e01b600052602160045260246000fd5b815260208101919091526040016000205460ff1615610905578161090181611415565b9250505b6000600860006004848154811061092c57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b0316835282019290925260400181209085600381111561097157634e487b7160e01b600052602160045260246000fd5b600381111561099057634e487b7160e01b600052602160045260246000fd5b81526020810191909152604001600020805460ff1916911515919091179055806109b981611415565b91505061084b565b506004546109d0906002610f11565b8110156109ef5760405162461bcd60e51b81526004016102af9061130f565b6000805b600454811015610af457856001600160a01b031660048281548110610a2857634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03161415610ae25760048054610a53906001906113ce565b81548110610a7157634e487b7160e01b600052603260045260246000fd5b600091825260209091200154600480546001600160a01b039092169183908110610aab57634e487b7160e01b600052603260045260246000fd5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060019150610af4565b80610aec81611415565b9150506109f3565b508015610b845760048054610b0b906001906113ce565b81548110610b2957634e487b7160e01b600052603260045260246000fd5b600091825260209091200180546001600160a01b03191690556004805480610b6157634e487b7160e01b600052603160045260246000fd5b600082815260209020810160001990810180546001600160a01b03191690550190555b5050505050565b6000805b600454811015610bf657336001600160a01b031660048281548110610bc457634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03161415610be457600191505b80610bee81611415565b915050610b8f565b5080610c145760405162461bcd60e51b81526004016102af90611350565b60026000805b600454811015610d90576008600060048381548110610c4957634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b03168352820192909252604001812090846003811115610c8e57634e487b7160e01b600052602160045260246000fd5b6003811115610cad57634e487b7160e01b600052602160045260246000fd5b815260208101919091526040016000205460ff1615610cd45781610cd081611415565b9250505b60006008600060048481548110610cfb57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b03168352820192909252604001812090856003811115610d4057634e487b7160e01b600052602160045260246000fd5b6003811115610d5f57634e487b7160e01b600052602160045260246000fd5b81526020810191909152604001600020805460ff191691151591909117905580610d8881611415565b915050610c1a565b50600454610d9f906002610f11565b811015610dbe5760405162461bcd60e51b81526004016102af9061130f565b5050600480546001810182556000919091527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319166001600160a01b03939093169290921790915550565b6000805b600454811015610e7f57336001600160a01b031660048281548110610e4d57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03161415610e6d57600191505b80610e7781611415565b915050610e18565b5080610e9d5760405162461bcd60e51b81526004016102af90611350565b336000908152600860205260408120600191846003811115610ecf57634e487b7160e01b600052602160045260246000fd5b6003811115610eee57634e487b7160e01b600052602160045260246000fd5b81526020810191909152604001600020805460ff19169115159190911790555050565b6000610f1d828461138f565b9392505050565b6000610f1d8284611377565b6000610f1d82846113ce565b6000610f1d82846113af565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610f9a908490610f9f565b505050565b6000610ff4826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166110719092919063ffffffff16565b805190915015610f9a57808060200190518101906110129190611256565b610f9a5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016102af565b60606110808484600085611088565b949350505050565b6060824710156110e95760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016102af565b6001600160a01b0385163b6111405760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102af565b600080866001600160a01b0316858760405161115c91906112c0565b60006040518083038185875af1925050503d8060008114611199576040519150601f19603f3d011682016040523d82523d6000602084013e61119e565b606091505b50915091506111ae8282866111b9565b979650505050505050565b606083156111c8575081610f1d565b8251156111d85782518084602001fd5b8160405162461bcd60e51b81526004016102af91906112dc565b80356004811061120157600080fd5b919050565b600060208284031215611217578081fd5b8135610f1d81611446565b60008060408385031215611234578081fd5b823561123f81611446565b915061124d602084016111f2565b90509250929050565b600060208284031215611267578081fd5b81518015158114610f1d578182fd5b600060208284031215611287578081fd5b610f1d826111f2565b6000602082840312156112a1578081fd5b5035919050565b6000602082840312156112b9578081fd5b5051919050565b600082516112d28184602087016113e5565b9190910192915050565b60208152600082518060208401526112fb8160408501602087016113e5565b601f01601f19169190910160400192915050565b60208082526021908201527f5369676e61746f727920686173206e6f7420656e6f75676820617070726f76656040820152601960fa1b606082015260800190565b6020808252600d908201526c4e6f74207369676e61746f727960981b604082015260600190565b6000821982111561138a5761138a611430565b500190565b6000826113aa57634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156113c9576113c9611430565b500290565b6000828210156113e0576113e0611430565b500390565b60005b838110156114005781810151838201526020016113e8565b8381111561140f576000848401525b50505050565b600060001982141561142957611429611430565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b038116811461145b57600080fd5b5056fea26469706673582212200e9706e1311a55025333a04aad3b7d2d965570d28fe90be59d0f13521bc6e3e464736f6c63430008040033000000000000000000000000000000000000000000000000000000006329e3800000000000000000000000000000000000000000000000000000000000093a800000000000000000000000000000000000000000000000000000000001cd6d000000000000000000000000003cdbb3bc15a031a1a3637f7c06563a7e6b2ac7d400000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000300000000000000000000000006677520c1449d9977e7a245f0797a65e7eff2190000000000000000000000004974946794e3752ebf1bede6de25f0997a611ba80000000000000000000000009b09921538091680e6f29d2347bcdece01fc5501

Deployed ByteCode

0x608060405234801561001057600080fd5b50600436106100f55760003560e01c806378e9792511610097578063947a36fb11610066578063947a36fb146101ee57806396132521146101f7578063eb12d61e14610200578063fca0025d1461021357600080fd5b806378e979251461018c57806386d1a69f14610195578063883b524f1461019d5780638f7742e5146101b057600080fd5b806338af3eed116100d357806338af3eed1461013e57806344b1231f1461016957806348fec219146101715780635b9400811461018457600080fd5b80630fb5a6b4146100fa5780631c31f710146101165780632ebd1e281461012b575b600080fd5b61010360035481565b6040519081526020015b60405180910390f35b610129610124366004611206565b610226565b005b610129610139366004611206565b610488565b600554610151906001600160a01b031681565b6040516001600160a01b03909116815260200161010d565b610103610534565b61015161017f366004611290565b610649565b610103610673565b61010360065481565b61012961068e565b6101296101ab366004611206565b6107bc565b6101de6101be366004611222565b600860209081526000928352604080842090915290825290205460ff1681565b604051901515815260200161010d565b61010360025481565b61010360075481565b61012961020e366004611206565b610b8b565b610129610221366004611276565b610e14565b6000805b60045481101561029157336001600160a01b03166004828154811061025f57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0316141561027f57600191505b8061028981611415565b91505061022a565b50806102b85760405162461bcd60e51b81526004016102af90611350565b60405180910390fd5b60016000805b6004548110156104345760086000600483815481106102ed57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b0316835282019290925260400181209084600381111561033257634e487b7160e01b600052602160045260246000fd5b600381111561035157634e487b7160e01b600052602160045260246000fd5b815260208101919091526040016000205460ff1615610378578161037481611415565b9250505b6000600860006004848154811061039f57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b031683528201929092526040018120908560038111156103e457634e487b7160e01b600052602160045260246000fd5b600381111561040357634e487b7160e01b600052602160045260246000fd5b81526020810191909152604001600020805460ff19169115159190911790558061042c81611415565b9150506102be565b50600454610443906002610f11565b8110156104625760405162461bcd60e51b81526004016102af9061130f565b5050600580546001600160a01b0319166001600160a01b03939093169290921790915550565b6000805b6004548110156104f357336001600160a01b0316600482815481106104c157634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031614156104e157600191505b806104eb81611415565b91505061048c565b50806105115760405162461bcd60e51b81526004016102af90611350565b50600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001546040516370a0823160e01b815230600482015260009182916001600160a01b03909116906370a082319060240160206040518083038186803b15801561057c57600080fd5b505afa158015610590573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105b491906112a8565b905060006105cd60075483610f2490919063ffffffff16565b90506105e6600354600654610f2490919063ffffffff16565b42106105f25792915050565b600061061560025461060f60065442610f3090919063ffffffff16565b90610f11565b90506000610630600254600354610f1190919063ffffffff16565b90506106408161060f8585610f3c565b94505050505090565b6004818154811061065957600080fd5b6000918252602090912001546001600160a01b0316905081565b6000610689600754610683610534565b90610f30565b905090565b600260005414156106e15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016102af565b600260009081556106f0610673565b9050600081116107545760405162461bcd60e51b815260206004820152602960248201527f546f6b656e56657374696e67202372656c656173653a206e6f7468696e6720746044820152686f2072656c6561736560b81b60648201526084016102af565b6007546107619082610f24565b600755600554600154610781916001600160a01b03918216911683610f48565b6040518181527ffb81f9b30d73d830c3544b34d827c08142579ee75710b490bab0b3995468c5659060200160405180910390a1506001600055565b6000805b60045481101561082757336001600160a01b0316600482815481106107f557634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0316141561081557600191505b8061081f81611415565b9150506107c0565b50806108455760405162461bcd60e51b81526004016102af90611350565b60026000805b6004548110156109c157600860006004838154811061087a57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b031683528201929092526040018120908460038111156108bf57634e487b7160e01b600052602160045260246000fd5b60038111156108de57634e487b7160e01b600052602160045260246000fd5b815260208101919091526040016000205460ff1615610905578161090181611415565b9250505b6000600860006004848154811061092c57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b0316835282019290925260400181209085600381111561097157634e487b7160e01b600052602160045260246000fd5b600381111561099057634e487b7160e01b600052602160045260246000fd5b81526020810191909152604001600020805460ff1916911515919091179055806109b981611415565b91505061084b565b506004546109d0906002610f11565b8110156109ef5760405162461bcd60e51b81526004016102af9061130f565b6000805b600454811015610af457856001600160a01b031660048281548110610a2857634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03161415610ae25760048054610a53906001906113ce565b81548110610a7157634e487b7160e01b600052603260045260246000fd5b600091825260209091200154600480546001600160a01b039092169183908110610aab57634e487b7160e01b600052603260045260246000fd5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060019150610af4565b80610aec81611415565b9150506109f3565b508015610b845760048054610b0b906001906113ce565b81548110610b2957634e487b7160e01b600052603260045260246000fd5b600091825260209091200180546001600160a01b03191690556004805480610b6157634e487b7160e01b600052603160045260246000fd5b600082815260209020810160001990810180546001600160a01b03191690550190555b5050505050565b6000805b600454811015610bf657336001600160a01b031660048281548110610bc457634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03161415610be457600191505b80610bee81611415565b915050610b8f565b5080610c145760405162461bcd60e51b81526004016102af90611350565b60026000805b600454811015610d90576008600060048381548110610c4957634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b03168352820192909252604001812090846003811115610c8e57634e487b7160e01b600052602160045260246000fd5b6003811115610cad57634e487b7160e01b600052602160045260246000fd5b815260208101919091526040016000205460ff1615610cd45781610cd081611415565b9250505b60006008600060048481548110610cfb57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b03168352820192909252604001812090856003811115610d4057634e487b7160e01b600052602160045260246000fd5b6003811115610d5f57634e487b7160e01b600052602160045260246000fd5b81526020810191909152604001600020805460ff191691151591909117905580610d8881611415565b915050610c1a565b50600454610d9f906002610f11565b811015610dbe5760405162461bcd60e51b81526004016102af9061130f565b5050600480546001810182556000919091527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319166001600160a01b03939093169290921790915550565b6000805b600454811015610e7f57336001600160a01b031660048281548110610e4d57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03161415610e6d57600191505b80610e7781611415565b915050610e18565b5080610e9d5760405162461bcd60e51b81526004016102af90611350565b336000908152600860205260408120600191846003811115610ecf57634e487b7160e01b600052602160045260246000fd5b6003811115610eee57634e487b7160e01b600052602160045260246000fd5b81526020810191909152604001600020805460ff19169115159190911790555050565b6000610f1d828461138f565b9392505050565b6000610f1d8284611377565b6000610f1d82846113ce565b6000610f1d82846113af565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610f9a908490610f9f565b505050565b6000610ff4826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166110719092919063ffffffff16565b805190915015610f9a57808060200190518101906110129190611256565b610f9a5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016102af565b60606110808484600085611088565b949350505050565b6060824710156110e95760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016102af565b6001600160a01b0385163b6111405760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102af565b600080866001600160a01b0316858760405161115c91906112c0565b60006040518083038185875af1925050503d8060008114611199576040519150601f19603f3d011682016040523d82523d6000602084013e61119e565b606091505b50915091506111ae8282866111b9565b979650505050505050565b606083156111c8575081610f1d565b8251156111d85782518084602001fd5b8160405162461bcd60e51b81526004016102af91906112dc565b80356004811061120157600080fd5b919050565b600060208284031215611217578081fd5b8135610f1d81611446565b60008060408385031215611234578081fd5b823561123f81611446565b915061124d602084016111f2565b90509250929050565b600060208284031215611267578081fd5b81518015158114610f1d578182fd5b600060208284031215611287578081fd5b610f1d826111f2565b6000602082840312156112a1578081fd5b5035919050565b6000602082840312156112b9578081fd5b5051919050565b600082516112d28184602087016113e5565b9190910192915050565b60208152600082518060208401526112fb8160408501602087016113e5565b601f01601f19169190910160400192915050565b60208082526021908201527f5369676e61746f727920686173206e6f7420656e6f75676820617070726f76656040820152601960fa1b606082015260800190565b6020808252600d908201526c4e6f74207369676e61746f727960981b604082015260600190565b6000821982111561138a5761138a611430565b500190565b6000826113aa57634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156113c9576113c9611430565b500290565b6000828210156113e0576113e0611430565b500390565b60005b838110156114005781810151838201526020016113e8565b8381111561140f576000848401525b50505050565b600060001982141561142957611429611430565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b038116811461145b57600080fd5b5056fea26469706673582212200e9706e1311a55025333a04aad3b7d2d965570d28fe90be59d0f13521bc6e3e464736f6c63430008040033