Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 23 from a total of 23 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer Ownersh... | 15884749 | 871 days ago | IN | 0 ETH | 0.00061192 | ||||
Deploy Fundee | 15884747 | 871 days ago | IN | 0 ETH | 0.02702242 | ||||
Deploy Fundee | 15884745 | 871 days ago | IN | 0 ETH | 0.02702293 | ||||
Deploy Fundee | 15884743 | 871 days ago | IN | 0 ETH | 0.02702268 | ||||
Deploy Fundee | 15884741 | 871 days ago | IN | 0 ETH | 0.02702242 | ||||
Deploy Fundee | 15884738 | 871 days ago | IN | 0 ETH | 0.02702268 | ||||
Deploy Fundee | 15884736 | 871 days ago | IN | 0 ETH | 0.02702242 | ||||
Deploy Fundee | 15884735 | 871 days ago | IN | 0 ETH | 0.02702217 | ||||
Deploy Fundee | 15884732 | 871 days ago | IN | 0 ETH | 0.02702268 | ||||
Deploy Fundee | 15884730 | 871 days ago | IN | 0 ETH | 0.02702268 | ||||
Deploy Fundee | 15884729 | 871 days ago | IN | 0 ETH | 0.02702268 | ||||
Deploy Fundee | 15884727 | 871 days ago | IN | 0 ETH | 0.02702268 | ||||
Deploy Fundee | 15884726 | 871 days ago | IN | 0 ETH | 0.02702268 | ||||
Deploy Fundee | 15884696 | 871 days ago | IN | 0 ETH | 0.02702268 | ||||
Deploy Fundee | 15884695 | 871 days ago | IN | 0 ETH | 0.02702217 | ||||
Deploy Fundee | 15884692 | 871 days ago | IN | 0 ETH | 0.02702242 | ||||
Deploy Fundee | 15884691 | 871 days ago | IN | 0 ETH | 0.02702242 | ||||
Deploy Fundee | 15884689 | 871 days ago | IN | 0 ETH | 0.02702217 | ||||
Deploy Fundee | 15884687 | 871 days ago | IN | 0 ETH | 0.02702242 | ||||
Deploy Fundee | 15884683 | 871 days ago | IN | 0 ETH | 0.02702242 | ||||
Deploy Fundee | 15884681 | 871 days ago | IN | 0 ETH | 0.02702217 | ||||
Deploy Fundee | 15884675 | 871 days ago | IN | 0 ETH | 0.02702217 | ||||
Deploy Fundee | 15884672 | 871 days ago | IN | 0 ETH | 0.02702217 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Method | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|---|
0x61010060 | 17263948 | 677 days ago | Contract Creation | 0 ETH | |||
0x61010060 | 16818437 | 740 days ago | Contract Creation | 0 ETH | |||
0x61010060 | 16501134 | 785 days ago | Contract Creation | 0 ETH | |||
0x61010060 | 16406230 | 798 days ago | Contract Creation | 0 ETH | |||
0x61010060 | 16406206 | 798 days ago | Contract Creation | 0 ETH | |||
0x61010060 | 16406192 | 798 days ago | Contract Creation | 0 ETH | |||
0x61010060 | 16405720 | 798 days ago | Contract Creation | 0 ETH | |||
0x61010060 | 15891241 | 870 days ago | Contract Creation | 0 ETH | |||
0x61010060 | 15891219 | 870 days ago | Contract Creation | 0 ETH | |||
0x61010060 | 15884747 | 871 days ago | Contract Creation | 0 ETH | |||
0x61010060 | 15884745 | 871 days ago | Contract Creation | 0 ETH | |||
0x61010060 | 15884743 | 871 days ago | Contract Creation | 0 ETH | |||
0x61010060 | 15884741 | 871 days ago | Contract Creation | 0 ETH | |||
0x61010060 | 15884738 | 871 days ago | Contract Creation | 0 ETH | |||
0x61010060 | 15884736 | 871 days ago | Contract Creation | 0 ETH | |||
0x61010060 | 15884735 | 871 days ago | Contract Creation | 0 ETH | |||
0x61010060 | 15884732 | 871 days ago | Contract Creation | 0 ETH | |||
0x61010060 | 15884730 | 871 days ago | Contract Creation | 0 ETH | |||
0x61010060 | 15884729 | 871 days ago | Contract Creation | 0 ETH | |||
0x61010060 | 15884727 | 871 days ago | Contract Creation | 0 ETH | |||
0x61010060 | 15884726 | 871 days ago | Contract Creation | 0 ETH | |||
0x61010060 | 15884696 | 871 days ago | Contract Creation | 0 ETH | |||
0x61010060 | 15884695 | 871 days ago | Contract Creation | 0 ETH | |||
0x61010060 | 15884692 | 871 days ago | Contract Creation | 0 ETH | |||
0x61010060 | 15884691 | 871 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Contract Name:
FundsDistributorFactoryA
Compiler Version
v0.6.11+commit.5ef660b1
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.6.11; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "./FundsDistributor.sol"; contract FundsDistributorFactoryA is Ownable{ using SafeERC20 for IERC20; using SafeMath for uint256; /// @notice PUSH token address address public immutable pushToken; /// @notice identifier for the contract string public identifier; /// @notice Cliff time to withdraw tokens back uint256 public immutable cliff; /// @notice An event thats emitted when fundee contract is deployed event DeployFundee(address indexed fundeeAddress, address indexed beneficiaryAddress, uint256 amount); /// @notice An event thats emitted when a fundee is revoked event RevokeFundee(address indexed fundeeAddress); /** * @notice Construct FundsDistributor Factory * @param _pushToken The push token address * @param _start The start time for cliff * @param _cliffDuration The cliff duration * @param _identifier unique identifier for the contract */ constructor(address _pushToken, uint256 _start, uint256 _cliffDuration, string memory _identifier) public { require(_pushToken != address(0), "FundsDistributorFactoryA::constructor: pushtoken is the zero address"); require(_cliffDuration > 0, "FundsDistributorFactoryA::constructor: cliff duration is 0"); require(_start.add(_cliffDuration) > block.timestamp, "FundsDistributorFactoryA::constructor: cliff time is before current time"); pushToken = _pushToken; cliff = _start.add(_cliffDuration); identifier = _identifier; } /** * @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 cliffDuration duration in seconds of the cliff in which tokens will begin to vest * @param start the time (as Unix time) at which point vesting starts * @param duration duration in seconds of the period in which the tokens will vest * @param revocable whether the vesting is revocable or not * @param amount amount to send to fundee vesting contract * @param _identifier unique identifier for the contract */ function deployFundee(address beneficiary, uint256 start, uint256 cliffDuration, uint256 duration, bool revocable, uint256 amount, string memory _identifier) external onlyOwner returns(bool){ FundsDistributor fundeeContract = new FundsDistributor(beneficiary, start, cliffDuration, duration, revocable, _identifier); // IERC20 pushTokenInstance = IERC20(pushToken); // pushTokenInstance.safeTransfer(address(fundeeContract), amount); emit DeployFundee(address(fundeeContract), beneficiary, amount); return true; } /** * @dev Revokes the tokens from someone and sends back to this contract * @param fundeeAddress address of the beneficiary vesting contract */ function revokeFundeeTokens(FundsDistributor fundeeAddress) external onlyOwner returns(bool){ fundeeAddress.revoke(IERC20(pushToken)); emit RevokeFundee(address(fundeeAddress)); return true; } /** * @dev Withdraw remaining tokens after the cliff period has ended * @param amount Amount of tokens to withdraw */ function withdrawTokens(uint amount) external onlyOwner returns(bool){ require(block.timestamp > cliff, "FundsDistributorFactoryA::withdrawTokens: cliff period not complete"); IERC20 pushTokenInstance = IERC20(pushToken); pushTokenInstance.safeTransfer(msg.sender, amount); return true; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), 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 { emit OwnershipTransferred(_owner, address(0)); _owner = 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"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// 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.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, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { 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) { 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) { // 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) { 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) { 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) { 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) { require(b <= a, "SafeMath: subtraction overflow"); 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) { 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, reverting 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) { require(b > 0, "SafeMath: division by zero"); 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) { require(b > 0, "SafeMath: modulo by zero"); 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) { 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. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * 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); 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) { require(b > 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: MIT pragma solidity 0.6.11; import "./TokenVesting.sol"; contract FundsDistributor is TokenVesting { /// @notice identifier for the contract string public identifier; /** * @notice Construct a new Funds Distributor Contract * @param beneficiary address of the beneficiary to whom vested tokens are transferred * @param cliffDuration duration in seconds of the cliff in which tokens will begin to vest * @param start the time (as Unix time) at which point vesting starts * @param duration duration in seconds of the period in which the tokens will vest * @param revocable whether the vesting is revocable or not * @param _identifier unique identifier for the contract */ constructor(address beneficiary, uint256 start, uint256 cliffDuration, uint256 duration, bool revocable, string memory _identifier) TokenVesting(beneficiary, start, cliffDuration, duration, revocable) public { identifier = _identifier; } }
// 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 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.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); } /** * @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"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(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.11; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/math/SafeMath.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 Ownable { // The vesting schedule is time-based (i.e. using block timestamps as opposed to e.g. block numbers), and is // therefore sensitive to timestamp manipulation (which is something miners can do, to a certain degree). Therefore, // it is recommended to avoid using short time durations (less than a minute). Typical vesting schemes, with a // cliff period of a year and a duration of four years, are safe to use. // solhint-disable not-rely-on-time using SafeMath for uint256; using SafeERC20 for IERC20; event TokensReleased(address token, uint256 amount); event TokensReleasedToAccount(address token, address receiver, uint256 amount); event VestingRevoked(address token); event BeneficiaryChanged(address newBeneficiary); // beneficiary of tokens after they are released address private _beneficiary; // Durations and timestamps are expressed in UNIX time, the same units as block.timestamp. uint256 private immutable _cliff; uint256 private immutable _start; uint256 private immutable _duration; bool private immutable _revocable; mapping (address => uint256) private _released; mapping (address => bool) private _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 cliffDuration duration in seconds of the cliff in which tokens will begin to vest * @param start the time (as Unix time) at which point vesting starts * @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 beneficiary, uint256 start, uint256 cliffDuration, uint256 duration, bool revocable) public { require(beneficiary != address(0), "TokenVesting::constructor: beneficiary is the zero address"); // solhint-disable-next-line max-line-length require(cliffDuration <= duration, "TokenVesting::constructor: cliff is longer than duration"); require(duration > 0, "TokenVesting::constructor: duration is 0"); // solhint-disable-next-line max-line-length require(start.add(duration) > block.timestamp, "TokenVesting::constructor: final time is before current time"); _beneficiary = beneficiary; _revocable = revocable; _duration = duration; _cliff = start.add(cliffDuration); _start = start; } /** * @return the beneficiary of the tokens. */ function beneficiary() public view returns (address) { return _beneficiary; } /** * @return the cliff time of the token vesting. */ function cliff() public view returns (uint256) { return _cliff; } /** * @return the start time of the token vesting. */ function start() public view returns (uint256) { return _start; } /** * @return the duration of the token vesting. */ function duration() public view returns (uint256) { return _duration; } /** * @return true if the vesting is revocable. */ function revocable() public view returns (bool) { return _revocable; } /** * @return the amount of the token released. */ function released(address token) public view returns (uint256) { return _released[token]; } /** * @return true if the token is revoked. */ function revoked(address token) public view returns (bool) { return _revoked[token]; } /** * @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, "TokenVesting::release: no tokens are due"); _released[address(token)] = _released[address(token)].add(unreleased); token.safeTransfer(_beneficiary, unreleased); emit TokensReleased(address(token), unreleased); } /** * @notice Transfers vested tokens to given address. * @param token ERC20 token which is being vested * @param receiver Address receiving the token * @param amount Amount of tokens to be transferred */ function releaseToAddress(IERC20 token, address receiver, uint256 amount) public { require(_msgSender() == _beneficiary, "TokenVesting::setBeneficiary: Not contract beneficiary"); require(amount > 0, "TokenVesting::_releaseToAddress: amount should be greater than 0"); require(receiver != address(0), "TokenVesting::_releaseToAddress: receiver is the zero address"); uint256 unreleased = _releasableAmount(token); require(unreleased > 0, "TokenVesting::_releaseToAddress: no tokens are due"); require(unreleased >= amount, "TokenVesting::_releaseToAddress: enough tokens not vested yet"); _released[address(token)] = _released[address(token)].add(amount); token.safeTransfer(receiver, amount); emit TokensReleasedToAccount(address(token), receiver, amount); } /** * @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, "TokenVesting::revoke: cannot revoke"); require(!_revoked[address(token)], "TokenVesting::revoke: token already revoked"); uint256 balance = token.balanceOf(address(this)); uint256 unreleased = _releasableAmount(token); uint256 refund = balance.sub(unreleased); _revoked[address(token)] = true; token.safeTransfer(owner(), refund); emit VestingRevoked(address(token)); } /** * @notice Change the beneficiary of the contract * @param newBeneficiary The new beneficiary address for the Contract */ function setBeneficiary(address newBeneficiary) public { require(_msgSender() == _beneficiary, "TokenVesting::setBeneficiary: Not contract beneficiary"); require(_beneficiary != newBeneficiary, "TokenVesting::setBeneficiary: Same beneficiary address as old"); _beneficiary = newBeneficiary; emit BeneficiaryChanged(newBeneficiary); } /** * @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) private 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) private 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); } } /** * @dev Returns the amount that has already vested. * @param token ERC20 token which is being vested */ function vestedAmount(IERC20 token) public view returns (uint256) { return _vestedAmount(token); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_pushToken","type":"address"},{"internalType":"uint256","name":"_start","type":"uint256"},{"internalType":"uint256","name":"_cliffDuration","type":"uint256"},{"internalType":"string","name":"_identifier","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"fundeeAddress","type":"address"},{"indexed":true,"internalType":"address","name":"beneficiaryAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"DeployFundee","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"fundeeAddress","type":"address"}],"name":"RevokeFundee","type":"event"},{"inputs":[],"name":"cliff","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"cliffDuration","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"bool","name":"revocable","type":"bool"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"string","name":"_identifier","type":"string"}],"name":"deployFundee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"identifier","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pushToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract FundsDistributor","name":"fundeeAddress","type":"address"}],"name":"revokeFundeeTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c06040523480156200001157600080fd5b5060405162002e2238038062002e22833981810160405260808110156200003757600080fd5b8151602083015160408085015160608601805192519496939591949391820192846401000000008211156200006b57600080fd5b9083019060208201858111156200008157600080fd5b82516401000000008111828201881017156200009c57600080fd5b82525081516020918201929091019080838360005b83811015620000cb578181015183820152602001620000b1565b50505050905090810190601f168015620000f95780820380516001836020036101000a031916815260200191505b506040525050506000620001126200028a60201b60201c565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600160a01b038416620001a35760405162461bcd60e51b815260040180806020018281038252604481526020018062002d5c6044913960600191505060405180910390fd5b60008211620001e45760405162461bcd60e51b815260040180806020018281038252603a81526020018062002de8603a913960400191505060405180910390fd5b42620001ff83856200028f60201b6200096e1790919060201c565b116200023d5760405162461bcd60e51b815260040180806020018281038252604881526020018062002da06048913960600191505060405180910390fd5b606084901b6001600160601b0319166080526200026783836200028f602090811b6200096e17901c565b60a05280516200027f906001906020840190620002f1565b505050505062000393565b335b90565b600082820183811015620002ea576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200033457805160ff191683800117855562000364565b8280016001018555821562000364579182015b828111156200036457825182559160200191906001019062000347565b506200037292915062000376565b5090565b6200028c91905b808211156200037257600081556001016200037d565b60805160601c60a051612993620003c9600039806102e252806103705250806103d0528061041652806105f652506129936000f3fe60806040523480156200001157600080fd5b5060043610620000a05760003560e01c80637998a1c4116200006f5780637998a1c414620001275780637cbab23614620001a95780638af13e3814620001d25780638da5cb5b14620002ad578063f2fde38b14620002b757620000a0565b806313d033c014620000a5578063315a095d14620000c1578063504cf46414620000f5578063715018a6146200011b575b600080fd5b620000af620002e0565b60408051918252519081900360200190f35b620000e160048036036020811015620000d957600080fd5b503562000304565b604080519115158252519081900360200190f35b620000ff62000414565b604080516001600160a01b039092168252519081900360200190f35b6200012562000438565b005b62000131620004ea565b6040805160208082528351818301528351919283929083019185019080838360005b838110156200016d57818101518382015260200162000153565b50505050905090810190601f1680156200019b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b620000e160048036036020811015620001c157600080fd5b50356001600160a01b03166200057b565b620000e1600480360360e0811015620001ea57600080fd5b6001600160a01b0382351691602081013591604082013591606081013591608082013515159160a08101359181019060e0810160c08201356401000000008111156200023557600080fd5b8201836020820111156200024857600080fd5b803590602001918460018302840111640100000000831117156200026b57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550620006b3945050505050565b620000ff62000855565b6200012560048036036020811015620002cf57600080fd5b50356001600160a01b031662000864565b7f000000000000000000000000000000000000000000000000000000000000000081565b600062000310620009d0565b6001600160a01b03166200032362000855565b6001600160a01b0316146200036e576040805162461bcd60e51b81526020600482018190526024820152600080516020620028d1833981519152604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000004211620003ce5760405162461bcd60e51b8152600401808060200182810382526043815260200180620028f16043913960600191505060405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006200040b6001600160a01b038216338563ffffffff620009d416565b50600192915050565b7f000000000000000000000000000000000000000000000000000000000000000081565b62000442620009d0565b6001600160a01b03166200045562000855565b6001600160a01b031614620004a0576040805162461bcd60e51b81526020600482018190526024820152600080516020620028d1833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60018054604080516020600284861615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015620005735780601f10620005475761010080835404028352916020019162000573565b820191906000526020600020905b8154815290600101906020018083116200055557829003601f168201915b505050505081565b600062000587620009d0565b6001600160a01b03166200059a62000855565b6001600160a01b031614620005e5576040805162461bcd60e51b81526020600482018190526024820152600080516020620028d1833981519152604482015290519081900360640190fd5b816001600160a01b03166374a8f1037f00000000000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b03168152602001915050600060405180830381600087803b1580156200065e57600080fd5b505af115801562000673573d6000803e3d6000fd5b50506040516001600160a01b03851692507fc1594af50f639a9e331fe2933e3851bc662cb2609eafae529a9bb7639086e5ad9150600090a2506001919050565b6000620006bf620009d0565b6001600160a01b0316620006d262000855565b6001600160a01b0316146200071d576040805162461bcd60e51b81526020600482018190526024820152600080516020620028d1833981519152604482015290519081900360640190fd5b6000888888888887604051620007339062000d14565b80876001600160a01b03166001600160a01b031681526020018681526020018581526020018481526020018315151515815260200180602001828103825283818151815260200191508051906020019080838360005b83811015620007a357818101518382015260200162000789565b50505050905090810190601f168015620007d15780820380516001836020036101000a031916815260200191505b50975050505050505050604051809103906000f080158015620007f8573d6000803e3d6000fd5b509050886001600160a01b0316816001600160a01b03167fd64e155e7be7135a5b8db7c6e60ae9869f8508529ecc263cdf06d20f7f3d07eb866040518082815260200191505060405180910390a350600198975050505050505050565b6000546001600160a01b031690565b6200086e620009d0565b6001600160a01b03166200088162000855565b6001600160a01b031614620008cc576040805162461bcd60e51b81526020600482018190526024820152600080516020620028d1833981519152604482015290519081900360640190fd5b6001600160a01b038116620009135760405162461bcd60e51b8152600401808060200182810382526026815260200180620028856026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600082820183811015620009c9576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b3390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905262000a2890849062000a2d565b505050565b606062000a84826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031662000ae49092919063ffffffff16565b80519091501562000a285780806020019051602081101562000aa557600080fd5b505162000a285760405162461bcd60e51b815260040180806020018281038252602a81526020018062002934602a913960400191505060405180910390fd5b606062000af5848460008562000afd565b949350505050565b60608247101562000b405760405162461bcd60e51b8152600401808060200182810382526026815260200180620028ab6026913960400191505060405180910390fd5b62000b4b8562000c64565b62000b9d576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b6020831062000bde5780518252601f19909201916020918201910162000bbd565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811462000c42576040519150601f19603f3d011682016040523d82523d6000602084013e62000c47565b606091505b509150915062000c5982828662000c6a565b979650505050505050565b3b151590565b6060831562000c7b575081620009c9565b82511562000c8c5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101562000cd857818101518382015260200162000cbe565b50505050905090810190601f16801562000d065780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b611b628062000d238339019056fe6101006040523480156200001257600080fd5b5060405162001b6238038062001b62833981810160405260c08110156200003857600080fd5b815160208301516040808501516060860151608087015160a0880180519451969895979396929591949293820192846401000000008211156200007a57600080fd5b9083019060208201858111156200009057600080fd5b8251640100000000811182820188101715620000ab57600080fd5b82525081516020918201929091019080838360005b83811015620000da578181015183820152602001620000c0565b50505050905090810190601f168015620001085780820380516001836020036101000a031916815260200191505b506040525050508585858585600062000126620002ff60201b60201c565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600160a01b038516620001b75760405162461bcd60e51b815260040180806020018281038252603a81526020018062001a8c603a913960400191505060405180910390fd5b81831115620001f85760405162461bcd60e51b815260040180806020018281038252603881526020018062001ac66038913960400191505060405180910390fd5b60008211620002395760405162461bcd60e51b815260040180806020018281038252602881526020018062001b3a6028913960400191505060405180910390fd5b426200025483866200030460201b62000cd71790919060201c565b11620002925760405162461bcd60e51b815260040180806020018281038252603c81526020018062001afe603c913960400191505060405180910390fd5b600180546001600160a01b0319166001600160a01b03871617905580151560f81b60e05260c0829052620002d3848462000304602090811b62000cd717901c565b60805250505060a052508051620002f290600490602084019062000366565b5050505050505062000408565b335b90565b6000828201838110156200035f576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620003a957805160ff1916838001178555620003d9565b82800160010185558215620003d9579182015b82811115620003d9578251825591602001919060010190620003bc565b50620003e7929150620003eb565b5090565b6200030191905b80821115620003e75760008155600101620003f2565b60805160a05160c05160e05160f81c61162d6200045f600039806108d35280610b355250806103405280610ec75280610f2a525080610b835280610ea65280610f525250806103645280610e70525061162d6000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c806374a8f103116100975780639852595c116100665780639852595c146102c4578063be9a6555146102ea578063f2fde38b146102f2578063fa01dc061461031857610100565b806374a8f103146101fd5780637998a1c414610223578063872a7810146102a05780638da5cb5b146102bc57610100565b8063384711cc116100d3578063384711cc1461017557806338af3eed1461019b5780634cb6464d146101bf578063715018a6146101f557610100565b80630fb5a6b41461010557806313d033c01461011f57806319165587146101275780631c31f7101461014f575b600080fd5b61010d61033e565b60408051918252519081900360200190f35b61010d610362565b61014d6004803603602081101561013d57600080fd5b50356001600160a01b0316610386565b005b61014d6004803603602081101561016557600080fd5b50356001600160a01b0316610475565b61010d6004803603602081101561018b57600080fd5b50356001600160a01b031661056f565b6101a3610582565b604080516001600160a01b039092168252519081900360200190f35b61014d600480360360608110156101d557600080fd5b506001600160a01b03813581169160208101359091169060400135610591565b61014d61079f565b61014d6004803603602081101561021357600080fd5b50356001600160a01b031661085d565b61022b610aa5565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561026557818101518382015260200161024d565b50505050905090810190601f1680156102925780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102a8610b33565b604080519115158252519081900360200190f35b6101a3610b57565b61010d600480360360208110156102da57600080fd5b50356001600160a01b0316610b66565b61010d610b81565b61014d6004803603602081101561030857600080fd5b50356001600160a01b0316610ba5565b6102a86004803603602081101561032e57600080fd5b50356001600160a01b0316610cb9565b7f000000000000000000000000000000000000000000000000000000000000000090565b7f000000000000000000000000000000000000000000000000000000000000000090565b600061039182610d3a565b9050600081116103d25760405162461bcd60e51b81526004018080602001828103825260288152602001806113e86028913960400191505060405180910390fd5b6001600160a01b0382166000908152600260205260409020546103fb908263ffffffff610cd716565b6001600160a01b0380841660008181526002602052604090209290925560015461042d9291168363ffffffff610d6c16565b604080516001600160a01b03841681526020810183905281517fc7798891864187665ac6dd119286e44ec13f014527aeeb2b8eb3fd413df93179929181900390910190a15050565b6001546001600160a01b0316610489610dc3565b6001600160a01b0316146104ce5760405162461bcd60e51b815260040180806020018281038252603681526020018061138c6036913960400191505060405180910390fd5b6001546001600160a01b038281169116141561051b5760405162461bcd60e51b815260040180806020018281038252603d815260200180611522603d913960400191505060405180910390fd5b600180546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f373c72efabe4ef3e552ff77838be729f3bc3d8c586df0012902d1baa2377fa1d9181900360200190a150565b600061057a82610dc7565b90505b919050565b6001546001600160a01b031690565b6001546001600160a01b03166105a5610dc3565b6001600160a01b0316146105ea5760405162461bcd60e51b815260040180806020018281038252603681526020018061138c6036913960400191505060405180910390fd5b600081116106295760405162461bcd60e51b81526004018080602001828103825260408152602001806114e26040913960400191505060405180910390fd5b6001600160a01b03821661066e5760405162461bcd60e51b815260040180806020018281038252603d815260200180611410603d913960400191505060405180910390fd5b600061067984610d3a565b9050600081116106ba5760405162461bcd60e51b81526004018080602001828103825260328152602001806115c66032913960400191505060405180910390fd5b818110156106f95760405162461bcd60e51b815260040180806020018281038252603d81526020018061155f603d913960400191505060405180910390fd5b6001600160a01b038416600090815260026020526040902054610722908363ffffffff610cd716565b6001600160a01b03851660008181526002602052604090209190915561074f90848463ffffffff610d6c16565b604080516001600160a01b0380871682528516602082015280820184905290517f5771d27c3bda2d39985b929f5e739573a21a8ec4c3bd42fa8653dea8b5a4fa419181900360600190a150505050565b6107a7610dc3565b6001600160a01b03166107b8610b57565b6001600160a01b031614610813576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b610865610dc3565b6001600160a01b0316610876610b57565b6001600160a01b0316146108d1576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b7f000000000000000000000000000000000000000000000000000000000000000061092d5760405162461bcd60e51b81526004018080602001828103825260238152602001806114736023913960400191505060405180910390fd5b6001600160a01b03811660009081526003602052604090205460ff16156109855760405162461bcd60e51b815260040180806020018281038252602b8152602001806114b7602b913960400191505060405180910390fd5b604080516370a0823160e01b815230600482015290516000916001600160a01b038416916370a0823191602480820192602092909190829003018186803b1580156109cf57600080fd5b505afa1580156109e3573d6000803e3d6000fd5b505050506040513d60208110156109f957600080fd5b505190506000610a0883610d3a565b90506000610a1c838363ffffffff610f9e16565b6001600160a01b0385166000908152600360205260409020805460ff191660011790559050610a63610a4c610b57565b6001600160a01b038616908363ffffffff610d6c16565b604080516001600160a01b038616815290517f68d870ac0aff3819234e8a1fc8f357b40d75212f2dc8594b97690fa205b3bab29181900360200190a150505050565b6004805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610b2b5780601f10610b0057610100808354040283529160200191610b2b565b820191906000526020600020905b815481529060010190602001808311610b0e57829003601f168201915b505050505081565b7f000000000000000000000000000000000000000000000000000000000000000090565b6000546001600160a01b031690565b6001600160a01b031660009081526002602052604090205490565b7f000000000000000000000000000000000000000000000000000000000000000090565b610bad610dc3565b6001600160a01b0316610bbe610b57565b6001600160a01b031614610c19576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116610c5e5760405162461bcd60e51b81526004018080602001828103825260268152602001806113c26026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b031660009081526003602052604090205460ff1690565b600082820183811015610d31576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b6001600160a01b03811660009081526002602052604081205461057a90610d6084610dc7565b9063ffffffff610f9e16565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610dbe908490610ffb565b505050565b3390565b604080516370a0823160e01b8152306004820152905160009182916001600160a01b038516916370a08231916024808301926020929190829003018186803b158015610e1257600080fd5b505afa158015610e26573d6000803e3d6000fd5b505050506040513d6020811015610e3c57600080fd5b50516001600160a01b03841660009081526002602052604081205491925090610e6c90839063ffffffff610cd716565b90507f0000000000000000000000000000000000000000000000000000000000000000421015610ea15760009250505061057d565b610ef17f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000063ffffffff610cd716565b42101580610f1757506001600160a01b03841660009081526003602052604090205460ff165b15610f2557915061057d9050565b610f957f0000000000000000000000000000000000000000000000000000000000000000610f89610f7c427f000000000000000000000000000000000000000000000000000000000000000063ffffffff610f9e16565b849063ffffffff6110ac16565b9063ffffffff61110516565b9250505061057d565b600082821115610ff5576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6060611050826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661116c9092919063ffffffff16565b805190915015610dbe5780806020019051602081101561106f57600080fd5b5051610dbe5760405162461bcd60e51b815260040180806020018281038252602a81526020018061159c602a913960400191505060405180910390fd5b6000826110bb57506000610d34565b828202828482816110c857fe5b0414610d315760405162461bcd60e51b81526004018080602001828103825260218152602001806114966021913960400191505060405180910390fd5b600080821161115b576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161116457fe5b049392505050565b606061117b8484600085611185565b90505b9392505050565b6060824710156111c65760405162461bcd60e51b815260040180806020018281038252602681526020018061144d6026913960400191505060405180910390fd5b6111cf856112e1565b611220576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b6020831061125f5780518252601f199092019160209182019101611240565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146112c1576040519150601f19603f3d011682016040523d82523d6000602084013e6112c6565b606091505b50915091506112d68282866112e7565b979650505050505050565b3b151590565b606083156112f657508161117e565b8251156113065782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611350578181015183820152602001611338565b50505050905090810190601f16801561137d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe546f6b656e56657374696e673a3a73657442656e65666963696172793a204e6f7420636f6e74726163742062656e65666963696172794f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373546f6b656e56657374696e673a3a72656c656173653a206e6f20746f6b656e732061726520647565546f6b656e56657374696e673a3a5f72656c65617365546f416464726573733a20726563656976657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c546f6b656e56657374696e673a3a7265766f6b653a2063616e6e6f74207265766f6b65536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77546f6b656e56657374696e673a3a7265766f6b653a20746f6b656e20616c7265616479207265766f6b6564546f6b656e56657374696e673a3a5f72656c65617365546f416464726573733a20616d6f756e742073686f756c642062652067726561746572207468616e2030546f6b656e56657374696e673a3a73657442656e65666963696172793a2053616d652062656e65666963696172792061646472657373206173206f6c64546f6b656e56657374696e673a3a5f72656c65617365546f416464726573733a20656e6f75676820746f6b656e73206e6f7420766573746564207965745361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564546f6b656e56657374696e673a3a5f72656c65617365546f416464726573733a206e6f20746f6b656e732061726520647565a2646970667358221220724f14d974e1ba9a7533b2df460593a30fd0b1eff0babb517a4292a8e6cd71ca64736f6c634300060b0033546f6b656e56657374696e673a3a636f6e7374727563746f723a2062656e656669636961727920697320746865207a65726f2061646472657373546f6b656e56657374696e673a3a636f6e7374727563746f723a20636c696666206973206c6f6e676572207468616e206475726174696f6e546f6b656e56657374696e673a3a636f6e7374727563746f723a2066696e616c2074696d65206973206265666f72652063757272656e742074696d65546f6b656e56657374696e673a3a636f6e7374727563746f723a206475726174696f6e20697320304f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657246756e64734469737472696275746f72466163746f7279413a3a7769746864726177546f6b656e733a20636c69666620706572696f64206e6f7420636f6d706c6574655361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220f149be6def83fed037c32b6380d12e8125fb987bedb9e83751c9d219bab9f6bc64736f6c634300060b003346756e64734469737472696275746f72466163746f7279413a3a636f6e7374727563746f723a2070757368746f6b656e20697320746865207a65726f206164647265737346756e64734469737472696275746f72466163746f7279413a3a636f6e7374727563746f723a20636c6966662074696d65206973206265666f72652063757272656e742074696d6546756e64734469737472696275746f72466163746f7279413a3a636f6e7374727563746f723a20636c696666206475726174696f6e2069732030000000000000000000000000f418588522d5dd018b425e472991e52ebbeeeeee0000000000000000000000000000000000000000000000000000000060741a200000000000000000000000000000000000000000000000000000000002ef770000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000011496e766573746f727341466163746f7279000000000000000000000000000000
Deployed Bytecode
0x60806040523480156200001157600080fd5b5060043610620000a05760003560e01c80637998a1c4116200006f5780637998a1c414620001275780637cbab23614620001a95780638af13e3814620001d25780638da5cb5b14620002ad578063f2fde38b14620002b757620000a0565b806313d033c014620000a5578063315a095d14620000c1578063504cf46414620000f5578063715018a6146200011b575b600080fd5b620000af620002e0565b60408051918252519081900360200190f35b620000e160048036036020811015620000d957600080fd5b503562000304565b604080519115158252519081900360200190f35b620000ff62000414565b604080516001600160a01b039092168252519081900360200190f35b6200012562000438565b005b62000131620004ea565b6040805160208082528351818301528351919283929083019185019080838360005b838110156200016d57818101518382015260200162000153565b50505050905090810190601f1680156200019b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b620000e160048036036020811015620001c157600080fd5b50356001600160a01b03166200057b565b620000e1600480360360e0811015620001ea57600080fd5b6001600160a01b0382351691602081013591604082013591606081013591608082013515159160a08101359181019060e0810160c08201356401000000008111156200023557600080fd5b8201836020820111156200024857600080fd5b803590602001918460018302840111640100000000831117156200026b57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550620006b3945050505050565b620000ff62000855565b6200012560048036036020811015620002cf57600080fd5b50356001600160a01b031662000864565b7f000000000000000000000000000000000000000000000000000000006363912081565b600062000310620009d0565b6001600160a01b03166200032362000855565b6001600160a01b0316146200036e576040805162461bcd60e51b81526020600482018190526024820152600080516020620028d1833981519152604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000636391204211620003ce5760405162461bcd60e51b8152600401808060200182810382526043815260200180620028f16043913960600191505060405180910390fd5b7f000000000000000000000000f418588522d5dd018b425e472991e52ebbeeeeee6200040b6001600160a01b038216338563ffffffff620009d416565b50600192915050565b7f000000000000000000000000f418588522d5dd018b425e472991e52ebbeeeeee81565b62000442620009d0565b6001600160a01b03166200045562000855565b6001600160a01b031614620004a0576040805162461bcd60e51b81526020600482018190526024820152600080516020620028d1833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60018054604080516020600284861615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015620005735780601f10620005475761010080835404028352916020019162000573565b820191906000526020600020905b8154815290600101906020018083116200055557829003601f168201915b505050505081565b600062000587620009d0565b6001600160a01b03166200059a62000855565b6001600160a01b031614620005e5576040805162461bcd60e51b81526020600482018190526024820152600080516020620028d1833981519152604482015290519081900360640190fd5b816001600160a01b03166374a8f1037f000000000000000000000000f418588522d5dd018b425e472991e52ebbeeeeee6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b03168152602001915050600060405180830381600087803b1580156200065e57600080fd5b505af115801562000673573d6000803e3d6000fd5b50506040516001600160a01b03851692507fc1594af50f639a9e331fe2933e3851bc662cb2609eafae529a9bb7639086e5ad9150600090a2506001919050565b6000620006bf620009d0565b6001600160a01b0316620006d262000855565b6001600160a01b0316146200071d576040805162461bcd60e51b81526020600482018190526024820152600080516020620028d1833981519152604482015290519081900360640190fd5b6000888888888887604051620007339062000d14565b80876001600160a01b03166001600160a01b031681526020018681526020018581526020018481526020018315151515815260200180602001828103825283818151815260200191508051906020019080838360005b83811015620007a357818101518382015260200162000789565b50505050905090810190601f168015620007d15780820380516001836020036101000a031916815260200191505b50975050505050505050604051809103906000f080158015620007f8573d6000803e3d6000fd5b509050886001600160a01b0316816001600160a01b03167fd64e155e7be7135a5b8db7c6e60ae9869f8508529ecc263cdf06d20f7f3d07eb866040518082815260200191505060405180910390a350600198975050505050505050565b6000546001600160a01b031690565b6200086e620009d0565b6001600160a01b03166200088162000855565b6001600160a01b031614620008cc576040805162461bcd60e51b81526020600482018190526024820152600080516020620028d1833981519152604482015290519081900360640190fd5b6001600160a01b038116620009135760405162461bcd60e51b8152600401808060200182810382526026815260200180620028856026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600082820183811015620009c9576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b3390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905262000a2890849062000a2d565b505050565b606062000a84826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031662000ae49092919063ffffffff16565b80519091501562000a285780806020019051602081101562000aa557600080fd5b505162000a285760405162461bcd60e51b815260040180806020018281038252602a81526020018062002934602a913960400191505060405180910390fd5b606062000af5848460008562000afd565b949350505050565b60608247101562000b405760405162461bcd60e51b8152600401808060200182810382526026815260200180620028ab6026913960400191505060405180910390fd5b62000b4b8562000c64565b62000b9d576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b6020831062000bde5780518252601f19909201916020918201910162000bbd565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811462000c42576040519150601f19603f3d011682016040523d82523d6000602084013e62000c47565b606091505b509150915062000c5982828662000c6a565b979650505050505050565b3b151590565b6060831562000c7b575081620009c9565b82511562000c8c5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101562000cd857818101518382015260200162000cbe565b50505050905090810190601f16801562000d065780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b611b628062000d238339019056fe6101006040523480156200001257600080fd5b5060405162001b6238038062001b62833981810160405260c08110156200003857600080fd5b815160208301516040808501516060860151608087015160a0880180519451969895979396929591949293820192846401000000008211156200007a57600080fd5b9083019060208201858111156200009057600080fd5b8251640100000000811182820188101715620000ab57600080fd5b82525081516020918201929091019080838360005b83811015620000da578181015183820152602001620000c0565b50505050905090810190601f168015620001085780820380516001836020036101000a031916815260200191505b506040525050508585858585600062000126620002ff60201b60201c565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600160a01b038516620001b75760405162461bcd60e51b815260040180806020018281038252603a81526020018062001a8c603a913960400191505060405180910390fd5b81831115620001f85760405162461bcd60e51b815260040180806020018281038252603881526020018062001ac66038913960400191505060405180910390fd5b60008211620002395760405162461bcd60e51b815260040180806020018281038252602881526020018062001b3a6028913960400191505060405180910390fd5b426200025483866200030460201b62000cd71790919060201c565b11620002925760405162461bcd60e51b815260040180806020018281038252603c81526020018062001afe603c913960400191505060405180910390fd5b600180546001600160a01b0319166001600160a01b03871617905580151560f81b60e05260c0829052620002d3848462000304602090811b62000cd717901c565b60805250505060a052508051620002f290600490602084019062000366565b5050505050505062000408565b335b90565b6000828201838110156200035f576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620003a957805160ff1916838001178555620003d9565b82800160010185558215620003d9579182015b82811115620003d9578251825591602001919060010190620003bc565b50620003e7929150620003eb565b5090565b6200030191905b80821115620003e75760008155600101620003f2565b60805160a05160c05160e05160f81c61162d6200045f600039806108d35280610b355250806103405280610ec75280610f2a525080610b835280610ea65280610f525250806103645280610e70525061162d6000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c806374a8f103116100975780639852595c116100665780639852595c146102c4578063be9a6555146102ea578063f2fde38b146102f2578063fa01dc061461031857610100565b806374a8f103146101fd5780637998a1c414610223578063872a7810146102a05780638da5cb5b146102bc57610100565b8063384711cc116100d3578063384711cc1461017557806338af3eed1461019b5780634cb6464d146101bf578063715018a6146101f557610100565b80630fb5a6b41461010557806313d033c01461011f57806319165587146101275780631c31f7101461014f575b600080fd5b61010d61033e565b60408051918252519081900360200190f35b61010d610362565b61014d6004803603602081101561013d57600080fd5b50356001600160a01b0316610386565b005b61014d6004803603602081101561016557600080fd5b50356001600160a01b0316610475565b61010d6004803603602081101561018b57600080fd5b50356001600160a01b031661056f565b6101a3610582565b604080516001600160a01b039092168252519081900360200190f35b61014d600480360360608110156101d557600080fd5b506001600160a01b03813581169160208101359091169060400135610591565b61014d61079f565b61014d6004803603602081101561021357600080fd5b50356001600160a01b031661085d565b61022b610aa5565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561026557818101518382015260200161024d565b50505050905090810190601f1680156102925780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102a8610b33565b604080519115158252519081900360200190f35b6101a3610b57565b61010d600480360360208110156102da57600080fd5b50356001600160a01b0316610b66565b61010d610b81565b61014d6004803603602081101561030857600080fd5b50356001600160a01b0316610ba5565b6102a86004803603602081101561032e57600080fd5b50356001600160a01b0316610cb9565b7f000000000000000000000000000000000000000000000000000000000000000090565b7f000000000000000000000000000000000000000000000000000000000000000090565b600061039182610d3a565b9050600081116103d25760405162461bcd60e51b81526004018080602001828103825260288152602001806113e86028913960400191505060405180910390fd5b6001600160a01b0382166000908152600260205260409020546103fb908263ffffffff610cd716565b6001600160a01b0380841660008181526002602052604090209290925560015461042d9291168363ffffffff610d6c16565b604080516001600160a01b03841681526020810183905281517fc7798891864187665ac6dd119286e44ec13f014527aeeb2b8eb3fd413df93179929181900390910190a15050565b6001546001600160a01b0316610489610dc3565b6001600160a01b0316146104ce5760405162461bcd60e51b815260040180806020018281038252603681526020018061138c6036913960400191505060405180910390fd5b6001546001600160a01b038281169116141561051b5760405162461bcd60e51b815260040180806020018281038252603d815260200180611522603d913960400191505060405180910390fd5b600180546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f373c72efabe4ef3e552ff77838be729f3bc3d8c586df0012902d1baa2377fa1d9181900360200190a150565b600061057a82610dc7565b90505b919050565b6001546001600160a01b031690565b6001546001600160a01b03166105a5610dc3565b6001600160a01b0316146105ea5760405162461bcd60e51b815260040180806020018281038252603681526020018061138c6036913960400191505060405180910390fd5b600081116106295760405162461bcd60e51b81526004018080602001828103825260408152602001806114e26040913960400191505060405180910390fd5b6001600160a01b03821661066e5760405162461bcd60e51b815260040180806020018281038252603d815260200180611410603d913960400191505060405180910390fd5b600061067984610d3a565b9050600081116106ba5760405162461bcd60e51b81526004018080602001828103825260328152602001806115c66032913960400191505060405180910390fd5b818110156106f95760405162461bcd60e51b815260040180806020018281038252603d81526020018061155f603d913960400191505060405180910390fd5b6001600160a01b038416600090815260026020526040902054610722908363ffffffff610cd716565b6001600160a01b03851660008181526002602052604090209190915561074f90848463ffffffff610d6c16565b604080516001600160a01b0380871682528516602082015280820184905290517f5771d27c3bda2d39985b929f5e739573a21a8ec4c3bd42fa8653dea8b5a4fa419181900360600190a150505050565b6107a7610dc3565b6001600160a01b03166107b8610b57565b6001600160a01b031614610813576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b610865610dc3565b6001600160a01b0316610876610b57565b6001600160a01b0316146108d1576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b7f000000000000000000000000000000000000000000000000000000000000000061092d5760405162461bcd60e51b81526004018080602001828103825260238152602001806114736023913960400191505060405180910390fd5b6001600160a01b03811660009081526003602052604090205460ff16156109855760405162461bcd60e51b815260040180806020018281038252602b8152602001806114b7602b913960400191505060405180910390fd5b604080516370a0823160e01b815230600482015290516000916001600160a01b038416916370a0823191602480820192602092909190829003018186803b1580156109cf57600080fd5b505afa1580156109e3573d6000803e3d6000fd5b505050506040513d60208110156109f957600080fd5b505190506000610a0883610d3a565b90506000610a1c838363ffffffff610f9e16565b6001600160a01b0385166000908152600360205260409020805460ff191660011790559050610a63610a4c610b57565b6001600160a01b038616908363ffffffff610d6c16565b604080516001600160a01b038616815290517f68d870ac0aff3819234e8a1fc8f357b40d75212f2dc8594b97690fa205b3bab29181900360200190a150505050565b6004805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610b2b5780601f10610b0057610100808354040283529160200191610b2b565b820191906000526020600020905b815481529060010190602001808311610b0e57829003601f168201915b505050505081565b7f000000000000000000000000000000000000000000000000000000000000000090565b6000546001600160a01b031690565b6001600160a01b031660009081526002602052604090205490565b7f000000000000000000000000000000000000000000000000000000000000000090565b610bad610dc3565b6001600160a01b0316610bbe610b57565b6001600160a01b031614610c19576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116610c5e5760405162461bcd60e51b81526004018080602001828103825260268152602001806113c26026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b031660009081526003602052604090205460ff1690565b600082820183811015610d31576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b6001600160a01b03811660009081526002602052604081205461057a90610d6084610dc7565b9063ffffffff610f9e16565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610dbe908490610ffb565b505050565b3390565b604080516370a0823160e01b8152306004820152905160009182916001600160a01b038516916370a08231916024808301926020929190829003018186803b158015610e1257600080fd5b505afa158015610e26573d6000803e3d6000fd5b505050506040513d6020811015610e3c57600080fd5b50516001600160a01b03841660009081526002602052604081205491925090610e6c90839063ffffffff610cd716565b90507f0000000000000000000000000000000000000000000000000000000000000000421015610ea15760009250505061057d565b610ef17f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000063ffffffff610cd716565b42101580610f1757506001600160a01b03841660009081526003602052604090205460ff165b15610f2557915061057d9050565b610f957f0000000000000000000000000000000000000000000000000000000000000000610f89610f7c427f000000000000000000000000000000000000000000000000000000000000000063ffffffff610f9e16565b849063ffffffff6110ac16565b9063ffffffff61110516565b9250505061057d565b600082821115610ff5576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6060611050826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661116c9092919063ffffffff16565b805190915015610dbe5780806020019051602081101561106f57600080fd5b5051610dbe5760405162461bcd60e51b815260040180806020018281038252602a81526020018061159c602a913960400191505060405180910390fd5b6000826110bb57506000610d34565b828202828482816110c857fe5b0414610d315760405162461bcd60e51b81526004018080602001828103825260218152602001806114966021913960400191505060405180910390fd5b600080821161115b576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161116457fe5b049392505050565b606061117b8484600085611185565b90505b9392505050565b6060824710156111c65760405162461bcd60e51b815260040180806020018281038252602681526020018061144d6026913960400191505060405180910390fd5b6111cf856112e1565b611220576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b6020831061125f5780518252601f199092019160209182019101611240565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146112c1576040519150601f19603f3d011682016040523d82523d6000602084013e6112c6565b606091505b50915091506112d68282866112e7565b979650505050505050565b3b151590565b606083156112f657508161117e565b8251156113065782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611350578181015183820152602001611338565b50505050905090810190601f16801561137d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe546f6b656e56657374696e673a3a73657442656e65666963696172793a204e6f7420636f6e74726163742062656e65666963696172794f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373546f6b656e56657374696e673a3a72656c656173653a206e6f20746f6b656e732061726520647565546f6b656e56657374696e673a3a5f72656c65617365546f416464726573733a20726563656976657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c546f6b656e56657374696e673a3a7265766f6b653a2063616e6e6f74207265766f6b65536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77546f6b656e56657374696e673a3a7265766f6b653a20746f6b656e20616c7265616479207265766f6b6564546f6b656e56657374696e673a3a5f72656c65617365546f416464726573733a20616d6f756e742073686f756c642062652067726561746572207468616e2030546f6b656e56657374696e673a3a73657442656e65666963696172793a2053616d652062656e65666963696172792061646472657373206173206f6c64546f6b656e56657374696e673a3a5f72656c65617365546f416464726573733a20656e6f75676820746f6b656e73206e6f7420766573746564207965745361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564546f6b656e56657374696e673a3a5f72656c65617365546f416464726573733a206e6f20746f6b656e732061726520647565a2646970667358221220724f14d974e1ba9a7533b2df460593a30fd0b1eff0babb517a4292a8e6cd71ca64736f6c634300060b0033546f6b656e56657374696e673a3a636f6e7374727563746f723a2062656e656669636961727920697320746865207a65726f2061646472657373546f6b656e56657374696e673a3a636f6e7374727563746f723a20636c696666206973206c6f6e676572207468616e206475726174696f6e546f6b656e56657374696e673a3a636f6e7374727563746f723a2066696e616c2074696d65206973206265666f72652063757272656e742074696d65546f6b656e56657374696e673a3a636f6e7374727563746f723a206475726174696f6e20697320304f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657246756e64734469737472696275746f72466163746f7279413a3a7769746864726177546f6b656e733a20636c69666620706572696f64206e6f7420636f6d706c6574655361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220f149be6def83fed037c32b6380d12e8125fb987bedb9e83751c9d219bab9f6bc64736f6c634300060b0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000f418588522d5dd018b425e472991e52ebbeeeeee0000000000000000000000000000000000000000000000000000000060741a200000000000000000000000000000000000000000000000000000000002ef770000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000011496e766573746f727341466163746f7279000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _pushToken (address): 0xf418588522d5dd018b425E472991E52EBBeEEEEE
Arg [1] : _start (uint256): 1618221600
Arg [2] : _cliffDuration (uint256): 49248000
Arg [3] : _identifier (string): InvestorsAFactory
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000f418588522d5dd018b425e472991e52ebbeeeeee
Arg [1] : 0000000000000000000000000000000000000000000000000000000060741a20
Arg [2] : 0000000000000000000000000000000000000000000000000000000002ef7700
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000011
Arg [5] : 496e766573746f727341466163746f7279000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 35 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
Loading...
Loading
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.