Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
- Contract name:
- VVT
- Optimization enabled
- true
- Compiler version
- v0.8.10+commit.fc410830
- Optimization runs
- 200
- EVM Version
- default
- Verified at
- 2024-09-26T15:35:30.934601Z
Contract source code
// SPDX-License-Identifier: No License (None) pragma solidity 0.8.10; abstract contract IERC223Recipient { /** * @dev Standard ERC223 function that will handle incoming token transfers. * * @param _from Token sender address. * @param _value Amount of tokens. * @param _data Transaction metadata. */ function tokenReceived(address _from, uint _value, bytes memory _data) external virtual; } /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC223 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); function transfer(address recipient, uint256 amount, bytes calldata data) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); event TransferData(bytes); /** * @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 Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != accountHash && codehash != 0x0); } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); return _functionCallWithValue(target, data, value, errorMessage); } function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) { require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: weiValue }(data); if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } abstract contract Ownable is Context { address internal _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); constructor() { _transferOwnership(_msgSender()); } function owner() public view virtual returns (address) { return _owner; } modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } /** * @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.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of 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 ERC223 is Context, IERC223{ using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ constructor (string memory new_name, string memory new_symbol) { _name = new_name; _symbol = new_symbol; _decimals = 18; } function standard() public pure returns (string memory) { return "erc223"; } /** * @dev Returns the name of the token. */ function name() public view returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view 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 value {ERC20} uses, unless {_setupDecimals} is * called. * * 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 returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view override returns (uint256) { return _balances[account]; } /** * @dev See {IERC223-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount, new bytes(0)); return true; } /** * @dev See {IERC223-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. * */ function transfer(address recipient, uint256 amount, bytes calldata data) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount, data); 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}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), 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}; * * Requirements: * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transferFrom(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()] - 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) { _approve(_msgSender(), spender, _allowances[_msgSender()][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) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] - subtractedValue); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is 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: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount, bytes memory data) internal virtual { require(sender != address(0), "ERC223: transfer from the zero address"); require(recipient != address(0), "ERC223: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _balances[sender] - amount; _balances[recipient] = _balances[recipient] + amount; if(recipient.isContract()) { IERC223Recipient(recipient).tokenReceived(sender, amount, data); } emit Transfer(sender, recipient, amount); emit TransferData(data); } function _transferFrom(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC223: transfer from the zero address"); require(recipient != address(0), "ERC223: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _balances[sender] - amount; _balances[recipient] = _balances[recipient] + amount; emit Transfer(sender, recipient, 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 * * - `to` 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; _balances[account] += amount; emit Transfer(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); _balances[account] -= amount; _totalSupply -= amount; emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens. * * This is 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 Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */ function _setupDecimals(uint8 decimals_) internal { _decimals = decimals_; } /** * @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 to 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 { } } //VVT Token contract VVT is ERC223("VIPSVERSE Token", "VVT"), Ownable { address public farm; //12% of tokens will be mint yearly by farming contract. address public preBurnAddress; //we will constantly burn tokens. We will collect it on special address from different sources and burn it on weekly/monthly basis. constructor() { _mint(_msgSender(), 100000000 * 10**18);//100M tokens will be minted initially } function rescueERC20(address token, address to) external onlyOwner { uint256 value = IERC223(token).balanceOf(address(this)); IERC223(token).transfer(to, value); } function mint(uint256 _amount) public { require(_msgSender() == farm, "Only Farm contract can mint new tokens"); _mint(farm, _amount); } function burn(uint256 _amount) public { require(_msgSender() == preBurnAddress, "Tokens can be burned only by team"); _burn(preBurnAddress, _amount); } /* We don't know final farm contract address at time of token contract deployment/ICO start, so we need ability to change farm contract address in future. */ function setFarmAddress(address _farm) public onlyOwner{ farm = _farm; } function setPreBurnAddress(address _preBurnAddress) public onlyOwner{ preBurnAddress = _preBurnAddress; } }
Contract ABI
[{"type":"constructor","stateMutability":"nonpayable","inputs":[]},{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"spender","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"TransferData","inputs":[{"type":"bytes","name":"","internalType":"bytes","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"allowance","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"spender","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"approve","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"burn","inputs":[{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"decimals","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"decreaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"subtractedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"farm","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"increaseAllowance","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"addedValue","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"mint","inputs":[{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"preBurnAddress","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"rescueERC20","inputs":[{"type":"address","name":"token","internalType":"address"},{"type":"address","name":"to","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setFarmAddress","inputs":[{"type":"address","name":"_farm","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setPreBurnAddress","inputs":[{"type":"address","name":"_preBurnAddress","internalType":"address"}]},{"type":"function","stateMutability":"pure","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"standard","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transfer","inputs":[{"type":"address","name":"recipient","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transfer","inputs":[{"type":"address","name":"recipient","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"bytes","name":"data","internalType":"bytes"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transferFrom","inputs":[{"type":"address","name":"sender","internalType":"address"},{"type":"address","name":"recipient","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]}]
Contract Creation Code
0x60806040523480156200001157600080fd5b506040518060400160405280600f81526020016e2b24a829ab22a929a2902a37b5b2b760891b8152506040518060400160405280600381526020016215959560ea1b81525081600390805190602001906200006e92919062000205565b5080516200008490600490602084019062000205565b50506005805460ff1916601217905550620000a6620000a03390565b620000c3565b620000bd336a52b7d2dcc80cd2e40000006200011d565b6200030f565b600580546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620001785760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b80600260008282546200018c9190620002ab565b90915550506001600160a01b03821660009081526020819052604081208054839290620001bb908490620002ab565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b8280546200021390620002d2565b90600052602060002090601f01602090048101928262000237576000855562000282565b82601f106200025257805160ff191683800117855562000282565b8280016001018555821562000282579182015b828111156200028257825182559160200191906001019062000265565b506200029092915062000294565b5090565b5b8082111562000290576000815560010162000295565b60008219821115620002cd57634e487b7160e01b600052601160045260246000fd5b500190565b600181811c90821680620002e757607f821691505b602082108114156200030957634e487b7160e01b600052602260045260246000fd5b50919050565b61126a806200031f6000396000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c806370a08231116100b8578063a9059cbb1161007c578063a9059cbb146102ca578063be45fd62146102dd578063d9799809146102f0578063dd62ed3e14610303578063ec75801f1461033c578063f2fde38b1461034f57600080fd5b806370a082311461025d5780638da5cb5b1461028657806395d89b411461029c578063a0712d68146102a4578063a457c2d7146102b757600080fd5b806334df3d311161010a57806334df3d31146101c257806336e9332d146101ed578063395093511461020057806342966c68146102135780635a3b7e42146102285780635d799f871461024a57600080fd5b806306fdde0314610147578063095ea7b31461016557806318160ddd1461018857806323b872dd1461019a578063313ce567146101ad575b600080fd5b61014f610362565b60405161015c9190610ee0565b60405180910390f35b610178610173366004610f16565b6103f4565b604051901515815260200161015c565b6002545b60405190815260200161015c565b6101786101a8366004610f40565b61040a565b60055460405160ff909116815260200161015c565b6007546101d5906001600160a01b031681565b6040516001600160a01b03909116815260200161015c565b6006546101d5906001600160a01b031681565b61017861020e366004610f16565b61045c565b610226610221366004610f7c565b610493565b005b60408051808201909152600681526565726332323360d01b602082015261014f565b610226610258366004610f95565b61051e565b61018c61026b366004610fc8565b6001600160a01b031660009081526020819052604090205490565b60055461010090046001600160a01b03166101d5565b61014f610636565b6102266102b2366004610f7c565b610645565b6101786102c5366004610f16565b6106cd565b6101786102d8366004610f16565b610704565b6101786102eb366004610fe3565b610723565b6102266102fe366004610fc8565b610772565b61018c610311366004610f95565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61022661034a366004610fc8565b6107c4565b61022661035d366004610fc8565b610816565b6060600380546103719061106a565b80601f016020809104026020016040519081016040528092919081815260200182805461039d9061106a565b80156103ea5780601f106103bf576101008083540402835291602001916103ea565b820191906000526020600020905b8154815290600101906020018083116103cd57829003601f168201915b5050505050905090565b60006104013384846108b4565b50600192915050565b60006104178484846109d9565b6001600160a01b03841660009081526001602090815260408083203380855292529091205461045291869161044d9086906110bb565b6108b4565b5060019392505050565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161040191859061044d9086906110d2565b6007546001600160a01b0316336001600160a01b0316146105055760405162461bcd60e51b815260206004820152602160248201527f546f6b656e732063616e206265206275726e6564206f6e6c79206279207465616044820152606d60f81b60648201526084015b60405180910390fd5b60075461051b906001600160a01b031682610ab8565b50565b6005546001600160a01b0361010090910416331461054e5760405162461bcd60e51b81526004016104fc906110ea565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa158015610595573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105b9919061111f565b60405163a9059cbb60e01b81526001600160a01b038481166004830152602482018390529192509084169063a9059cbb906044016020604051808303816000875af115801561060c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106309190611138565b50505050565b6060600480546103719061106a565b6006546001600160a01b0316336001600160a01b0316146106b75760405162461bcd60e51b815260206004820152602660248201527f4f6e6c79204661726d20636f6e74726163742063616e206d696e74206e657720604482015265746f6b656e7360d01b60648201526084016104fc565b60065461051b906001600160a01b031682610b92565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161040191859061044d9086906110bb565b6040805160008082526020820190925261040190339085908590610c58565b600061076733868686868080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610c5892505050565b506001949350505050565b6005546001600160a01b036101009091041633146107a25760405162461bcd60e51b81526004016104fc906110ea565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b036101009091041633146107f45760405162461bcd60e51b81526004016104fc906110ea565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b036101009091041633146108465760405162461bcd60e51b81526004016104fc906110ea565b6001600160a01b0381166108ab5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104fc565b61051b81610dfd565b6001600160a01b0383166109165760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016104fc565b6001600160a01b0382166109775760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016104fc565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0383166109ff5760405162461bcd60e51b81526004016104fc9061115a565b6001600160a01b038216610a255760405162461bcd60e51b81526004016104fc906111a0565b6001600160a01b038316600090815260208190526040902054610a499082906110bb565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610a799082906110d2565b6001600160a01b0383811660008181526020818152604091829020949094555184815290929186169160008051602061121583398151915291016109cc565b6001600160a01b038216610b185760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016104fc565b6001600160a01b03821660009081526020819052604081208054839290610b409084906110bb565b925050819055508060026000828254610b5991906110bb565b90915550506040518181526000906001600160a01b03841690600080516020611215833981519152906020015b60405180910390a35050565b6001600160a01b038216610be85760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016104fc565b8060026000828254610bfa91906110d2565b90915550506001600160a01b03821660009081526020819052604081208054839290610c279084906110d2565b90915550506040518181526001600160a01b0383169060009060008051602061121583398151915290602001610b86565b6001600160a01b038416610c7e5760405162461bcd60e51b81526004016104fc9061115a565b6001600160a01b038316610ca45760405162461bcd60e51b81526004016104fc906111a0565b6001600160a01b038416600090815260208190526040902054610cc89083906110bb565b6001600160a01b038086166000908152602081905260408082209390935590851681522054610cf89083906110d2565b6001600160a01b038416600081815260208190526040902091909155610d1d90610e57565b15610d85576040516344a1f60160e11b81526001600160a01b03841690638943ec0290610d52908790869086906004016111e4565b600060405180830381600087803b158015610d6c57600080fd5b505af1158015610d80573d6000803e3d6000fd5b505050505b826001600160a01b0316846001600160a01b031660008051602061121583398151915284604051610db891815260200190565b60405180910390a37f3ba9136826ac751de05d770d8d34fa4440ada49a5fb0e9aa1678aece66dad97681604051610def9190610ee0565b60405180910390a150505050565b600580546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610e8b57508115155b949350505050565b6000815180845260005b81811015610eb957602081850181015186830182015201610e9d565b81811115610ecb576000602083870101525b50601f01601f19169290920160200192915050565b602081526000610ef36020830184610e93565b9392505050565b80356001600160a01b0381168114610f1157600080fd5b919050565b60008060408385031215610f2957600080fd5b610f3283610efa565b946020939093013593505050565b600080600060608486031215610f5557600080fd5b610f5e84610efa565b9250610f6c60208501610efa565b9150604084013590509250925092565b600060208284031215610f8e57600080fd5b5035919050565b60008060408385031215610fa857600080fd5b610fb183610efa565b9150610fbf60208401610efa565b90509250929050565b600060208284031215610fda57600080fd5b610ef382610efa565b60008060008060608587031215610ff957600080fd5b61100285610efa565b935060208501359250604085013567ffffffffffffffff8082111561102657600080fd5b818701915087601f83011261103a57600080fd5b81358181111561104957600080fd5b88602082850101111561105b57600080fd5b95989497505060200194505050565b600181811c9082168061107e57607f821691505b6020821081141561109f57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000828210156110cd576110cd6110a5565b500390565b600082198211156110e5576110e56110a5565b500190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006020828403121561113157600080fd5b5051919050565b60006020828403121561114a57600080fd5b81518015158114610ef357600080fd5b60208082526026908201527f4552433232333a207472616e736665722066726f6d20746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526024908201527f4552433232333a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60018060a01b038416815282602082015260606040820152600061120b6060830184610e93565b9594505050505056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122017e73db216a973feac4382494a965e48a73efdb264c2b480d768b05a76d6b4bc64736f6c634300080a0033
Deployed ByteCode
0x608060405234801561001057600080fd5b50600436106101425760003560e01c806370a08231116100b8578063a9059cbb1161007c578063a9059cbb146102ca578063be45fd62146102dd578063d9799809146102f0578063dd62ed3e14610303578063ec75801f1461033c578063f2fde38b1461034f57600080fd5b806370a082311461025d5780638da5cb5b1461028657806395d89b411461029c578063a0712d68146102a4578063a457c2d7146102b757600080fd5b806334df3d311161010a57806334df3d31146101c257806336e9332d146101ed578063395093511461020057806342966c68146102135780635a3b7e42146102285780635d799f871461024a57600080fd5b806306fdde0314610147578063095ea7b31461016557806318160ddd1461018857806323b872dd1461019a578063313ce567146101ad575b600080fd5b61014f610362565b60405161015c9190610ee0565b60405180910390f35b610178610173366004610f16565b6103f4565b604051901515815260200161015c565b6002545b60405190815260200161015c565b6101786101a8366004610f40565b61040a565b60055460405160ff909116815260200161015c565b6007546101d5906001600160a01b031681565b6040516001600160a01b03909116815260200161015c565b6006546101d5906001600160a01b031681565b61017861020e366004610f16565b61045c565b610226610221366004610f7c565b610493565b005b60408051808201909152600681526565726332323360d01b602082015261014f565b610226610258366004610f95565b61051e565b61018c61026b366004610fc8565b6001600160a01b031660009081526020819052604090205490565b60055461010090046001600160a01b03166101d5565b61014f610636565b6102266102b2366004610f7c565b610645565b6101786102c5366004610f16565b6106cd565b6101786102d8366004610f16565b610704565b6101786102eb366004610fe3565b610723565b6102266102fe366004610fc8565b610772565b61018c610311366004610f95565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61022661034a366004610fc8565b6107c4565b61022661035d366004610fc8565b610816565b6060600380546103719061106a565b80601f016020809104026020016040519081016040528092919081815260200182805461039d9061106a565b80156103ea5780601f106103bf576101008083540402835291602001916103ea565b820191906000526020600020905b8154815290600101906020018083116103cd57829003601f168201915b5050505050905090565b60006104013384846108b4565b50600192915050565b60006104178484846109d9565b6001600160a01b03841660009081526001602090815260408083203380855292529091205461045291869161044d9086906110bb565b6108b4565b5060019392505050565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161040191859061044d9086906110d2565b6007546001600160a01b0316336001600160a01b0316146105055760405162461bcd60e51b815260206004820152602160248201527f546f6b656e732063616e206265206275726e6564206f6e6c79206279207465616044820152606d60f81b60648201526084015b60405180910390fd5b60075461051b906001600160a01b031682610ab8565b50565b6005546001600160a01b0361010090910416331461054e5760405162461bcd60e51b81526004016104fc906110ea565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa158015610595573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105b9919061111f565b60405163a9059cbb60e01b81526001600160a01b038481166004830152602482018390529192509084169063a9059cbb906044016020604051808303816000875af115801561060c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106309190611138565b50505050565b6060600480546103719061106a565b6006546001600160a01b0316336001600160a01b0316146106b75760405162461bcd60e51b815260206004820152602660248201527f4f6e6c79204661726d20636f6e74726163742063616e206d696e74206e657720604482015265746f6b656e7360d01b60648201526084016104fc565b60065461051b906001600160a01b031682610b92565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161040191859061044d9086906110bb565b6040805160008082526020820190925261040190339085908590610c58565b600061076733868686868080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610c5892505050565b506001949350505050565b6005546001600160a01b036101009091041633146107a25760405162461bcd60e51b81526004016104fc906110ea565b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b036101009091041633146107f45760405162461bcd60e51b81526004016104fc906110ea565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b036101009091041633146108465760405162461bcd60e51b81526004016104fc906110ea565b6001600160a01b0381166108ab5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104fc565b61051b81610dfd565b6001600160a01b0383166109165760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016104fc565b6001600160a01b0382166109775760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016104fc565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0383166109ff5760405162461bcd60e51b81526004016104fc9061115a565b6001600160a01b038216610a255760405162461bcd60e51b81526004016104fc906111a0565b6001600160a01b038316600090815260208190526040902054610a499082906110bb565b6001600160a01b038085166000908152602081905260408082209390935590841681522054610a799082906110d2565b6001600160a01b0383811660008181526020818152604091829020949094555184815290929186169160008051602061121583398151915291016109cc565b6001600160a01b038216610b185760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016104fc565b6001600160a01b03821660009081526020819052604081208054839290610b409084906110bb565b925050819055508060026000828254610b5991906110bb565b90915550506040518181526000906001600160a01b03841690600080516020611215833981519152906020015b60405180910390a35050565b6001600160a01b038216610be85760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016104fc565b8060026000828254610bfa91906110d2565b90915550506001600160a01b03821660009081526020819052604081208054839290610c279084906110d2565b90915550506040518181526001600160a01b0383169060009060008051602061121583398151915290602001610b86565b6001600160a01b038416610c7e5760405162461bcd60e51b81526004016104fc9061115a565b6001600160a01b038316610ca45760405162461bcd60e51b81526004016104fc906111a0565b6001600160a01b038416600090815260208190526040902054610cc89083906110bb565b6001600160a01b038086166000908152602081905260408082209390935590851681522054610cf89083906110d2565b6001600160a01b038416600081815260208190526040902091909155610d1d90610e57565b15610d85576040516344a1f60160e11b81526001600160a01b03841690638943ec0290610d52908790869086906004016111e4565b600060405180830381600087803b158015610d6c57600080fd5b505af1158015610d80573d6000803e3d6000fd5b505050505b826001600160a01b0316846001600160a01b031660008051602061121583398151915284604051610db891815260200190565b60405180910390a37f3ba9136826ac751de05d770d8d34fa4440ada49a5fb0e9aa1678aece66dad97681604051610def9190610ee0565b60405180910390a150505050565b600580546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590610e8b57508115155b949350505050565b6000815180845260005b81811015610eb957602081850181015186830182015201610e9d565b81811115610ecb576000602083870101525b50601f01601f19169290920160200192915050565b602081526000610ef36020830184610e93565b9392505050565b80356001600160a01b0381168114610f1157600080fd5b919050565b60008060408385031215610f2957600080fd5b610f3283610efa565b946020939093013593505050565b600080600060608486031215610f5557600080fd5b610f5e84610efa565b9250610f6c60208501610efa565b9150604084013590509250925092565b600060208284031215610f8e57600080fd5b5035919050565b60008060408385031215610fa857600080fd5b610fb183610efa565b9150610fbf60208401610efa565b90509250929050565b600060208284031215610fda57600080fd5b610ef382610efa565b60008060008060608587031215610ff957600080fd5b61100285610efa565b935060208501359250604085013567ffffffffffffffff8082111561102657600080fd5b818701915087601f83011261103a57600080fd5b81358181111561104957600080fd5b88602082850101111561105b57600080fd5b95989497505060200194505050565b600181811c9082168061107e57607f821691505b6020821081141561109f57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000828210156110cd576110cd6110a5565b500390565b600082198211156110e5576110e56110a5565b500190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006020828403121561113157600080fd5b5051919050565b60006020828403121561114a57600080fd5b81518015158114610ef357600080fd5b60208082526026908201527f4552433232333a207472616e736665722066726f6d20746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526024908201527f4552433232333a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60018060a01b038416815282602082015260606040820152600061120b6060830184610e93565b9594505050505056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122017e73db216a973feac4382494a965e48a73efdb264c2b480d768b05a76d6b4bc64736f6c634300080a0033