Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
- Contract name:
- KAVAX
- Optimization enabled
- true
- Compiler version
- v0.8.4+commit.c7e474f2
- Optimization runs
- 200
- EVM Version
- default
- Verified at
- 2023-01-27T21:25:31.378245Z
Constructor Arguments
0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000054b4156415800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054b41564158000000000000000000000000000000000000000000000000000000
Arg [0] (string) : KAVAX
Arg [1] (string) : KAVAX
Contract source code
// Sources flattened with hardhat v2.8.3 https://hardhat.org // File @openzeppelin/contracts/token/ERC20/IERC20.sol@v4.5.0 // SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `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); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol@v4.5.0 // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; /** * @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); } // File @openzeppelin/contracts/utils/Context.sol@v4.5.0 // 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; } } // File @openzeppelin/contracts/token/ERC20/ERC20.sol@v4.5.0 // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; /** * @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 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}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * 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 value {ERC20} uses, unless this function is * 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, _allowances[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 = _allowances[owner][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * 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; } _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; _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; } _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 Spend `amount` form the allowance of `owner` toward `spender`. * * 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 {} } // File @openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol@v4.5.0 // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol) pragma solidity ^0.8.0; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { _spendAllowance(account, _msgSender(), amount); _burn(account, amount); } } // File @openzeppelin/contracts/access/Ownable.sol@v4.5.0 // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ 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 Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _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); } } // File contracts/tokens/XToken.sol pragma solidity 0.8.4; abstract contract XToken is Ownable, ERC20Burnable { // CONTRACTS mapping(address => bool) public allowedMinters; /* ========== MODIFIERS ========== */ modifier onlyMinter() { require(allowedMinters[msg.sender], "XToken::Only minter can mint"); _; } /* ========== CONSTRUCTOR ========= */ constructor(string memory _name, string memory _symbol) ERC20(_name, _symbol) {} /* ========== MUTATIVE ========== */ /// @notice Set minter for XToken (only once) /// @param _minter Address of minting Pool function setMinter(address _minter) external onlyOwner { require(allowedMinters[_minter] == false, "XToken::setMinter: ALREADY_ALLOWED"); allowedMinters[_minter] = true; } function removeMinter(address _minter) external onlyOwner { require(allowedMinters[_minter] == true, "XToken::setMinter: NOT_ALLOWED"); allowedMinters[_minter] = false; } /// @notice Mint new XToken /// @param _address Address of receiver /// @param _amount Amount of new XToken function mint(address _address, uint256 _amount) external onlyMinter { _mint(_address, _amount); } } // File contracts/tokens/kava/KAVAX.sol pragma solidity 0.8.4; contract KAVAX is XToken { uint256 public constant GENESIS_SUPPLY = 100 ether; // 100 will be minted at genesis for liq pool seeding address public operator; bool public openTrading = false; mapping(address => bool) public whitelistAddresses; constructor(string memory _name, string memory _symbol) XToken(_name, _symbol) { _mint(msg.sender, GENESIS_SUPPLY); operator = msg.sender; } function OpenTrade() external { require(msg.sender == operator, "No operator."); require(!openTrading, "Trade already opened."); openTrading = true; } function includeToWhitelist(address _address) public returns (bool) { require(msg.sender == operator, "No operator."); require(!whitelistAddresses[_address], "address can't be included"); whitelistAddresses[_address] = true; return true; } function excludeFromWhitlist(address _address) public returns (bool) { require(msg.sender == operator, "No operator."); require(whitelistAddresses[_address], "address can't be excluded"); whitelistAddresses[_address] = false; return true; } function _transfer(address sender, address recipient, uint256 amount) internal virtual override { require(openTrading || whitelistAddresses[sender], "Trade not opened"); super._transfer(sender, recipient, amount); } }
Contract ABI
[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"string","name":"_name","internalType":"string"},{"type":"string","name":"_symbol","internalType":"string"}]},{"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":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"GENESIS_SUPPLY","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"OpenTrade","inputs":[]},{"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":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"allowedMinters","inputs":[{"type":"address","name":"","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":"nonpayable","outputs":[],"name":"burnFrom","inputs":[{"type":"address","name":"account","internalType":"address"},{"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":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"excludeFromWhitlist","inputs":[{"type":"address","name":"_address","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"includeToWhitelist","inputs":[{"type":"address","name":"_address","internalType":"address"}]},{"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":"address","name":"_address","internalType":"address"},{"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":"bool","name":"","internalType":"bool"}],"name":"openTrading","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"operator","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"removeMinter","inputs":[{"type":"address","name":"_minter","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setMinter","inputs":[{"type":"address","name":"_minter","internalType":"address"}]},{"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":"to","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"whitelistAddresses","inputs":[{"type":"address","name":"","internalType":"address"}]}]
Contract Creation Code
0x60806040526007805460ff60a01b191690553480156200001e57600080fd5b50604051620017c0380380620017c0833981016040819052620000419162000346565b818181816200005033620000b5565b815162000065906004906020850190620001ed565b5080516200007b906005906020840190620001ed565b50505050506200009b3368056bc75e2d631000006200010560201b60201c565b5050600780546001600160a01b0319163317905562000425565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038216620001605760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b8060036000828254620001749190620003ad565b90915550506001600160a01b03821660009081526001602052604081208054839290620001a3908490620003ad565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b828054620001fb90620003d2565b90600052602060002090601f0160209004810192826200021f57600085556200026a565b82601f106200023a57805160ff19168380011785556200026a565b828001600101855582156200026a579182015b828111156200026a5782518255916020019190600101906200024d565b50620002789291506200027c565b5090565b5b808211156200027857600081556001016200027d565b600082601f830112620002a4578081fd5b81516001600160401b0380821115620002c157620002c16200040f565b604051601f8301601f19908116603f01168101908282118183101715620002ec57620002ec6200040f565b8160405283815260209250868385880101111562000308578485fd5b8491505b838210156200032b57858201830151818301840152908201906200030c565b838211156200033c57848385830101525b9695505050505050565b6000806040838503121562000359578182fd5b82516001600160401b038082111562000370578384fd5b6200037e8683870162000293565b9350602085015191508082111562000394578283fd5b50620003a38582860162000293565b9150509250929050565b60008219821115620003cd57634e487b7160e01b81526011600452602481fd5b500190565b600181811c90821680620003e757607f821691505b602082108114156200040957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b61138b80620004356000396000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c806370a08231116100f9578063a457c2d711610097578063d3de2e6511610071578063d3de2e65146103a4578063dd62ed3e146103b7578063f2fde38b146103f0578063fca3b5aa1461040357600080fd5b8063a457c2d71461036a578063a9059cbb1461037d578063c9567bf91461039057600080fd5b80637d82f344116100d35780637d82f3441461032e5780638da5cb5b1461034157806395d89b411461035257806399ec67651461035a57600080fd5b806370a08231146102ea578063715018a61461031357806379cc67901461031b57600080fd5b8063313ce56711610166578063423afa6611610140578063423afa661461026657806342966c6814610289578063570ca7351461029c57806369ddd67d146102c757600080fd5b8063313ce56714610231578063395093511461024057806340c10f191461025357600080fd5b806306fdde03146101ae578063095ea7b3146101cc5780630f8540e4146101ef57806318160ddd146101f957806323b872dd1461020b5780633092afd51461021e575b600080fd5b6101b6610416565b6040516101c39190611227565b60405180910390f35b6101df6101da3660046111e6565b6104a8565b60405190151581526020016101c3565b6101f76104c0565b005b6003545b6040519081526020016101c3565b6101df6102193660046111ab565b61055a565b6101f761022c366004611158565b61057e565b604051601281526020016101c3565b6101df61024e3660046111e6565b610636565b6101f76102613660046111e6565b610675565b6101df610274366004611158565b60066020526000908152604090205460ff1681565b6101f761029736600461120f565b6106e2565b6007546102af906001600160a01b031681565b6040516001600160a01b0390911681526020016101c3565b6101df6102d5366004611158565b60086020526000908152604090205460ff1681565b6101fd6102f8366004611158565b6001600160a01b031660009081526001602052604090205490565b6101f76106ef565b6101f76103293660046111e6565b610725565b6101df61033c366004611158565b61073a565b6000546001600160a01b03166102af565b6101b66107f4565b6101fd68056bc75e2d6310000081565b6101df6103783660046111e6565b610803565b6101df61038b3660046111e6565b610895565b6007546101df90600160a01b900460ff1681565b6101df6103b2366004611158565b6108a3565b6101fd6103c5366004611179565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b6101f76103fe366004611158565b610962565b6101f7610411366004611158565b6109fa565b60606004805461042590611304565b80601f016020809104026020016040519081016040528092919081815260200182805461045190611304565b801561049e5780601f106104735761010080835404028352916020019161049e565b820191906000526020600020905b81548152906001019060200180831161048157829003601f168201915b5050505050905090565b6000336104b6818585610abc565b5060019392505050565b6007546001600160a01b031633146104f35760405162461bcd60e51b81526004016104ea906112af565b60405180910390fd5b600754600160a01b900460ff16156105455760405162461bcd60e51b81526020600482015260156024820152742a3930b2329030b63932b0b23c9037b832b732b21760591b60448201526064016104ea565b6007805460ff60a01b1916600160a01b179055565b600033610568858285610be0565b610573858585610c72565b506001949350505050565b6000546001600160a01b031633146105a85760405162461bcd60e51b81526004016104ea9061127a565b6001600160a01b03811660009081526006602052604090205460ff1615156001146106155760405162461bcd60e51b815260206004820152601e60248201527f58546f6b656e3a3a7365744d696e7465723a204e4f545f414c4c4f574544000060448201526064016104ea565b6001600160a01b03166000908152600660205260409020805460ff19169055565b3360008181526002602090815260408083206001600160a01b03871684529091528120549091906104b690829086906106709087906112d5565b610abc565b3360009081526006602052604090205460ff166106d45760405162461bcd60e51b815260206004820152601c60248201527f58546f6b656e3a3a4f6e6c79206d696e7465722063616e206d696e740000000060448201526064016104ea565b6106de8282610cf1565b5050565b6106ec3382610dd0565b50565b6000546001600160a01b031633146107195760405162461bcd60e51b81526004016104ea9061127a565b6107236000610f1e565b565b610730823383610be0565b6106de8282610dd0565b6007546000906001600160a01b031633146107675760405162461bcd60e51b81526004016104ea906112af565b6001600160a01b03821660009081526008602052604090205460ff166107cf5760405162461bcd60e51b815260206004820152601960248201527f616464726573732063616e2774206265206578636c756465640000000000000060448201526064016104ea565b506001600160a01b03166000908152600860205260409020805460ff19169055600190565b60606005805461042590611304565b3360008181526002602090815260408083206001600160a01b0387168452909152812054909190838110156108885760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016104ea565b6105738286868403610abc565b6000336104b6818585610c72565b6007546000906001600160a01b031633146108d05760405162461bcd60e51b81526004016104ea906112af565b6001600160a01b03821660009081526008602052604090205460ff16156109395760405162461bcd60e51b815260206004820152601960248201527f616464726573732063616e277420626520696e636c756465640000000000000060448201526064016104ea565b506001600160a01b03166000908152600860205260409020805460ff1916600190811790915590565b6000546001600160a01b0316331461098c5760405162461bcd60e51b81526004016104ea9061127a565b6001600160a01b0381166109f15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104ea565b6106ec81610f1e565b6000546001600160a01b03163314610a245760405162461bcd60e51b81526004016104ea9061127a565b6001600160a01b03811660009081526006602052604090205460ff1615610a985760405162461bcd60e51b815260206004820152602260248201527f58546f6b656e3a3a7365744d696e7465723a20414c52454144595f414c4c4f57604482015261115160f21b60648201526084016104ea565b6001600160a01b03166000908152600660205260409020805460ff19166001179055565b6001600160a01b038316610b1e5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016104ea565b6001600160a01b038216610b7f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016104ea565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038381166000908152600260209081526040808320938616835292905220546000198114610c6c5781811015610c5f5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016104ea565b610c6c8484848403610abc565b50505050565b600754600160a01b900460ff1680610ca257506001600160a01b03831660009081526008602052604090205460ff165b610ce15760405162461bcd60e51b815260206004820152601060248201526f151c985919481b9bdd081bdc195b995960821b60448201526064016104ea565b610cec838383610f6e565b505050565b6001600160a01b038216610d475760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016104ea565b8060036000828254610d5991906112d5565b90915550506001600160a01b03821660009081526001602052604081208054839290610d869084906112d5565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b038216610e305760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016104ea565b6001600160a01b03821660009081526001602052604090205481811015610ea45760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016104ea565b6001600160a01b0383166000908152600160205260408120838303905560038054849290610ed39084906112ed565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038316610fd25760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016104ea565b6001600160a01b0382166110345760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016104ea565b6001600160a01b038316600090815260016020526040902054818110156110ac5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016104ea565b6001600160a01b038085166000908152600160205260408082208585039055918516815290812080548492906110e39084906112d5565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161112f91815260200190565b60405180910390a3610c6c565b80356001600160a01b038116811461115357600080fd5b919050565b600060208284031215611169578081fd5b6111728261113c565b9392505050565b6000806040838503121561118b578081fd5b6111948361113c565b91506111a26020840161113c565b90509250929050565b6000806000606084860312156111bf578081fd5b6111c88461113c565b92506111d66020850161113c565b9150604084013590509250925092565b600080604083850312156111f8578182fd5b6112018361113c565b946020939093013593505050565b600060208284031215611220578081fd5b5035919050565b6000602080835283518082850152825b8181101561125357858101830151858201604001528201611237565b818111156112645783604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600c908201526b27379037b832b930ba37b91760a11b604082015260600190565b600082198211156112e8576112e861133f565b500190565b6000828210156112ff576112ff61133f565b500390565b600181811c9082168061131857607f821691505b6020821081141561133957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220a7eb5ea40e06b23aa9a809d102915907ec76e46bb63a0dd2e74104451084911764736f6c634300080400330000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000054b4156415800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054b41564158000000000000000000000000000000000000000000000000000000
Deployed ByteCode
0x608060405234801561001057600080fd5b50600436106101a95760003560e01c806370a08231116100f9578063a457c2d711610097578063d3de2e6511610071578063d3de2e65146103a4578063dd62ed3e146103b7578063f2fde38b146103f0578063fca3b5aa1461040357600080fd5b8063a457c2d71461036a578063a9059cbb1461037d578063c9567bf91461039057600080fd5b80637d82f344116100d35780637d82f3441461032e5780638da5cb5b1461034157806395d89b411461035257806399ec67651461035a57600080fd5b806370a08231146102ea578063715018a61461031357806379cc67901461031b57600080fd5b8063313ce56711610166578063423afa6611610140578063423afa661461026657806342966c6814610289578063570ca7351461029c57806369ddd67d146102c757600080fd5b8063313ce56714610231578063395093511461024057806340c10f191461025357600080fd5b806306fdde03146101ae578063095ea7b3146101cc5780630f8540e4146101ef57806318160ddd146101f957806323b872dd1461020b5780633092afd51461021e575b600080fd5b6101b6610416565b6040516101c39190611227565b60405180910390f35b6101df6101da3660046111e6565b6104a8565b60405190151581526020016101c3565b6101f76104c0565b005b6003545b6040519081526020016101c3565b6101df6102193660046111ab565b61055a565b6101f761022c366004611158565b61057e565b604051601281526020016101c3565b6101df61024e3660046111e6565b610636565b6101f76102613660046111e6565b610675565b6101df610274366004611158565b60066020526000908152604090205460ff1681565b6101f761029736600461120f565b6106e2565b6007546102af906001600160a01b031681565b6040516001600160a01b0390911681526020016101c3565b6101df6102d5366004611158565b60086020526000908152604090205460ff1681565b6101fd6102f8366004611158565b6001600160a01b031660009081526001602052604090205490565b6101f76106ef565b6101f76103293660046111e6565b610725565b6101df61033c366004611158565b61073a565b6000546001600160a01b03166102af565b6101b66107f4565b6101fd68056bc75e2d6310000081565b6101df6103783660046111e6565b610803565b6101df61038b3660046111e6565b610895565b6007546101df90600160a01b900460ff1681565b6101df6103b2366004611158565b6108a3565b6101fd6103c5366004611179565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b6101f76103fe366004611158565b610962565b6101f7610411366004611158565b6109fa565b60606004805461042590611304565b80601f016020809104026020016040519081016040528092919081815260200182805461045190611304565b801561049e5780601f106104735761010080835404028352916020019161049e565b820191906000526020600020905b81548152906001019060200180831161048157829003601f168201915b5050505050905090565b6000336104b6818585610abc565b5060019392505050565b6007546001600160a01b031633146104f35760405162461bcd60e51b81526004016104ea906112af565b60405180910390fd5b600754600160a01b900460ff16156105455760405162461bcd60e51b81526020600482015260156024820152742a3930b2329030b63932b0b23c9037b832b732b21760591b60448201526064016104ea565b6007805460ff60a01b1916600160a01b179055565b600033610568858285610be0565b610573858585610c72565b506001949350505050565b6000546001600160a01b031633146105a85760405162461bcd60e51b81526004016104ea9061127a565b6001600160a01b03811660009081526006602052604090205460ff1615156001146106155760405162461bcd60e51b815260206004820152601e60248201527f58546f6b656e3a3a7365744d696e7465723a204e4f545f414c4c4f574544000060448201526064016104ea565b6001600160a01b03166000908152600660205260409020805460ff19169055565b3360008181526002602090815260408083206001600160a01b03871684529091528120549091906104b690829086906106709087906112d5565b610abc565b3360009081526006602052604090205460ff166106d45760405162461bcd60e51b815260206004820152601c60248201527f58546f6b656e3a3a4f6e6c79206d696e7465722063616e206d696e740000000060448201526064016104ea565b6106de8282610cf1565b5050565b6106ec3382610dd0565b50565b6000546001600160a01b031633146107195760405162461bcd60e51b81526004016104ea9061127a565b6107236000610f1e565b565b610730823383610be0565b6106de8282610dd0565b6007546000906001600160a01b031633146107675760405162461bcd60e51b81526004016104ea906112af565b6001600160a01b03821660009081526008602052604090205460ff166107cf5760405162461bcd60e51b815260206004820152601960248201527f616464726573732063616e2774206265206578636c756465640000000000000060448201526064016104ea565b506001600160a01b03166000908152600860205260409020805460ff19169055600190565b60606005805461042590611304565b3360008181526002602090815260408083206001600160a01b0387168452909152812054909190838110156108885760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016104ea565b6105738286868403610abc565b6000336104b6818585610c72565b6007546000906001600160a01b031633146108d05760405162461bcd60e51b81526004016104ea906112af565b6001600160a01b03821660009081526008602052604090205460ff16156109395760405162461bcd60e51b815260206004820152601960248201527f616464726573732063616e277420626520696e636c756465640000000000000060448201526064016104ea565b506001600160a01b03166000908152600860205260409020805460ff1916600190811790915590565b6000546001600160a01b0316331461098c5760405162461bcd60e51b81526004016104ea9061127a565b6001600160a01b0381166109f15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104ea565b6106ec81610f1e565b6000546001600160a01b03163314610a245760405162461bcd60e51b81526004016104ea9061127a565b6001600160a01b03811660009081526006602052604090205460ff1615610a985760405162461bcd60e51b815260206004820152602260248201527f58546f6b656e3a3a7365744d696e7465723a20414c52454144595f414c4c4f57604482015261115160f21b60648201526084016104ea565b6001600160a01b03166000908152600660205260409020805460ff19166001179055565b6001600160a01b038316610b1e5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016104ea565b6001600160a01b038216610b7f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016104ea565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038381166000908152600260209081526040808320938616835292905220546000198114610c6c5781811015610c5f5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016104ea565b610c6c8484848403610abc565b50505050565b600754600160a01b900460ff1680610ca257506001600160a01b03831660009081526008602052604090205460ff165b610ce15760405162461bcd60e51b815260206004820152601060248201526f151c985919481b9bdd081bdc195b995960821b60448201526064016104ea565b610cec838383610f6e565b505050565b6001600160a01b038216610d475760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016104ea565b8060036000828254610d5991906112d5565b90915550506001600160a01b03821660009081526001602052604081208054839290610d869084906112d5565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b038216610e305760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016104ea565b6001600160a01b03821660009081526001602052604090205481811015610ea45760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016104ea565b6001600160a01b0383166000908152600160205260408120838303905560038054849290610ed39084906112ed565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038316610fd25760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016104ea565b6001600160a01b0382166110345760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016104ea565b6001600160a01b038316600090815260016020526040902054818110156110ac5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016104ea565b6001600160a01b038085166000908152600160205260408082208585039055918516815290812080548492906110e39084906112d5565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161112f91815260200190565b60405180910390a3610c6c565b80356001600160a01b038116811461115357600080fd5b919050565b600060208284031215611169578081fd5b6111728261113c565b9392505050565b6000806040838503121561118b578081fd5b6111948361113c565b91506111a26020840161113c565b90509250929050565b6000806000606084860312156111bf578081fd5b6111c88461113c565b92506111d66020850161113c565b9150604084013590509250925092565b600080604083850312156111f8578182fd5b6112018361113c565b946020939093013593505050565b600060208284031215611220578081fd5b5035919050565b6000602080835283518082850152825b8181101561125357858101830151858201604001528201611237565b818111156112645783604083870101525b50601f01601f1916929092016040019392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252600c908201526b27379037b832b930ba37b91760a11b604082015260600190565b600082198211156112e8576112e861133f565b500190565b6000828210156112ff576112ff61133f565b500390565b600181811c9082168061131857607f821691505b6020821081141561133957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220a7eb5ea40e06b23aa9a809d102915907ec76e46bb63a0dd2e74104451084911764736f6c63430008040033