| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| 0x18c9f0bf21f1bf41e7aaef40fea5e218dbbe1ba28e1457923fb55042a5068671 | Approve | (pending) | 3 days ago | IN | 0 ETH | (Pending) | |||
| 0x102cbeb8e1f114fbbe1aac26f2917ccd9cb27169431c3d7b7b23296721817f40 | Approve | (pending) | 3 days ago | IN | 0 ETH | (Pending) | |||
| 0x71b486302c512b19c44b7e8f74cad6f061c25650a975f7e74e8a84e8de201d84 | Approve | (pending) | 3 days ago | IN | 0 ETH | (Pending) | |||
| Transfer | 23985979 | 1 hr ago | IN | 0 ETH | 0.00009507 | ||||
| Approve | 23985861 | 1 hr ago | IN | 0 ETH | 0.0000535 | ||||
| Transfer | 23983676 | 9 hrs ago | IN | 0 ETH | 0.00001268 | ||||
| Approve | 23983603 | 9 hrs ago | IN | 0 ETH | 0.00001127 | ||||
| Transfer | 23981572 | 16 hrs ago | IN | 0 ETH | 0.00005179 | ||||
| Approve | 23980529 | 19 hrs ago | IN | 0 ETH | 0.00001154 | ||||
| Approve | 23979229 | 24 hrs ago | IN | 0 ETH | 0.00009414 | ||||
| Approve | 23978910 | 25 hrs ago | IN | 0 ETH | 0.00010215 | ||||
| Transfer | 23972091 | 2 days ago | IN | 0 ETH | 0.00003336 | ||||
| Transfer | 23971511 | 2 days ago | IN | 0 ETH | 0.00008025 | ||||
| Transfer | 23971186 | 2 days ago | IN | 0 ETH | 0.00007856 | ||||
| Transfer | 23971176 | 2 days ago | IN | 0 ETH | 0.00012236 | ||||
| Transfer | 23970232 | 2 days ago | IN | 0 ETH | 0.00010489 | ||||
| Transfer | 23968451 | 2 days ago | IN | 0 ETH | 0.00011276 | ||||
| Transfer | 23968427 | 2 days ago | IN | 0 ETH | 0.00002022 | ||||
| Approve | 23967618 | 2 days ago | IN | 0 ETH | 0.00002058 | ||||
| Transfer | 23967598 | 2 days ago | IN | 0 ETH | 0.00009141 | ||||
| Transfer | 23967314 | 2 days ago | IN | 0 ETH | 0.00003319 | ||||
| Approve | 23966414 | 2 days ago | IN | 0 ETH | 0.00003559 | ||||
| Approve | 23966400 | 2 days ago | IN | 0 ETH | 0.00003351 | ||||
| Approve | 23962868 | 3 days ago | IN | 0 ETH | 0.00011199 | ||||
| Approve | 23962846 | 3 days ago | IN | 0 ETH | 0.00011251 |
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
Token
Compiler Version
v0.8.23+commit.f704f362
Optimization Enabled:
Yes with 99999 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;
import "./interfaces/IPair.sol";
import "./interfaces/IFactory.sol";
import "@openzeppelin/contracts/utils/Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Capped.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
contract Token is ERC20Burnable, ERC20Capped, Pausable, Ownable {
uint16 public constant DENOMINATOR = 100_00;
uint16 public constant MAX_TAX = 30_00;
address public immutable FACTORY;
Taxes public taxes;
mapping(address => bool) public whitelist;
mapping(address => bool) public blacklist;
mapping(address => bool) public excludedFromFee;
struct Taxes {
uint16 buy;
uint16 sell;
address feeReceiver;
}
error WrongTaxes(uint16 buyTax, uint16 sellTax);
error TransferForbidden(address user, bool paused, bool blacklisted);
constructor(
address admin,
address firstHolder,
address factory,
Taxes memory settings
)
Ownable(admin)
ERC20("K9 Finance DAO", "KNINE")
ERC20Capped(999_999_999_999 * 10 ** 18)
{
FACTORY = factory;
whitelist[firstHolder] = true;
excludedFromFee[firstHolder] = true;
_chageSettings(settings);
_mint(firstHolder, cap());
_pause();
}
// OWNER METHODS
/** @dev Mint tokens to @param user address in the @param amount
* @notice Available for owner only
*/
function mint(address user, uint256 amount) external onlyOwner {
_mint(user, amount);
}
/** @dev Stops any transfers
* @notice Available for owner only
*/
function pause() external onlyOwner {
_pause();
}
/** @dev Allow transfers again
* @notice Available for owner only
*/
function unpause() external onlyOwner {
_unpause();
}
/** @dev Add or remove users to/from whitelist
* @notice Available for owner only
*/
function changeWhiteStatus(address[] memory users) external onlyOwner {
for (uint256 i; i < users.length; i++) {
whitelist[users[i]] = !whitelist[users[i]];
}
}
/** @dev Add or remove users to/from blacklist
* @notice Available for owner only
*/
function changeBlackStatus(address[] memory users) external onlyOwner {
for (uint256 i; i < users.length; i++) {
blacklist[users[i]] = !blacklist[users[i]];
}
}
/** @dev Add or remove users to/from excluded from fee list
* @notice Available for owner only
*/
function changeExcludedStatus(address[] memory users) external onlyOwner {
for (uint256 i; i < users.length; i++) {
excludedFromFee[users[i]] = !excludedFromFee[users[i]];
}
}
/** @dev Changes taxes settings (buy/sell fee percents and fee receiver address)
* @notice Available for owner only
*/
function changeSettings(Taxes memory settings) external onlyOwner {
_chageSettings(settings);
}
// INTERNAL METHODS
function _chageSettings(Taxes memory _settings) internal {
require(_settings.feeReceiver != address(0), "Token: Invalid receiver");
require(_settings.buy <= MAX_TAX && _settings.sell <= MAX_TAX, "Token: Wrong taxes");
taxes = _settings;
}
function _update(
address from,
address to,
uint256 value
) internal override(ERC20, ERC20Capped) {
require(whitelist[from] || !(paused() || blacklist[from]), "Token: Transfer forbidden");
bool isSell = _pairCheck(to);
bool isBuy = _pairCheck(from);
uint256 fee = uint256(
isBuy && !excludedFromFee[to]
? (value * taxes.buy) / DENOMINATOR
: isSell && !excludedFromFee[from]
? (value * taxes.sell) / DENOMINATOR
: 0
);
if (fee > 0) {
ERC20._update(from, taxes.feeReceiver, fee);
value -= fee;
}
ERC20Capped._update(from, to, value);
}
function _pairCheck(address _token) internal view returns (bool) {
address token0;
address token1;
if (isContract(_token)) {
try IPair(_token).token0() returns (address _token0) {
token0 = _token0;
} catch {
return false;
}
try IPair(_token).token1() returns (address _token1) {
token1 = _token1;
} catch {
return false;
}
address goodPair = IFactory(FACTORY).getPair(token0, token1);
if (goodPair != _token) {
return false;
}
if (token0 == address(this) || token1 == address(this)) return true;
else return false;
} else return false;
}
function isContract(address addr) internal view returns (bool) {
uint256 size;
assembly {
size := extcodesize(addr)
}
return size > 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
pragma solidity ^0.8.20;
import {Context} from "../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.
*
* The initial owner is set to the address provided by the deployer. 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;
/**
* @dev The caller account is not authorized to perform an operation.
*/
error OwnableUnauthorizedAccount(address account);
/**
* @dev The owner is not a valid owner account. (eg. `address(0)`)
*/
error OwnableInvalidOwner(address owner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the address provided by the deployer as the initial owner.
*/
constructor(address initialOwner) {
if (initialOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(initialOwner);
}
/**
* @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 {
if (owner() != _msgSender()) {
revert OwnableUnauthorizedAccount(_msgSender());
}
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_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 v5.0.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;
/**
* @dev Standard ERC20 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens.
*/
interface IERC20Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC20InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC20InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
* @param spender Address that may be allowed to operate on tokens without being their owner.
* @param allowance Amount of tokens a `spender` is allowed to operate with.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC20InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `spender` to be approved. Used in approvals.
* @param spender Address that may be allowed to operate on tokens without being their owner.
*/
error ERC20InvalidSpender(address spender);
}
/**
* @dev Standard ERC721 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
*/
interface IERC721Errors {
/**
* @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.
* Used in balance queries.
* @param owner Address of the current owner of a token.
*/
error ERC721InvalidOwner(address owner);
/**
* @dev Indicates a `tokenId` whose `owner` is the zero address.
* @param tokenId Identifier number of a token.
*/
error ERC721NonexistentToken(uint256 tokenId);
/**
* @dev Indicates an error related to the ownership over a particular token. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param tokenId Identifier number of a token.
* @param owner Address of the current owner of a token.
*/
error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC721InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC721InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param tokenId Identifier number of a token.
*/
error ERC721InsufficientApproval(address operator, uint256 tokenId);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC721InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC721InvalidOperator(address operator);
}
/**
* @dev Standard ERC1155 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens.
*/
interface IERC1155Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
* @param tokenId Identifier number of a token.
*/
error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC1155InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC1155InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param owner Address of the current owner of a token.
*/
error ERC1155MissingApprovalForAll(address operator, address owner);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC1155InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC1155InvalidOperator(address operator);
/**
* @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
* Used in batch transfers.
* @param idsLength Length of the array of token identifiers
* @param valuesLength Length of the array of token amounts
*/
error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "./IERC20.sol";
import {IERC20Metadata} from "./extensions/IERC20Metadata.sol";
import {Context} from "../../utils/Context.sol";
import {IERC20Errors} from "../../interfaces/draft-IERC6093.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}.
*
* TIP: For a detailed writeup see our guide
* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* The default value of {decimals} is 18. To change this, you should override
* this function so it returns a different value.
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC20
* applications.
*
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
* This allows applications to reconstruct the allowance for all accounts just
* by listening to said events. Other implementations of the EIP may not emit
* these events, as it isn't required by the specification.
*/
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
mapping(address account => uint256) private _balances;
mapping(address account => mapping(address spender => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the default value returned by this function, unless
* it's overridden.
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual 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 `value`.
*/
function transfer(address to, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_transfer(owner, to, value);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* NOTE: If `value` 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 value) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, value);
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 `value`.
* - the caller must have allowance for ``from``'s tokens of at least
* `value`.
*/
function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, value);
_transfer(from, to, value);
return true;
}
/**
* @dev Moves a `value` 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.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _transfer(address from, address to, uint256 value) internal {
if (from == address(0)) {
revert ERC20InvalidSender(address(0));
}
if (to == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(from, to, value);
}
/**
* @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
* (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
* this function.
*
* Emits a {Transfer} event.
*/
function _update(address from, address to, uint256 value) internal virtual {
if (from == address(0)) {
// Overflow check required: The rest of the code assumes that totalSupply never overflows
_totalSupply += value;
} else {
uint256 fromBalance = _balances[from];
if (fromBalance < value) {
revert ERC20InsufficientBalance(from, fromBalance, value);
}
unchecked {
// Overflow not possible: value <= fromBalance <= totalSupply.
_balances[from] = fromBalance - value;
}
}
if (to == address(0)) {
unchecked {
// Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
_totalSupply -= value;
}
} else {
unchecked {
// Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
_balances[to] += value;
}
}
emit Transfer(from, to, value);
}
/**
* @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
* Relies on the `_update` mechanism
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _mint(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(address(0), account, value);
}
/**
* @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
* Relies on the `_update` mechanism.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead
*/
function _burn(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidSender(address(0));
}
_update(account, address(0), value);
}
/**
* @dev Sets `value` 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.
*
* Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
*/
function _approve(address owner, address spender, uint256 value) internal {
_approve(owner, spender, value, true);
}
/**
* @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
*
* By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
* `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any
* `Approval` event during `transferFrom` operations.
*
* Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
* true using the following override:
* ```
* function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
* super._approve(owner, spender, value, true);
* }
* ```
*
* Requirements are the same as {_approve}.
*/
function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
if (owner == address(0)) {
revert ERC20InvalidApprover(address(0));
}
if (spender == address(0)) {
revert ERC20InvalidSpender(address(0));
}
_allowances[owner][spender] = value;
if (emitEvent) {
emit Approval(owner, spender, value);
}
}
/**
* @dev Updates `owner` s allowance for `spender` based on spent `value`.
*
* Does not update the allowance value in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Does not emit an {Approval} event.
*/
function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
if (currentAllowance < value) {
revert ERC20InsufficientAllowance(spender, currentAllowance, value);
}
unchecked {
_approve(owner, spender, currentAllowance - value, false);
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/ERC20Burnable.sol)
pragma solidity ^0.8.20;
import {ERC20} from "../ERC20.sol";
import {Context} from "../../../utils/Context.sol";
/**
* @dev Extension of {ERC20} that allows token holders to destroy both their own
* tokens and those that they have an allowance for, in a way that can be
* recognized off-chain (via event analysis).
*/
abstract contract ERC20Burnable is Context, ERC20 {
/**
* @dev Destroys a `value` amount of tokens from the caller.
*
* See {ERC20-_burn}.
*/
function burn(uint256 value) public virtual {
_burn(_msgSender(), value);
}
/**
* @dev Destroys a `value` amount of tokens from `account`, deducting from
* the caller's allowance.
*
* See {ERC20-_burn} and {ERC20-allowance}.
*
* Requirements:
*
* - the caller must have allowance for ``accounts``'s tokens of at least
* `value`.
*/
function burnFrom(address account, uint256 value) public virtual {
_spendAllowance(account, _msgSender(), value);
_burn(account, value);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/ERC20Capped.sol)
pragma solidity ^0.8.20;
import {ERC20} from "../ERC20.sol";
/**
* @dev Extension of {ERC20} that adds a cap to the supply of tokens.
*/
abstract contract ERC20Capped is ERC20 {
uint256 private immutable _cap;
/**
* @dev Total supply cap has been exceeded.
*/
error ERC20ExceededCap(uint256 increasedSupply, uint256 cap);
/**
* @dev The supplied cap is not a valid cap.
*/
error ERC20InvalidCap(uint256 cap);
/**
* @dev Sets the value of the `cap`. This value is immutable, it can only be
* set once during construction.
*/
constructor(uint256 cap_) {
if (cap_ == 0) {
revert ERC20InvalidCap(0);
}
_cap = cap_;
}
/**
* @dev Returns the cap on the token's total supply.
*/
function cap() public view virtual returns (uint256) {
return _cap;
}
/**
* @dev See {ERC20-_update}.
*/
function _update(address from, address to, uint256 value) internal virtual override {
super._update(from, to, value);
if (from == address(0)) {
uint256 maxSupply = cap();
uint256 supply = totalSupply();
if (supply > maxSupply) {
revert ERC20ExceededCap(supply, maxSupply);
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../IERC20.sol";
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*/
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 v5.0.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.20;
/**
* @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 value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` 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 value) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
pragma solidity ^0.8.20;
/**
* @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;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Pausable.sol)
pragma solidity ^0.8.20;
import {Context} from "../utils/Context.sol";
/**
* @dev Contract module which allows children to implement an emergency stop
* mechanism that can be triggered by an authorized account.
*
* This module is used through inheritance. It will make available the
* modifiers `whenNotPaused` and `whenPaused`, which can be applied to
* the functions of your contract. Note that they will not be pausable by
* simply including this module, only once the modifiers are put in place.
*/
abstract contract Pausable is Context {
bool private _paused;
/**
* @dev Emitted when the pause is triggered by `account`.
*/
event Paused(address account);
/**
* @dev Emitted when the pause is lifted by `account`.
*/
event Unpaused(address account);
/**
* @dev The operation failed because the contract is paused.
*/
error EnforcedPause();
/**
* @dev The operation failed because the contract is not paused.
*/
error ExpectedPause();
/**
* @dev Initializes the contract in unpaused state.
*/
constructor() {
_paused = false;
}
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*
* Requirements:
*
* - The contract must not be paused.
*/
modifier whenNotPaused() {
_requireNotPaused();
_;
}
/**
* @dev Modifier to make a function callable only when the contract is paused.
*
* Requirements:
*
* - The contract must be paused.
*/
modifier whenPaused() {
_requirePaused();
_;
}
/**
* @dev Returns true if the contract is paused, and false otherwise.
*/
function paused() public view virtual returns (bool) {
return _paused;
}
/**
* @dev Throws if the contract is paused.
*/
function _requireNotPaused() internal view virtual {
if (paused()) {
revert EnforcedPause();
}
}
/**
* @dev Throws if the contract is not paused.
*/
function _requirePaused() internal view virtual {
if (!paused()) {
revert ExpectedPause();
}
}
/**
* @dev Triggers stopped state.
*
* Requirements:
*
* - The contract must not be paused.
*/
function _pause() internal virtual whenNotPaused {
_paused = true;
emit Paused(_msgSender());
}
/**
* @dev Returns to normal state.
*
* Requirements:
*
* - The contract must be paused.
*/
function _unpause() internal virtual whenPaused {
_paused = false;
emit Unpaused(_msgSender());
}
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;
interface IFactory {
function getPair(address tokenA, address tokenB)
external
view
returns (address pair);
}// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;
interface IPair {
function token0() external view returns (address);
function token1() external view returns (address);
}{
"optimizer": {
"enabled": true,
"runs": 99999
},
"evmVersion": "paris",
"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":"admin","type":"address"},{"internalType":"address","name":"firstHolder","type":"address"},{"internalType":"address","name":"factory","type":"address"},{"components":[{"internalType":"uint16","name":"buy","type":"uint16"},{"internalType":"uint16","name":"sell","type":"uint16"},{"internalType":"address","name":"feeReceiver","type":"address"}],"internalType":"struct Token.Taxes","name":"settings","type":"tuple"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"increasedSupply","type":"uint256"},{"internalType":"uint256","name":"cap","type":"uint256"}],"name":"ERC20ExceededCap","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"uint256","name":"cap","type":"uint256"}],"name":"ERC20InvalidCap","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[],"name":"EnforcedPause","type":"error"},{"inputs":[],"name":"ExpectedPause","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"bool","name":"paused","type":"bool"},{"internalType":"bool","name":"blacklisted","type":"bool"}],"name":"TransferForbidden","type":"error"},{"inputs":[{"internalType":"uint16","name":"buyTax","type":"uint16"},{"internalType":"uint16","name":"sellTax","type":"uint16"}],"name":"WrongTaxes","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DENOMINATOR","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FACTORY","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TAX","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"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":"value","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":"address","name":"","type":"address"}],"name":"blacklist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"users","type":"address[]"}],"name":"changeBlackStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"users","type":"address[]"}],"name":"changeExcludedStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint16","name":"buy","type":"uint16"},{"internalType":"uint16","name":"sell","type":"uint16"},{"internalType":"address","name":"feeReceiver","type":"address"}],"internalType":"struct Token.Taxes","name":"settings","type":"tuple"}],"name":"changeSettings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"users","type":"address[]"}],"name":"changeWhiteStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"excludedFromFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","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":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxes","outputs":[{"internalType":"uint16","name":"buy","type":"uint16"},{"internalType":"uint16","name":"sell","type":"uint16"},{"internalType":"address","name":"feeReceiver","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","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":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]Contract Creation Code
60c06040523480156200001157600080fd5b50604051620028e3380380620028e383398101604081905262000034916200093e565b836c0c9f2c9cd038943736989c00006040518060400160405280600e81526020016d4b392046696e616e63652044414f60901b815250604051806040016040528060058152602001644b4e494e4560d81b815250816003908162000099919062000a88565b506004620000a8828262000a88565b50505080600003620000d55760405163392e1e2760e01b8152600060048201526024015b60405180910390fd5b6080526005805460ff191690556001600160a01b0381166200010e57604051631e4fbdf760e01b815260006004820152602401620000cc565b62000119816200018f565b506001600160a01b0382811660a052831660009081526007602090815260408083208054600160ff19918216811790925560099093529220805490911690911790556200016681620001e9565b6200017b836200017560805190565b62000306565b6200018562000344565b5050505062000bfe565b600580546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60408101516001600160a01b0316620002455760405162461bcd60e51b815260206004820152601760248201527f546f6b656e3a20496e76616c69642072656365697665720000000000000000006044820152606401620000cc565b8051610bb861ffff909116118015906200026d5750610bb861ffff16816020015161ffff1611155b620002b05760405162461bcd60e51b8152602060048201526012602482015271546f6b656e3a2057726f6e6720746178657360701b6044820152606401620000cc565b80516006805460208401516040909401516001600160a01b031664010000000002600160201b600160c01b031961ffff958616620100000263ffffffff1990931695909416949094171791909116919091179055565b6001600160a01b038216620003325760405163ec442f0560e01b815260006004820152602401620000cc565b6200034060008383620003a1565b5050565b6200034e6200055f565b6005805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620003843390565b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b03831660009081526007602052604090205460ff1680620003f0575060055460ff1680620003ee57506001600160a01b03831660009081526008602052604090205460ff165b155b6200043e5760405162461bcd60e51b815260206004820152601960248201527f546f6b656e3a205472616e7366657220666f7262696464656e000000000000006044820152606401620000cc565b60006200044b8362000586565b905060006200045a8562000586565b905060008180156200048557506001600160a01b03851660009081526009602052604090205460ff16155b620004ed57828015620004b157506001600160a01b03861660009081526009602052604090205460ff16155b620004be57600062000510565b60065461271090620004db9062010000900461ffff168662000b6a565b620004e7919062000b8a565b62000510565b60065461271090620005049061ffff168662000b6a565b62000510919062000b8a565b905080156200054a576006546200053b90879064010000000090046001600160a01b03168362000758565b62000547818562000bad565b93505b620005578686866200088b565b505050505050565b60055460ff1615620005845760405163d93c066560e01b815260040160405180910390fd5b565b60008080833b156200074e57836001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015620005ef575060408051601f3d908101601f19168201909252620005ec9181019062000bc3565b60015b620005fe575060009392505050565b9150836001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156200065d575060408051601f3d908101601f191682019092526200065a9181019062000bc3565b60015b6200066c575060009392505050565b60a05160405163e6a4390560e01b81526001600160a01b03858116600483015280841660248301529293506000929091169063e6a4390590604401602060405180830381865afa158015620006c5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620006eb919062000bc3565b9050846001600160a01b0316816001600160a01b0316146200071257506000949350505050565b6001600160a01b0383163014806200073257506001600160a01b03821630145b156200074357506001949350505050565b506000949350505050565b5060009392505050565b6001600160a01b038316620007875780600260008282546200077b919062000be8565b90915550620007fb9050565b6001600160a01b03831660009081526020819052604090205481811015620007dc5760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401620000cc565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b038216620008195760028054829003905562000838565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516200087e91815260200190565b60405180910390a3505050565b6200089883838362000758565b6001600160a01b038316620008f3576000620008b360805190565b90506000620008c160025490565b905081811115620008f05760405163279e7e1560e21b81526004810182905260248101839052604401620000cc565b50505b505050565b80516001600160a01b03811681146200091057600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b805161ffff811681146200091057600080fd5b60008060008084860360c08112156200095657600080fd5b6200096186620008f8565b94506200097160208701620008f8565b93506200098160408701620008f8565b92506060605f19820112156200099657600080fd5b50604051606081016001600160401b0381118282101715620009bc57620009bc62000915565b604052620009cd606087016200092b565b8152620009dd608087016200092b565b6020820152620009f060a08701620008f8565b6040820152939692955090935050565b600181811c9082168062000a1557607f821691505b60208210810362000a3657634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620008f3576000816000526020600020601f850160051c8101602086101562000a675750805b601f850160051c820191505b81811015620005575782815560010162000a73565b81516001600160401b0381111562000aa45762000aa462000915565b62000abc8162000ab5845462000a00565b8462000a3c565b602080601f83116001811462000af4576000841562000adb5750858301515b600019600386901b1c1916600185901b17855562000557565b600085815260208120601f198616915b8281101562000b255788860151825594840194600190910190840162000b04565b508582101562000b445787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141762000b845762000b8462000b54565b92915050565b60008262000ba857634e487b7160e01b600052601260045260246000fd5b500490565b8181038181111562000b845762000b8462000b54565b60006020828403121562000bd657600080fd5b62000be182620008f8565b9392505050565b8082018082111562000b845762000b8462000b54565b60805160a051611cb162000c326000396000818161024a01526114c40152600081816102a201526117a30152611cb16000f3fe608060405234801561001057600080fd5b50600436106101da5760003560e01c806379cc67901161010457806395d89b41116100a2578063dd62ed3e11610071578063dd62ed3e146104ac578063e3e8efdc146104f2578063f2fde38b14610505578063f9f92be41461051857600080fd5b806395d89b411461045b5780639b19251a14610463578063a9059cbb14610486578063d0b21d171461049957600080fd5b806386a35f25116100de57806386a35f25146104005780638da5cb5b1461041c57806390f9d9d81461043f578063918f86741461045257600080fd5b806379cc6790146103c25780638456cb59146103d557806385ecafd7146103dd57600080fd5b80633f4ba83a1161017c578063600174ae1161014b578063600174ae1461030157806370a0823114610314578063715018a61461034a578063728f8eea1461035257600080fd5b80633f4ba83a146102c657806340c10f19146102d057806342966c68146102e35780635c975abb146102f657600080fd5b806323b872dd116101b857806323b872dd146102325780632dd3100014610245578063313ce56714610291578063355274ea146102a057600080fd5b806306fdde03146101df578063095ea7b3146101fd57806318160ddd14610220575b600080fd5b6101e761053b565b6040516101f4919061180e565b60405180910390f35b61021061020b36600461189d565b6105cd565b60405190151581526020016101f4565b6002545b6040519081526020016101f4565b6102106102403660046118c9565b6105e7565b61026c7f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101f4565b604051601281526020016101f4565b7f0000000000000000000000000000000000000000000000000000000000000000610224565b6102ce61060b565b005b6102ce6102de36600461189d565b61061d565b6102ce6102f136600461190a565b610633565b60055460ff16610210565b6102ce61030f3660046119a1565b610640565b610224610322366004611a53565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b6102ce610736565b60065461038b9061ffff8082169162010000810490911690640100000000900473ffffffffffffffffffffffffffffffffffffffff1683565b6040805161ffff948516815293909216602084015273ffffffffffffffffffffffffffffffffffffffff16908201526060016101f4565b6102ce6103d036600461189d565b610748565b6102ce61075d565b6102106103eb366004611a53565b60096020526000908152604090205460ff1681565b610409610bb881565b60405161ffff90911681526020016101f4565b600554610100900473ffffffffffffffffffffffffffffffffffffffff1661026c565b6102ce61044d3660046119a1565b61076d565b61040961271081565b6101e7610863565b610210610471366004611a53565b60076020526000908152604090205460ff1681565b61021061049436600461189d565b610872565b6102ce6104a73660046119a1565b610880565b6102246104ba366004611a77565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b6102ce610500366004611ac7565b610976565b6102ce610513366004611a53565b610987565b610210610526366004611a53565b60086020526000908152604090205460ff1681565b60606003805461054a90611b35565b80601f016020809104026020016040519081016040528092919081815260200182805461057690611b35565b80156105c35780601f10610598576101008083540402835291602001916105c3565b820191906000526020600020905b8154815290600101906020018083116105a657829003601f168201915b5050505050905090565b6000336105db8185856109ed565b60019150505b92915050565b6000336105f58582856109ff565b610600858585610ace565b506001949350505050565b610613610b79565b61061b610bd2565b565b610625610b79565b61062f8282610c4f565b5050565b61063d3382610cab565b50565b610648610b79565b60005b815181101561062f576009600083838151811061066a5761066a611b88565b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615600960008484815181106106d1576106d1611b88565b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff16825281019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001691151591909117905560010161064b565b61073e610b79565b61061b6000610d07565b6107538233836109ff565b61062f8282610cab565b610765610b79565b61061b610d85565b610775610b79565b60005b815181101561062f576007600083838151811061079757610797611b88565b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615600760008484815181106107fe576107fe611b88565b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff16825281019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055600101610778565b60606004805461054a90611b35565b6000336105db818585610ace565b610888610b79565b60005b815181101561062f57600860008383815181106108aa576108aa611b88565b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156008600084848151811061091157610911611b88565b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff16825281019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001691151591909117905560010161088b565b61097e610b79565b61063d81610de0565b61098f610b79565b73ffffffffffffffffffffffffffffffffffffffff81166109e4576040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600060048201526024015b60405180910390fd5b61063d81610d07565b6109fa8383836001610f81565b505050565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610ac85781811015610ab9576040517ffb8f41b200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8416600482015260248101829052604481018390526064016109db565b610ac884848484036000610f81565b50505050565b73ffffffffffffffffffffffffffffffffffffffff8316610b1e576040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600060048201526024016109db565b73ffffffffffffffffffffffffffffffffffffffff8216610b6e576040517fec442f05000000000000000000000000000000000000000000000000000000008152600060048201526024016109db565b6109fa8383836110c9565b60055473ffffffffffffffffffffffffffffffffffffffff61010090910416331461061b576040517f118cdaa70000000000000000000000000000000000000000000000000000000081523360048201526024016109db565b610bda6112c5565b600580547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b73ffffffffffffffffffffffffffffffffffffffff8216610c9f576040517fec442f05000000000000000000000000000000000000000000000000000000008152600060048201526024016109db565b61062f600083836110c9565b73ffffffffffffffffffffffffffffffffffffffff8216610cfb576040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600060048201526024016109db565b61062f826000836110c9565b6005805473ffffffffffffffffffffffffffffffffffffffff8381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff85161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610d8d611301565b600580547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610c253390565b604081015173ffffffffffffffffffffffffffffffffffffffff16610e61576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f546f6b656e3a20496e76616c696420726563656976657200000000000000000060448201526064016109db565b8051610bb861ffff90911611801590610e885750610bb861ffff16816020015161ffff1611155b610eee576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f546f6b656e3a2057726f6e67207461786573000000000000000000000000000060448201526064016109db565b805160068054602084015160409094015173ffffffffffffffffffffffffffffffffffffffff16640100000000027fffffffffffffffff0000000000000000000000000000000000000000ffffffff61ffff95861662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000090931695909416949094171791909116919091179055565b73ffffffffffffffffffffffffffffffffffffffff8416610fd1576040517fe602df05000000000000000000000000000000000000000000000000000000008152600060048201526024016109db565b73ffffffffffffffffffffffffffffffffffffffff8316611021576040517f94280d62000000000000000000000000000000000000000000000000000000008152600060048201526024016109db565b73ffffffffffffffffffffffffffffffffffffffff80851660009081526001602090815260408083209387168352929052208290558015610ac8578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516110bb91815260200190565b60405180910390a350505050565b73ffffffffffffffffffffffffffffffffffffffff831660009081526007602052604090205460ff1680611130575060055460ff168061112e575073ffffffffffffffffffffffffffffffffffffffff831660009081526008602052604090205460ff165b155b611196576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f546f6b656e3a205472616e7366657220666f7262696464656e0000000000000060448201526064016109db565b60006111a18361133e565b905060006111ae8561133e565b905060008180156111e5575073ffffffffffffffffffffffffffffffffffffffff851660009081526009602052604090205460ff16155b6112515782801561121c575073ffffffffffffffffffffffffffffffffffffffff861660009081526009602052604090205460ff16155b611227576000611270565b600654612710906112429062010000900461ffff1686611be6565b61124c9190611bfd565b611270565b600654612710906112669061ffff1686611be6565b6112709190611bfd565b905080156112b2576006546112a5908790640100000000900473ffffffffffffffffffffffffffffffffffffffff16836115cd565b6112af8185611c38565b93505b6112bd868686611778565b505050505050565b60055460ff1661061b576040517f8dfc202b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60055460ff161561061b576040517fd93c066500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008080833b156115c3578373ffffffffffffffffffffffffffffffffffffffff16630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113ce575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526113cb91810190611c4b565b60015b6113dc575060009392505050565b91508373ffffffffffffffffffffffffffffffffffffffff1663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611463575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261146091810190611c4b565b60015b611471575060009392505050565b6040517fe6a4390500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff848116600483015280831660248301529192506000917f0000000000000000000000000000000000000000000000000000000000000000169063e6a4390590604401602060405180830381865afa15801561150b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061152f9190611c4b565b90508473ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461156f57506000949350505050565b73ffffffffffffffffffffffffffffffffffffffff83163014806115a8575073ffffffffffffffffffffffffffffffffffffffff821630145b156115b857506001949350505050565b506000949350505050565b5060009392505050565b73ffffffffffffffffffffffffffffffffffffffff83166116055780600260008282546115fa9190611c68565b909155506116b79050565b73ffffffffffffffffffffffffffffffffffffffff83166000908152602081905260409020548181101561168b576040517fe450d38c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8516600482015260248101829052604481018390526064016109db565b73ffffffffffffffffffffffffffffffffffffffff841660009081526020819052604090209082900390555b73ffffffffffffffffffffffffffffffffffffffff82166116e05760028054829003905561170c565b73ffffffffffffffffffffffffffffffffffffffff821660009081526020819052604090208054820190555b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161176b91815260200190565b60405180910390a3505050565b6117838383836115cd565b73ffffffffffffffffffffffffffffffffffffffff83166109fa576002547f00000000000000000000000000000000000000000000000000000000000000009081811115611807576040517f9e79f85400000000000000000000000000000000000000000000000000000000815260048101829052602481018390526044016109db565b5050505050565b60006020808352835180602085015260005b8181101561183c57858101830151858201604001528201611820565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b73ffffffffffffffffffffffffffffffffffffffff8116811461063d57600080fd5b600080604083850312156118b057600080fd5b82356118bb8161187b565b946020939093013593505050565b6000806000606084860312156118de57600080fd5b83356118e98161187b565b925060208401356118f98161187b565b929592945050506040919091013590565b60006020828403121561191c57600080fd5b5035919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff8111828210171561199957611999611923565b604052919050565b600060208083850312156119b457600080fd5b823567ffffffffffffffff808211156119cc57600080fd5b818501915085601f8301126119e057600080fd5b8135818111156119f2576119f2611923565b8060051b9150611a03848301611952565b8181529183018401918481019088841115611a1d57600080fd5b938501935b83851015611a475784359250611a378361187b565b8282529385019390850190611a22565b98975050505050505050565b600060208284031215611a6557600080fd5b8135611a708161187b565b9392505050565b60008060408385031215611a8a57600080fd5b8235611a958161187b565b91506020830135611aa58161187b565b809150509250929050565b803561ffff81168114611ac257600080fd5b919050565b600060608284031215611ad957600080fd5b6040516060810181811067ffffffffffffffff82111715611afc57611afc611923565b604052611b0883611ab0565b8152611b1660208401611ab0565b60208201526040830135611b298161187b565b60408201529392505050565b600181811c90821680611b4957607f821691505b602082108103611b82577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80820281158282048414176105e1576105e1611bb7565b600082611c33577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b818103818111156105e1576105e1611bb7565b600060208284031215611c5d57600080fd5b8151611a708161187b565b808201808211156105e1576105e1611bb756fea26469706673582212200255478da16760854241076333bbbe38e68a6b21a169f2319089ca45b31db84964736f6c63430008170033000000000000000000000000f2ffeaa2563a841f1969eecb3dc571d22ee89b1200000000000000000000000043956abdda2c8246a4f03668ec902e28413eb4b00000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f000000000000000000000000000000000000000000000000000000000000012c00000000000000000000000000000000000000000000000000000000000003e80000000000000000000000007dad1302c3caaff2909f39917253cd6e4fcf77e3
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101da5760003560e01c806379cc67901161010457806395d89b41116100a2578063dd62ed3e11610071578063dd62ed3e146104ac578063e3e8efdc146104f2578063f2fde38b14610505578063f9f92be41461051857600080fd5b806395d89b411461045b5780639b19251a14610463578063a9059cbb14610486578063d0b21d171461049957600080fd5b806386a35f25116100de57806386a35f25146104005780638da5cb5b1461041c57806390f9d9d81461043f578063918f86741461045257600080fd5b806379cc6790146103c25780638456cb59146103d557806385ecafd7146103dd57600080fd5b80633f4ba83a1161017c578063600174ae1161014b578063600174ae1461030157806370a0823114610314578063715018a61461034a578063728f8eea1461035257600080fd5b80633f4ba83a146102c657806340c10f19146102d057806342966c68146102e35780635c975abb146102f657600080fd5b806323b872dd116101b857806323b872dd146102325780632dd3100014610245578063313ce56714610291578063355274ea146102a057600080fd5b806306fdde03146101df578063095ea7b3146101fd57806318160ddd14610220575b600080fd5b6101e761053b565b6040516101f4919061180e565b60405180910390f35b61021061020b36600461189d565b6105cd565b60405190151581526020016101f4565b6002545b6040519081526020016101f4565b6102106102403660046118c9565b6105e7565b61026c7f0000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f81565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101f4565b604051601281526020016101f4565b7f000000000000000000000000000000000000000c9f2c9cd038943736989c0000610224565b6102ce61060b565b005b6102ce6102de36600461189d565b61061d565b6102ce6102f136600461190a565b610633565b60055460ff16610210565b6102ce61030f3660046119a1565b610640565b610224610322366004611a53565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b6102ce610736565b60065461038b9061ffff8082169162010000810490911690640100000000900473ffffffffffffffffffffffffffffffffffffffff1683565b6040805161ffff948516815293909216602084015273ffffffffffffffffffffffffffffffffffffffff16908201526060016101f4565b6102ce6103d036600461189d565b610748565b6102ce61075d565b6102106103eb366004611a53565b60096020526000908152604090205460ff1681565b610409610bb881565b60405161ffff90911681526020016101f4565b600554610100900473ffffffffffffffffffffffffffffffffffffffff1661026c565b6102ce61044d3660046119a1565b61076d565b61040961271081565b6101e7610863565b610210610471366004611a53565b60076020526000908152604090205460ff1681565b61021061049436600461189d565b610872565b6102ce6104a73660046119a1565b610880565b6102246104ba366004611a77565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b6102ce610500366004611ac7565b610976565b6102ce610513366004611a53565b610987565b610210610526366004611a53565b60086020526000908152604090205460ff1681565b60606003805461054a90611b35565b80601f016020809104026020016040519081016040528092919081815260200182805461057690611b35565b80156105c35780601f10610598576101008083540402835291602001916105c3565b820191906000526020600020905b8154815290600101906020018083116105a657829003601f168201915b5050505050905090565b6000336105db8185856109ed565b60019150505b92915050565b6000336105f58582856109ff565b610600858585610ace565b506001949350505050565b610613610b79565b61061b610bd2565b565b610625610b79565b61062f8282610c4f565b5050565b61063d3382610cab565b50565b610648610b79565b60005b815181101561062f576009600083838151811061066a5761066a611b88565b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615600960008484815181106106d1576106d1611b88565b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff16825281019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001691151591909117905560010161064b565b61073e610b79565b61061b6000610d07565b6107538233836109ff565b61062f8282610cab565b610765610b79565b61061b610d85565b610775610b79565b60005b815181101561062f576007600083838151811061079757610797611b88565b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615600760008484815181106107fe576107fe611b88565b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff16825281019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055600101610778565b60606004805461054a90611b35565b6000336105db818585610ace565b610888610b79565b60005b815181101561062f57600860008383815181106108aa576108aa611b88565b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156008600084848151811061091157610911611b88565b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff16825281019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001691151591909117905560010161088b565b61097e610b79565b61063d81610de0565b61098f610b79565b73ffffffffffffffffffffffffffffffffffffffff81166109e4576040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600060048201526024015b60405180910390fd5b61063d81610d07565b6109fa8383836001610f81565b505050565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610ac85781811015610ab9576040517ffb8f41b200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8416600482015260248101829052604481018390526064016109db565b610ac884848484036000610f81565b50505050565b73ffffffffffffffffffffffffffffffffffffffff8316610b1e576040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600060048201526024016109db565b73ffffffffffffffffffffffffffffffffffffffff8216610b6e576040517fec442f05000000000000000000000000000000000000000000000000000000008152600060048201526024016109db565b6109fa8383836110c9565b60055473ffffffffffffffffffffffffffffffffffffffff61010090910416331461061b576040517f118cdaa70000000000000000000000000000000000000000000000000000000081523360048201526024016109db565b610bda6112c5565b600580547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b73ffffffffffffffffffffffffffffffffffffffff8216610c9f576040517fec442f05000000000000000000000000000000000000000000000000000000008152600060048201526024016109db565b61062f600083836110c9565b73ffffffffffffffffffffffffffffffffffffffff8216610cfb576040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600060048201526024016109db565b61062f826000836110c9565b6005805473ffffffffffffffffffffffffffffffffffffffff8381166101008181027fffffffffffffffffffffff0000000000000000000000000000000000000000ff85161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610d8d611301565b600580547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610c253390565b604081015173ffffffffffffffffffffffffffffffffffffffff16610e61576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f546f6b656e3a20496e76616c696420726563656976657200000000000000000060448201526064016109db565b8051610bb861ffff90911611801590610e885750610bb861ffff16816020015161ffff1611155b610eee576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f546f6b656e3a2057726f6e67207461786573000000000000000000000000000060448201526064016109db565b805160068054602084015160409094015173ffffffffffffffffffffffffffffffffffffffff16640100000000027fffffffffffffffff0000000000000000000000000000000000000000ffffffff61ffff95861662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000090931695909416949094171791909116919091179055565b73ffffffffffffffffffffffffffffffffffffffff8416610fd1576040517fe602df05000000000000000000000000000000000000000000000000000000008152600060048201526024016109db565b73ffffffffffffffffffffffffffffffffffffffff8316611021576040517f94280d62000000000000000000000000000000000000000000000000000000008152600060048201526024016109db565b73ffffffffffffffffffffffffffffffffffffffff80851660009081526001602090815260408083209387168352929052208290558015610ac8578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516110bb91815260200190565b60405180910390a350505050565b73ffffffffffffffffffffffffffffffffffffffff831660009081526007602052604090205460ff1680611130575060055460ff168061112e575073ffffffffffffffffffffffffffffffffffffffff831660009081526008602052604090205460ff165b155b611196576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f546f6b656e3a205472616e7366657220666f7262696464656e0000000000000060448201526064016109db565b60006111a18361133e565b905060006111ae8561133e565b905060008180156111e5575073ffffffffffffffffffffffffffffffffffffffff851660009081526009602052604090205460ff16155b6112515782801561121c575073ffffffffffffffffffffffffffffffffffffffff861660009081526009602052604090205460ff16155b611227576000611270565b600654612710906112429062010000900461ffff1686611be6565b61124c9190611bfd565b611270565b600654612710906112669061ffff1686611be6565b6112709190611bfd565b905080156112b2576006546112a5908790640100000000900473ffffffffffffffffffffffffffffffffffffffff16836115cd565b6112af8185611c38565b93505b6112bd868686611778565b505050505050565b60055460ff1661061b576040517f8dfc202b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60055460ff161561061b576040517fd93c066500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008080833b156115c3578373ffffffffffffffffffffffffffffffffffffffff16630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156113ce575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526113cb91810190611c4b565b60015b6113dc575060009392505050565b91508373ffffffffffffffffffffffffffffffffffffffff1663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611463575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261146091810190611c4b565b60015b611471575060009392505050565b6040517fe6a4390500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff848116600483015280831660248301529192506000917f0000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f169063e6a4390590604401602060405180830381865afa15801561150b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061152f9190611c4b565b90508473ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461156f57506000949350505050565b73ffffffffffffffffffffffffffffffffffffffff83163014806115a8575073ffffffffffffffffffffffffffffffffffffffff821630145b156115b857506001949350505050565b506000949350505050565b5060009392505050565b73ffffffffffffffffffffffffffffffffffffffff83166116055780600260008282546115fa9190611c68565b909155506116b79050565b73ffffffffffffffffffffffffffffffffffffffff83166000908152602081905260409020548181101561168b576040517fe450d38c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8516600482015260248101829052604481018390526064016109db565b73ffffffffffffffffffffffffffffffffffffffff841660009081526020819052604090209082900390555b73ffffffffffffffffffffffffffffffffffffffff82166116e05760028054829003905561170c565b73ffffffffffffffffffffffffffffffffffffffff821660009081526020819052604090208054820190555b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161176b91815260200190565b60405180910390a3505050565b6117838383836115cd565b73ffffffffffffffffffffffffffffffffffffffff83166109fa576002547f000000000000000000000000000000000000000c9f2c9cd038943736989c00009081811115611807576040517f9e79f85400000000000000000000000000000000000000000000000000000000815260048101829052602481018390526044016109db565b5050505050565b60006020808352835180602085015260005b8181101561183c57858101830151858201604001528201611820565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b73ffffffffffffffffffffffffffffffffffffffff8116811461063d57600080fd5b600080604083850312156118b057600080fd5b82356118bb8161187b565b946020939093013593505050565b6000806000606084860312156118de57600080fd5b83356118e98161187b565b925060208401356118f98161187b565b929592945050506040919091013590565b60006020828403121561191c57600080fd5b5035919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff8111828210171561199957611999611923565b604052919050565b600060208083850312156119b457600080fd5b823567ffffffffffffffff808211156119cc57600080fd5b818501915085601f8301126119e057600080fd5b8135818111156119f2576119f2611923565b8060051b9150611a03848301611952565b8181529183018401918481019088841115611a1d57600080fd5b938501935b83851015611a475784359250611a378361187b565b8282529385019390850190611a22565b98975050505050505050565b600060208284031215611a6557600080fd5b8135611a708161187b565b9392505050565b60008060408385031215611a8a57600080fd5b8235611a958161187b565b91506020830135611aa58161187b565b809150509250929050565b803561ffff81168114611ac257600080fd5b919050565b600060608284031215611ad957600080fd5b6040516060810181811067ffffffffffffffff82111715611afc57611afc611923565b604052611b0883611ab0565b8152611b1660208401611ab0565b60208201526040830135611b298161187b565b60408201529392505050565b600181811c90821680611b4957607f821691505b602082108103611b82577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80820281158282048414176105e1576105e1611bb7565b600082611c33577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b818103818111156105e1576105e1611bb7565b600060208284031215611c5d57600080fd5b8151611a708161187b565b808201808211156105e1576105e1611bb756fea26469706673582212200255478da16760854241076333bbbe38e68a6b21a169f2319089ca45b31db84964736f6c63430008170033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000f2ffeaa2563a841f1969eecb3dc571d22ee89b1200000000000000000000000043956abdda2c8246a4f03668ec902e28413eb4b00000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f000000000000000000000000000000000000000000000000000000000000012c00000000000000000000000000000000000000000000000000000000000003e80000000000000000000000007dad1302c3caaff2909f39917253cd6e4fcf77e3
-----Decoded View---------------
Arg [0] : admin (address): 0xF2fFEAA2563A841F1969EeCb3dC571d22eE89B12
Arg [1] : firstHolder (address): 0x43956abDDA2c8246a4F03668EC902e28413Eb4b0
Arg [2] : factory (address): 0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f
Arg [3] : settings (tuple):
Arg [1] : buy (uint16): 300
Arg [2] : sell (uint16): 1000
Arg [3] : feeReceiver (address): 0x7daD1302C3CAaFf2909F39917253CD6e4FCf77E3
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000f2ffeaa2563a841f1969eecb3dc571d22ee89b12
Arg [1] : 00000000000000000000000043956abdda2c8246a4f03668ec902e28413eb4b0
Arg [2] : 0000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f
Arg [3] : 000000000000000000000000000000000000000000000000000000000000012c
Arg [4] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [5] : 0000000000000000000000007dad1302c3caaff2909f39917253cd6e4fcf77e3
Loading...
Loading
Loading...
Loading
OVERVIEW
K9 Finance, a Shibarium-based LSD platform, offers core DeFi services and acts as an official validator. Rewarding $KNINE holders with $BONE for block validation, it aims to drive DeFi adoption via the 'Roundtable of Dogs' DAO, which governs treasury and roadmap decisions.Multichain Portfolio | 34 Chains
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ 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.