More Info
Private Name Tags
ContractCreator
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
13773559 | 1109 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x9c0a28dC...95c1e2357 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
TokenVesting
Compiler Version
v0.8.9+commit.e5eed63a
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-12-12 */ // Sources flattened with hardhat v2.6.4 https://hardhat.org // File @openzeppelin/contracts/utils/math/[email protected] pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } } // File @openzeppelin/contracts/token/ERC20/[email protected] pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File @openzeppelin/contracts/utils/[email protected] pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File @openzeppelin/contracts/token/ERC20/utils/[email protected] 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/utils/[email protected] 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/access/[email protected] pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File contracts/TokenVesting.sol //SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.9; contract TokenVesting is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; event Released(uint256 amount); event Revoked(); // beneficiary of tokens after they are released address public beneficiary; uint256 public cliff; uint256 public start; uint256 public duration; bool public revocable; mapping (address => uint256) public released; mapping (address => bool) public revoked; /** * @dev Creates a vesting contract that vests its balance of any ERC20 token to the * _beneficiary, gradually in a linear fashion until _start + _duration. By then all * of the balance will have vested. * @param _beneficiary address of the beneficiary to whom vested tokens are transferred * @param _cliff duration in seconds of the cliff in which tokens will begin to vest * @param _duration duration in seconds of the period in which the tokens will vest * @param _revocable whether the vesting is revocable or not */ constructor(address owner, address _beneficiary, uint256 _start, uint256 _cliff, uint256 _duration, bool _revocable) { require(_beneficiary != address(0)); require(_cliff <= _duration); beneficiary = _beneficiary; revocable = _revocable; duration = _duration; cliff = _start.add(_cliff); start = _start; transferOwnership(owner); } function updateTimeline(uint256 _start, uint256 _cliff, uint256 _duration) public onlyOwner { require(_cliff <= _duration); duration = _duration; cliff = _start.add(_cliff); start = _start; } /** * @notice Transfers vested tokens to beneficiary. * @param token ERC20 token which is being vested */ function release(IERC20 token) public { uint256 unreleased = releasableAmount(token); require(unreleased > 0); released[address(token)] = released[address(token)].add(unreleased); token.safeTransfer(beneficiary, unreleased); emit Released(unreleased); } /** * @notice Allows the owner to revoke the vesting. Tokens already vested * remain in the contract, the rest are returned to the owner. * @param token ERC20 token which is being vested */ function revoke(IERC20 token) public onlyOwner { require(revocable); require(!revoked[address(token)]); uint256 balance = token.balanceOf(address(this)); uint256 unreleased = releasableAmount(token); uint256 refund = balance.sub(unreleased); revoked[address(token)] = true; token.safeTransfer(owner(), refund); emit Revoked(); } /** * @dev Calculates the amount that has already vested but hasn't been released yet. * @param token ERC20 token which is being vested */ function releasableAmount(IERC20 token) public view returns (uint256) { return vestedAmount(token).sub(released[address(token)]); } /** * @dev Calculates the amount that has already vested. * @param token ERC20 token which is being vested */ function vestedAmount(IERC20 token) public view returns (uint256) { uint256 currentBalance = token.balanceOf(address(this)); uint256 totalBalance = currentBalance.add(released[address(token)]); if (block.timestamp < cliff) { return 0; } else if (block.timestamp >= start.add(duration) || revoked[address(token)]) { return totalBalance; } else { return totalBalance.mul(block.timestamp.sub(start)).div(duration); } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"_beneficiary","type":"address"},{"internalType":"uint256","name":"_start","type":"uint256"},{"internalType":"uint256","name":"_cliff","type":"uint256"},{"internalType":"uint256","name":"_duration","type":"uint256"},{"internalType":"bool","name":"_revocable","type":"bool"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Released","type":"event"},{"anonymous":false,"inputs":[],"name":"Revoked","type":"event"},{"inputs":[],"name":"beneficiary","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cliff","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"duration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"releasableAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"released","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revocable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"revoke","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"revoked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"start","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_start","type":"uint256"},{"internalType":"uint256","name":"_cliff","type":"uint256"},{"internalType":"uint256","name":"_duration","type":"uint256"}],"name":"updateTimeline","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"vestedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100f55760003560e01c8063715018a6116100975780639852595c116100665780639852595c146101e1578063be9a655514610201578063f2fde38b1461020a578063fa01dc061461021d57600080fd5b8063715018a61461019857806374a8f103146101a0578063872a7810146101b35780638da5cb5b146101d057600080fd5b806319165587116100d357806319165587146101325780631d2886e214610147578063384711cc1461015a57806338af3eed1461016d57600080fd5b80630fb5a6b4146100fa57806313d033c0146101165780631726cbc81461011f575b600080fd5b61010360045481565b6040519081526020015b60405180910390f35b61010360025481565b61010361012d3660046109a8565b610240565b6101456101403660046109a8565b610272565b005b6101456101553660046109c5565b610312565b6101036101683660046109a8565b61036b565b600154610180906001600160a01b031681565b6040516001600160a01b03909116815260200161010d565b610145610499565b6101456101ae3660046109a8565b6104cf565b6005546101c09060ff1681565b604051901515815260200161010d565b6000546001600160a01b0316610180565b6101036101ef3660046109a8565b60066020526000908152604090205481565b61010360035481565b6101456102183660046109a8565b61063d565b6101c061022b3660046109a8565b60076020526000908152604090205460ff1681565b6001600160a01b03811660009081526006602052604081205461026c906102668461036b565b906106eb565b92915050565b600061027d82610240565b90506000811161028c57600080fd5b6001600160a01b0382166000908152600660205260409020546102af90826106d8565b6001600160a01b038084166000818152600660205260409020929092556001546102db929116836106f7565b6040518181527ffb81f9b30d73d830c3544b34d827c08142579ee75710b490bab0b3995468c5659060200160405180910390a15050565b6000546001600160a01b031633146103455760405162461bcd60e51b815260040161033c906109f1565b60405180910390fd5b8082111561035257600080fd5b600481905561036183836106d8565b6002555050600355565b6040516370a0823160e01b815230600482015260009081906001600160a01b038416906370a082319060240160206040518083038186803b1580156103af57600080fd5b505afa1580156103c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103e79190610a26565b6001600160a01b0384166000908152600660205260408120549192509061040f9083906106d8565b9050600254421015610425575060009392505050565b600454600354610434916106d8565b4210158061045a57506001600160a01b03841660009081526007602052604090205460ff165b15610466579392505050565b61049160045461048b610484600354426106eb90919063ffffffff16565b849061074e565b9061075a565b949350505050565b6000546001600160a01b031633146104c35760405162461bcd60e51b815260040161033c906109f1565b6104cd6000610766565b565b6000546001600160a01b031633146104f95760405162461bcd60e51b815260040161033c906109f1565b60055460ff1661050857600080fd5b6001600160a01b03811660009081526007602052604090205460ff161561052e57600080fd5b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b15801561057057600080fd5b505afa158015610584573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105a89190610a26565b905060006105b583610240565b905060006105c383836106eb565b6001600160a01b0385166000908152600760205260409020805460ff19166001179055905061060e6105fd6000546001600160a01b031690565b6001600160a01b03861690836106f7565b6040517f44825a4b2df8acb19ce4e1afba9aa850c8b65cdb7942e2078f27d0b0960efee690600090a150505050565b6000546001600160a01b031633146106675760405162461bcd60e51b815260040161033c906109f1565b6001600160a01b0381166106cc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161033c565b6106d581610766565b50565b60006106e48284610a55565b9392505050565b60006106e48284610a6d565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526107499084906107b6565b505050565b60006106e48284610a84565b60006106e48284610aa3565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061080b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166108889092919063ffffffff16565b80519091501561074957808060200190518101906108299190610ac5565b6107495760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161033c565b6060610491848460008585843b6108e15760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161033c565b600080866001600160a01b031685876040516108fd9190610b17565b60006040518083038185875af1925050503d806000811461093a576040519150601f19603f3d011682016040523d82523d6000602084013e61093f565b606091505b509150915061094f82828661095a565b979650505050505050565b606083156109695750816106e4565b8251156109795782518084602001fd5b8160405162461bcd60e51b815260040161033c9190610b33565b6001600160a01b03811681146106d557600080fd5b6000602082840312156109ba57600080fd5b81356106e481610993565b6000806000606084860312156109da57600080fd5b505081359360208301359350604090920135919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060208284031215610a3857600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115610a6857610a68610a3f565b500190565b600082821015610a7f57610a7f610a3f565b500390565b6000816000190483118215151615610a9e57610a9e610a3f565b500290565b600082610ac057634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215610ad757600080fd5b815180151581146106e457600080fd5b60005b83811015610b02578181015183820152602001610aea565b83811115610b11576000848401525b50505050565b60008251610b29818460208701610ae7565b9190910192915050565b6020815260008251806020840152610b52816040850160208701610ae7565b601f01601f1916919091016040019291505056fea2646970667358221220c5348ac0989e619ce64d3adba3f9c384f0dc43f8cdb149dcfe639b85700fb4c564736f6c63430008090033
Deployed Bytecode Sourcemap
25148:3518:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25442:23;;;;;;;;;160:25:1;;;148:2;133:18;25442:23:0;;;;;;;;25392:20;;;;;;27922:139;;;;;;:::i;:::-;;:::i;26877:289::-;;;;;;:::i;:::-;;:::i;:::-;;26536:214;;;;;;:::i;:::-;;:::i;28192:471::-;;;;;;:::i;:::-;;:::i;25359:26::-;;;;;-1:-1:-1;;;;;25359:26:0;;;;;;-1:-1:-1;;;;;1099:32:1;;;1081:51;;1069:2;1054:18;25359:26:0;935:203:1;24408:94:0;;;:::i;27381:381::-;;;;;;:::i;:::-;;:::i;25472:21::-;;;;;;;;;;;;1308:14:1;;1301:22;1283:41;;1271:2;1256:18;25472:21:0;1143:187:1;23757:87:0;23803:7;23830:6;-1:-1:-1;;;;;23830:6:0;23757:87;;25500:44;;;;;;:::i;:::-;;;;;;;;;;;;;;25417:20;;;;;;24657:192;;;;;;:::i;:::-;;:::i;25549:40::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;27922:139;-1:-1:-1;;;;;28030:24:0;;27983:7;28030:24;;;:8;:24;;;;;;28006:49;;:19;28047:5;28006:12;:19::i;:::-;:23;;:49::i;:::-;27999:56;27922:139;-1:-1:-1;;27922:139:0:o;26877:289::-;26922:18;26943:23;26960:5;26943:16;:23::i;:::-;26922:44;;26996:1;26983:10;:14;26975:23;;;;;;-1:-1:-1;;;;;27034:24:0;;;;;;:8;:24;;;;;;:40;;27063:10;27034:28;:40::i;:::-;-1:-1:-1;;;;;27007:24:0;;;;;;;:8;:24;;;;;:67;;;;27102:11;;27083:43;;27007:24;27102:11;27115:10;27083:18;:43::i;:::-;27140:20;;160:25:1;;;27140:20:0;;148:2:1;133:18;27140:20:0;;;;;;;26915:251;26877:289;:::o;26536:214::-;23803:7;23830:6;-1:-1:-1;;;;;23830:6:0;22619:10;23977:23;23969:68;;;;-1:-1:-1;;;23969:68:0;;;;;;;:::i;:::-;;;;;;;;;26653:9:::1;26643:6;:19;;26635:28;;;::::0;::::1;;26670:8;:20:::0;;;26705:18:::1;:6:::0;26716;26705:10:::1;:18::i;:::-;26697:5;:26:::0;-1:-1:-1;;26730:5:0::1;:14:::0;26536:214::o;28192:471::-;28290:30;;-1:-1:-1;;;28290:30:0;;28314:4;28290:30;;;1081:51:1;28249:7:0;;;;-1:-1:-1;;;;;28290:15:0;;;;;1054:18:1;;28290:30:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;28369:24:0;;28327:20;28369:24;;;:8;:24;;;;;;28265:55;;-1:-1:-1;28327:20:0;28350:44;;28265:55;;28350:18;:44::i;:::-;28327:67;;28425:5;;28407:15;:23;28403:255;;;-1:-1:-1;28448:1:0;;28192:471;-1:-1:-1;;;28192:471:0:o;28403:255::-;28496:8;;28486:5;;:19;;:9;:19::i;:::-;28467:15;:38;;:65;;;-1:-1:-1;;;;;;28509:23:0;;;;;;:7;:23;;;;;;;;28467:65;28463:195;;;28550:12;28192:471;-1:-1:-1;;;28192:471:0:o;28463:195::-;28592:58;28641:8;;28592:44;28609:26;28629:5;;28609:15;:19;;:26;;;;:::i;:::-;28592:12;;:16;:44::i;:::-;:48;;:58::i;:::-;28585:65;28192:471;-1:-1:-1;;;;28192:471:0:o;24408:94::-;23803:7;23830:6;-1:-1:-1;;;;;23830:6:0;22619:10;23977:23;23969:68;;;;-1:-1:-1;;;23969:68:0;;;;;;;:::i;:::-;24473:21:::1;24491:1;24473:9;:21::i;:::-;24408:94::o:0;27381:381::-;23803:7;23830:6;-1:-1:-1;;;;;23830:6:0;22619:10;23977:23;23969:68;;;;-1:-1:-1;;;23969:68:0;;;;;;;:::i;:::-;27443:9:::1;::::0;::::1;;27435:18;;;::::0;::::1;;-1:-1:-1::0;;;;;27469:23:0;::::1;;::::0;;;:7:::1;:23;::::0;;;;;::::1;;27468:24;27460:33;;;::::0;::::1;;27520:30;::::0;-1:-1:-1;;;27520:30:0;;27544:4:::1;27520:30;::::0;::::1;1081:51:1::0;27502:15:0::1;::::0;-1:-1:-1;;;;;27520:15:0;::::1;::::0;::::1;::::0;1054:18:1;;27520:30:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;27502:48;;27559:18;27580:23;27597:5;27580:16;:23::i;:::-;27559:44:::0;-1:-1:-1;27610:14:0::1;27627:23;:7:::0;27559:44;27627:11:::1;:23::i;:::-;-1:-1:-1::0;;;;;27659:23:0;::::1;;::::0;;;:7:::1;:23;::::0;;;;:30;;-1:-1:-1;;27659:30:0::1;27685:4;27659:30;::::0;;27610:40;-1:-1:-1;27698:35:0::1;27717:7;23803::::0;23830:6;-1:-1:-1;;;;;23830:6:0;;23757:87;27717:7:::1;-1:-1:-1::0;;;;;27698:18:0;::::1;::::0;27726:6;27698:18:::1;:35::i;:::-;27747:9;::::0;::::1;::::0;;;::::1;27428:334;;;27381:381:::0;:::o;24657:192::-;23803:7;23830:6;-1:-1:-1;;;;;23830:6:0;22619:10;23977:23;23969:68;;;;-1:-1:-1;;;23969:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;24746:22:0;::::1;24738:73;;;::::0;-1:-1:-1;;;24738:73:0;;2347:2:1;24738:73:0::1;::::0;::::1;2329:21:1::0;2386:2;2366:18;;;2359:30;2425:34;2405:18;;;2398:62;-1:-1:-1;;;2476:18:1;;;2469:36;2522:19;;24738:73:0::1;2145:402:1::0;24738:73:0::1;24822:19;24832:8;24822:9;:19::i;:::-;24657:192:::0;:::o;2860:98::-;2918:7;2945:5;2949:1;2945;:5;:::i;:::-;2938:12;2860:98;-1:-1:-1;;;2860:98:0:o;3241:::-;3299:7;3326:5;3330:1;3326;:5;:::i;18610:211::-;18754:58;;;-1:-1:-1;;;;;3139:32:1;;18754:58:0;;;3121:51:1;3188:18;;;;3181:34;;;18754:58:0;;;;;;;;;;3094:18:1;;;;18754:58:0;;;;;;;;-1:-1:-1;;;;;18754:58:0;-1:-1:-1;;;18754:58:0;;;18727:86;;18747:5;;18727:19;:86::i;:::-;18610:211;;;:::o;3598:98::-;3656:7;3683:5;3687:1;3683;:5;:::i;3997:98::-;4055:7;4082:5;4086:1;4082;:5;:::i;24857:173::-;24913:16;24932:6;;-1:-1:-1;;;;;24949:17:0;;;-1:-1:-1;;;;;;24949:17:0;;;;;;24982:40;;24932:6;;;;;;;24982:40;;24913:16;24982:40;24902:128;24857:173;:::o;21183:716::-;21607:23;21633:69;21661:4;21633:69;;;;;;;;;;;;;;;;;21641:5;-1:-1:-1;;;;;21633:27:0;;;:69;;;;;:::i;:::-;21717:17;;21607:95;;-1:-1:-1;21717:21:0;21713:179;;21814:10;21803:30;;;;;;;;;;;;:::i;:::-;21795:85;;;;-1:-1:-1;;;21795:85:0;;4105:2:1;21795:85:0;;;4087:21:1;4144:2;4124:18;;;4117:30;4183:34;4163:18;;;4156:62;-1:-1:-1;;;4234:18:1;;;4227:40;4284:19;;21795:85:0;3903:406:1;13450:229:0;13587:12;13619:52;13641:6;13649:4;13655:1;13658:12;13587;10967:20;;14857:60;;;;-1:-1:-1;;;14857:60:0;;4923:2:1;14857:60:0;;;4905:21:1;4962:2;4942:18;;;4935:30;5001:31;4981:18;;;4974:59;5050:18;;14857:60:0;4721:353:1;14857:60:0;14931:12;14945:23;14972:6;-1:-1:-1;;;;;14972:11:0;14991:5;14998:4;14972:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14930:73;;;;15021:51;15038:7;15047:10;15059:12;15021:16;:51::i;:::-;15014:58;14570:510;-1:-1:-1;;;;;;;14570:510:0:o;17256:712::-;17406:12;17435:7;17431:530;;;-1:-1:-1;17466:10:0;17459:17;;17431:530;17580:17;;:21;17576:374;;17778:10;17772:17;17839:15;17826:10;17822:2;17818:19;17811:44;17576:374;17921:12;17914:20;;-1:-1:-1;;;17914:20:0;;;;;;;;:::i;196:139:1:-;-1:-1:-1;;;;;279:31:1;;269:42;;259:70;;325:1;322;315:12;340:269;413:6;466:2;454:9;445:7;441:23;437:32;434:52;;;482:1;479;472:12;434:52;521:9;508:23;540:39;573:5;540:39;:::i;614:316::-;691:6;699;707;760:2;748:9;739:7;735:23;731:32;728:52;;;776:1;773;766:12;728:52;-1:-1:-1;;799:23:1;;;869:2;854:18;;841:32;;-1:-1:-1;920:2:1;905:18;;;892:32;;614:316;-1:-1:-1;614:316:1:o;1595:356::-;1797:2;1779:21;;;1816:18;;;1809:30;1875:34;1870:2;1855:18;;1848:62;1942:2;1927:18;;1595:356::o;1956:184::-;2026:6;2079:2;2067:9;2058:7;2054:23;2050:32;2047:52;;;2095:1;2092;2085:12;2047:52;-1:-1:-1;2118:16:1;;1956:184;-1:-1:-1;1956:184:1:o;2552:127::-;2613:10;2608:3;2604:20;2601:1;2594:31;2644:4;2641:1;2634:15;2668:4;2665:1;2658:15;2684:128;2724:3;2755:1;2751:6;2748:1;2745:13;2742:39;;;2761:18;;:::i;:::-;-1:-1:-1;2797:9:1;;2684:128::o;2817:125::-;2857:4;2885:1;2882;2879:8;2876:34;;;2890:18;;:::i;:::-;-1:-1:-1;2927:9:1;;2817:125::o;3226:168::-;3266:7;3332:1;3328;3324:6;3320:14;3317:1;3314:21;3309:1;3302:9;3295:17;3291:45;3288:71;;;3339:18;;:::i;:::-;-1:-1:-1;3379:9:1;;3226:168::o;3399:217::-;3439:1;3465;3455:132;;3509:10;3504:3;3500:20;3497:1;3490:31;3544:4;3541:1;3534:15;3572:4;3569:1;3562:15;3455:132;-1:-1:-1;3601:9:1;;3399:217::o;3621:277::-;3688:6;3741:2;3729:9;3720:7;3716:23;3712:32;3709:52;;;3757:1;3754;3747:12;3709:52;3789:9;3783:16;3842:5;3835:13;3828:21;3821:5;3818:32;3808:60;;3864:1;3861;3854:12;5079:258;5151:1;5161:113;5175:6;5172:1;5169:13;5161:113;;;5251:11;;;5245:18;5232:11;;;5225:39;5197:2;5190:10;5161:113;;;5292:6;5289:1;5286:13;5283:48;;;5327:1;5318:6;5313:3;5309:16;5302:27;5283:48;;5079:258;;;:::o;5342:274::-;5471:3;5509:6;5503:13;5525:53;5571:6;5566:3;5559:4;5551:6;5547:17;5525:53;:::i;:::-;5594:16;;;;;5342:274;-1:-1:-1;;5342:274:1:o;5621:383::-;5770:2;5759:9;5752:21;5733:4;5802:6;5796:13;5845:6;5840:2;5829:9;5825:18;5818:34;5861:66;5920:6;5915:2;5904:9;5900:18;5895:2;5887:6;5883:15;5861:66;:::i;:::-;5988:2;5967:15;-1:-1:-1;;5963:29:1;5948:45;;;;5995:2;5944:54;;5621:383;-1:-1:-1;;5621:383:1:o
Swarm Source
ipfs://c5348ac0989e619ce64d3adba3f9c384f0dc43f8cdb149dcfe639b85700fb4c5
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.