Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 36 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Create | 16733840 | 590 days ago | IN | 0 ETH | 0.02037815 | ||||
Create | 16712343 | 593 days ago | IN | 0 ETH | 0.01633872 | ||||
Create | 16712336 | 593 days ago | IN | 0 ETH | 0.01617476 | ||||
Create | 16712305 | 593 days ago | IN | 0 ETH | 0.01528496 | ||||
Create | 16712295 | 593 days ago | IN | 0 ETH | 0.01603108 | ||||
Create | 16086476 | 681 days ago | IN | 0 ETH | 0.00984316 | ||||
Create | 16086471 | 681 days ago | IN | 0 ETH | 0.01014066 | ||||
Create | 16068268 | 683 days ago | IN | 0 ETH | 0.0086596 | ||||
Create | 16068227 | 683 days ago | IN | 0 ETH | 0.00909883 | ||||
Create | 16068206 | 683 days ago | IN | 0 ETH | 0.00942994 | ||||
Create | 16060750 | 684 days ago | IN | 0 ETH | 0.00760264 | ||||
Create | 16042528 | 687 days ago | IN | 0 ETH | 0.01025552 | ||||
Create | 15668632 | 739 days ago | IN | 0 ETH | 0.02790305 | ||||
Create | 13117890 | 1140 days ago | IN | 0 ETH | 0.04494913 | ||||
Create | 13117013 | 1140 days ago | IN | 0 ETH | 0.03980931 | ||||
Create | 12943570 | 1167 days ago | IN | 0 ETH | 0.0151984 | ||||
Create | 12550396 | 1228 days ago | IN | 0 ETH | 0.0303964 | ||||
Create | 12550366 | 1228 days ago | IN | 0 ETH | 0.02860838 | ||||
Create | 12136237 | 1292 days ago | IN | 0 ETH | 0.17156437 | ||||
Create | 11932215 | 1323 days ago | IN | 0 ETH | 0.12439336 | ||||
Create | 11909878 | 1327 days ago | IN | 0 ETH | 0.10573435 | ||||
Create | 11598975 | 1374 days ago | IN | 0 ETH | 0.06486225 | ||||
Create | 11580303 | 1377 days ago | IN | 0 ETH | 0.04886882 | ||||
Create | 11539866 | 1384 days ago | IN | 0 ETH | 0.07285798 | ||||
Create | 11357139 | 1412 days ago | IN | 0 ETH | 0.03731851 |
Latest 25 internal transactions (View All)
Advanced mode:
Loading...
Loading
Contract Name:
VestingFactory
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-08-20 */ /** *Submitted for verification at Etherscan.io on 2020-08-20 */ // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.0.0/contracts/GSN/Context.sol pragma solidity ^0.6.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. */ contract Context { // Empty internal constructor, to prevent people from mistakenly deploying // an instance of this contract, which should be used via inheritance. constructor () internal { } 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; } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.0.0/contracts/access/Ownable.sol pragma solidity ^0.6.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ 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 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; } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.0.0/contracts/utils/Address.sol pragma solidity ^0.6.2; /** * @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) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != accountHash && codehash != 0x0); } /** * @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"); } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.0.0/contracts/math/SafeMath.sol pragma solidity ^0.6.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) { // Solidity only automatically asserts when dividing by 0 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; } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.0.0/contracts/token/ERC20/IERC20.sol pragma solidity ^0.6.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.0.0/contracts/token/ERC20/SafeERC20.sol pragma solidity ^0.6.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for ERC20;` 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)); } 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. // A Solidity high level call has three parts: // 1. The target address is checked to verify it contains contract code // 2. The call itself is made, and success asserted // 3. The return value is decoded, which in turn checks the size of the returned data. // solhint-disable-next-line max-line-length require(address(token).isContract(), "SafeERC20: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = address(token).call(data); require(success, "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"); } } } // File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.0.0/contracts/drafts/TokenVesting.sol pragma solidity ^0.6.0; /** * @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 TokenVestingRevoked(address token); // 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 _cliff; uint256 private _start; uint256 private _duration; bool private _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: beneficiary is the zero address"); // solhint-disable-next-line max-line-length require(cliffDuration <= duration, "TokenVesting: cliff is longer than duration"); require(duration > 0, "TokenVesting: duration is 0"); // solhint-disable-next-line max-line-length require(start.add(duration) > block.timestamp, "TokenVesting: 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: no tokens are due"); _released[address(token)] = _released[address(token)].add(unreleased); token.safeTransfer(_beneficiary, unreleased); emit TokensReleased(address(token), unreleased); } /** * @notice Allows the owner to revoke the vesting. Tokens already vested * remain in the contract, the rest are returned to the owner. * @param token ERC20 token which is being vested */ function revoke(IERC20 token) public onlyOwner { require(_revocable, "TokenVesting: cannot revoke"); require(!_revoked[address(token)], "TokenVesting: 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 TokenVestingRevoked(address(token)); } /** * @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); } } } // File: browser/VestingFactory.sol pragma solidity ^0.6.0; contract VestingFactory { event VestingCreated(address vestingContractAddress); function create(address beneficiary, uint256 start, uint256 cliffDuration, uint256 duration, bool revocable) public { TokenVesting newVestingContract = new TokenVesting(beneficiary, start, cliffDuration, duration, revocable); newVestingContract.transferOwnership(0x519b70055af55A007110B4Ff99b0eA33071c720a); VestingCreated(address(newVestingContract)); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"vestingContractAddress","type":"address"}],"name":"VestingCreated","type":"event"},{"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"}],"name":"create","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50611314806100206000396000f3fe608060405234801561001057600080fd5b506004361061002a5760003560e01c80625f41cc1461002f575b600080fd5b61006f600480360360a081101561004557600080fd5b506001600160a01b0381351690602081013590604081013590606081013590608001351515610071565b005b6000858585858560405161008490610190565b6001600160a01b039095168552602085019390935260408085019290925260608401529015156080830152519081900360a001906000f0801580156100cd573d6000803e3d6000fd5b509050806001600160a01b031663f2fde38b73519b70055af55a007110b4ff99b0ea33071c720a6040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050600060405180830381600087803b15801561013357600080fd5b505af1158015610147573d6000803e3d6000fd5b5050604080516001600160a01b038516815290517fe4fb76c0ff20ae19784efe78af7946d749e229fec6e13499ab078f997113d6d39350908190036020019150a1505050505050565b6111418061019e8339019056fe60806040523480156200001157600080fd5b506040516200114138038062001141833981810160405260a08110156200003757600080fd5b5080516020820151604083015160608401516080909401519293919290919060006200006262000239565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600160a01b038516620000f35760405162461bcd60e51b815260040180806020018281038252602d815260200180620010e9602d913960400191505060405180910390fd5b81831115620001345760405162461bcd60e51b815260040180806020018281038252602b81526020018062001116602b913960400191505060405180910390fd5b600082116200018a576040805162461bcd60e51b815260206004820152601b60248201527f546f6b656e56657374696e673a206475726174696f6e20697320300000000000604482015290519081900360640190fd5b42620001a583866200023d60201b620007521790919060201c565b11620001e35760405162461bcd60e51b815260040180806020018281038252602f815260200180620010ba602f913960400191505060405180910390fd5b600180546001600160a01b0319166001600160a01b0387161790556005805460ff191682151517905560048290556200022984846200023d602090811b6200075217901c565b600255505050600355506200029f565b3390565b60008282018381101562000298576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b610e0b80620002af6000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c8063872a781011610071578063872a7810146101555780638da5cb5b146101715780639852595c14610179578063be9a65551461019f578063f2fde38b146101a7578063fa01dc06146101cd576100b4565b80630fb5a6b4146100b957806313d033c0146100d357806319165587146100db57806338af3eed14610103578063715018a61461012757806374a8f1031461012f575b600080fd5b6100c16101f3565b60408051918252519081900360200190f35b6100c16101f9565b610101600480360360208110156100f157600080fd5b50356001600160a01b03166101ff565b005b61010b6102f8565b604080516001600160a01b039092168252519081900360200190f35b610101610307565b6101016004803603602081101561014557600080fd5b50356001600160a01b03166103bb565b61015d6105ed565b604080519115158252519081900360200190f35b61010b6105f6565b6100c16004803603602081101561018f57600080fd5b50356001600160a01b0316610605565b6100c1610624565b610101600480360360208110156101bd57600080fd5b50356001600160a01b031661062a565b61015d600480360360208110156101e357600080fd5b50356001600160a01b0316610734565b60045490565b60025490565b600061020a826107b5565b905060008111610261576040805162461bcd60e51b815260206004820152601f60248201527f546f6b656e56657374696e673a206e6f20746f6b656e73206172652064756500604482015290519081900360640190fd5b6001600160a01b0382166000908152600660205260409020546102849082610752565b6001600160a01b038084166000818152600660205260409020929092556001546102b0929116836107e1565b604080516001600160a01b03841681526020810183905281517fc7798891864187665ac6dd119286e44ec13f014527aeeb2b8eb3fd413df93179929181900390910190a15050565b6001546001600160a01b031690565b61030f610838565b6000546001600160a01b03908116911614610371576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6103c3610838565b6000546001600160a01b03908116911614610425576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60055460ff1661047c576040805162461bcd60e51b815260206004820152601b60248201527f546f6b656e56657374696e673a2063616e6e6f74207265766f6b650000000000604482015290519081900360640190fd5b6001600160a01b03811660009081526007602052604090205460ff16156104d45760405162461bcd60e51b8152600401808060200182810382526023815260200180610db36023913960400191505060405180910390fd5b6000816001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561052357600080fd5b505afa158015610537573d6000803e3d6000fd5b505050506040513d602081101561054d57600080fd5b50519050600061055c836107b5565b9050600061056a838361083c565b6001600160a01b0385166000908152600760205260409020805460ff1916600117905590506105ab61059a6105f6565b6001600160a01b03861690836107e1565b604080516001600160a01b038616815290517f39983c6d4d174a7aee564f449d4a5c3c7ac9649d72b7793c56901183996f8af69181900360200190a150505050565b60055460ff1690565b6000546001600160a01b031690565b6001600160a01b0381166000908152600660205260409020545b919050565b60035490565b610632610838565b6000546001600160a01b03908116911614610694576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166106d95760405162461bcd60e51b8152600401808060200182810382526026815260200180610d426026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b031660009081526007602052604090205460ff1690565b6000828201838110156107ac576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b6001600160a01b0381166000908152600660205260408120546107af906107db8461087e565b9061083c565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526108339084906109b0565b505050565b3390565b60006107ac83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610b6e565b600080826001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156108ce57600080fd5b505afa1580156108e2573d6000803e3d6000fd5b505050506040513d60208110156108f857600080fd5b50516001600160a01b03841660009081526006602052604081205491925090610922908390610752565b90506002544210156109395760009250505061061f565b60045460035461094891610752565b4210158061096e57506001600160a01b03841660009081526007602052604090205460ff165b1561097c57915061061f9050565b6109a76004546109a161099a6003544261083c90919063ffffffff16565b8490610c05565b90610c5e565b9250505061061f565b6109c2826001600160a01b0316610ca0565b610a13576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b60208310610a515780518252601f199092019160209182019101610a32565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610ab3576040519150601f19603f3d011682016040523d82523d6000602084013e610ab8565b606091505b509150915081610b0f576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115610b6857808060200190516020811015610b2b57600080fd5b5051610b685760405162461bcd60e51b815260040180806020018281038252602a815260200180610d89602a913960400191505060405180910390fd5b50505050565b60008184841115610bfd5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610bc2578181015183820152602001610baa565b50505050905090810190601f168015610bef5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082610c14575060006107af565b82820282848281610c2157fe5b04146107ac5760405162461bcd60e51b8152600401808060200182810382526021815260200180610d686021913960400191505060405180910390fd5b60006107ac83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610cdc565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610cd457508115155b949350505050565b60008183610d2b5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610bc2578181015183820152602001610baa565b506000838581610d3757fe5b049594505050505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564546f6b656e56657374696e673a20746f6b656e20616c7265616479207265766f6b6564a26469706673582212202703247bb16bb6f2d88c9b4a902b992aeafce27e5e925aa36115cdebf91cd81464736f6c634300060c0033546f6b656e56657374696e673a2066696e616c2074696d65206973206265666f72652063757272656e742074696d65546f6b656e56657374696e673a2062656e656669636961727920697320746865207a65726f2061646472657373546f6b656e56657374696e673a20636c696666206973206c6f6e676572207468616e206475726174696f6ea264697066735822122047cf9dfac3d4941e81d1e6ac3308c49b4604beb8c958e838ce6fca12a43af05f64736f6c634300060c0033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061002a5760003560e01c80625f41cc1461002f575b600080fd5b61006f600480360360a081101561004557600080fd5b506001600160a01b0381351690602081013590604081013590606081013590608001351515610071565b005b6000858585858560405161008490610190565b6001600160a01b039095168552602085019390935260408085019290925260608401529015156080830152519081900360a001906000f0801580156100cd573d6000803e3d6000fd5b509050806001600160a01b031663f2fde38b73519b70055af55a007110b4ff99b0ea33071c720a6040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050600060405180830381600087803b15801561013357600080fd5b505af1158015610147573d6000803e3d6000fd5b5050604080516001600160a01b038516815290517fe4fb76c0ff20ae19784efe78af7946d749e229fec6e13499ab078f997113d6d39350908190036020019150a1505050505050565b6111418061019e8339019056fe60806040523480156200001157600080fd5b506040516200114138038062001141833981810160405260a08110156200003757600080fd5b5080516020820151604083015160608401516080909401519293919290919060006200006262000239565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600160a01b038516620000f35760405162461bcd60e51b815260040180806020018281038252602d815260200180620010e9602d913960400191505060405180910390fd5b81831115620001345760405162461bcd60e51b815260040180806020018281038252602b81526020018062001116602b913960400191505060405180910390fd5b600082116200018a576040805162461bcd60e51b815260206004820152601b60248201527f546f6b656e56657374696e673a206475726174696f6e20697320300000000000604482015290519081900360640190fd5b42620001a583866200023d60201b620007521790919060201c565b11620001e35760405162461bcd60e51b815260040180806020018281038252602f815260200180620010ba602f913960400191505060405180910390fd5b600180546001600160a01b0319166001600160a01b0387161790556005805460ff191682151517905560048290556200022984846200023d602090811b6200075217901c565b600255505050600355506200029f565b3390565b60008282018381101562000298576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b610e0b80620002af6000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c8063872a781011610071578063872a7810146101555780638da5cb5b146101715780639852595c14610179578063be9a65551461019f578063f2fde38b146101a7578063fa01dc06146101cd576100b4565b80630fb5a6b4146100b957806313d033c0146100d357806319165587146100db57806338af3eed14610103578063715018a61461012757806374a8f1031461012f575b600080fd5b6100c16101f3565b60408051918252519081900360200190f35b6100c16101f9565b610101600480360360208110156100f157600080fd5b50356001600160a01b03166101ff565b005b61010b6102f8565b604080516001600160a01b039092168252519081900360200190f35b610101610307565b6101016004803603602081101561014557600080fd5b50356001600160a01b03166103bb565b61015d6105ed565b604080519115158252519081900360200190f35b61010b6105f6565b6100c16004803603602081101561018f57600080fd5b50356001600160a01b0316610605565b6100c1610624565b610101600480360360208110156101bd57600080fd5b50356001600160a01b031661062a565b61015d600480360360208110156101e357600080fd5b50356001600160a01b0316610734565b60045490565b60025490565b600061020a826107b5565b905060008111610261576040805162461bcd60e51b815260206004820152601f60248201527f546f6b656e56657374696e673a206e6f20746f6b656e73206172652064756500604482015290519081900360640190fd5b6001600160a01b0382166000908152600660205260409020546102849082610752565b6001600160a01b038084166000818152600660205260409020929092556001546102b0929116836107e1565b604080516001600160a01b03841681526020810183905281517fc7798891864187665ac6dd119286e44ec13f014527aeeb2b8eb3fd413df93179929181900390910190a15050565b6001546001600160a01b031690565b61030f610838565b6000546001600160a01b03908116911614610371576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6103c3610838565b6000546001600160a01b03908116911614610425576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60055460ff1661047c576040805162461bcd60e51b815260206004820152601b60248201527f546f6b656e56657374696e673a2063616e6e6f74207265766f6b650000000000604482015290519081900360640190fd5b6001600160a01b03811660009081526007602052604090205460ff16156104d45760405162461bcd60e51b8152600401808060200182810382526023815260200180610db36023913960400191505060405180910390fd5b6000816001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561052357600080fd5b505afa158015610537573d6000803e3d6000fd5b505050506040513d602081101561054d57600080fd5b50519050600061055c836107b5565b9050600061056a838361083c565b6001600160a01b0385166000908152600760205260409020805460ff1916600117905590506105ab61059a6105f6565b6001600160a01b03861690836107e1565b604080516001600160a01b038616815290517f39983c6d4d174a7aee564f449d4a5c3c7ac9649d72b7793c56901183996f8af69181900360200190a150505050565b60055460ff1690565b6000546001600160a01b031690565b6001600160a01b0381166000908152600660205260409020545b919050565b60035490565b610632610838565b6000546001600160a01b03908116911614610694576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166106d95760405162461bcd60e51b8152600401808060200182810382526026815260200180610d426026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b031660009081526007602052604090205460ff1690565b6000828201838110156107ac576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b6001600160a01b0381166000908152600660205260408120546107af906107db8461087e565b9061083c565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526108339084906109b0565b505050565b3390565b60006107ac83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610b6e565b600080826001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156108ce57600080fd5b505afa1580156108e2573d6000803e3d6000fd5b505050506040513d60208110156108f857600080fd5b50516001600160a01b03841660009081526006602052604081205491925090610922908390610752565b90506002544210156109395760009250505061061f565b60045460035461094891610752565b4210158061096e57506001600160a01b03841660009081526007602052604090205460ff165b1561097c57915061061f9050565b6109a76004546109a161099a6003544261083c90919063ffffffff16565b8490610c05565b90610c5e565b9250505061061f565b6109c2826001600160a01b0316610ca0565b610a13576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b60208310610a515780518252601f199092019160209182019101610a32565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610ab3576040519150601f19603f3d011682016040523d82523d6000602084013e610ab8565b606091505b509150915081610b0f576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115610b6857808060200190516020811015610b2b57600080fd5b5051610b685760405162461bcd60e51b815260040180806020018281038252602a815260200180610d89602a913960400191505060405180910390fd5b50505050565b60008184841115610bfd5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610bc2578181015183820152602001610baa565b50505050905090810190601f168015610bef5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082610c14575060006107af565b82820282848281610c2157fe5b04146107ac5760405162461bcd60e51b8152600401808060200182810382526021815260200180610d686021913960400191505060405180910390fd5b60006107ac83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610cdc565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610cd457508115155b949350505050565b60008183610d2b5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610bc2578181015183820152602001610baa565b506000838581610d3757fe5b049594505050505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564546f6b656e56657374696e673a20746f6b656e20616c7265616479207265766f6b6564a26469706673582212202703247bb16bb6f2d88c9b4a902b992aeafce27e5e925aa36115cdebf91cd81464736f6c634300060c0033546f6b656e56657374696e673a2066696e616c2074696d65206973206265666f72652063757272656e742074696d65546f6b656e56657374696e673a2062656e656669636961727920697320746865207a65726f2061646472657373546f6b656e56657374696e673a20636c696666206973206c6f6e676572207468616e206475726174696f6ea264697066735822122047cf9dfac3d4941e81d1e6ac3308c49b4604beb8c958e838ce6fca12a43af05f64736f6c634300060c0033
Deployed Bytecode Sourcemap
24968:493:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25066:386;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;25066:386:0;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;25193:31;25244:11;25257:5;25264:13;25279:8;25289:9;25227:72;;;;;:::i;:::-;-1:-1:-1;;;;;25227:72:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;25227:72:0;;;;;;;;;;;;;;;;25193:106;;25310:18;-1:-1:-1;;;;;25310:36:0;;25347:42;25310:80;;;;;;;;;;;;;-1:-1:-1;;;;;25310:80:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;25401:43:0;;;-1:-1:-1;;;;;25401:43:0;;;;;;;;-1:-1:-1;25401:43:0;;;;;;;-1:-1:-1;25401:43:0;25066:386;;;;;;:::o;-1:-1:-1:-;;;;;;;;:::o
Swarm Source
ipfs://47cf9dfac3d4941e81d1e6ac3308c49b4604beb8c958e838ce6fca12a43af05f
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 27 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.