ERC-20
Overview
Max Total Supply
2,497,888.668027731488641157 veOMNIX
Holders
88
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
3,600 veOMNIXValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
veOmniBotX
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "./interfaces/ISplitter.sol"; import "./interfaces/IReceiver.sol"; contract veOmniBotX is ERC20, Ownable, IReceiver { using SafeERC20 for IERC20; struct User { uint stakedAmount; uint shares; uint lockStartTime; uint lockEndTime; uint sumGPUS; } IERC20 public immutable TOKEN; ISplitter public immutable SPLITTER; uint internal constant PRECISION = 1 ether; mapping(address => User) public users; uint public totalDistributed; uint public totalStaked; uint public totalShares; uint public sumGPUS; uint public lastRoundingError; uint public maxLockDuration; uint public maxLockBonus; // 1 ether == 100% uint public maxUnlockFee; // 0.1 ether == 10% uint public minUnlockFee; // 0.1 ether == 10% bool public canUnlockWithFee; address public taxReceiver; event SetMaxLock(uint _maxLockDuration, uint _maxLockBonus); event SetUnlockFee(uint _minUnlockFee, uint _maxUnlockFee); event SetCanUnlockWithFee(bool __canUnlockWithFee); event SetTaxReceiver(address who); constructor( string memory _name, string memory _symbol, IERC20 _token, ISplitter _splitter ) ERC20(_name, _symbol) { TOKEN = _token; SPLITTER = _splitter; taxReceiver = _msgSender(); emit SetTaxReceiver(_msgSender()); } function stake(uint _amount, uint _lockDuration) external { require(_amount > 0, "amount cannot be zero"); require(_lockDuration <= maxLockDuration, "lock cannot be greater than max"); TOKEN.safeTransferFrom(_msgSender(), address(this), _amount); totalStaked += _amount; User memory user = users[_msgSender()]; _payoutPendingGains(user); _updateUser(user, user.stakedAmount + _amount, _lockDuration); } function unstake(uint _amount) external { User memory user = users[_msgSender()]; require(user.lockEndTime <= block.timestamp, "still locked"); require(_amount <= user.stakedAmount, "amount too big"); totalStaked -= _amount; _payoutPendingGains(user); _updateUser(user, user.stakedAmount - _amount, 0); if (_amount > 0) TOKEN.safeTransfer(_msgSender(), _amount); } function claim() external { User storage user = users[_msgSender()]; require(user.shares > 0, "nothing to claim"); _payoutPendingGains(user); user.sumGPUS = sumGPUS; } function unlockWithFee() external { require(canUnlockWithFee, "unlock with fee disabled"); User memory user = users[_msgSender()]; totalStaked -= user.stakedAmount; uint feeAmount = computeUnlockFee(_msgSender()); uint amount = user.stakedAmount - feeAmount; _payoutPendingGains(user); _updateUser(user, 0, 0); if (amount > 0) TOKEN.safeTransfer(_msgSender(), amount); if (feeAmount > 0) TOKEN.safeTransfer(taxReceiver, feeAmount); } function distribute(uint amount) external { require(_msgSender() == address(SPLITTER), "unauthorized"); uint totalSharesCached = totalShares; if (totalSharesCached == 0) { TOKEN.safeTransfer(owner(), amount); return; } totalDistributed += amount; // compute gain per unit staked uint numerator = amount * PRECISION + lastRoundingError; uint gpus = numerator / totalSharesCached; // update rounding error from one iteration to another lastRoundingError = numerator - gpus * totalSharesCached; sumGPUS += gpus; } function setMaxLock(uint _maxLockDuration, uint _maxLockBonus) external onlyOwner { maxLockDuration = _maxLockDuration; maxLockBonus = _maxLockBonus; emit SetMaxLock(_maxLockDuration, _maxLockBonus); } function setUnlockFee(uint _minUnlockFee, uint _maxUnlockFee) external onlyOwner { require(_minUnlockFee <= _maxUnlockFee, "fee discrepency"); require(_maxUnlockFee <= PRECISION, "cannot be greater than precision"); minUnlockFee = _minUnlockFee; maxUnlockFee = _maxUnlockFee; emit SetUnlockFee(_minUnlockFee, _maxUnlockFee); } function setCanUnlockWithFee(bool _canUnlockWithFee) external onlyOwner { canUnlockWithFee = _canUnlockWithFee; emit SetCanUnlockWithFee(_canUnlockWithFee); } function setTaxReceiver(address _who) external onlyOwner { assert(_who != address(0)); taxReceiver = _who; emit SetTaxReceiver(_who); } function pendingOf(address who) external view returns (uint) { User memory user = users[who]; if (user.shares == 0) return 0; uint sumGPUSUpdated = sumGPUS + SPLITTER.pendingOf(address(this)) * PRECISION / totalShares; return user.shares * (sumGPUSUpdated - user.sumGPUS) / PRECISION; } function computeUnlockFee(address who) public view returns (uint) { User memory user = users[who]; if (user.stakedAmount == 0) return 0; if (block.timestamp >= user.lockEndTime) return 0; uint currentLockDuration = block.timestamp - user.lockStartTime; uint initialLockDuration = user.lockEndTime - user.lockStartTime; uint maxUnlockFeeCached = maxUnlockFee; uint feeDiff = maxUnlockFeeCached - minUnlockFee; uint feePerc = maxUnlockFeeCached - currentLockDuration * feeDiff / initialLockDuration; return user.stakedAmount * feePerc / PRECISION; } function _updateUser(User memory user, uint newStakedAmount, uint lockDuration) private { if (newStakedAmount == 0) { // fully unstaked totalShares -= user.shares; _burn(_msgSender(), user.shares); delete users[_msgSender()]; return; } if (user.stakedAmount == 0) { // first deposit uint shares = _computeUserShares(newStakedAmount, lockDuration); uint lockEndTime = block.timestamp + lockDuration; users[_msgSender()] = User(newStakedAmount, shares, block.timestamp, lockEndTime, sumGPUS); _mint(_msgSender(), shares); totalShares += shares; } else { if (user.lockEndTime > block.timestamp) { // currently locked uint initialLockDuration = user.lockEndTime - user.lockStartTime; if (lockDuration < initialLockDuration) lockDuration = initialLockDuration; } uint shares = _computeUserShares(newStakedAmount, lockDuration); uint lockEndTime = block.timestamp + lockDuration; _burn(_msgSender(), user.shares); users[_msgSender()] = User(newStakedAmount, shares, block.timestamp, lockEndTime, sumGPUS); _mint(_msgSender(), shares); totalShares = totalShares - user.shares + shares; } } // caller to update user.sumGPUS function _payoutPendingGains(User memory user) private { SPLITTER.split(); if (user.shares == 0) return; uint gains = user.shares * (sumGPUS - user.sumGPUS) / PRECISION; if (gains > 0) TOKEN.safeTransfer(_msgSender(), gains); } function _computeUserShares(uint stakedAmount, uint lockDuration) internal view returns (uint) { uint maxLockDurationCached = maxLockDuration; if (maxLockDurationCached == 0) return stakedAmount; return stakedAmount + stakedAmount * maxLockBonus * lockDuration / maxLockDurationCached / PRECISION; } function _transfer(address from, address to, uint256 amount) internal override { revert("cannot transfer"); } }
// 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; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IReceiver { function distribute(uint amount) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface ISplitter { function split() external; function pendingOf(address who) external view returns (uint); }
{ "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":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"contract ISplitter","name":"_splitter","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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"__canUnlockWithFee","type":"bool"}],"name":"SetCanUnlockWithFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_maxLockDuration","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_maxLockBonus","type":"uint256"}],"name":"SetMaxLock","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"who","type":"address"}],"name":"SetTaxReceiver","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_minUnlockFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_maxUnlockFee","type":"uint256"}],"name":"SetUnlockFee","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":"SPLITTER","outputs":[{"internalType":"contract ISplitter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN","outputs":[{"internalType":"contract IERC20","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":[],"name":"canUnlockWithFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"who","type":"address"}],"name":"computeUnlockFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"uint256","name":"amount","type":"uint256"}],"name":"distribute","outputs":[],"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":"lastRoundingError","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxLockBonus","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxLockDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxUnlockFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minUnlockFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"who","type":"address"}],"name":"pendingOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_canUnlockWithFee","type":"bool"}],"name":"setCanUnlockWithFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxLockDuration","type":"uint256"},{"internalType":"uint256","name":"_maxLockBonus","type":"uint256"}],"name":"setMaxLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_who","type":"address"}],"name":"setTaxReceiver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minUnlockFee","type":"uint256"},{"internalType":"uint256","name":"_maxUnlockFee","type":"uint256"}],"name":"setUnlockFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_lockDuration","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sumGPUS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalDistributed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unlockWithFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"users","outputs":[{"internalType":"uint256","name":"stakedAmount","type":"uint256"},{"internalType":"uint256","name":"shares","type":"uint256"},{"internalType":"uint256","name":"lockStartTime","type":"uint256"},{"internalType":"uint256","name":"lockEndTime","type":"uint256"},{"internalType":"uint256","name":"sumGPUS","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60c060405234801562000010575f80fd5b50604051620022b2380380620022b2833981016040819052620000339162000207565b8383600362000043838262000322565b50600462000052828262000322565b5050506200006f62000069620000dc60201b60201c565b620000e0565b6001600160a01b03828116608052811660a05260108054336101008102610100600160a81b03199092169190911790915560408051918252517f52a472970ea56cfa059fd5f6e020448126236d196732af0f54dde5f2b34243629181900360200190a150505050620003ea565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b634e487b7160e01b5f52604160045260245ffd5b5f82601f83011262000155575f80fd5b81516001600160401b038082111562000172576200017262000131565b604051601f8301601f19908116603f011681019082821181831017156200019d576200019d62000131565b81604052838152602092508683858801011115620001b9575f80fd5b5f91505b83821015620001dc5785820183015181830184015290820190620001bd565b5f93810190920192909252949350505050565b6001600160a01b038116811462000204575f80fd5b50565b5f805f80608085870312156200021b575f80fd5b84516001600160401b038082111562000232575f80fd5b620002408883890162000145565b9550602087015191508082111562000256575f80fd5b50620002658782880162000145565b93505060408501516200027881620001ef565b60608601519092506200028b81620001ef565b939692955090935050565b600181811c90821680620002ab57607f821691505b602082108103620002ca57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156200031d575f81815260208120601f850160051c81016020861015620002f85750805b601f850160051c820191505b81811015620003195782815560010162000304565b5050505b505050565b81516001600160401b038111156200033e576200033e62000131565b62000356816200034f845462000296565b84620002d0565b602080601f8311600181146200038c575f8415620003745750858301515b5f19600386901b1c1916600185901b17855562000319565b5f85815260208120601f198616915b82811015620003bc578886015182559484019460019091019084016200039b565b5085821015620003da57878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a051611e756200043d5f395f81816102f901528181610bd3015281816110bb015261135801525f81816103c50152818161073f01528181610b1801528181610e640152610ea20152611e755ff3fe608060405234801561000f575f80fd5b5060043610610234575f3560e01c806382bfefc811610135578063c5ee0823116100b4578063e97d761511610079578063e97d761514610507578063efca2eed1461051a578063f2fde38b14610523578063f44136a114610536578063ff9fad9314610549575f80fd5b8063c5ee0823146104b8578063cd8de42c146104c0578063dd62ed3e146104d3578063e6ef73d6146104e6578063e7d500db146104fe575f80fd5b8063a457c2d7116100fa578063a457c2d71461041c578063a87430ba1461042f578063a9059cbb14610493578063ad65514b146104a6578063aefe5c05146104af575f80fd5b806382bfefc8146103c05780638da5cb5b146103e757806391c05b0b146103f857806395d89b411461040b578063a16cdbb114610413575f80fd5b80633a98ef39116101c157806370a082311161018657806370a0823114610361578063715018a6146103895780637920d1ae146103915780637b0472f0146103a4578063817b1cd2146103b7575f80fd5b80633a98ef39146102eb5780633f34649e146102f45780634e71d92d146103335780634f4237f51461033b5780635c8f41be1461034e575f80fd5b806323b872dd1161020757806323b872dd146102945780632e17de78146102a7578063313ce567146102bc578063369c00a1146102cb57806339509351146102d8575f80fd5b806306fdde0314610238578063095ea7b31461025657806318160ddd146102795780631a781d5d1461028b575b5f80fd5b610240610552565b60405161024d9190611bd8565b60405180910390f35b610269610264366004611c25565b6105e2565b604051901515815260200161024d565b6002545b60405190815260200161024d565b61027d600f5481565b6102696102a2366004611c4d565b6105fb565b6102ba6102b5366004611c86565b61061e565b005b6040516012815260200161024d565b6010546102699060ff1681565b6102696102e6366004611c25565b61076a565b61027d60095481565b61031b7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161024d565b6102ba61078b565b6102ba610349366004611caa565b610829565b6102ba61035c366004611ccc565b610879565b61027d61036f366004611cec565b6001600160a01b03165f9081526020819052604090205490565b6102ba610963565b61027d61039f366004611cec565b610976565b6102ba6103b2366004611ccc565b610a7a565b61027d60085481565b61031b7f000000000000000000000000000000000000000000000000000000000000000081565b6005546001600160a01b031661031b565b6102ba610406366004611c86565b610bd0565b610240610cd3565b61027d600c5481565b61026961042a366004611c25565b610ce2565b61046b61043d366004611cec565b60066020525f9081526040902080546001820154600283015460038401546004909401549293919290919085565b604080519586526020860194909452928401919091526060830152608082015260a00161024d565b6102696104a1366004611c25565b610d5c565b61027d600a5481565b61027d600e5481565b6102ba610d69565b6102ba6104ce366004611cec565b610ed0565b61027d6104e1366004611d05565b610f44565b60105461031b9061010090046001600160a01b031681565b61027d600b5481565b6102ba610515366004611ccc565b610f6e565b61027d60075481565b6102ba610531366004611cec565b610fb6565b61027d610544366004611cec565b61102f565b61027d600d5481565b60606003805461056190611d36565b80601f016020809104026020016040519081016040528092919081815260200182805461058d90611d36565b80156105d85780601f106105af576101008083540402835291602001916105d8565b820191905f5260205f20905b8154815290600101906020018083116105bb57829003601f168201915b5050505050905090565b5f336105ef818585611181565b60019150505b92915050565b5f336106088582856112a4565b61061385858561131c565b506001949350505050565b335f90815260066020908152604091829020825160a081018452815481526001820154928101929092526002810154928201929092526003820154606082018190526004909201546080820152904210156106af5760405162461bcd60e51b815260206004820152600c60248201526b1cdd1a5b1b081b1bd8dad95960a21b60448201526064015b60405180910390fd5b80518211156106f15760405162461bcd60e51b815260206004820152600e60248201526d616d6f756e7420746f6f2062696760901b60448201526064016106a6565b8160085f8282546107029190611d82565b90915550610711905081611356565b61072a8183835f01516107249190611d82565b5f611418565b811561076657610766335b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016908461163d565b5050565b5f336105ef81858561077c8383610f44565b6107869190611d95565b611181565b335f90815260066020526040902060018101546107dd5760405162461bcd60e51b815260206004820152601060248201526f6e6f7468696e6720746f20636c61696d60801b60448201526064016106a6565b6040805160a0810182528254815260018301546020820152600283015491810191909152600382015460608201526004820154608082015261081e90611356565b600a54600490910155565b6108316116a0565b6010805460ff19168215159081179091556040519081527f23c2ee82279ff54fce7a3ec54ae321fb58ba6dcb5ece9569bb5eaa487a9d9d36906020015b60405180910390a150565b6108816116a0565b808211156108c35760405162461bcd60e51b815260206004820152600f60248201526e6665652064697363726570656e637960881b60448201526064016106a6565b670de0b6b3a764000081111561091b5760405162461bcd60e51b815260206004820181905260248201527f63616e6e6f742062652067726561746572207468616e20707265636973696f6e60448201526064016106a6565b600f829055600e81905560408051838152602081018390527fcdc7ae3fee6230b7e21f62f5db6dd3558bb672550f9236d1404e9c5efb951fd191015b60405180910390a15050565b61096b6116a0565b6109745f6116fa565b565b6001600160a01b0381165f908152600660209081526040808320815160a0810183528154808252600183015494820194909452600282015492810192909252600381015460608301526004015460808201529082036109d757505f92915050565b806060015142106109ea57505f92915050565b5f8160400151426109fb9190611d82565b90505f82604001518360600151610a129190611d82565b600e54600f54919250905f90610a289083611d82565b90505f83610a368387611da8565b610a409190611dbf565b610a4a9084611d82565b9050670de0b6b3a764000081875f0151610a649190611da8565b610a6e9190611dbf565b98975050505050505050565b5f8211610ac15760405162461bcd60e51b8152602060048201526015602482015274616d6f756e742063616e6e6f74206265207a65726f60581b60448201526064016106a6565b600c54811115610b135760405162461bcd60e51b815260206004820152601f60248201527f6c6f636b2063616e6e6f742062652067726561746572207468616e206d61780060448201526064016106a6565b610b487f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633308561174b565b8160085f828254610b599190611d95565b9091555050335f90815260066020908152604091829020825160a08101845281548152600182015492810192909252600281015492820192909252600382015460608201526004909101546080820152610bb281611356565b610bcb8184835f0151610bc59190611d95565b84611418565b505050565b337f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031614610c375760405162461bcd60e51b815260206004820152600c60248201526b1d5b985d5d1a1bdc9a5e995960a21b60448201526064016106a6565b6009545f819003610c57576107666107356005546001600160a01b031690565b8160075f828254610c689190611d95565b9091555050600b545f90610c84670de0b6b3a764000085611da8565b610c8e9190611d95565b90505f610c9b8383611dbf565b9050610ca78382611da8565b610cb19083611d82565b600b8190555080600a5f828254610cc89190611d95565b909155505050505050565b60606004805461056190611d36565b5f3381610cef8286610f44565b905083811015610d4f5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016106a6565b6106138286868403611181565b5f336105ef81858561131c565b60105460ff16610dbb5760405162461bcd60e51b815260206004820152601860248201527f756e6c6f636b2077697468206665652064697361626c6564000000000000000060448201526064016106a6565b335f908152600660209081526040808320815160a0810183528154808252600183015494820194909452600282015492810192909252600381015460608301526004015460808201526008805491939091610e17908490611d82565b909155505f9050610e2733610976565b90505f81835f0151610e399190611d82565b9050610e4483611356565b610e4f835f80611418565b8015610e8b57610e8b335b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016908361163d565b8115610bcb57601054610bcb906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116916101009004168461163d565b610ed86116a0565b6001600160a01b038116610eee57610eee611dde565b60108054610100600160a81b0319166101006001600160a01b038416908102919091179091556040519081527f52a472970ea56cfa059fd5f6e020448126236d196732af0f54dde5f2b34243629060200161086e565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b610f766116a0565b600c829055600d81905560408051838152602081018390527fa5e5ecade6efb914b8d04f7b15363a2df598e7204d510583167f8b069878143c9101610957565b610fbe6116a0565b6001600160a01b0381166110235760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106a6565b61102c816116fa565b50565b6001600160a01b0381165f908152600660209081526040808320815160a0810183528154815260018201549381018490526002820154928101929092526003810154606083015260040154608082015290820361108e57505f92915050565b60095460405163f44136a160e01b81523060048201525f9190670de0b6b3a7640000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063f44136a190602401602060405180830381865afa158015611100573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111249190611df2565b61112e9190611da8565b6111389190611dbf565b600a546111459190611d95565b9050670de0b6b3a76400008260800151826111609190611d82565b836020015161116f9190611da8565b6111799190611dbf565b949350505050565b6001600160a01b0383166111e35760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016106a6565b6001600160a01b0382166112445760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016106a6565b6001600160a01b038381165f8181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b5f6112af8484610f44565b90505f19811461131657818110156113095760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016106a6565b6113168484848403611181565b50505050565b60405162461bcd60e51b815260206004820152600f60248201526e31b0b73737ba103a3930b739b332b960891b60448201526064016106a6565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f76541766040518163ffffffff1660e01b81526004015f604051808303815f87803b1580156113ae575f80fd5b505af11580156113c0573d5f803e3d5ffd5b5050505080602001515f036113d25750565b5f670de0b6b3a76400008260800151600a546113ee9190611d82565b83602001516113fd9190611da8565b6114079190611dbf565b905080156107665761076633610e5a565b815f0361147757826020015160095f8282546114349190611d82565b909155506114489050338460200151611783565b5050335f9081526006602052604081208181556001810182905560028101829055600381018290556004015550565b82515f0361153b575f61148a83836118b3565b90505f6114978342611d95565b90506040518060a00160405280858152602001838152602001428152602001828152602001600a5481525060065f6114cc3390565b6001600160a01b0316815260208082019290925260409081015f208351815591830151600183015582015160028201556060820151600382015560809091015160049091015561151d335b83611909565b8160095f82825461152e9190611d95565b90915550610bcb92505050565b428360600151111561156c575f8360400151846060015161155c9190611d82565b90508082101561156a578091505b505b5f61157783836118b3565b90505f6115848342611d95565b9050611594338660200151611783565b6040518060a00160405280858152602001838152602001428152602001828152602001600a5481525060065f6115c73390565b6001600160a01b0316815260208082019290925260409081015f208351815591830151600183015582015160028201556060820151600382015560809091015160049091015561161633611517565b8185602001516009546116299190611d82565b6116339190611d95565b6009555050505050565b6040516001600160a01b038316602482015260448101829052610bcb90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526119c6565b6005546001600160a01b031633146109745760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106a6565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6040516001600160a01b03808516602483015283166044820152606481018290526113169085906323b872dd60e01b90608401611669565b6001600160a01b0382166117e35760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016106a6565b6001600160a01b0382165f90815260208190526040902054818110156118565760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016106a6565b6001600160a01b0383165f818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b600c545f908082036118c857839150506105f5565b670de0b6b3a76400008184600d54876118e19190611da8565b6118eb9190611da8565b6118f59190611dbf565b6118ff9190611dbf565b6111799085611d95565b6001600160a01b03821661195f5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016106a6565b8060025f8282546119709190611d95565b90915550506001600160a01b0382165f81815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b5f611a1a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611a999092919063ffffffff16565b905080515f1480611a3a575080806020019051810190611a3a9190611e09565b610bcb5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016106a6565b606061117984845f85855f80866001600160a01b03168587604051611abe9190611e24565b5f6040518083038185875af1925050503d805f8114611af8576040519150601f19603f3d011682016040523d82523d5f602084013e611afd565b606091505b5091509150611b0e87838387611b19565b979650505050505050565b60608315611b875782515f03611b80576001600160a01b0385163b611b805760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016106a6565b5081611179565b6111798383815115611b9c5781518083602001fd5b8060405162461bcd60e51b81526004016106a69190611bd8565b5f5b83811015611bd0578181015183820152602001611bb8565b50505f910152565b602081525f8251806020840152611bf6816040850160208701611bb6565b601f01601f19169190910160400192915050565b80356001600160a01b0381168114611c20575f80fd5b919050565b5f8060408385031215611c36575f80fd5b611c3f83611c0a565b946020939093013593505050565b5f805f60608486031215611c5f575f80fd5b611c6884611c0a565b9250611c7660208501611c0a565b9150604084013590509250925092565b5f60208284031215611c96575f80fd5b5035919050565b801515811461102c575f80fd5b5f60208284031215611cba575f80fd5b8135611cc581611c9d565b9392505050565b5f8060408385031215611cdd575f80fd5b50508035926020909101359150565b5f60208284031215611cfc575f80fd5b611cc582611c0a565b5f8060408385031215611d16575f80fd5b611d1f83611c0a565b9150611d2d60208401611c0a565b90509250929050565b600181811c90821680611d4a57607f821691505b602082108103611d6857634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b818103818111156105f5576105f5611d6e565b808201808211156105f5576105f5611d6e565b80820281158282048414176105f5576105f5611d6e565b5f82611dd957634e487b7160e01b5f52601260045260245ffd5b500490565b634e487b7160e01b5f52600160045260245ffd5b5f60208284031215611e02575f80fd5b5051919050565b5f60208284031215611e19575f80fd5b8151611cc581611c9d565b5f8251611e35818460208701611bb6565b919091019291505056fea26469706673582212209d26e75133cc5ad5efa9c1d04208d83a060764c02a3fcce25e4a01dc057c1bba64736f6c63430008140033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000621879c6239d8ab9b82712fb56e7be880ce0c6ee000000000000000000000000b50a19402473ffae02db1bfee9c492bd27141fda000000000000000000000000000000000000000000000000000000000000000a76654f6d6e69426f745800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000776654f4d4e495800000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561000f575f80fd5b5060043610610234575f3560e01c806382bfefc811610135578063c5ee0823116100b4578063e97d761511610079578063e97d761514610507578063efca2eed1461051a578063f2fde38b14610523578063f44136a114610536578063ff9fad9314610549575f80fd5b8063c5ee0823146104b8578063cd8de42c146104c0578063dd62ed3e146104d3578063e6ef73d6146104e6578063e7d500db146104fe575f80fd5b8063a457c2d7116100fa578063a457c2d71461041c578063a87430ba1461042f578063a9059cbb14610493578063ad65514b146104a6578063aefe5c05146104af575f80fd5b806382bfefc8146103c05780638da5cb5b146103e757806391c05b0b146103f857806395d89b411461040b578063a16cdbb114610413575f80fd5b80633a98ef39116101c157806370a082311161018657806370a0823114610361578063715018a6146103895780637920d1ae146103915780637b0472f0146103a4578063817b1cd2146103b7575f80fd5b80633a98ef39146102eb5780633f34649e146102f45780634e71d92d146103335780634f4237f51461033b5780635c8f41be1461034e575f80fd5b806323b872dd1161020757806323b872dd146102945780632e17de78146102a7578063313ce567146102bc578063369c00a1146102cb57806339509351146102d8575f80fd5b806306fdde0314610238578063095ea7b31461025657806318160ddd146102795780631a781d5d1461028b575b5f80fd5b610240610552565b60405161024d9190611bd8565b60405180910390f35b610269610264366004611c25565b6105e2565b604051901515815260200161024d565b6002545b60405190815260200161024d565b61027d600f5481565b6102696102a2366004611c4d565b6105fb565b6102ba6102b5366004611c86565b61061e565b005b6040516012815260200161024d565b6010546102699060ff1681565b6102696102e6366004611c25565b61076a565b61027d60095481565b61031b7f000000000000000000000000b50a19402473ffae02db1bfee9c492bd27141fda81565b6040516001600160a01b03909116815260200161024d565b6102ba61078b565b6102ba610349366004611caa565b610829565b6102ba61035c366004611ccc565b610879565b61027d61036f366004611cec565b6001600160a01b03165f9081526020819052604090205490565b6102ba610963565b61027d61039f366004611cec565b610976565b6102ba6103b2366004611ccc565b610a7a565b61027d60085481565b61031b7f000000000000000000000000621879c6239d8ab9b82712fb56e7be880ce0c6ee81565b6005546001600160a01b031661031b565b6102ba610406366004611c86565b610bd0565b610240610cd3565b61027d600c5481565b61026961042a366004611c25565b610ce2565b61046b61043d366004611cec565b60066020525f9081526040902080546001820154600283015460038401546004909401549293919290919085565b604080519586526020860194909452928401919091526060830152608082015260a00161024d565b6102696104a1366004611c25565b610d5c565b61027d600a5481565b61027d600e5481565b6102ba610d69565b6102ba6104ce366004611cec565b610ed0565b61027d6104e1366004611d05565b610f44565b60105461031b9061010090046001600160a01b031681565b61027d600b5481565b6102ba610515366004611ccc565b610f6e565b61027d60075481565b6102ba610531366004611cec565b610fb6565b61027d610544366004611cec565b61102f565b61027d600d5481565b60606003805461056190611d36565b80601f016020809104026020016040519081016040528092919081815260200182805461058d90611d36565b80156105d85780601f106105af576101008083540402835291602001916105d8565b820191905f5260205f20905b8154815290600101906020018083116105bb57829003601f168201915b5050505050905090565b5f336105ef818585611181565b60019150505b92915050565b5f336106088582856112a4565b61061385858561131c565b506001949350505050565b335f90815260066020908152604091829020825160a081018452815481526001820154928101929092526002810154928201929092526003820154606082018190526004909201546080820152904210156106af5760405162461bcd60e51b815260206004820152600c60248201526b1cdd1a5b1b081b1bd8dad95960a21b60448201526064015b60405180910390fd5b80518211156106f15760405162461bcd60e51b815260206004820152600e60248201526d616d6f756e7420746f6f2062696760901b60448201526064016106a6565b8160085f8282546107029190611d82565b90915550610711905081611356565b61072a8183835f01516107249190611d82565b5f611418565b811561076657610766335b6001600160a01b037f000000000000000000000000621879c6239d8ab9b82712fb56e7be880ce0c6ee16908461163d565b5050565b5f336105ef81858561077c8383610f44565b6107869190611d95565b611181565b335f90815260066020526040902060018101546107dd5760405162461bcd60e51b815260206004820152601060248201526f6e6f7468696e6720746f20636c61696d60801b60448201526064016106a6565b6040805160a0810182528254815260018301546020820152600283015491810191909152600382015460608201526004820154608082015261081e90611356565b600a54600490910155565b6108316116a0565b6010805460ff19168215159081179091556040519081527f23c2ee82279ff54fce7a3ec54ae321fb58ba6dcb5ece9569bb5eaa487a9d9d36906020015b60405180910390a150565b6108816116a0565b808211156108c35760405162461bcd60e51b815260206004820152600f60248201526e6665652064697363726570656e637960881b60448201526064016106a6565b670de0b6b3a764000081111561091b5760405162461bcd60e51b815260206004820181905260248201527f63616e6e6f742062652067726561746572207468616e20707265636973696f6e60448201526064016106a6565b600f829055600e81905560408051838152602081018390527fcdc7ae3fee6230b7e21f62f5db6dd3558bb672550f9236d1404e9c5efb951fd191015b60405180910390a15050565b61096b6116a0565b6109745f6116fa565b565b6001600160a01b0381165f908152600660209081526040808320815160a0810183528154808252600183015494820194909452600282015492810192909252600381015460608301526004015460808201529082036109d757505f92915050565b806060015142106109ea57505f92915050565b5f8160400151426109fb9190611d82565b90505f82604001518360600151610a129190611d82565b600e54600f54919250905f90610a289083611d82565b90505f83610a368387611da8565b610a409190611dbf565b610a4a9084611d82565b9050670de0b6b3a764000081875f0151610a649190611da8565b610a6e9190611dbf565b98975050505050505050565b5f8211610ac15760405162461bcd60e51b8152602060048201526015602482015274616d6f756e742063616e6e6f74206265207a65726f60581b60448201526064016106a6565b600c54811115610b135760405162461bcd60e51b815260206004820152601f60248201527f6c6f636b2063616e6e6f742062652067726561746572207468616e206d61780060448201526064016106a6565b610b487f000000000000000000000000621879c6239d8ab9b82712fb56e7be880ce0c6ee6001600160a01b031633308561174b565b8160085f828254610b599190611d95565b9091555050335f90815260066020908152604091829020825160a08101845281548152600182015492810192909252600281015492820192909252600382015460608201526004909101546080820152610bb281611356565b610bcb8184835f0151610bc59190611d95565b84611418565b505050565b337f000000000000000000000000b50a19402473ffae02db1bfee9c492bd27141fda6001600160a01b031614610c375760405162461bcd60e51b815260206004820152600c60248201526b1d5b985d5d1a1bdc9a5e995960a21b60448201526064016106a6565b6009545f819003610c57576107666107356005546001600160a01b031690565b8160075f828254610c689190611d95565b9091555050600b545f90610c84670de0b6b3a764000085611da8565b610c8e9190611d95565b90505f610c9b8383611dbf565b9050610ca78382611da8565b610cb19083611d82565b600b8190555080600a5f828254610cc89190611d95565b909155505050505050565b60606004805461056190611d36565b5f3381610cef8286610f44565b905083811015610d4f5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016106a6565b6106138286868403611181565b5f336105ef81858561131c565b60105460ff16610dbb5760405162461bcd60e51b815260206004820152601860248201527f756e6c6f636b2077697468206665652064697361626c6564000000000000000060448201526064016106a6565b335f908152600660209081526040808320815160a0810183528154808252600183015494820194909452600282015492810192909252600381015460608301526004015460808201526008805491939091610e17908490611d82565b909155505f9050610e2733610976565b90505f81835f0151610e399190611d82565b9050610e4483611356565b610e4f835f80611418565b8015610e8b57610e8b335b6001600160a01b037f000000000000000000000000621879c6239d8ab9b82712fb56e7be880ce0c6ee16908361163d565b8115610bcb57601054610bcb906001600160a01b037f000000000000000000000000621879c6239d8ab9b82712fb56e7be880ce0c6ee8116916101009004168461163d565b610ed86116a0565b6001600160a01b038116610eee57610eee611dde565b60108054610100600160a81b0319166101006001600160a01b038416908102919091179091556040519081527f52a472970ea56cfa059fd5f6e020448126236d196732af0f54dde5f2b34243629060200161086e565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b610f766116a0565b600c829055600d81905560408051838152602081018390527fa5e5ecade6efb914b8d04f7b15363a2df598e7204d510583167f8b069878143c9101610957565b610fbe6116a0565b6001600160a01b0381166110235760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106a6565b61102c816116fa565b50565b6001600160a01b0381165f908152600660209081526040808320815160a0810183528154815260018201549381018490526002820154928101929092526003810154606083015260040154608082015290820361108e57505f92915050565b60095460405163f44136a160e01b81523060048201525f9190670de0b6b3a7640000906001600160a01b037f000000000000000000000000b50a19402473ffae02db1bfee9c492bd27141fda169063f44136a190602401602060405180830381865afa158015611100573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111249190611df2565b61112e9190611da8565b6111389190611dbf565b600a546111459190611d95565b9050670de0b6b3a76400008260800151826111609190611d82565b836020015161116f9190611da8565b6111799190611dbf565b949350505050565b6001600160a01b0383166111e35760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016106a6565b6001600160a01b0382166112445760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016106a6565b6001600160a01b038381165f8181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b5f6112af8484610f44565b90505f19811461131657818110156113095760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016106a6565b6113168484848403611181565b50505050565b60405162461bcd60e51b815260206004820152600f60248201526e31b0b73737ba103a3930b739b332b960891b60448201526064016106a6565b7f000000000000000000000000b50a19402473ffae02db1bfee9c492bd27141fda6001600160a01b031663f76541766040518163ffffffff1660e01b81526004015f604051808303815f87803b1580156113ae575f80fd5b505af11580156113c0573d5f803e3d5ffd5b5050505080602001515f036113d25750565b5f670de0b6b3a76400008260800151600a546113ee9190611d82565b83602001516113fd9190611da8565b6114079190611dbf565b905080156107665761076633610e5a565b815f0361147757826020015160095f8282546114349190611d82565b909155506114489050338460200151611783565b5050335f9081526006602052604081208181556001810182905560028101829055600381018290556004015550565b82515f0361153b575f61148a83836118b3565b90505f6114978342611d95565b90506040518060a00160405280858152602001838152602001428152602001828152602001600a5481525060065f6114cc3390565b6001600160a01b0316815260208082019290925260409081015f208351815591830151600183015582015160028201556060820151600382015560809091015160049091015561151d335b83611909565b8160095f82825461152e9190611d95565b90915550610bcb92505050565b428360600151111561156c575f8360400151846060015161155c9190611d82565b90508082101561156a578091505b505b5f61157783836118b3565b90505f6115848342611d95565b9050611594338660200151611783565b6040518060a00160405280858152602001838152602001428152602001828152602001600a5481525060065f6115c73390565b6001600160a01b0316815260208082019290925260409081015f208351815591830151600183015582015160028201556060820151600382015560809091015160049091015561161633611517565b8185602001516009546116299190611d82565b6116339190611d95565b6009555050505050565b6040516001600160a01b038316602482015260448101829052610bcb90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526119c6565b6005546001600160a01b031633146109745760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106a6565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6040516001600160a01b03808516602483015283166044820152606481018290526113169085906323b872dd60e01b90608401611669565b6001600160a01b0382166117e35760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016106a6565b6001600160a01b0382165f90815260208190526040902054818110156118565760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016106a6565b6001600160a01b0383165f818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b600c545f908082036118c857839150506105f5565b670de0b6b3a76400008184600d54876118e19190611da8565b6118eb9190611da8565b6118f59190611dbf565b6118ff9190611dbf565b6111799085611d95565b6001600160a01b03821661195f5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016106a6565b8060025f8282546119709190611d95565b90915550506001600160a01b0382165f81815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b5f611a1a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611a999092919063ffffffff16565b905080515f1480611a3a575080806020019051810190611a3a9190611e09565b610bcb5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016106a6565b606061117984845f85855f80866001600160a01b03168587604051611abe9190611e24565b5f6040518083038185875af1925050503d805f8114611af8576040519150601f19603f3d011682016040523d82523d5f602084013e611afd565b606091505b5091509150611b0e87838387611b19565b979650505050505050565b60608315611b875782515f03611b80576001600160a01b0385163b611b805760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016106a6565b5081611179565b6111798383815115611b9c5781518083602001fd5b8060405162461bcd60e51b81526004016106a69190611bd8565b5f5b83811015611bd0578181015183820152602001611bb8565b50505f910152565b602081525f8251806020840152611bf6816040850160208701611bb6565b601f01601f19169190910160400192915050565b80356001600160a01b0381168114611c20575f80fd5b919050565b5f8060408385031215611c36575f80fd5b611c3f83611c0a565b946020939093013593505050565b5f805f60608486031215611c5f575f80fd5b611c6884611c0a565b9250611c7660208501611c0a565b9150604084013590509250925092565b5f60208284031215611c96575f80fd5b5035919050565b801515811461102c575f80fd5b5f60208284031215611cba575f80fd5b8135611cc581611c9d565b9392505050565b5f8060408385031215611cdd575f80fd5b50508035926020909101359150565b5f60208284031215611cfc575f80fd5b611cc582611c0a565b5f8060408385031215611d16575f80fd5b611d1f83611c0a565b9150611d2d60208401611c0a565b90509250929050565b600181811c90821680611d4a57607f821691505b602082108103611d6857634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b818103818111156105f5576105f5611d6e565b808201808211156105f5576105f5611d6e565b80820281158282048414176105f5576105f5611d6e565b5f82611dd957634e487b7160e01b5f52601260045260245ffd5b500490565b634e487b7160e01b5f52600160045260245ffd5b5f60208284031215611e02575f80fd5b5051919050565b5f60208284031215611e19575f80fd5b8151611cc581611c9d565b5f8251611e35818460208701611bb6565b919091019291505056fea26469706673582212209d26e75133cc5ad5efa9c1d04208d83a060764c02a3fcce25e4a01dc057c1bba64736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000621879c6239d8ab9b82712fb56e7be880ce0c6ee000000000000000000000000b50a19402473ffae02db1bfee9c492bd27141fda000000000000000000000000000000000000000000000000000000000000000a76654f6d6e69426f745800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000776654f4d4e495800000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): veOmniBotX
Arg [1] : _symbol (string): veOMNIX
Arg [2] : _token (address): 0x621879C6239d8ab9B82712fb56e7be880cE0c6eE
Arg [3] : _splitter (address): 0xB50A19402473fFAE02DB1BFEe9C492bD27141fda
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 000000000000000000000000621879c6239d8ab9b82712fb56e7be880ce0c6ee
Arg [3] : 000000000000000000000000b50a19402473ffae02db1bfee9c492bd27141fda
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [5] : 76654f6d6e69426f745800000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [7] : 76654f4d4e495800000000000000000000000000000000000000000000000000
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.