ERC-20
Overview
Max Total Supply
100,000,000 ALLO
Holders
221
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Allocation
Compiler Version
v0.8.21+commit.d9974bed
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// Allocation (ALLO) // // https://alloeth.com // https://t.me/allocationofficial // // Creating a new standard for the way KOLs, influencers, or any outside party // receiving off market token allocations receive allos in the future. // // AlloVester.sol allows ANYONE to create linearly vested token allocations for anyone else! // This contract contains built-in ENS integration to create token allocations // for wallets tied to a human-readable name and built-in linear vesting where anyone who // receives an allocation will vest over a specified time frame. Linear vesting protects // the project and community while incentivizing those with allocations to help push // the project and narrative as much as possible over time. // // $ALLO information: // - 0/0 tax // - 80% supply goes to LP, 20% will be used for ALLO allocations // - All ALLO allocations will linear vest over a 4 month time frame // - All allocations integrate with ENS providing full transparency // - Ability to create ANY token allocation on any vesting schedule desired // - Revenue share to ALLO holders for any custom allocation which burns ALLO or pays fee in native token // - ALLO community decides the right KOLs we add allos for to push the narrative // SPDX-License-Identifier: MIT pragma solidity ^0.8.21; import '@openzeppelin/contracts/token/ERC20/ERC20.sol'; import './AlloVester.sol'; contract Allocation is ERC20 { AlloVester public immutable ALLO_VESTER; uint256 public constant ALLO_TIME_SPAN = 120 days; // 4 months constructor( address _nameService, address _vesterOwner ) ERC20('Allocation', 'ALLO') { ALLO_VESTER = new AlloVester(_nameService); ALLO_VESTER.transferOwnership(_vesterOwner); _mint(_msgSender(), 100_000_000 * 10 ** 18); } function claimAllocation(string memory _ensName) external { ALLO_VESTER.vestedAlloClaim(address(this), _ensName); } function createAllocation(string memory _ensName, uint256 _amount) external { uint256 _total = ALLO_VESTER.createCostALLO() + _amount; _transfer(_msgSender(), address(this), _total); _approve(address(this), address(ALLO_VESTER), _total); ALLO_VESTER.vestedAlloCreate( address(this), _ensName, _amount, block.timestamp, block.timestamp + ALLO_TIME_SPAN, false ); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^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() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(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"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the default value returned by this function, unless * it's overridden. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer(address from, address to, uint256 amount) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 amount) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/IERC20Permit.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 Address for address; /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value)); } /** * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value)); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval * to be set to zero before setting it to a non-zero value, such as USDT. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0)); _callOptionalReturn(token, approvalCall); } } /** * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`. * Revert on invalid signature. */ function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @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"); require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } /** * @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). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { // 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 cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://consensys.net/diligence/blog/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.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// Allocation (ALLO) Vester // // https://alloeth.com // https://t.me/allocationofficial // // This contract allows anyone to lock tokens that will linearly vest over // a specified time frame for a wallet owned by an ENS name. The goal is to // make token allocations more transparent for projects who give or OTC tokens // out to KOLs, advisors, influencers, etc. // SPDX-License-Identifier: MIT pragma solidity ^0.8.21; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol'; import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import './interfaces/ENS.sol'; import './interfaces/ENSResolver.sol'; contract AlloVester is Context, Ownable { using SafeERC20 for IERC20Metadata; address public immutable ALLO; ENS public immutable ETH_NAME_SERVICE; uint256 public createCostALLO = 20_000 * 10 ** 18; uint256 public createCostNative = 3 ether / 100; // 0.03 ETH address public feeReceiver; struct VestedAllocation { uint256 total; uint256 start; uint256 end; uint256 debt; } // token => ENS namehash => allocation info mapping(address => mapping(bytes32 => VestedAllocation)) public allocations; event AlloCreate( address indexed creator, address indexed token, bytes32 indexed node, string ensName, uint256 amount ); event AlloClaim( address indexed token, bytes32 indexed node, string ensName, address wallet, uint256 amountClaimed ); constructor(address _nameService) { ALLO = _msgSender(); ETH_NAME_SERVICE = ENS(_nameService); } function ensNodeToWallet(bytes32 _node) public view returns (address) { ENSResolver resolver = ETH_NAME_SERVICE.resolver(_node); return resolver.addr(_node); } /// @notice exclude `.eth` in ENS name /// @notice i.e. to resolve `vitalik.eth`, only pass `vitalik` to _ensName function ensNameToNode(string memory _ensName) public pure returns (bytes32) { bytes32 _namehash = keccak256( abi.encodePacked(bytes32(0), keccak256(abi.encodePacked('eth'))) ); return keccak256( abi.encodePacked(_namehash, keccak256(abi.encodePacked(_ensName))) ); } function ensNameToWallet( string memory _ensName // name without `.eth` suffix (for vitalik.eth, just pass vitalik) ) external view returns (address) { bytes32 _node = ensNameToNode(_ensName); return ensNodeToWallet(_node); } function vestedAlloClaim( address _token, string memory _ensName // name without `.eth` suffix (for vitalik.eth, just pass vitalik) ) external virtual { bytes32 _node = ensNameToNode(_ensName); address _wallet = ensNodeToWallet(_node); VestedAllocation storage _allo = allocations[_token][_node]; require(_allo.end > 0, 'EXIST'); require(_allo.start < block.timestamp, 'START'); uint256 _nowEnd = block.timestamp > _allo.end ? _allo.end : block.timestamp; uint256 _withTotal = (_allo.total * (_nowEnd - _allo.start)) / (_allo.end - _allo.start); uint256 _withdrawAmount = _withTotal - _allo.debt; require(_withdrawAmount > 0, 'NOTHING'); if (_nowEnd == _allo.end) { delete allocations[_token][_node]; } else { _allo.debt += _withdrawAmount; } IERC20Metadata(_token).safeTransfer(_wallet, _withdrawAmount); emit AlloClaim(_token, _node, _ensName, _wallet, _withdrawAmount); } function vestedAlloCreate( address _token, string memory _ensName, // name without `.eth` suffix (for vitalik.eth, just pass vitalik) uint256 _amount, uint256 _start, uint256 _end, bool _feesInNative ) external payable virtual { _processFees(_feesInNative); bytes32 _node = ensNameToNode(_ensName); require(allocations[_token][_node].end == 0, 'DUPLICATE'); require(_end > 0 && _end > _start && _amount > 0, 'VAL'); // reverts if the namehash does not resolve to a wallet ensNodeToWallet(_node); uint256 _balBefore = IERC20Metadata(_token).balanceOf(address(this)); IERC20Metadata(_token).safeTransferFrom( _msgSender(), address(this), _amount ); _amount = IERC20Metadata(_token).balanceOf(address(this)) - _balBefore; allocations[_token][_node] = VestedAllocation({ total: _amount, start: _start, end: _end, debt: 0 }); emit AlloCreate(_msgSender(), _token, _node, _ensName, _amount); } function _processFees(bool _feesInNative) internal { address _feeRec = _getFeeReceiver(); if (_feesInNative && createCostNative > 0) { require(msg.value >= createCostNative, 'FEE'); (bool _fee, ) = payable(_feeRec).call{ value: createCostNative }(''); require(_fee, 'FEESENT'); uint256 _refund = msg.value - createCostNative; if (_refund > 0) { (bool _refunded, ) = payable(_msgSender()).call{ value: _refund }(''); require(_refunded, 'REFUND'); } } else if (createCostALLO > 0) { IERC20Metadata(ALLO).safeTransferFrom( _msgSender(), _feeRec, createCostALLO ); } } function _getFeeReceiver() internal view returns (address) { return feeReceiver == address(0) ? owner() : feeReceiver; } function setCreateCosts( uint256 _costALLO, uint256 _costNative ) external onlyOwner { createCostALLO = _costALLO; createCostNative = _costNative; } function setFeeReceiver(address _receiver) external onlyOwner { feeReceiver = _receiver; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.21; import './ENSResolver.sol'; abstract contract ENS { function resolver(bytes32 node) public view virtual returns (ENSResolver); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.21; abstract contract ENSResolver { function addr(bytes32 node) public view virtual returns (address); }
{ "metadata": { "bytecodeHash": "none" }, "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
[{"inputs":[{"internalType":"address","name":"_nameService","type":"address"},{"internalType":"address","name":"_vesterOwner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"ALLO_TIME_SPAN","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ALLO_VESTER","outputs":[{"internalType":"contract AlloVester","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_ensName","type":"string"}],"name":"claimAllocation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_ensName","type":"string"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"createAllocation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a060405234801562000010575f80fd5b50604051620025a1380380620025a1833981016040819052620000339162000253565b6040518060400160405280600a81526020016920b63637b1b0ba34b7b760b11b81525060405180604001604052806004815260200163414c4c4f60e01b815250816003908162000084919062000328565b50600462000093828262000328565b50505081604051620000a59062000229565b6001600160a01b039091168152602001604051809103905ff080158015620000cf573d5f803e3d5ffd5b506001600160a01b03908116608081905260405163f2fde38b60e01b815291831660048301529063f2fde38b906024015f604051808303815f87803b15801562000117575f80fd5b505af11580156200012a573d5f803e3d5ffd5b5050505062000154620001426200015c60201b60201c565b6a52b7d2dcc80cd2e400000062000160565b505062000416565b3390565b6001600160a01b038216620001bb5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b8060025f828254620001ce9190620003f0565b90915550506001600160a01b0382165f81815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b505050565b611518806200108983390190565b80516001600160a01b03811681146200024e575f80fd5b919050565b5f806040838503121562000265575f80fd5b620002708362000237565b9150620002806020840162000237565b90509250929050565b634e487b7160e01b5f52604160045260245ffd5b600181811c90821680620002b257607f821691505b602082108103620002d157634e487b7160e01b5f52602260045260245ffd5b50919050565b601f82111562000224575f81815260208120601f850160051c81016020861015620002ff5750805b601f850160051c820191505b8181101562000320578281556001016200030b565b505050505050565b81516001600160401b0381111562000344576200034462000289565b6200035c816200035584546200029d565b84620002d7565b602080601f83116001811462000392575f84156200037a5750858301515b5f19600386901b1c1916600185901b17855562000320565b5f85815260208120601f198616915b82811015620003c257888601518255948401946001909101908401620003a1565b5085821015620003e057878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b808201808211156200041057634e487b7160e01b5f52601160045260245ffd5b92915050565b608051610c3e6200044b5f395f818161014c01528181610347015281816103e20152818161041101526105770152610c3e5ff3fe608060405234801561000f575f80fd5b50600436106100f0575f3560e01c806370a0823111610093578063a457c2d711610063578063a457c2d71461020a578063a9059cbb1461021d578063dd62ed3e14610230578063f60908db14610243575f80fd5b806370a08231146101bb578063728f2f7b146101e357806386cdc14a146101ed57806395d89b4114610202575f80fd5b80631d61abe7116100ce5780631d61abe71461014757806323b872dd14610186578063313ce5671461019957806339509351146101a8575f80fd5b806306fdde03146100f4578063095ea7b31461011257806318160ddd14610135575b5f80fd5b6100fc610256565b604051610109919061095e565b60405180910390f35b610125610120366004610992565b6102e6565b6040519015158152602001610109565b6002545b604051908152602001610109565b61016e7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610109565b6101256101943660046109ba565b6102ff565b60405160128152602001610109565b6101256101b6366004610992565b610322565b6101396101c93660046109f3565b6001600160a01b03165f9081526020819052604090205490565b610139629e340081565b6102006101fb366004610aa9565b610343565b005b6100fc61049b565b610125610218366004610992565b6104aa565b61012561022b366004610992565b610529565b61013961023e366004610aeb565b610536565b610200610251366004610b1c565b610560565b60606003805461026590610b56565b80601f016020809104026020016040519081016040528092919081815260200182805461029190610b56565b80156102dc5780601f106102b3576101008083540402835291602001916102dc565b820191905f5260205f20905b8154815290600101906020018083116102bf57829003601f168201915b5050505050905090565b5f336102f38185856105de565b60019150505b92915050565b5f3361030c858285610701565b610317858585610779565b506001949350505050565b5f336102f38185856103348383610536565b61033e9190610b8e565b6105de565b5f817f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663af5a14c16040518163ffffffff1660e01b8152600401602060405180830381865afa1580156103a1573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103c59190610bad565b6103cf9190610b8e565b90506103dc333083610779565b610407307f0000000000000000000000000000000000000000000000000000000000000000836105de565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016636014e38230858542610447629e340082610b8e565b5f6040518763ffffffff1660e01b815260040161046996959493929190610bc4565b5f604051808303815f87803b158015610480575f80fd5b505af1158015610492573d5f803e3d5ffd5b50505050505050565b60606004805461026590610b56565b5f33816104b78286610536565b90508381101561051c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b61031782868684036105de565b5f336102f3818585610779565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b60405163266fec8760e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063266fec87906105ae9030908590600401610c0e565b5f604051808303815f87803b1580156105c5575f80fd5b505af11580156105d7573d5f803e3d5ffd5b5050505050565b6001600160a01b0383166106405760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610513565b6001600160a01b0382166106a15760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610513565b6001600160a01b038381165f8181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b5f61070c8484610536565b90505f19811461077357818110156107665760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610513565b61077384848484036105de565b50505050565b6001600160a01b0383166107dd5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610513565b6001600160a01b03821661083f5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610513565b6001600160a01b0383165f90815260208190526040902054818110156108b65760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610513565b6001600160a01b038481165f81815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610773565b5f81518084525f5b8181101561093f57602081850181015186830182015201610923565b505f602082860101526020601f19601f83011685010191505092915050565b602081525f610970602083018461091b565b9392505050565b80356001600160a01b038116811461098d575f80fd5b919050565b5f80604083850312156109a3575f80fd5b6109ac83610977565b946020939093013593505050565b5f805f606084860312156109cc575f80fd5b6109d584610977565b92506109e360208501610977565b9150604084013590509250925092565b5f60208284031215610a03575f80fd5b61097082610977565b634e487b7160e01b5f52604160045260245ffd5b5f82601f830112610a2f575f80fd5b813567ffffffffffffffff80821115610a4a57610a4a610a0c565b604051601f8301601f19908116603f01168101908282118183101715610a7257610a72610a0c565b81604052838152866020858801011115610a8a575f80fd5b836020870160208301375f602085830101528094505050505092915050565b5f8060408385031215610aba575f80fd5b823567ffffffffffffffff811115610ad0575f80fd5b610adc85828601610a20565b95602094909401359450505050565b5f8060408385031215610afc575f80fd5b610b0583610977565b9150610b1360208401610977565b90509250929050565b5f60208284031215610b2c575f80fd5b813567ffffffffffffffff811115610b42575f80fd5b610b4e84828501610a20565b949350505050565b600181811c90821680610b6a57607f821691505b602082108103610b8857634e487b7160e01b5f52602260045260245ffd5b50919050565b808201808211156102f957634e487b7160e01b5f52601160045260245ffd5b5f60208284031215610bbd575f80fd5b5051919050565b6001600160a01b038716815260c0602082018190525f90610be79083018861091b565b905085604083015284606083015283608083015282151560a0830152979650505050505050565b6001600160a01b03831681526040602082018190525f90610b4e9083018461091b56fea164736f6c6343000815000a60c060405269043c33c1937564800000600155666a94d74f430000600255348015610028575f80fd5b50604051611518380380611518833981016040819052610047916100b4565b61005033610065565b336080526001600160a01b031660a0526100e1565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f602082840312156100c4575f80fd5b81516001600160a01b03811681146100da575f80fd5b9392505050565b60805160a0516114086101105f395f8181610268015261059301525f81816101970152610ca001526114085ff3fe6080604052600436106100ef575f3560e01c806371e4a9fe11610087578063c443437b11610057578063c443437b146102da578063efdcd974146102f9578063f2fde38b14610318578063ff5a367c14610337575f80fd5b806371e4a9fe146102575780638da5cb5b1461028a578063af5a14c1146102a6578063b3f00674146102bb575f80fd5b806350f2033f116100c257806350f2033f146101f25780635b55f91d146102115780636014e38214610230578063715018a614610243575f80fd5b80630318ff16146100f357806307747de31461016357806311c63b6214610186578063266fec87146101d1575b5f80fd5b3480156100fe575f80fd5b5061013e61010d366004611050565b600460209081525f928352604080842090915290825290208054600182015460028301546003909301549192909184565b6040805194855260208501939093529183015260608201526080015b60405180910390f35b34801561016e575f80fd5b5061017860025481565b60405190815260200161015a565b348015610191575f80fd5b506101b97f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161015a565b3480156101dc575f80fd5b506101f06101eb366004611117565b610356565b005b3480156101fd575f80fd5b506101b961020c366004611164565b610571565b34801561021c575f80fd5b5061017861022b36600461117b565b61066d565b6101f061023e3660046111ba565b61072d565b34801561024e575f80fd5b506101f06109c4565b348015610262575f80fd5b506101b97f000000000000000000000000000000000000000000000000000000000000000081565b348015610295575f80fd5b505f546001600160a01b03166101b9565b3480156102b1575f80fd5b5061017860015481565b3480156102c6575f80fd5b506003546101b9906001600160a01b031681565b3480156102e5575f80fd5b506101f06102f4366004611235565b6109d7565b348015610304575f80fd5b506101f0610313366004611255565b6109ea565b348015610323575f80fd5b506101f0610332366004611255565b610a14565b348015610342575f80fd5b506101b961035136600461117b565b610a8d565b5f6103608261066d565b90505f61036c82610571565b6001600160a01b0385165f90815260046020908152604080832086845290915290206002810154919250906103d05760405162461bcd60e51b815260206004820152600560248201526411561254d560da1b60448201526064015b60405180910390fd5b4281600101541061040b5760405162461bcd60e51b815260206004820152600560248201526414d510549560da1b60448201526064016103c7565b5f8160020154421161041d5742610423565b81600201545b90505f8260010154836002015461043a9190611284565b60018401546104499084611284565b8454610455919061129d565b61045f91906112b4565b90505f8360030154826104729190611284565b90505f81116104ad5760405162461bcd60e51b81526020600482015260076024820152664e4f5448494e4760c81b60448201526064016103c7565b836002015483036104f4576001600160a01b0388165f908152600460209081526040808320898452909152812081815560018101829055600281018290556003015561050d565b80846003015f82825461050791906112d3565b90915550505b6105216001600160a01b0389168683610aa3565b85886001600160a01b03167fb768b89baab84e89e9e3e94d13f168c07c912d05958c398330f7e9ce70ca751b89888560405161055f93929190611333565b60405180910390a35050505050505050565b604051630178b8bf60e01b8152600481018290525f9081906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690630178b8bf90602401602060405180830381865afa1580156105d8573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105fc9190611360565b604051631d9dabef60e11b8152600481018590529091506001600160a01b03821690633b3b57de90602401602060405180830381865afa158015610642573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106669190611360565b9392505050565b604051620cae8d60eb1b60208201525f9081908190602301604051602081830303815290604052805190602001206040516020016106b5929190918252602082015260400190565b60405160208183030381529060405280519060200120905080836040516020016106df919061137b565b6040516020818303038152906040528051906020012060405160200161070f929190918252602082015260400190565b60405160208183030381529060405280519060200120915050919050565b61073681610b0b565b5f6107408661066d565b6001600160a01b0388165f908152600460209081526040808320848452909152902060020154909150156107a25760405162461bcd60e51b81526020600482015260096024820152684455504c494341544560b81b60448201526064016103c7565b5f831180156107b057508383115b80156107bb57505f85115b6107ed5760405162461bcd60e51b815260206004820152600360248201526215905360ea1b60448201526064016103c7565b6107f681610571565b506040516370a0823160e01b81523060048201525f906001600160a01b038916906370a0823190602401602060405180830381865afa15801561083b573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061085f9190611396565b90506108766001600160a01b038916333089610ccd565b6040516370a0823160e01b815230600482015281906001600160a01b038a16906370a0823190602401602060405180830381865afa1580156108ba573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108de9190611396565b6108e89190611284565b955060405180608001604052808781526020018681526020018581526020015f81525060045f8a6001600160a01b03166001600160a01b031681526020019081526020015f205f8481526020019081526020015f205f820151815f015560208201518160010155604082015181600201556060820151816003015590505081886001600160a01b03166109783390565b6001600160a01b03167fd13c3a16f3f10e528f4dd294bb089e4a9c66f6fcc772d7e543f1f7f6cc8bd9dc8a8a6040516109b29291906113ad565b60405180910390a45050505050505050565b6109cc610d05565b6109d55f610d5e565b565b6109df610d05565b600191909155600255565b6109f2610d05565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b610a1c610d05565b6001600160a01b038116610a815760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103c7565b610a8a81610d5e565b50565b5f80610a988361066d565b905061066681610571565b6040516001600160a01b038316602482015260448101829052610b0690849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610dad565b505050565b5f610b14610e80565b9050818015610b2457505f600254115b15610c8757600254341015610b615760405162461bcd60e51b815260206004820152600360248201526246454560e81b60448201526064016103c7565b6002546040515f916001600160a01b038416918381818185875af1925050503d805f8114610baa576040519150601f19603f3d011682016040523d82523d5f602084013e610baf565b606091505b5050905080610bea5760405162461bcd60e51b815260206004820152600760248201526611915154d1539560ca1b60448201526064016103c7565b5f60025434610bf99190611284565b90508015610c81576040515f90339083908381818185875af1925050503d805f8114610c40576040519150601f19603f3d011682016040523d82523d5f602084013e610c45565b606091505b5050905080610c7f5760405162461bcd60e51b815260206004820152600660248201526514915195539160d21b60448201526064016103c7565b505b50505050565b60015415610cc957610cc9336001546001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001691908490610ccd565b5050565b6040516001600160a01b0380851660248301528316604482015260648101829052610c819085906323b872dd60e01b90608401610acf565b5f546001600160a01b031633146109d55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103c7565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f610e01826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610eb29092919063ffffffff16565b905080515f1480610e21575080806020019051810190610e2191906113ce565b610b065760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016103c7565b6003545f906001600160a01b031615610ea357506003546001600160a01b031690565b505f546001600160a01b031690565b6060610ec084845f85610ec8565b949350505050565b606082471015610f295760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016103c7565b5f80866001600160a01b03168587604051610f44919061137b565b5f6040518083038185875af1925050503d805f8114610f7e576040519150601f19603f3d011682016040523d82523d5f602084013e610f83565b606091505b5091509150610f9487838387610f9f565b979650505050505050565b6060831561100d5782515f03611006576001600160a01b0385163b6110065760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103c7565b5081610ec0565b610ec083838151156110225781518083602001fd5b8060405162461bcd60e51b81526004016103c791906113e9565b6001600160a01b0381168114610a8a575f80fd5b5f8060408385031215611061575f80fd5b823561106c8161103c565b946020939093013593505050565b634e487b7160e01b5f52604160045260245ffd5b5f82601f83011261109d575f80fd5b813567ffffffffffffffff808211156110b8576110b861107a565b604051601f8301601f19908116603f011681019082821181831017156110e0576110e061107a565b816040528381528660208588010111156110f8575f80fd5b836020870160208301375f602085830101528094505050505092915050565b5f8060408385031215611128575f80fd5b82356111338161103c565b9150602083013567ffffffffffffffff81111561114e575f80fd5b61115a8582860161108e565b9150509250929050565b5f60208284031215611174575f80fd5b5035919050565b5f6020828403121561118b575f80fd5b813567ffffffffffffffff8111156111a1575f80fd5b610ec08482850161108e565b8015158114610a8a575f80fd5b5f805f805f8060c087890312156111cf575f80fd5b86356111da8161103c565b9550602087013567ffffffffffffffff8111156111f5575f80fd5b61120189828a0161108e565b95505060408701359350606087013592506080870135915060a0870135611227816111ad565b809150509295509295509295565b5f8060408385031215611246575f80fd5b50508035926020909101359150565b5f60208284031215611265575f80fd5b81356106668161103c565b634e487b7160e01b5f52601160045260245ffd5b8181038181111561129757611297611270565b92915050565b808202811582820484141761129757611297611270565b5f826112ce57634e487b7160e01b5f52601260045260245ffd5b500490565b8082018082111561129757611297611270565b5f5b838110156113005781810151838201526020016112e8565b50505f910152565b5f815180845261131f8160208601602086016112e6565b601f01601f19169290920160200192915050565b606081525f6113456060830186611308565b6001600160a01b039490941660208301525060400152919050565b5f60208284031215611370575f80fd5b81516106668161103c565b5f825161138c8184602087016112e6565b9190910192915050565b5f602082840312156113a6575f80fd5b5051919050565b604081525f6113bf6040830185611308565b90508260208301529392505050565b5f602082840312156113de575f80fd5b8151610666816111ad565b602081525f610666602083018461130856fea164736f6c6343000815000a00000000000000000000000000000000000c2e074ec69a0dfb2997ba6c7d2e1e000000000000000000000000e9bb88c181ee39f7727472b109a57d08de626d72
Deployed Bytecode
0x608060405234801561000f575f80fd5b50600436106100f0575f3560e01c806370a0823111610093578063a457c2d711610063578063a457c2d71461020a578063a9059cbb1461021d578063dd62ed3e14610230578063f60908db14610243575f80fd5b806370a08231146101bb578063728f2f7b146101e357806386cdc14a146101ed57806395d89b4114610202575f80fd5b80631d61abe7116100ce5780631d61abe71461014757806323b872dd14610186578063313ce5671461019957806339509351146101a8575f80fd5b806306fdde03146100f4578063095ea7b31461011257806318160ddd14610135575b5f80fd5b6100fc610256565b604051610109919061095e565b60405180910390f35b610125610120366004610992565b6102e6565b6040519015158152602001610109565b6002545b604051908152602001610109565b61016e7f0000000000000000000000000298bed6b1a518ee54d2d7a6f86f8d45a209b16e81565b6040516001600160a01b039091168152602001610109565b6101256101943660046109ba565b6102ff565b60405160128152602001610109565b6101256101b6366004610992565b610322565b6101396101c93660046109f3565b6001600160a01b03165f9081526020819052604090205490565b610139629e340081565b6102006101fb366004610aa9565b610343565b005b6100fc61049b565b610125610218366004610992565b6104aa565b61012561022b366004610992565b610529565b61013961023e366004610aeb565b610536565b610200610251366004610b1c565b610560565b60606003805461026590610b56565b80601f016020809104026020016040519081016040528092919081815260200182805461029190610b56565b80156102dc5780601f106102b3576101008083540402835291602001916102dc565b820191905f5260205f20905b8154815290600101906020018083116102bf57829003601f168201915b5050505050905090565b5f336102f38185856105de565b60019150505b92915050565b5f3361030c858285610701565b610317858585610779565b506001949350505050565b5f336102f38185856103348383610536565b61033e9190610b8e565b6105de565b5f817f0000000000000000000000000298bed6b1a518ee54d2d7a6f86f8d45a209b16e6001600160a01b031663af5a14c16040518163ffffffff1660e01b8152600401602060405180830381865afa1580156103a1573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103c59190610bad565b6103cf9190610b8e565b90506103dc333083610779565b610407307f0000000000000000000000000298bed6b1a518ee54d2d7a6f86f8d45a209b16e836105de565b6001600160a01b037f0000000000000000000000000298bed6b1a518ee54d2d7a6f86f8d45a209b16e16636014e38230858542610447629e340082610b8e565b5f6040518763ffffffff1660e01b815260040161046996959493929190610bc4565b5f604051808303815f87803b158015610480575f80fd5b505af1158015610492573d5f803e3d5ffd5b50505050505050565b60606004805461026590610b56565b5f33816104b78286610536565b90508381101561051c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b61031782868684036105de565b5f336102f3818585610779565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b60405163266fec8760e01b81526001600160a01b037f0000000000000000000000000298bed6b1a518ee54d2d7a6f86f8d45a209b16e169063266fec87906105ae9030908590600401610c0e565b5f604051808303815f87803b1580156105c5575f80fd5b505af11580156105d7573d5f803e3d5ffd5b5050505050565b6001600160a01b0383166106405760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610513565b6001600160a01b0382166106a15760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610513565b6001600160a01b038381165f8181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b5f61070c8484610536565b90505f19811461077357818110156107665760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610513565b61077384848484036105de565b50505050565b6001600160a01b0383166107dd5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610513565b6001600160a01b03821661083f5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610513565b6001600160a01b0383165f90815260208190526040902054818110156108b65760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610513565b6001600160a01b038481165f81815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610773565b5f81518084525f5b8181101561093f57602081850181015186830182015201610923565b505f602082860101526020601f19601f83011685010191505092915050565b602081525f610970602083018461091b565b9392505050565b80356001600160a01b038116811461098d575f80fd5b919050565b5f80604083850312156109a3575f80fd5b6109ac83610977565b946020939093013593505050565b5f805f606084860312156109cc575f80fd5b6109d584610977565b92506109e360208501610977565b9150604084013590509250925092565b5f60208284031215610a03575f80fd5b61097082610977565b634e487b7160e01b5f52604160045260245ffd5b5f82601f830112610a2f575f80fd5b813567ffffffffffffffff80821115610a4a57610a4a610a0c565b604051601f8301601f19908116603f01168101908282118183101715610a7257610a72610a0c565b81604052838152866020858801011115610a8a575f80fd5b836020870160208301375f602085830101528094505050505092915050565b5f8060408385031215610aba575f80fd5b823567ffffffffffffffff811115610ad0575f80fd5b610adc85828601610a20565b95602094909401359450505050565b5f8060408385031215610afc575f80fd5b610b0583610977565b9150610b1360208401610977565b90509250929050565b5f60208284031215610b2c575f80fd5b813567ffffffffffffffff811115610b42575f80fd5b610b4e84828501610a20565b949350505050565b600181811c90821680610b6a57607f821691505b602082108103610b8857634e487b7160e01b5f52602260045260245ffd5b50919050565b808201808211156102f957634e487b7160e01b5f52601160045260245ffd5b5f60208284031215610bbd575f80fd5b5051919050565b6001600160a01b038716815260c0602082018190525f90610be79083018861091b565b905085604083015284606083015283608083015282151560a0830152979650505050505050565b6001600160a01b03831681526040602082018190525f90610b4e9083018461091b56fea164736f6c6343000815000a
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000c2e074ec69a0dfb2997ba6c7d2e1e000000000000000000000000e9bb88c181ee39f7727472b109a57d08de626d72
-----Decoded View---------------
Arg [0] : _nameService (address): 0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e
Arg [1] : _vesterOwner (address): 0xE9bb88c181eE39F7727472B109a57d08De626d72
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000c2e074ec69a0dfb2997ba6c7d2e1e
Arg [1] : 000000000000000000000000e9bb88c181ee39f7727472b109a57d08de626d72
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.