Source Code
Overview
ETH Balance
0 ETH
ETH Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 11 from a total of 11 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Set_chick | 92824002 | 988 days ago | IN | 0 ETH | 0.00004605 | ||||
| Set_controller | 92814159 | 988 days ago | IN | 0 ETH | 0.00005961 | ||||
| Set_controller | 92814131 | 988 days ago | IN | 0 ETH | 0.00005961 | ||||
| Set_controller | 92658740 | 988 days ago | IN | 0 ETH | 0.00008435 | ||||
| Set_controller | 91812775 | 991 days ago | IN | 0 ETH | 0.00008758 | ||||
| Set_controller | 91804939 | 991 days ago | IN | 0 ETH | 0.0000806 | ||||
| Set_controller | 91804919 | 991 days ago | IN | 0 ETH | 0.0000806 | ||||
| Set_controller | 91804896 | 991 days ago | IN | 0 ETH | 0.0000819 | ||||
| Set_chick | 91804878 | 991 days ago | IN | 0 ETH | 0.0000648 | ||||
| Set_pair_address | 91804858 | 991 days ago | IN | 0 ETH | 0.00007308 | ||||
| Approve | 91796463 | 991 days ago | IN | 0 ETH | 0.0000761 |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
TokenTarget
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 500 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED
pragma solidity >= 0.8.17;
//---------------------------------------------------------
// Imports
//---------------------------------------------------------
import "./TokenXBaseV3.sol";
//---------------------------------------------------------
// Contract
//---------------------------------------------------------
contract TokenTarget is TokenXBaseV3
{
constructor(address _address_vault, uint256 _initial_mint_amount, uint256 _supply_limit) TokenXBaseV3("TARGET on xTEN", "TGET")
{
tax_rate_send_e6 = 100000; // 10%
tax_rate_send_with_nft_e6 = 50000; // 5%
tax_rate_recv_e6 = 50000; // 5%
tax_rate_recv_with_nft_e6 = 50000; // 5%
_mint(_address_vault, _initial_mint_amount);
set_tax_free(_address_vault, true);
set_total_supply_limit(_supply_limit);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions 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);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol)
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165.sol";
/**
* @dev Required interface of an ERC1155 compliant contract, as defined in the
* https://eips.ethereum.org/EIPS/eip-1155[EIP].
*
* _Available since v3.1._
*/
interface IERC1155 is IERC165 {
/**
* @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
*/
event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);
/**
* @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
* transfers.
*/
event TransferBatch(
address indexed operator,
address indexed from,
address indexed to,
uint256[] ids,
uint256[] values
);
/**
* @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
* `approved`.
*/
event ApprovalForAll(address indexed account, address indexed operator, bool approved);
/**
* @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
*
* If an {URI} event was emitted for `id`, the standard
* https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
* returned by {IERC1155MetadataURI-uri}.
*/
event URI(string value, uint256 indexed id);
/**
* @dev Returns the amount of tokens of token type `id` owned by `account`.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/
function balanceOf(address account, uint256 id) external view returns (uint256);
/**
* @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
*
* Requirements:
*
* - `accounts` and `ids` must have the same length.
*/
function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
external
view
returns (uint256[] memory);
/**
* @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
*
* Emits an {ApprovalForAll} event.
*
* Requirements:
*
* - `operator` cannot be the caller.
*/
function setApprovalForAll(address operator, bool approved) external;
/**
* @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
*
* See {setApprovalForAll}.
*/
function isApprovedForAll(address account, address operator) external view returns (bool);
/**
* @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
*
* Emits a {TransferSingle} event.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}.
* - `from` must have a balance of tokens of type `id` of at least `amount`.
* - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
* acceptance magic value.
*/
function safeTransferFrom(
address from,
address to,
uint256 id,
uint256 amount,
bytes calldata data
) external;
/**
* @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
*
* Emits a {TransferBatch} event.
*
* Requirements:
*
* - `ids` and `amounts` must have the same length.
* - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
* acceptance magic value.
*/
function safeBatchTransferFrom(
address from,
address to,
uint256[] calldata ids,
uint256[] calldata amounts,
bytes calldata data
) external;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* 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, allowance(owner, spender) + addedValue);
return true;
}
/**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `spender` must have allowance for the caller of at least
* `subtractedValue`.
*/
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
address owner = _msgSender();
uint256 currentAllowance = allowance(owner, spender);
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(owner, spender, currentAllowance - subtractedValue);
}
return true;
}
/**
* @dev Moves `amount` of tokens from `from` to `to`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
*/
function _transfer(
address from,
address to,
uint256 amount
) internal virtual {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(from, to, amount);
uint256 fromBalance = _balances[from];
require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[from] = fromBalance - amount;
// Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
// decrementing then incrementing.
_balances[to] += amount;
}
emit Transfer(from, to, amount);
_afterTokenTransfer(from, to, amount);
}
/** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
unchecked {
// Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
_balances[account] += amount;
}
emit Transfer(address(0), account, amount);
_afterTokenTransfer(address(0), account, amount);
}
/**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
unchecked {
_balances[account] = accountBalance - amount;
// Overflow not possible: amount <= accountBalance <= totalSupply.
_totalSupply -= amount;
}
emit Transfer(account, address(0), amount);
_afterTokenTransfer(account, address(0), amount);
}
/**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*/
function _approve(
address owner,
address spender,
uint256 amount
) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
/**
* @dev Updates `owner` s allowance for `spender` based on spent `amount`.
*
* Does not update the allowance amount in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Might emit an {Approval} event.
*/
function _spendAllowance(
address owner,
address spender,
uint256 amount
) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
require(currentAllowance >= amount, "ERC20: insufficient allowance");
unchecked {
_approve(owner, spender, currentAllowance - amount);
}
}
}
/**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* has been transferred to `to`.
* - when `from` is zero, `amount` tokens have been minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens have been burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(
address from,
address to,
uint256 amount
) internal virtual {}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
* https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
*
* Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
* presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
* need to send a transaction, and thus is not required to hold Ether at all.
*/
interface IERC20Permit {
/**
* @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
* given ``owner``'s signed approval.
*
* IMPORTANT: The same issues {IERC20-approve} has related to transaction
* ordering also apply here.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `deadline` must be a timestamp in the future.
* - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
* over the EIP712-formatted function arguments.
* - the signature must use ``owner``'s current nonce (see {nonces}).
*
* For more information on the signature format, see the
* https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
* section].
*/
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
/**
* @dev Returns the current nonce for `owner`. This value must be
* included whenever a signature is generated for {permit}.
*
* Every successful call to {permit} increases ``owner``'s nonce by one. This
* prevents a signature from being used multiple times.
*/
function nonces(address owner) external view returns (uint256);
/**
* @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
*/
// solhint-disable-next-line func-name-mixedcase
function DOMAIN_SEPARATOR() external view returns (bytes32);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 amount
) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.sol";
import "../../../utils/Address.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
using Address for address;
function safeTransfer(
IERC20 token,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(
IERC20 token,
address from,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
/**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/
function safeApprove(
IERC20 token,
address spender,
uint256 value
) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
require(
(value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
function safeIncreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
uint256 newAllowance = token.allowance(address(this), spender) + value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
function safeDecreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
unchecked {
uint256 oldAllowance = token.allowance(address(this), spender);
require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
uint256 newAllowance = oldAllowance - value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
}
function safePermit(
IERC20Permit token,
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) internal {
uint256 nonceBefore = token.nonces(owner);
token.permit(owner, spender, value, deadline, v, r, s);
uint256 nonceAfter = token.nonces(owner);
require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
if (returndata.length > 0) {
// Return data is optional
require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://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");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
* the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
*
* _Available since v4.8._
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata,
string memory errorMessage
) internal view returns (bytes memory) {
if (success) {
if (returndata.length == 0) {
// only check isContract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
require(isContract(target), "Address: call to non-contract");
}
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
/**
* @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason or using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
function _revert(bytes memory returndata, string memory errorMessage) private pure {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}pragma solidity >=0.5.0;
interface IUniswapV2Factory {
event PairCreated(address indexed token0, address indexed token1, address pair, uint);
function feeTo() external view returns (address);
function feeToSetter() external view returns (address);
function getPair(address tokenA, address tokenB) external view returns (address pair);
function allPairs(uint) external view returns (address pair);
function allPairsLength() external view returns (uint);
function createPair(address tokenA, address tokenB) external returns (address pair);
function setFeeTo(address) external;
function setFeeToSetter(address) external;
}// SPDX-License-Identifier: UNLICENSED
pragma solidity >= 0.8.17;
//---------------------------------------------------------
// Interface
//---------------------------------------------------------
interface IChick
{
function make_juice(address _address_token) external;
function set_operator(address _new_operator) external;
function set_address_token(address _address_arrow, address _address_target) external;
function set_bnb_per_busd_vault_ratio(uint256 _bnd_ratio) external;
function set_swap_threshold(uint256 _threshold) external;
function handle_stuck(address _address_token, uint256 _amount, address _to) external;
}// SPDX-License-Identifier: UNLICENSED
pragma solidity >= 0.8.17;
//---------------------------------------------------------
// Interface
//---------------------------------------------------------
interface IXNFTBase
{
function mint(address _to, uint256 _grade) external;
function burn(uint256 _id, uint256 _amount) external;
function get_grade(uint256 _id) external pure returns(uint256);
function get_nft_id(uint256 _grade, uint256 _serial) external pure returns(uint256);
function uri(uint256 _id) external view returns(string memory);
function get_list(uint256 /*count*/) external view returns(uint256[] memory);
function get_my_id_list() external view returns(uint256[] memory);
function set_operator(address _new_address) external;
function set_controller(address _new_address, bool _is_set) external;
}// SPDX-License-Identifier: UNLICENSED
pragma solidity >= 0.8.17;
//---------------------------------------------------------
// Interface
//---------------------------------------------------------
interface IXNFTHolder
{
function deposit_nfts(uint256 _pool_id, uint256[] memory _xnft_ids) external returns(uint256);
function withdraw_nfts(uint256 _pool_id, uint256[] memory _xnft_ids) external returns(uint256);
function refresh_pool_boost_rate(uint256 _pool_id) external;
function emergency_withdraw_nft(uint256 _pool_id) external;
function handle_stuck_nft(address _address_user, address _address_nft, uint256 _nft_id, uint256 _amount) external;
function set_boost_rate_e6(uint256 grade, uint256 _tvl_boost_rate_e6) external;
function get_pool_tvl_boost_rate_e6(uint256 _pool_id) external view returns(uint256);
function get_user_tvl_boost_rate_e6(uint256 _pool_id, address _address_user) external view returns(uint256);
function get_deposit_nft_amount(uint256 _pool_id) external view returns(uint256);
function get_deposit_nft_list(uint256 _pool_id) external view returns(uint256[] memory);
function set_operator(address _new_operator) external;
function user_total_staked_amount(address _address_user) external view returns(uint256);
}// SPDX-License-Identifier: UNLICENSED
pragma solidity >= 0.8.17;
//---------------------------------------------------------
// Imports
//---------------------------------------------------------
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol";
import "./interfaces/IChick.sol";
import "./interfaces/IXNFTBase.sol";
import "./interfaces/IXNFTHolder.sol";
//---------------------------------------------------------
// Contract
//---------------------------------------------------------
contract TokenXBaseV3 is ERC20, Ownable
{
using SafeERC20 for IERC20;
uint256 public constant MAX_TAX_BUY = 50100; // 5%
uint256 public constant MAX_TAX_SELL = 200100; // 20%
uint256 public constant TAX_FREE = 888888; // 888888 means zero tax in this code
address public constant ADDRESS_BURN = 0x000000000000000000000000000000000000dEaD;
uint256 public total_supply_limit;
address public address_operator;
address[] public address_controllers;
mapping(address => bool) public is_controller;
address public address_xnft;
// Black List
mapping(address => bool) private is_send_blocked;
mapping(address => bool) private is_recv_blocked;
mapping(address => bool) private is_sell_blocked;
mapping(address => uint256) private send_limit_amount;
// Tax Controller
address private address_chick;
uint256 public tax_rate_send_e6; // send is sell
uint256 public tax_rate_send_with_nft_e6;
uint256 public tax_rate_recv_e6; // recv is buy
uint256 public tax_rate_recv_with_nft_e6;
mapping(address => bool) private is_tax_free;
mapping(address => bool) private is_intenal_address;
address public address_usd_pair;
address public address_gov_pair;
//---------------------------------------------------------------
// Front-end connectors
//---------------------------------------------------------------
event SetOperatorCB(address indexed operator, address _new_address_operator);
event SetControllerCB(address indexed operator, address _controller);
event SetChickCB(address indexed operator, address _chick);
event SetSendTaxCB(address indexed operator, uint256 _tax_rate, uint256 _tax_with_nft_rate);
event SetRecvTaxCB(address indexed operator, uint256 _tax_rate, uint256 _tax_with_nft_rate);
event SetTaxFreeCB(address indexed operator, address _address, bool _is_free);
event SetSellAmountLimitCB(address indexed operator, address _lp_address, uint256 _limit);
event ToggleBlockSendCB(address indexed operator, address[] _accounts, bool _is_blocked);
event ToggleBlockRecvCB(address indexed operator, address[] _accounts, bool _is_blocked);
//---------------------------------------------------------------
// Modifier
//---------------------------------------------------------------
modifier onlyOperator() { require(address_operator == msg.sender, "onlyOperator: caller is not the operator"); _; }
modifier onlyController() { require(is_controller[msg.sender] == true, "onlyController: caller is not the controller"); _; }
//---------------------------------------------------------------
// External Method
//---------------------------------------------------------------
constructor(string memory _name, string memory _symbol) ERC20(_name, _symbol)
{
address_operator = msg.sender;
is_tax_free[address_operator] = true;
is_tax_free[ADDRESS_BURN] = true;
// Can't use with CamelotFactory
// IUniswapV2Factory uniswap_factory = IUniswapV2Factory(ADDRESS_FACTORY);
// address ADDRESS_USD = 0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8;
// address ADDRESS_ETH = 0x82aF49447D8a07e3bd95BD0d56f35241523fBab1;
// address ADDRESS_FACTORY = 0x6EcCab422D763aC031210895C81787E87B43A652;
// address_gov_pair = uniswap_factory.createPair(address(this), ADDRESS_ETH);
// address_usd_pair = uniswap_factory.createPair(address(this), ADDRESS_USD);
}
function mint(address _to, uint256 _amount) external onlyController
{
require(total_supply_limit == 0 || totalSupply()+_amount < total_supply_limit, "mint: limit exceed");
_mint(_to, _amount);
}
function burn(uint256 _amount) external onlyOwner
{
_burn(msg.sender, _amount);
}
//---------------------------------------------------------------
// Internal Method
//---------------------------------------------------------------
function _transfer(address sender, address recipient, uint256 amount) internal virtual override
{
require(sender != address(0), "_transfer: Wrong sender address");
require(recipient != address(0), "_transfer: Wrong recipient address");
require(!is_send_blocked[sender], "_transfer: Sender is blocked by contract.");
require(!is_recv_blocked[recipient], "_transfer: Recipient is blocked by contract.");
require(_is_lp_address(recipient) == false || send_limit_amount[sender] == 0 || amount <= send_limit_amount[sender],
"_check_send_limit: limit exceed");
uint256 cur_tax_rate_e6 = _get_tax_rate_e6(sender, recipient); // sell, buy tax
if(cur_tax_rate_e6 == TAX_FREE || address_chick == address(0))
super._transfer(sender, recipient, amount);
else
{
uint256 tax_amount = (amount * cur_tax_rate_e6) / 1e6;
uint256 final_send_amount = amount - tax_amount;
super._transfer(sender, address_chick, tax_amount);
super._transfer(sender, recipient, final_send_amount);
if(tax_amount > 0)
IChick(address_chick).make_juice(address(this));
}
}
function _get_tax_rate_e6(address _from, address _to) internal view returns(uint256)
{
uint256 tax_rate_e6 = TAX_FREE;
// LP -> User // Buy
if(_is_lp_address(_from) && !is_tax_free[_to])
{
if(_has_xnft(_to) == true)
tax_rate_e6 = tax_rate_send_with_nft_e6;
else
tax_rate_e6 = tax_rate_send_e6;
} // User -> LP // Sell
else if(_is_lp_address(_to) && !is_tax_free[_from])
{
if(_has_xnft(_from) == true)
tax_rate_e6 = tax_rate_recv_with_nft_e6;
else
tax_rate_e6 = tax_rate_recv_e6;
}
return tax_rate_e6;
}
function _is_lp_address(address _address_contract) internal view returns(bool)
{
return (address_gov_pair != address(0) && address_gov_pair == _address_contract) ||
(address_usd_pair != address(0) && address_usd_pair == _address_contract);
}
function _has_xnft(address _owner) public view returns(bool)
{
if(address_xnft == address(0)) return false;
IXNFTBase xnft = IXNFTBase(address_xnft);
// !!! uint256[] id_list = xnft.get_my_id_list(); // XNFT v2
uint256[] memory id_list = xnft.get_list(1);
if(id_list.length > 0 && id_list[0] != 0)
return true;
for(uint256 i=0; i<address_controllers.length; i++)
{
if(is_controller[address_controllers[i]] == false)
continue;
IXNFTHolder holder = IXNFTHolder(address_controllers[i]);
if(address(holder) == address(0))
continue;
uint256 staked_amount = holder.user_total_staked_amount(_owner);
if(staked_amount > 0)
return true;
}
return false;
}
function _set_internal_address(address _address, bool _is_set) private
{
if(_address != address(0))
{
is_intenal_address[_address] = _is_set;
is_tax_free[_address] = _is_set;
}
}
//---------------------------------------------------------------
// Setters
//---------------------------------------------------------------
function set_operator(address _new_address) public onlyOperator
{
_set_internal_address(address_operator, false);
_set_internal_address(_new_address, true);
address_operator = _new_address;
emit SetOperatorCB(msg.sender, _new_address);
}
function set_controller(address _new_address, bool _is_set) public onlyOperator
{
require(_new_address != address(0), "set_controller: Wrong address");
_set_internal_address(_new_address, _is_set);
is_controller[_new_address] = _is_set;
if(_is_set == true)
address_controllers.push(_new_address);
emit SetControllerCB(msg.sender, _new_address);
}
function set_chick(address _new_chick) public onlyOperator
{
_set_internal_address(address_chick, false);
_set_internal_address(_new_chick, true);
address_chick = _new_chick;
emit SetChickCB(msg.sender, address_chick);
}
function set_total_supply_limit(uint256 _amount) public onlyOperator
{
total_supply_limit = _amount;
}
function set_tax_free(address _to, bool _is_free) public onlyOperator
{
require(_to != address(0), "set_send_tax_free: Wrong address");
is_tax_free[_to] = _is_free;
emit SetTaxFreeCB(msg.sender, _to, _is_free);
}
function set_sell_amount_limit(address _address_to_limit, uint256 _limit) public onlyOperator
{
require(_address_to_limit != address(0), "set_sell_amount_limit: Wrong address");
require(_limit > totalSupply() / 1000, "set_sell_amount_limit: Wrong limit"); // 0.1% of totalSupply
send_limit_amount[_address_to_limit] = _limit;
emit SetSellAmountLimitCB(msg.sender, _address_to_limit, _limit);
}
function toggle_block_send(address[] memory _accounts, bool _is_blocked) external onlyOperator
{
for(uint256 i=0; i < _accounts.length; i++)
is_send_blocked[_accounts[i]] = _is_blocked;
emit ToggleBlockSendCB(msg.sender, _accounts, _is_blocked);
}
function toggle_block_recv(address[] memory _accounts, bool _is_blocked) external onlyOperator
{
for(uint256 i=0; i < _accounts.length; i++)
is_recv_blocked[_accounts[i]] = _is_blocked;
emit ToggleBlockRecvCB(msg.sender, _accounts, _is_blocked);
}
function set_send_tax_e6(uint256 _tax_rate, uint256 _tax_with_nft_rate) public onlyOperator
{
require(_tax_rate < MAX_TAX_SELL, "set_send_tax_e6: tax rate manimum exceeded.");
require(_tax_with_nft_rate < MAX_TAX_SELL, "set_send_tax_e6: tax rate manimum exceeded.");
tax_rate_send_e6 = _tax_rate;
tax_rate_send_with_nft_e6 = _tax_with_nft_rate;
emit SetSendTaxCB(msg.sender, _tax_rate, _tax_with_nft_rate);
}
function set_recv_tax_e6(uint256 _tax_rate, uint256 _tax_with_nft_rate) public onlyOperator
{
require(_tax_rate < MAX_TAX_BUY, "set_recv_tax_e6: tax rate manimum exceeded.");
require(_tax_with_nft_rate < MAX_TAX_BUY, "set_recv_tax_e6: tax rate manimum exceeded.");
tax_rate_recv_e6 = _tax_rate;
tax_rate_recv_with_nft_e6 = _tax_with_nft_rate;
emit SetRecvTaxCB(msg.sender, _tax_rate, _tax_with_nft_rate);
}
function set_address_xnft(address _address_xnft) external onlyOperator
{
require(_address_xnft != address(0), "set_address_xnft: Wrong address");
address_xnft = _address_xnft;
}
function set_pair_address(address _usd_pair, address _eth_pair) external onlyOperator
{
address_usd_pair = _usd_pair;
address_gov_pair = _eth_pair;
}
}{
"optimizer": {
"enabled": true,
"runs": 500
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_address_vault","type":"address"},{"internalType":"uint256","name":"_initial_mint_amount","type":"uint256"},{"internalType":"uint256","name":"_supply_limit","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"address","name":"_chick","type":"address"}],"name":"SetChickCB","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"address","name":"_controller","type":"address"}],"name":"SetControllerCB","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"address","name":"_new_address_operator","type":"address"}],"name":"SetOperatorCB","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"uint256","name":"_tax_rate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_tax_with_nft_rate","type":"uint256"}],"name":"SetRecvTaxCB","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"address","name":"_lp_address","type":"address"},{"indexed":false,"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"SetSellAmountLimitCB","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"uint256","name":"_tax_rate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_tax_with_nft_rate","type":"uint256"}],"name":"SetSendTaxCB","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"address","name":"_address","type":"address"},{"indexed":false,"internalType":"bool","name":"_is_free","type":"bool"}],"name":"SetTaxFreeCB","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"address[]","name":"_accounts","type":"address[]"},{"indexed":false,"internalType":"bool","name":"_is_blocked","type":"bool"}],"name":"ToggleBlockRecvCB","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"address[]","name":"_accounts","type":"address[]"},{"indexed":false,"internalType":"bool","name":"_is_blocked","type":"bool"}],"name":"ToggleBlockSendCB","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"ADDRESS_BURN","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TAX_BUY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TAX_SELL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TAX_FREE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"_has_xnft","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"address_controllers","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"address_gov_pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"address_operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"address_usd_pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"address_xnft","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"is_controller","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address_xnft","type":"address"}],"name":"set_address_xnft","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_new_chick","type":"address"}],"name":"set_chick","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_new_address","type":"address"},{"internalType":"bool","name":"_is_set","type":"bool"}],"name":"set_controller","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_new_address","type":"address"}],"name":"set_operator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_usd_pair","type":"address"},{"internalType":"address","name":"_eth_pair","type":"address"}],"name":"set_pair_address","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tax_rate","type":"uint256"},{"internalType":"uint256","name":"_tax_with_nft_rate","type":"uint256"}],"name":"set_recv_tax_e6","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address_to_limit","type":"address"},{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"set_sell_amount_limit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tax_rate","type":"uint256"},{"internalType":"uint256","name":"_tax_with_nft_rate","type":"uint256"}],"name":"set_send_tax_e6","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"bool","name":"_is_free","type":"bool"}],"name":"set_tax_free","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"set_total_supply_limit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tax_rate_recv_e6","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tax_rate_recv_with_nft_e6","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tax_rate_send_e6","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tax_rate_send_with_nft_e6","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_accounts","type":"address[]"},{"internalType":"bool","name":"_is_blocked","type":"bool"}],"name":"toggle_block_recv","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_accounts","type":"address[]"},{"internalType":"bool","name":"_is_blocked","type":"bool"}],"name":"toggle_block_send","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"total_supply_limit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60806040523480156200001157600080fd5b5060405162002b0b38038062002b0b8339810160408190526200003491620003fb565b6040518060400160405280600e81526020016d2a20a923a2aa1037b7103c2a22a760911b815250604051806040016040528060048152602001631511d15560e21b815250818181600390816200008b9190620004e4565b5060046200009a8282620004e4565b505050620000b7620000b16200015f60201b60201c565b62000163565b5050600780546001600160a01b031916339081179091556000908152601460205260408120805460ff19908116600190811790925561dead9092527f8b9e18c5e04efe171d1e4f682ad90d753958a5ffe56db5290b0236c8e0b6db008054909216179055620186a060105561c350601181905560128190556013556200013e8383620001b5565b6200014b8360016200027c565b620001568162000395565b505050620005d8565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620002115760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064015b60405180910390fd5b8060026000828254620002259190620005b0565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6007546001600160a01b03163314620002d85760405162461bcd60e51b8152602060048201526028602482015260008051602062002aeb83398151915260448201526737b832b930ba37b960c11b606482015260840162000208565b6001600160a01b038216620003305760405162461bcd60e51b815260206004820181905260248201527f7365745f73656e645f7461785f667265653a2057726f6e672061646472657373604482015260640162000208565b6001600160a01b038216600081815260146020908152604091829020805460ff191685151590811790915582519384529083015233917f7f9a6cc749e7e24a671ee2fd159729d448ff584ab1ad898fb966f94709b63a8f910160405180910390a25050565b6007546001600160a01b03163314620003f15760405162461bcd60e51b8152602060048201526028602482015260008051602062002aeb83398151915260448201526737b832b930ba37b960c11b606482015260840162000208565b600655565b505050565b6000806000606084860312156200041157600080fd5b83516001600160a01b03811681146200042957600080fd5b602085015160409095015190969495509392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200046b57607f821691505b6020821081036200048c57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620003f657600081815260208120601f850160051c81016020861015620004bb5750805b601f850160051c820191505b81811015620004dc57828155600101620004c7565b505050505050565b81516001600160401b0381111562000500576200050062000440565b620005188162000511845462000456565b8462000492565b602080601f831160018114620005505760008415620005375750858301515b600019600386901b1c1916600185901b178555620004dc565b600085815260208120601f198616915b82811015620005815788860151825594840194600190910190840162000560565b5085821015620005a05787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b80820180821115620005d257634e487b7160e01b600052601160045260246000fd5b92915050565b61250380620005e86000396000f3fe608060405234801561001057600080fd5b50600436106102b45760003560e01c80637f8ba8ab11610171578063b672414e116100d3578063e12d703111610097578063f2fde38b11610071578063f2fde38b146105d0578063f4923963146105e3578063fee37de4146105f657600080fd5b8063e12d7031146105a0578063e4f1062f146105aa578063f227450c146105bd57600080fd5b8063b672414e14610525578063cdc2d22b1461052e578063d9029b1d14610541578063dd62ed3e14610554578063de95a9681461058d57600080fd5b80639a268a8211610135578063a457c2d71161010f578063a457c2d7146104ec578063a59d7ed2146104ff578063a9059cbb1461051257600080fd5b80639a268a82146104c65780639cd6123a146104d0578063a007fa72146104d957600080fd5b80637f8ba8ab1461047e5780638da5cb5b1461049157806390cb64d1146104a257806391388feb146104b557806395d89b41146104be57600080fd5b806342966c681161021a5780635b1d59c6116101de578063715018a6116101b8578063715018a614610464578063724bc5e91461046c578063749818491461047557600080fd5b80635b1d59c61461041557806361a411191461042857806370a082311461043b57600080fd5b806342966c68146103ba57806348af48a5146103cd57806348fc69dc146103d65780634f7f9f61146103f95780635021b2381461040257600080fd5b806320c45c6d1161027c578063313ce56711610256578063313ce56714610385578063395093511461039457806340c10f19146103a757600080fd5b806320c45c6d1461034c57806323b872dd1461035f57806330c7be721461037257600080fd5b806306fdde03146102b957806307a1d24e146102d7578063095ea7b31461030257806311f0dd271461032557806318160ddd1461033a575b600080fd5b6102c1610609565b6040516102ce9190611ffc565b60405180910390f35b6007546102ea906001600160a01b031681565b6040516001600160a01b0390911681526020016102ce565b610315610310366004612066565b61069b565b60405190151581526020016102ce565b6103386103333660046120a0565b6106b5565b005b6002545b6040519081526020016102ce565b6102ea61035a3660046120d3565b6107a4565b61031561036d3660046120ec565b6107ce565b610338610380366004612128565b6107f2565b604051601281526020016102ce565b6103156103a2366004612066565b610895565b6103386103b5366004612066565b6108d4565b6103386103c83660046120d3565b6109ca565b6102ea61dead81565b6103156103e4366004612128565b60096020526000908152604090205460ff1681565b61033e60135481565b610338610410366004612143565b6109df565b610338610423366004612165565b610b15565b600a546102ea906001600160a01b031681565b61033e610449366004612128565b6001600160a01b031660009081526020819052604090205490565b610338610b6d565b61033e60125481565b61033e60065481565b6016546102ea906001600160a01b031681565b6005546001600160a01b03166102ea565b6103386104b0366004612143565b610b81565b61033e60115481565b6102c1610cb9565b61033e620d903881565b61033e60105481565b6103386104e73660046120d3565b610cc8565b6103156104fa366004612066565b610cf7565b61033861050d366004612066565b610d89565b610315610520366004612066565b610ed7565b61033e61c3b481565b61033861053c3660046121fa565b610ee5565b6017546102ea906001600160a01b031681565b61033e610562366004612165565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61033861059b3660046121fa565b610fb2565b61033e62030da481565b6103386105b8366004612128565b61107f565b6103386105cb3660046120a0565b61111b565b6103386105de366004612128565b61125a565b6103156105f1366004612128565b6112d0565b610338610604366004612128565b6114c9565b606060038054610618906122a9565b80601f0160208091040260200160405190810160405280929190818152602001828054610644906122a9565b80156106915780601f1061066657610100808354040283529160200191610691565b820191906000526020600020905b81548152906001019060200180831161067457829003601f168201915b5050505050905090565b6000336106a981858561156b565b60019150505b92915050565b6007546001600160a01b031633146106e85760405162461bcd60e51b81526004016106df906122e3565b60405180910390fd5b6001600160a01b03821661073e5760405162461bcd60e51b815260206004820181905260248201527f7365745f73656e645f7461785f667265653a2057726f6e67206164647265737360448201526064016106df565b6001600160a01b038216600081815260146020908152604091829020805460ff191685151590811790915582519384529083015233917f7f9a6cc749e7e24a671ee2fd159729d448ff584ab1ad898fb966f94709b63a8f91015b60405180910390a25050565b600881815481106107b457600080fd5b6000918252602090912001546001600160a01b0316905081565b6000336107dc858285611690565b6107e7858585611722565b506001949350505050565b6007546001600160a01b0316331461081c5760405162461bcd60e51b81526004016106df906122e3565b600754610833906001600160a01b03166000611a63565b61083e816001611a63565b600780546001600160a01b0319166001600160a01b03831690811790915560405190815233907f66557758e9014b14aba877b77deee1109aa8c6abf446acff13d46b9522d0e4dc906020015b60405180910390a250565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091906106a990829086906108cf908790612341565b61156b565b3360009081526009602052604090205460ff16151560011461094d5760405162461bcd60e51b815260206004820152602c60248201527f6f6e6c79436f6e74726f6c6c65723a2063616c6c6572206973206e6f7420746860448201526b329031b7b73a3937b63632b960a11b60648201526084016106df565b600654158061097057506006548161096460025490565b61096e9190612341565b105b6109bc5760405162461bcd60e51b815260206004820152601260248201527f6d696e743a206c696d697420657863656564000000000000000000000000000060448201526064016106df565b6109c68282611ab2565b5050565b6109d2611b71565b6109dc3382611bcb565b50565b6007546001600160a01b03163314610a095760405162461bcd60e51b81526004016106df906122e3565b61c3b48210610a6e5760405162461bcd60e51b815260206004820152602b60248201527f7365745f726563765f7461785f65363a207461782072617465206d616e696d7560448201526a369032bc31b2b2b232b21760a91b60648201526084016106df565b61c3b48110610ad35760405162461bcd60e51b815260206004820152602b60248201527f7365745f726563765f7461785f65363a207461782072617465206d616e696d7560448201526a369032bc31b2b2b232b21760a91b60648201526084016106df565b60128290556013819055604080518381526020810183905233917f861297bd85c93655fc9bc060f5caf69e0c73ef28d0e4fce2d179ca1f143e480e9101610798565b6007546001600160a01b03163314610b3f5760405162461bcd60e51b81526004016106df906122e3565b601680546001600160a01b039384166001600160a01b03199182161790915560178054929093169116179055565b610b75611b71565b610b7f6000611cf5565b565b6007546001600160a01b03163314610bab5760405162461bcd60e51b81526004016106df906122e3565b62030da48210610c115760405162461bcd60e51b815260206004820152602b60248201527f7365745f73656e645f7461785f65363a207461782072617465206d616e696d7560448201526a369032bc31b2b2b232b21760a91b60648201526084016106df565b62030da48110610c775760405162461bcd60e51b815260206004820152602b60248201527f7365745f73656e645f7461785f65363a207461782072617465206d616e696d7560448201526a369032bc31b2b2b232b21760a91b60648201526084016106df565b60108290556011819055604080518381526020810183905233917fff1754bf74226a4cc0b7fbec5b980d3e70fb30dc3ebf5c0891bba1ead99b40ff9101610798565b606060048054610618906122a9565b6007546001600160a01b03163314610cf25760405162461bcd60e51b81526004016106df906122e3565b600655565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919083811015610d7c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016106df565b6107e7828686840361156b565b6007546001600160a01b03163314610db35760405162461bcd60e51b81526004016106df906122e3565b6001600160a01b038216610e155760405162461bcd60e51b8152602060048201526024808201527f7365745f73656c6c5f616d6f756e745f6c696d69743a2057726f6e67206164646044820152637265737360e01b60648201526084016106df565b6103e8610e2160025490565b610e2b9190612354565b8111610e845760405162461bcd60e51b815260206004820152602260248201527f7365745f73656c6c5f616d6f756e745f6c696d69743a2057726f6e67206c696d6044820152611a5d60f21b60648201526084016106df565b6001600160a01b0382166000818152600e60209081526040918290208490558151928352820183905233917f1c8ae095c24e8c453743664b38ba3ff4ed27cf9fbf917992bed5295123900bdb9101610798565b6000336106a9818585611722565b6007546001600160a01b03163314610f0f5760405162461bcd60e51b81526004016106df906122e3565b60005b8251811015610f765781600b6000858481518110610f3257610f32612376565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580610f6e8161238c565b915050610f12565b50336001600160a01b03167fa32bdbb003f36f64a3e2c7076cbd1d4e1f121684ef767803fa6d79c9f6e7634183836040516107989291906123a5565b6007546001600160a01b03163314610fdc5760405162461bcd60e51b81526004016106df906122e3565b60005b82518110156110435781600c6000858481518110610fff57610fff612376565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff19169115159190911790558061103b8161238c565b915050610fdf565b50336001600160a01b03167fac127d3af1d092ec9e5960162e6c68b75c9120f542f9e7e285b237046d5d562283836040516107989291906123a5565b6007546001600160a01b031633146110a95760405162461bcd60e51b81526004016106df906122e3565b600f546110c0906001600160a01b03166000611a63565b6110cb816001611a63565b600f80546001600160a01b0319166001600160a01b03831690811790915560405190815233907f60440f3383d937d443e7585984360ce77ddf642b339b426904b7581441a9e4479060200161088a565b6007546001600160a01b031633146111455760405162461bcd60e51b81526004016106df906122e3565b6001600160a01b03821661119b5760405162461bcd60e51b815260206004820152601d60248201527f7365745f636f6e74726f6c6c65723a2057726f6e67206164647265737300000060448201526064016106df565b6111a58282611a63565b6001600160a01b0382166000908152600960205260409020805460ff191682151590811790915560010361121f57600880546001810182556000919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30180546001600160a01b0319166001600160a01b0384161790555b6040516001600160a01b038316815233907f841ba43f885a751587585fdee5fb5561e5fba8055dd8d0d8cdd991cb5fc1913e90602001610798565b611262611b71565b6001600160a01b0381166112c75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106df565b6109dc81611cf5565b600a546000906001600160a01b03166112eb57506000919050565b600a546040516323d7d65160e11b8152600160048201526001600160a01b039091169060009082906347afaca290602401600060405180830381865afa158015611339573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261136191908101906123f9565b90506000815111801561138f57508060008151811061138257611382612376565b6020026020010151600014155b1561139e575060019392505050565b60005b6008548110156114be5760096000600883815481106113c2576113c2612376565b60009182526020808320909101546001600160a01b0316835282019290925260400190205460ff16156114ac5760006008828154811061140457611404612376565b6000918252602090912001546001600160a01b031690508061142657506114ac565b604051630f7453b760e11b81526001600160a01b03878116600483015260009190831690631ee8a76e90602401602060405180830381865afa158015611470573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611494919061248a565b905080156114a9575060019695505050505050565b50505b806114b68161238c565b9150506113a1565b506000949350505050565b6007546001600160a01b031633146114f35760405162461bcd60e51b81526004016106df906122e3565b6001600160a01b0381166115495760405162461bcd60e51b815260206004820152601f60248201527f7365745f616464726573735f786e66743a2057726f6e6720616464726573730060448201526064016106df565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0383166115cd5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016106df565b6001600160a01b03821661162e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016106df565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b03838116600090815260016020908152604080832093861683529290522054600019811461171c578181101561170f5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016106df565b61171c848484840361156b565b50505050565b6001600160a01b0383166117785760405162461bcd60e51b815260206004820152601f60248201527f5f7472616e736665723a2057726f6e672073656e64657220616464726573730060448201526064016106df565b6001600160a01b0382166117d95760405162461bcd60e51b815260206004820152602260248201527f5f7472616e736665723a2057726f6e6720726563697069656e74206164647265604482015261737360f01b60648201526084016106df565b6001600160a01b0383166000908152600b602052604090205460ff16156118545760405162461bcd60e51b815260206004820152602960248201527f5f7472616e736665723a2053656e64657220697320626c6f636b65642062792060448201526831b7b73a3930b1ba1760b91b60648201526084016106df565b6001600160a01b0382166000908152600c602052604090205460ff16156118d25760405162461bcd60e51b815260206004820152602c60248201527f5f7472616e736665723a20526563697069656e7420697320626c6f636b65642060448201526b313c9031b7b73a3930b1ba1760a11b60648201526084016106df565b6118db82611d47565b15806118fd57506001600160a01b0383166000908152600e6020526040902054155b8061192057506001600160a01b0383166000908152600e60205260409020548111155b61196c5760405162461bcd60e51b815260206004820152601f60248201527f5f636865636b5f73656e645f6c696d69743a206c696d6974206578636565640060448201526064016106df565b60006119788484611da1565b9050620d90388114806119945750600f546001600160a01b0316155b156119a9576119a4848484611e58565b61171c565b6000620f42406119b983856124a3565b6119c39190612354565b905060006119d182856124ba565b600f549091506119ec9087906001600160a01b031684611e58565b6119f7868683611e58565b8115611a5b57600f5460405163493e6e6f60e11b81523060048201526001600160a01b039091169063927cdcde90602401600060405180830381600087803b158015611a4257600080fd5b505af1158015611a56573d6000803e3d6000fd5b505050505b505050505050565b6001600160a01b038216156109c6576001600160a01b0382166000908152601560209081526040808320805485151560ff19918216811790925560149093529220805490911690911790555050565b6001600160a01b038216611b085760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016106df565b8060026000828254611b1a9190612341565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6005546001600160a01b03163314610b7f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106df565b6001600160a01b038216611c2b5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016106df565b6001600160a01b03821660009081526020819052604090205481811015611c9f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016106df565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101611683565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6017546000906001600160a01b031615801590611d7157506017546001600160a01b038381169116145b806106af57506016546001600160a01b0316158015906106af5750506016546001600160a01b0390811691161490565b6000620d9038611db084611d47565b8015611dd557506001600160a01b03831660009081526014602052604090205460ff16155b15611dfe57611de3836112d0565b1515600103611df55750601154611e51565b50601054611e51565b611e0783611d47565b8015611e2c57506001600160a01b03841660009081526014602052604090205460ff16155b15611e5157611e3a846112d0565b1515600103611e4c5750601354611e51565b506012545b9392505050565b6001600160a01b038316611ebc5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016106df565b6001600160a01b038216611f1e5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016106df565b6001600160a01b03831660009081526020819052604090205481811015611f965760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016106df565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a361171c565b600060208083528351808285015260005b818110156120295785810183015185820160400152820161200d565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461206157600080fd5b919050565b6000806040838503121561207957600080fd5b6120828361204a565b946020939093013593505050565b8035801515811461206157600080fd5b600080604083850312156120b357600080fd5b6120bc8361204a565b91506120ca60208401612090565b90509250929050565b6000602082840312156120e557600080fd5b5035919050565b60008060006060848603121561210157600080fd5b61210a8461204a565b92506121186020850161204a565b9150604084013590509250925092565b60006020828403121561213a57600080fd5b611e518261204a565b6000806040838503121561215657600080fd5b50508035926020909101359150565b6000806040838503121561217857600080fd5b6121818361204a565b91506120ca6020840161204a565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156121ce576121ce61218f565b604052919050565b600067ffffffffffffffff8211156121f0576121f061218f565b5060051b60200190565b6000806040838503121561220d57600080fd5b823567ffffffffffffffff81111561222457600080fd5b8301601f8101851361223557600080fd5b8035602061224a612245836121d6565b6121a5565b82815260059290921b8301810191818101908884111561226957600080fd5b938201935b8385101561228e5761227f8561204a565b8252938201939082019061226e565b955061229d9050868201612090565b93505050509250929050565b600181811c908216806122bd57607f821691505b6020821081036122dd57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526028908201527f6f6e6c794f70657261746f723a2063616c6c6572206973206e6f74207468652060408201526737b832b930ba37b960c11b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b808201808211156106af576106af61232b565b60008261237157634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b60006001820161239e5761239e61232b565b5060010190565b604080825283519082018190526000906020906060840190828701845b828110156123e75781516001600160a01b0316845292840192908401906001016123c2565b50505093151592019190915250919050565b6000602080838503121561240c57600080fd5b825167ffffffffffffffff81111561242357600080fd5b8301601f8101851361243457600080fd5b8051612442612245826121d6565b81815260059190911b8201830190838101908783111561246157600080fd5b928401925b8284101561247f57835182529284019290840190612466565b979650505050505050565b60006020828403121561249c57600080fd5b5051919050565b80820281158282048414176106af576106af61232b565b818103818111156106af576106af61232b56fea26469706673582212202984633902530eacc9da19436342e91ae669e766033ce0e6d4abee82a48546e564736f6c634300081100336f6e6c794f70657261746f723a2063616c6c6572206973206e6f74207468652000000000000000000000000056bbd349f1323a4ffaa29503ea3e913e822ec68700000000000000000000000000000000000000000000021e19e0c9bab240000000000000000000000000000000000000000000000000130ee8e7179044400000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102b45760003560e01c80637f8ba8ab11610171578063b672414e116100d3578063e12d703111610097578063f2fde38b11610071578063f2fde38b146105d0578063f4923963146105e3578063fee37de4146105f657600080fd5b8063e12d7031146105a0578063e4f1062f146105aa578063f227450c146105bd57600080fd5b8063b672414e14610525578063cdc2d22b1461052e578063d9029b1d14610541578063dd62ed3e14610554578063de95a9681461058d57600080fd5b80639a268a8211610135578063a457c2d71161010f578063a457c2d7146104ec578063a59d7ed2146104ff578063a9059cbb1461051257600080fd5b80639a268a82146104c65780639cd6123a146104d0578063a007fa72146104d957600080fd5b80637f8ba8ab1461047e5780638da5cb5b1461049157806390cb64d1146104a257806391388feb146104b557806395d89b41146104be57600080fd5b806342966c681161021a5780635b1d59c6116101de578063715018a6116101b8578063715018a614610464578063724bc5e91461046c578063749818491461047557600080fd5b80635b1d59c61461041557806361a411191461042857806370a082311461043b57600080fd5b806342966c68146103ba57806348af48a5146103cd57806348fc69dc146103d65780634f7f9f61146103f95780635021b2381461040257600080fd5b806320c45c6d1161027c578063313ce56711610256578063313ce56714610385578063395093511461039457806340c10f19146103a757600080fd5b806320c45c6d1461034c57806323b872dd1461035f57806330c7be721461037257600080fd5b806306fdde03146102b957806307a1d24e146102d7578063095ea7b31461030257806311f0dd271461032557806318160ddd1461033a575b600080fd5b6102c1610609565b6040516102ce9190611ffc565b60405180910390f35b6007546102ea906001600160a01b031681565b6040516001600160a01b0390911681526020016102ce565b610315610310366004612066565b61069b565b60405190151581526020016102ce565b6103386103333660046120a0565b6106b5565b005b6002545b6040519081526020016102ce565b6102ea61035a3660046120d3565b6107a4565b61031561036d3660046120ec565b6107ce565b610338610380366004612128565b6107f2565b604051601281526020016102ce565b6103156103a2366004612066565b610895565b6103386103b5366004612066565b6108d4565b6103386103c83660046120d3565b6109ca565b6102ea61dead81565b6103156103e4366004612128565b60096020526000908152604090205460ff1681565b61033e60135481565b610338610410366004612143565b6109df565b610338610423366004612165565b610b15565b600a546102ea906001600160a01b031681565b61033e610449366004612128565b6001600160a01b031660009081526020819052604090205490565b610338610b6d565b61033e60125481565b61033e60065481565b6016546102ea906001600160a01b031681565b6005546001600160a01b03166102ea565b6103386104b0366004612143565b610b81565b61033e60115481565b6102c1610cb9565b61033e620d903881565b61033e60105481565b6103386104e73660046120d3565b610cc8565b6103156104fa366004612066565b610cf7565b61033861050d366004612066565b610d89565b610315610520366004612066565b610ed7565b61033e61c3b481565b61033861053c3660046121fa565b610ee5565b6017546102ea906001600160a01b031681565b61033e610562366004612165565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61033861059b3660046121fa565b610fb2565b61033e62030da481565b6103386105b8366004612128565b61107f565b6103386105cb3660046120a0565b61111b565b6103386105de366004612128565b61125a565b6103156105f1366004612128565b6112d0565b610338610604366004612128565b6114c9565b606060038054610618906122a9565b80601f0160208091040260200160405190810160405280929190818152602001828054610644906122a9565b80156106915780601f1061066657610100808354040283529160200191610691565b820191906000526020600020905b81548152906001019060200180831161067457829003601f168201915b5050505050905090565b6000336106a981858561156b565b60019150505b92915050565b6007546001600160a01b031633146106e85760405162461bcd60e51b81526004016106df906122e3565b60405180910390fd5b6001600160a01b03821661073e5760405162461bcd60e51b815260206004820181905260248201527f7365745f73656e645f7461785f667265653a2057726f6e67206164647265737360448201526064016106df565b6001600160a01b038216600081815260146020908152604091829020805460ff191685151590811790915582519384529083015233917f7f9a6cc749e7e24a671ee2fd159729d448ff584ab1ad898fb966f94709b63a8f91015b60405180910390a25050565b600881815481106107b457600080fd5b6000918252602090912001546001600160a01b0316905081565b6000336107dc858285611690565b6107e7858585611722565b506001949350505050565b6007546001600160a01b0316331461081c5760405162461bcd60e51b81526004016106df906122e3565b600754610833906001600160a01b03166000611a63565b61083e816001611a63565b600780546001600160a01b0319166001600160a01b03831690811790915560405190815233907f66557758e9014b14aba877b77deee1109aa8c6abf446acff13d46b9522d0e4dc906020015b60405180910390a250565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091906106a990829086906108cf908790612341565b61156b565b3360009081526009602052604090205460ff16151560011461094d5760405162461bcd60e51b815260206004820152602c60248201527f6f6e6c79436f6e74726f6c6c65723a2063616c6c6572206973206e6f7420746860448201526b329031b7b73a3937b63632b960a11b60648201526084016106df565b600654158061097057506006548161096460025490565b61096e9190612341565b105b6109bc5760405162461bcd60e51b815260206004820152601260248201527f6d696e743a206c696d697420657863656564000000000000000000000000000060448201526064016106df565b6109c68282611ab2565b5050565b6109d2611b71565b6109dc3382611bcb565b50565b6007546001600160a01b03163314610a095760405162461bcd60e51b81526004016106df906122e3565b61c3b48210610a6e5760405162461bcd60e51b815260206004820152602b60248201527f7365745f726563765f7461785f65363a207461782072617465206d616e696d7560448201526a369032bc31b2b2b232b21760a91b60648201526084016106df565b61c3b48110610ad35760405162461bcd60e51b815260206004820152602b60248201527f7365745f726563765f7461785f65363a207461782072617465206d616e696d7560448201526a369032bc31b2b2b232b21760a91b60648201526084016106df565b60128290556013819055604080518381526020810183905233917f861297bd85c93655fc9bc060f5caf69e0c73ef28d0e4fce2d179ca1f143e480e9101610798565b6007546001600160a01b03163314610b3f5760405162461bcd60e51b81526004016106df906122e3565b601680546001600160a01b039384166001600160a01b03199182161790915560178054929093169116179055565b610b75611b71565b610b7f6000611cf5565b565b6007546001600160a01b03163314610bab5760405162461bcd60e51b81526004016106df906122e3565b62030da48210610c115760405162461bcd60e51b815260206004820152602b60248201527f7365745f73656e645f7461785f65363a207461782072617465206d616e696d7560448201526a369032bc31b2b2b232b21760a91b60648201526084016106df565b62030da48110610c775760405162461bcd60e51b815260206004820152602b60248201527f7365745f73656e645f7461785f65363a207461782072617465206d616e696d7560448201526a369032bc31b2b2b232b21760a91b60648201526084016106df565b60108290556011819055604080518381526020810183905233917fff1754bf74226a4cc0b7fbec5b980d3e70fb30dc3ebf5c0891bba1ead99b40ff9101610798565b606060048054610618906122a9565b6007546001600160a01b03163314610cf25760405162461bcd60e51b81526004016106df906122e3565b600655565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919083811015610d7c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016106df565b6107e7828686840361156b565b6007546001600160a01b03163314610db35760405162461bcd60e51b81526004016106df906122e3565b6001600160a01b038216610e155760405162461bcd60e51b8152602060048201526024808201527f7365745f73656c6c5f616d6f756e745f6c696d69743a2057726f6e67206164646044820152637265737360e01b60648201526084016106df565b6103e8610e2160025490565b610e2b9190612354565b8111610e845760405162461bcd60e51b815260206004820152602260248201527f7365745f73656c6c5f616d6f756e745f6c696d69743a2057726f6e67206c696d6044820152611a5d60f21b60648201526084016106df565b6001600160a01b0382166000818152600e60209081526040918290208490558151928352820183905233917f1c8ae095c24e8c453743664b38ba3ff4ed27cf9fbf917992bed5295123900bdb9101610798565b6000336106a9818585611722565b6007546001600160a01b03163314610f0f5760405162461bcd60e51b81526004016106df906122e3565b60005b8251811015610f765781600b6000858481518110610f3257610f32612376565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580610f6e8161238c565b915050610f12565b50336001600160a01b03167fa32bdbb003f36f64a3e2c7076cbd1d4e1f121684ef767803fa6d79c9f6e7634183836040516107989291906123a5565b6007546001600160a01b03163314610fdc5760405162461bcd60e51b81526004016106df906122e3565b60005b82518110156110435781600c6000858481518110610fff57610fff612376565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff19169115159190911790558061103b8161238c565b915050610fdf565b50336001600160a01b03167fac127d3af1d092ec9e5960162e6c68b75c9120f542f9e7e285b237046d5d562283836040516107989291906123a5565b6007546001600160a01b031633146110a95760405162461bcd60e51b81526004016106df906122e3565b600f546110c0906001600160a01b03166000611a63565b6110cb816001611a63565b600f80546001600160a01b0319166001600160a01b03831690811790915560405190815233907f60440f3383d937d443e7585984360ce77ddf642b339b426904b7581441a9e4479060200161088a565b6007546001600160a01b031633146111455760405162461bcd60e51b81526004016106df906122e3565b6001600160a01b03821661119b5760405162461bcd60e51b815260206004820152601d60248201527f7365745f636f6e74726f6c6c65723a2057726f6e67206164647265737300000060448201526064016106df565b6111a58282611a63565b6001600160a01b0382166000908152600960205260409020805460ff191682151590811790915560010361121f57600880546001810182556000919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30180546001600160a01b0319166001600160a01b0384161790555b6040516001600160a01b038316815233907f841ba43f885a751587585fdee5fb5561e5fba8055dd8d0d8cdd991cb5fc1913e90602001610798565b611262611b71565b6001600160a01b0381166112c75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106df565b6109dc81611cf5565b600a546000906001600160a01b03166112eb57506000919050565b600a546040516323d7d65160e11b8152600160048201526001600160a01b039091169060009082906347afaca290602401600060405180830381865afa158015611339573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261136191908101906123f9565b90506000815111801561138f57508060008151811061138257611382612376565b6020026020010151600014155b1561139e575060019392505050565b60005b6008548110156114be5760096000600883815481106113c2576113c2612376565b60009182526020808320909101546001600160a01b0316835282019290925260400190205460ff16156114ac5760006008828154811061140457611404612376565b6000918252602090912001546001600160a01b031690508061142657506114ac565b604051630f7453b760e11b81526001600160a01b03878116600483015260009190831690631ee8a76e90602401602060405180830381865afa158015611470573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611494919061248a565b905080156114a9575060019695505050505050565b50505b806114b68161238c565b9150506113a1565b506000949350505050565b6007546001600160a01b031633146114f35760405162461bcd60e51b81526004016106df906122e3565b6001600160a01b0381166115495760405162461bcd60e51b815260206004820152601f60248201527f7365745f616464726573735f786e66743a2057726f6e6720616464726573730060448201526064016106df565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0383166115cd5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016106df565b6001600160a01b03821661162e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016106df565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b03838116600090815260016020908152604080832093861683529290522054600019811461171c578181101561170f5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016106df565b61171c848484840361156b565b50505050565b6001600160a01b0383166117785760405162461bcd60e51b815260206004820152601f60248201527f5f7472616e736665723a2057726f6e672073656e64657220616464726573730060448201526064016106df565b6001600160a01b0382166117d95760405162461bcd60e51b815260206004820152602260248201527f5f7472616e736665723a2057726f6e6720726563697069656e74206164647265604482015261737360f01b60648201526084016106df565b6001600160a01b0383166000908152600b602052604090205460ff16156118545760405162461bcd60e51b815260206004820152602960248201527f5f7472616e736665723a2053656e64657220697320626c6f636b65642062792060448201526831b7b73a3930b1ba1760b91b60648201526084016106df565b6001600160a01b0382166000908152600c602052604090205460ff16156118d25760405162461bcd60e51b815260206004820152602c60248201527f5f7472616e736665723a20526563697069656e7420697320626c6f636b65642060448201526b313c9031b7b73a3930b1ba1760a11b60648201526084016106df565b6118db82611d47565b15806118fd57506001600160a01b0383166000908152600e6020526040902054155b8061192057506001600160a01b0383166000908152600e60205260409020548111155b61196c5760405162461bcd60e51b815260206004820152601f60248201527f5f636865636b5f73656e645f6c696d69743a206c696d6974206578636565640060448201526064016106df565b60006119788484611da1565b9050620d90388114806119945750600f546001600160a01b0316155b156119a9576119a4848484611e58565b61171c565b6000620f42406119b983856124a3565b6119c39190612354565b905060006119d182856124ba565b600f549091506119ec9087906001600160a01b031684611e58565b6119f7868683611e58565b8115611a5b57600f5460405163493e6e6f60e11b81523060048201526001600160a01b039091169063927cdcde90602401600060405180830381600087803b158015611a4257600080fd5b505af1158015611a56573d6000803e3d6000fd5b505050505b505050505050565b6001600160a01b038216156109c6576001600160a01b0382166000908152601560209081526040808320805485151560ff19918216811790925560149093529220805490911690911790555050565b6001600160a01b038216611b085760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016106df565b8060026000828254611b1a9190612341565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6005546001600160a01b03163314610b7f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106df565b6001600160a01b038216611c2b5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016106df565b6001600160a01b03821660009081526020819052604090205481811015611c9f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016106df565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101611683565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6017546000906001600160a01b031615801590611d7157506017546001600160a01b038381169116145b806106af57506016546001600160a01b0316158015906106af5750506016546001600160a01b0390811691161490565b6000620d9038611db084611d47565b8015611dd557506001600160a01b03831660009081526014602052604090205460ff16155b15611dfe57611de3836112d0565b1515600103611df55750601154611e51565b50601054611e51565b611e0783611d47565b8015611e2c57506001600160a01b03841660009081526014602052604090205460ff16155b15611e5157611e3a846112d0565b1515600103611e4c5750601354611e51565b506012545b9392505050565b6001600160a01b038316611ebc5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016106df565b6001600160a01b038216611f1e5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016106df565b6001600160a01b03831660009081526020819052604090205481811015611f965760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016106df565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a361171c565b600060208083528351808285015260005b818110156120295785810183015185820160400152820161200d565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461206157600080fd5b919050565b6000806040838503121561207957600080fd5b6120828361204a565b946020939093013593505050565b8035801515811461206157600080fd5b600080604083850312156120b357600080fd5b6120bc8361204a565b91506120ca60208401612090565b90509250929050565b6000602082840312156120e557600080fd5b5035919050565b60008060006060848603121561210157600080fd5b61210a8461204a565b92506121186020850161204a565b9150604084013590509250925092565b60006020828403121561213a57600080fd5b611e518261204a565b6000806040838503121561215657600080fd5b50508035926020909101359150565b6000806040838503121561217857600080fd5b6121818361204a565b91506120ca6020840161204a565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156121ce576121ce61218f565b604052919050565b600067ffffffffffffffff8211156121f0576121f061218f565b5060051b60200190565b6000806040838503121561220d57600080fd5b823567ffffffffffffffff81111561222457600080fd5b8301601f8101851361223557600080fd5b8035602061224a612245836121d6565b6121a5565b82815260059290921b8301810191818101908884111561226957600080fd5b938201935b8385101561228e5761227f8561204a565b8252938201939082019061226e565b955061229d9050868201612090565b93505050509250929050565b600181811c908216806122bd57607f821691505b6020821081036122dd57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526028908201527f6f6e6c794f70657261746f723a2063616c6c6572206973206e6f74207468652060408201526737b832b930ba37b960c11b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b808201808211156106af576106af61232b565b60008261237157634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b60006001820161239e5761239e61232b565b5060010190565b604080825283519082018190526000906020906060840190828701845b828110156123e75781516001600160a01b0316845292840192908401906001016123c2565b50505093151592019190915250919050565b6000602080838503121561240c57600080fd5b825167ffffffffffffffff81111561242357600080fd5b8301601f8101851361243457600080fd5b8051612442612245826121d6565b81815260059190911b8201830190838101908783111561246157600080fd5b928401925b8284101561247f57835182529284019290840190612466565b979650505050505050565b60006020828403121561249c57600080fd5b5051919050565b80820281158282048414176106af576106af61232b565b818103818111156106af576106af61232b56fea26469706673582212202984633902530eacc9da19436342e91ae669e766033ce0e6d4abee82a48546e564736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000056bbd349f1323a4ffaa29503ea3e913e822ec68700000000000000000000000000000000000000000000021e19e0c9bab240000000000000000000000000000000000000000000000000130ee8e7179044400000
-----Decoded View---------------
Arg [0] : _address_vault (address): 0x56BbD349F1323A4ffaa29503eA3E913E822EC687
Arg [1] : _initial_mint_amount (uint256): 10000000000000000000000
Arg [2] : _supply_limit (uint256): 90000000000000000000000
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000056bbd349f1323a4ffaa29503ea3e913e822ec687
Arg [1] : 00000000000000000000000000000000000000000000021e19e0c9bab2400000
Arg [2] : 00000000000000000000000000000000000000000000130ee8e7179044400000
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.