More Info
Private Name Tags
ContractCreator
Multichain Info
No addresses found
Latest 25 from a total of 48 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Release | 19014090 | 431 days ago | IN | 0 ETH | 0.00171121 | ||||
Release | 19014083 | 431 days ago | IN | 0 ETH | 0.00260087 | ||||
Release | 19014057 | 431 days ago | IN | 0 ETH | 0.00215676 | ||||
Release | 19013890 | 431 days ago | IN | 0 ETH | 0.00237639 | ||||
Release | 19013870 | 431 days ago | IN | 0 ETH | 0.00247018 | ||||
Release | 19013846 | 431 days ago | IN | 0 ETH | 0.00218682 | ||||
Release | 16735424 | 751 days ago | IN | 0 ETH | 0.00373278 | ||||
Release | 16697047 | 757 days ago | IN | 0 ETH | 0.00284127 | ||||
Release | 16540495 | 779 days ago | IN | 0 ETH | 0.00091209 | ||||
Release | 14263615 | 1122 days ago | IN | 0 ETH | 0.01551642 | ||||
Release | 14263613 | 1122 days ago | IN | 0 ETH | 0.01410998 | ||||
Release | 14263610 | 1122 days ago | IN | 0 ETH | 0.00847074 | ||||
Release | 14263608 | 1122 days ago | IN | 0 ETH | 0.01161992 | ||||
Release | 14263606 | 1122 days ago | IN | 0 ETH | 0.01179314 | ||||
Release | 13849081 | 1187 days ago | IN | 0 ETH | 0.00380171 | ||||
Release | 13829714 | 1190 days ago | IN | 0 ETH | 0.00413123 | ||||
Release | 13829714 | 1190 days ago | IN | 0 ETH | 0.00325744 | ||||
Release | 13722492 | 1206 days ago | IN | 0 ETH | 0.01128119 | ||||
Release | 13722483 | 1206 days ago | IN | 0 ETH | 0.01152001 | ||||
Release | 13519253 | 1239 days ago | IN | 0 ETH | 0.01247747 | ||||
Release | 13061999 | 1310 days ago | IN | 0 ETH | 0.00125252 | ||||
Release | 13049105 | 1312 days ago | IN | 0 ETH | 0.00260622 | ||||
Release | 13049091 | 1312 days ago | IN | 0 ETH | 0.00242242 | ||||
Release | 12909169 | 1334 days ago | IN | 0 ETH | 0.00313433 | ||||
Release | 12851415 | 1343 days ago | IN | 0 ETH | 0.00252216 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
TokenVesting
Compiler Version
v0.6.12+commit.27d51765
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; import "@openzeppelin/contracts/GSN/Context.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; /** * @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; struct Vesting { uint256 start; uint256 interval; uint256 duration; uint256 balance; uint256 released; } mapping (address => Vesting) private _vestings; constructor (address token) public { require(token != address(0), "token address cannot be zero"); _token = IERC20(token); } function getVesting(address beneficiary) public view returns (uint256, uint256, uint256, uint256, uint256) { Vesting memory v = _vestings[beneficiary]; return (v.start, v.interval, v.duration, v.balance, v.released); } function createVesting( address beneficiary, uint256 start, uint256 interval, uint256 duration, uint256 amount ) external nonReentrant { require(interval > 0 , "TokenVesting #createVesting: interval must be greater than 0"); require(duration >= interval, "TokenVesting #createVesting: interval cannot be bigger than duration"); Vesting storage vest = _vestings[beneficiary]; require(vest.balance == 0, "TokenVesting #createVesting: vesting for beneficiary already created"); _token.safeTransferFrom(_msgSender(), address(this), amount); vest.start = start; vest.interval = interval; vest.duration = duration; vest.balance = amount; vest.released = uint256(0); } function postponeVesting(uint256 start) external { Vesting storage vest = _vestings[_msgSender()]; require(vest.balance != 0, "TokenVesting #postponeVesting: vesting for beneficiary does not exist"); require(vest.start < start, "TokenVesting #postponeVesting: new start date cannot be earlier than original start date"); vest.start = start; } function release(address beneficiary) external nonReentrant { uint256 unreleased = releasableAmount(beneficiary); require(unreleased > 0, "TokenVesting #release: nothing to release"); Vesting storage vest = _vestings[beneficiary]; vest.released = vest.released.add(unreleased); vest.balance = vest.balance.sub(unreleased); _token.safeTransfer(beneficiary, unreleased); emit Released(unreleased); } function releasableAmount(address beneficiary) public view returns (uint256) { return vestedAmount(beneficiary).sub(_vestings[beneficiary].released); } function vestedAmount(address beneficiary) public view returns (uint256) { Vesting memory vest = _vestings[beneficiary]; uint256 currentBalance = vest.balance; uint256 totalBalance = currentBalance.add(vest.released); if (block.timestamp >= vest.start.add(vest.duration)) { return totalBalance; } else { uint256 numberOfInvervals = block.timestamp.sub(vest.start).div(vest.interval); uint256 totalIntervals = vest.duration.div(vest.interval); return totalBalance.mul(numberOfInvervals).div(totalIntervals); } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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 GSN 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 payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @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) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @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 sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @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) { // 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 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts 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) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts 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) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts 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 mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message 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, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "./IERC20.sol"; import "../../math/SafeMath.sol"; import "../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; 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' // solhint-disable-next-line max-line-length 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).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _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 // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <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; // solhint-disable-next-line no-inline-assembly 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"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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 // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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 () internal { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
{ "remappings": [], "optimizer": { "enabled": false, "runs": 200 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"token","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Released","type":"event"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"interval","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"createVesting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"}],"name":"getVesting","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"start","type":"uint256"}],"name":"postponeVesting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"}],"name":"releasableAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"}],"name":"vestedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b506040516116173803806116178339818101604052602081101561003357600080fd5b81019080805190602001909291905050506001600081905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156100ef576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f746f6b656e20616464726573732063616e6e6f74206265207a65726f0000000081525060200191505060405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506114d7806101406000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c80631726cbc81461006757806319165587146100bf578063384711cc14610103578063b5ec0b971461015b578063cc49ede714610189578063eab23abe146101fd575b600080fd5b6100a96004803603602081101561007d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610269565b6040518082815260200191505060405180910390f35b610101600480360360208110156100d557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506102cf565b005b6101456004803603602081101561011957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506104c8565b6040518082815260200191505060405180910390f35b6101876004803603602081101561017157600080fd5b8101908080359060200190929190505050610622565b005b6101cb6004803603602081101561019f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610733565b604051808681526020018581526020018481526020018381526020018281526020019550505050505060405180910390f35b610267600480360360a081101561021357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019092919080359060200190929190803590602001909291905050506107ee565b005b60006102c8600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600401546102ba846104c8565b610a5590919063ffffffff16565b9050919050565b60026000541415610348576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b6002600081905550600061035b82610269565b9050600081116103b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806114796029913960400191505060405180910390fd5b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050610410828260040154610a9f90919063ffffffff16565b816004018190555061042f828260030154610a5590919063ffffffff16565b81600301819055506104848383600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610b279092919063ffffffff16565b7ffb81f9b30d73d830c3544b34d827c08142579ee75710b490bab0b3995468c565826040518082815260200191505060405180910390a15050600160008190555050565b60006104d2611277565b600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060a00160405290816000820154815260200160018201548152602001600282015481526020016003820154815260200160048201548152505090506000816060015190506000610572836080015183610a9f90919063ffffffff16565b905061058f83604001518460000151610a9f90919063ffffffff16565b42106105a05780935050505061061d565b60006105cf84602001516105c1866000015142610a5590919063ffffffff16565b610bc990919063ffffffff16565b905060006105ee85602001518660400151610bc990919063ffffffff16565b9050610615816106078486610c1390919063ffffffff16565b610bc990919063ffffffff16565b955050505050505b919050565b600060026000610630610c99565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000816003015414156106ca576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252604581526020018061132f6045913960600191505060405180910390fd5b81816000015410610726576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260588152602001806113f76058913960600191505060405180910390fd5b8181600001819055505050565b6000806000806000610743611277565b600260008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060a001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481525050905080600001518160200151826040015183606001518460800151955095509550955095505091939590929450565b60026000541415610867576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b6002600081905550600083116108c8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603c81526020018061139a603c913960400191505060405180910390fd5b82821015610921576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260448152602001806112a76044913960600191505060405180910390fd5b6000600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008160030154146109c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260448152602001806112eb6044913960600191505060405180910390fd5b610a176109cc610c99565b3084600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610ca1909392919063ffffffff16565b848160000181905550838160010181905550828160020181905550818160030181905550600081600401819055505060016000819055505050505050565b6000610a9783836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610d62565b905092915050565b600080828401905083811015610b1d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b610bc48363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610e22565b505050565b6000610c0b83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610f11565b905092915050565b600080831415610c265760009050610c93565b6000828402905082848281610c3757fe5b0414610c8e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806113d66021913960400191505060405180910390fd5b809150505b92915050565b600033905090565b610d5c846323b872dd60e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610e22565b50505050565b6000838311158290610e0f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610dd4578082015181840152602081019050610db9565b50505050905090810190601f168015610e015780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b6060610e84826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610fd79092919063ffffffff16565b9050600081511115610f0c57808060200190516020811015610ea557600080fd5b8101908080519060200190929190505050610f0b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a81526020018061144f602a913960400191505060405180910390fd5b5b505050565b60008083118290610fbd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610f82578082015181840152602081019050610f67565b50505050905090810190601f168015610faf5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581610fc957fe5b049050809150509392505050565b6060610fe68484600085610fef565b90509392505050565b60608247101561104a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806113746026913960400191505060405180910390fd5b61105385611198565b6110c5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b6020831061111557805182526020820191506020810190506020830392506110f2565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611177576040519150601f19603f3d011682016040523d82523d6000602084013e61117c565b606091505b509150915061118c8282866111ab565b92505050949350505050565b600080823b905060008111915050919050565b606083156111bb57829050611270565b6000835111156111ce5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561123557808201518184015260208101905061121a565b50505050905090810190601f1680156112625780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b9392505050565b6040518060a001604052806000815260200160008152602001600081526020016000815260200160008152509056fe546f6b656e56657374696e67202363726561746556657374696e673a20696e74657276616c2063616e6e6f7420626520626967676572207468616e206475726174696f6e546f6b656e56657374696e67202363726561746556657374696e673a2076657374696e6720666f722062656e656669636961727920616c72656164792063726561746564546f6b656e56657374696e672023706f7374706f6e6556657374696e673a2076657374696e6720666f722062656e656669636961727920646f6573206e6f74206578697374416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c546f6b656e56657374696e67202363726561746556657374696e673a20696e74657276616c206d7573742062652067726561746572207468616e2030536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77546f6b656e56657374696e672023706f7374706f6e6556657374696e673a206e657720737461727420646174652063616e6e6f74206265206561726c696572207468616e206f726967696e616c20737461727420646174655361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564546f6b656e56657374696e67202372656c656173653a206e6f7468696e6720746f2072656c65617365a2646970667358221220a3c5ee1e3fb46932824b22d08e6f14e412e61277f17a807168c2e274a90bc46764736f6c634300060c0033000000000000000000000000220b71671b649c03714da9c621285943f3cbcdc6
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100625760003560e01c80631726cbc81461006757806319165587146100bf578063384711cc14610103578063b5ec0b971461015b578063cc49ede714610189578063eab23abe146101fd575b600080fd5b6100a96004803603602081101561007d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610269565b6040518082815260200191505060405180910390f35b610101600480360360208110156100d557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506102cf565b005b6101456004803603602081101561011957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506104c8565b6040518082815260200191505060405180910390f35b6101876004803603602081101561017157600080fd5b8101908080359060200190929190505050610622565b005b6101cb6004803603602081101561019f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610733565b604051808681526020018581526020018481526020018381526020018281526020019550505050505060405180910390f35b610267600480360360a081101561021357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019092919080359060200190929190803590602001909291905050506107ee565b005b60006102c8600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600401546102ba846104c8565b610a5590919063ffffffff16565b9050919050565b60026000541415610348576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b6002600081905550600061035b82610269565b9050600081116103b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260298152602001806114796029913960400191505060405180910390fd5b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050610410828260040154610a9f90919063ffffffff16565b816004018190555061042f828260030154610a5590919063ffffffff16565b81600301819055506104848383600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610b279092919063ffffffff16565b7ffb81f9b30d73d830c3544b34d827c08142579ee75710b490bab0b3995468c565826040518082815260200191505060405180910390a15050600160008190555050565b60006104d2611277565b600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060a00160405290816000820154815260200160018201548152602001600282015481526020016003820154815260200160048201548152505090506000816060015190506000610572836080015183610a9f90919063ffffffff16565b905061058f83604001518460000151610a9f90919063ffffffff16565b42106105a05780935050505061061d565b60006105cf84602001516105c1866000015142610a5590919063ffffffff16565b610bc990919063ffffffff16565b905060006105ee85602001518660400151610bc990919063ffffffff16565b9050610615816106078486610c1390919063ffffffff16565b610bc990919063ffffffff16565b955050505050505b919050565b600060026000610630610c99565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000816003015414156106ca576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252604581526020018061132f6045913960600191505060405180910390fd5b81816000015410610726576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260588152602001806113f76058913960600191505060405180910390fd5b8181600001819055505050565b6000806000806000610743611277565b600260008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206040518060a001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481525050905080600001518160200151826040015183606001518460800151955095509550955095505091939590929450565b60026000541415610867576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b6002600081905550600083116108c8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603c81526020018061139a603c913960400191505060405180910390fd5b82821015610921576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260448152602001806112a76044913960600191505060405180910390fd5b6000600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008160030154146109c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260448152602001806112eb6044913960600191505060405180910390fd5b610a176109cc610c99565b3084600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610ca1909392919063ffffffff16565b848160000181905550838160010181905550828160020181905550818160030181905550600081600401819055505060016000819055505050505050565b6000610a9783836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610d62565b905092915050565b600080828401905083811015610b1d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b610bc48363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610e22565b505050565b6000610c0b83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610f11565b905092915050565b600080831415610c265760009050610c93565b6000828402905082848281610c3757fe5b0414610c8e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806113d66021913960400191505060405180910390fd5b809150505b92915050565b600033905090565b610d5c846323b872dd60e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610e22565b50505050565b6000838311158290610e0f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610dd4578082015181840152602081019050610db9565b50505050905090810190601f168015610e015780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b6060610e84826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610fd79092919063ffffffff16565b9050600081511115610f0c57808060200190516020811015610ea557600080fd5b8101908080519060200190929190505050610f0b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a81526020018061144f602a913960400191505060405180910390fd5b5b505050565b60008083118290610fbd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610f82578082015181840152602081019050610f67565b50505050905090810190601f168015610faf5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581610fc957fe5b049050809150509392505050565b6060610fe68484600085610fef565b90509392505050565b60608247101561104a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806113746026913960400191505060405180910390fd5b61105385611198565b6110c5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b6020831061111557805182526020820191506020810190506020830392506110f2565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611177576040519150601f19603f3d011682016040523d82523d6000602084013e61117c565b606091505b509150915061118c8282866111ab565b92505050949350505050565b600080823b905060008111915050919050565b606083156111bb57829050611270565b6000835111156111ce5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561123557808201518184015260208101905061121a565b50505050905090810190601f1680156112625780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b9392505050565b6040518060a001604052806000815260200160008152602001600081526020016000815260200160008152509056fe546f6b656e56657374696e67202363726561746556657374696e673a20696e74657276616c2063616e6e6f7420626520626967676572207468616e206475726174696f6e546f6b656e56657374696e67202363726561746556657374696e673a2076657374696e6720666f722062656e656669636961727920616c72656164792063726561746564546f6b656e56657374696e672023706f7374706f6e6556657374696e673a2076657374696e6720666f722062656e656669636961727920646f6573206e6f74206578697374416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c546f6b656e56657374696e67202363726561746556657374696e673a20696e74657276616c206d7573742062652067726561746572207468616e2030536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77546f6b656e56657374696e672023706f7374706f6e6556657374696e673a206e657720737461727420646174652063616e6e6f74206265206561726c696572207468616e206f726967696e616c20737461727420646174655361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564546f6b656e56657374696e67202372656c656173653a206e6f7468696e6720746f2072656c65617365a2646970667358221220a3c5ee1e3fb46932824b22d08e6f14e412e61277f17a807168c2e274a90bc46764736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000220b71671b649c03714da9c621285943f3cbcdc6
-----Decoded View---------------
Arg [0] : token (address): 0x220B71671b649c03714dA9c621285943f3cbcDC6
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000220b71671b649c03714da9c621285943f3cbcdc6
Loading...
Loading
Loading...
Loading
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.