Contract Details
Overview
COOK BALANCE
Loading…TOKEN NAME
EVM ContractTOTAL SUPPLY
Not availableMore Info
CONTRACT ADDRESS
0xc057c855abbdc721ebfca25912254c708c351df9CONTRACT CREATOR
Not availableTOKEN TRACKER
Checking ERC-20 metadata…Contract Info
SOURCE CODE
✓ Verified
TOKEN DECIMALS
Not availableMarket and multichain values require verified data feeds.
Latest Contract Transactions
Loading indexed transactions…
| Transaction Hash | Action | Block | Age | From | To | Amount | Txn Fee |
|---|
Token Transfers
ERC-20 Transfer events from the latest indexed transactions involving this contract.
Loading receipt events…
Contract Events
Event logs emitted by this contract in the latest indexed contract transactions.
Loading receipt events…
Internal Transactions
Execution traces are not currently indexed. Internal calls cannot be reconstructed from receipts alone.
Token & Contract Information
- Network
- Cookchain · Chain ID 20261001
- Contract
- 0xc057c855abbdc721ebfca25912254c708c351df9
- Verification
- Verified
Token metadata is read from the contract. Market valuations and multichain holdings are not currently indexed.
Verified Solidity Source
Compiler: 0.8.24+commit.e11b9ed9.Emscripten.clang · Contract: contracts/tokens/CookDEXPremiumToken.sol:CookDEXPremiumToken · Creation bytecode: matched
@openzeppelin/contracts/access/Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
@openzeppelin/contracts/token/ERC20/ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* The default value of {decimals} is 18. To change this, you should override
* this function so it returns a different value.
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC20
* applications.
*
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
* This allows applications to reconstruct the allowance for all accounts just
* by listening to said events. Other implementations of the EIP may not emit
* these events, as it isn't required by the specification.
*
* Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
* functions have been added to mitigate the well-known issues around setting
* allowances. See {IERC20-approve}.
*/
contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the default value returned by this function, unless
* it's overridden.
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual override returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address to, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_transfer(owner, to, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
* `transferFrom`. This is semantically equivalent to an infinite approval.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_approve(owner, spender, amount);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* NOTE: Does not update the allowance if the current allowance
* is the maximum `uint256`.
*
* Requirements:
*
* - `from` and `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
* - the caller must have allowance for ``from``'s tokens of at least
* `amount`.
*/
function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, amount);
_transfer(from, to, amount);
return true;
}
/**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, allowance(owner, spender) + addedValue);
return true;
}
/**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `spender` must have allowance for the caller of at least
* `subtractedValue`.
*/
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
address owner = _msgSender();
uint256 currentAllowance = allowance(owner, spender);
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(owner, spender, currentAllowance - subtractedValue);
}
return true;
}
/**
* @dev Moves `amount` of tokens from `from` to `to`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
*/
function _transfer(address from, address to, uint256 amount) internal virtual {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(from, to, amount);
uint256 fromBalance = _balances[from];
require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[from] = fromBalance - amount;
// Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
// decrementing then incrementing.
_balances[to] += amount;
}
emit Transfer(from, to, amount);
_afterTokenTransfer(from, to, amount);
}
/** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
unchecked {
// Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
_balances[account] += amount;
}
emit Transfer(address(0), account, amount);
_afterTokenTransfer(address(0), account, amount);
}
/**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
unchecked {
_balances[account] = accountBalance - amount;
// Overflow not possible: amount <= accountBalance <= totalSupply.
_totalSupply -= amount;
}
emit Transfer(account, address(0), amount);
_afterTokenTransfer(account, address(0), amount);
}
/**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*/
function _approve(address owner, address spender, uint256 amount) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
/**
* @dev Updates `owner` s allowance for `spender` based on spent `amount`.
*
* Does not update the allowance amount in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Might emit an {Approval} event.
*/
function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
require(currentAllowance >= amount, "ERC20: insufficient allowance");
unchecked {
_approve(owner, spender, currentAllowance - amount);
}
}
}
/**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* has been transferred to `to`.
* - when `from` is zero, `amount` tokens have been minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens have been burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}
}
@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol
// 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);
}
@openzeppelin/contracts/token/ERC20/IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 amount) external returns (bool);
}
@openzeppelin/contracts/utils/Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (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;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}
contracts/tokens/CookDEXPremiumToken.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
interface ICookDEXTaxRouter {
function WETH() external view returns (address);
function swapExactTokensForETHSupportingFeeOnTransferTokens(uint256,uint256,address[] calldata,address,uint256) external;
}
contract CookDEXPremiumToken is ERC20, Ownable {
uint8 private immutable _configuredDecimals;
uint16 public constant MAX_TOTAL_TAX_BPS = 1000;
uint256 public constant FEATURE_BURNABLE = 1;
uint256 public constant FEATURE_MINTABLE = 2;
uint256 public constant FEATURE_PAUSABLE = 4;
uint256 public constant FEATURE_ANTI_WHALE = 8;
uint256 public constant FEATURE_ANTI_BOT = 16;
uint256 public constant FEATURE_BLACKLIST = 32;
string public tokenTemplate;
uint16 public buyTaxBps;
uint16 public sellTaxBps;
uint16 public transferTaxBps;
address public taxReceiver;
uint8 public taxPayoutMode; // 0 token + native, 1 native only, 2 token only
bool public burnTax;
ICookDEXTaxRouter public taxRouter;
bool private swappingTax;
string public creatorName;
string public creatorWebsite;
string public creatorContact;
string public createdBy;
bytes32 public deploymentGroup;
uint256 public originChainId;
uint256 public featureFlags;
uint256 public maxSupply;
uint16 public maxTransactionBps;
uint16 public maxWalletBps;
bool public transfersPaused;
string public constant bridgeProvider = "";
mapping(address => bool) public automatedMarketMakerPairs;
mapping(address => bool) public isExcludedFromFees;
mapping(address => bool) public blacklisted;
mapping(address => uint256) public lastTradeBlock;
event TaxesUpdated(uint16 buyTaxBps, uint16 sellTaxBps, uint16 transferTaxBps);
event TaxReceiverUpdated(address indexed receiver);
event FeeExclusionUpdated(address indexed account, bool excluded);
event AutomatedMarketMakerPairUpdated(address indexed pair, bool enabled);
event CreatorInformationUpdated(string name, string website, string contact);
event TradingLimitsUpdated(uint16 maxTransactionBps, uint16 maxWalletBps);
event TransfersPausedUpdated(bool paused);
event BlacklistUpdated(address indexed account, bool blacklisted);
constructor(
string memory name_,
string memory symbol_,
uint8 decimals_,
uint256 supply_,
address recipient_,
address taxReceiver_,
uint16 buyTaxBps_,
uint16 sellTaxBps_,
uint16 transferTaxBps_,
uint8 taxPayoutMode_,
bool burnTax_,
address taxRouter_,
string memory creatorName_,
string memory creatorWebsite_,
string memory creatorContact_,
bool whiteLabel_,
bytes32 deploymentGroup_,
uint256 originChainId_,
uint256 featureFlags_,
uint256 maxSupply_,
uint16 maxTransactionBps_,
uint16 maxWalletBps_,
address payable platformFeeReceiver_,
uint256 requiredPlatformFee_
) payable ERC20(name_, symbol_) {
require(recipient_ != address(0), "Invalid recipient");
require(decimals_ >= 6 && decimals_ <= 18, "Invalid decimals");
require(taxReceiver_ != address(0), "Invalid tax receiver");
require(taxPayoutMode_ <= 2, "Invalid tax payout mode");
require(burnTax_ || taxPayoutMode_ == 2 || taxRouter_ != address(0), "Tax router required");
require(supply_ > 0, "Supply is zero");
_validateTaxes(buyTaxBps_, sellTaxBps_, transferTaxBps_);
require(msg.value == requiredPlatformFee_, "Incorrect platform fee");
_configuredDecimals = decimals_;
buyTaxBps = buyTaxBps_;
sellTaxBps = sellTaxBps_;
transferTaxBps = transferTaxBps_;
taxReceiver = taxReceiver_;
taxPayoutMode = burnTax_ ? 2 : taxPayoutMode_;
burnTax = burnTax_;
taxRouter = ICookDEXTaxRouter(taxRouter_);
creatorName = creatorName_;
creatorWebsite = creatorWebsite_;
creatorContact = creatorContact_;
createdBy = whiteLabel_ ? "" : "CookDEX";
tokenTemplate = whiteLabel_ ? "" : "CookDEX Premium Token";
deploymentGroup = deploymentGroup_;
originChainId = originChainId_;
featureFlags = featureFlags_;
maxSupply = maxSupply_ == 0 ? 0 : maxSupply_ * 10 ** decimals();
_setTradingLimits(maxTransactionBps_, maxWalletBps_);
isExcludedFromFees[recipient_] = true;
isExcludedFromFees[taxReceiver_] = true;
isExcludedFromFees[address(this)] = true;
if (taxRouter_ != address(0)) _approve(address(this), taxRouter_, type(uint256).max);
_mint(recipient_, supply_ * 10 ** decimals());
_transferOwnership(recipient_);
if (requiredPlatformFee_ > 0) {
(bool paid, ) = platformFeeReceiver_.call{value: requiredPlatformFee_}("");
require(paid, "Platform fee failed");
}
}
receive() external payable {}
function decimals() public view override returns(uint8){return _configuredDecimals;}
function featureEnabled(uint256 feature_) public view returns (bool) { return featureFlags & feature_ != 0; }
function burn(uint256 amount_) external { require(featureEnabled(FEATURE_BURNABLE), "Burn disabled"); _burn(msg.sender, amount_); }
function mint(address recipient_, uint256 amount_) external onlyOwner {
require(featureEnabled(FEATURE_MINTABLE), "Mint disabled");
require(recipient_ != address(0), "Invalid recipient");
require(maxSupply == 0 || totalSupply() + amount_ <= maxSupply, "Maximum supply exceeded");
_mint(recipient_, amount_);
}
function setPaused(bool paused_) external onlyOwner { require(featureEnabled(FEATURE_PAUSABLE), "Pause disabled"); transfersPaused = paused_; emit TransfersPausedUpdated(paused_); }
function setTradingLimits(uint16 maxTransactionBps_, uint16 maxWalletBps_) external onlyOwner { require(featureEnabled(FEATURE_ANTI_WHALE), "Anti-whale disabled"); _setTradingLimits(maxTransactionBps_, maxWalletBps_); }
function setBlacklisted(address account_, bool blacklisted_) external onlyOwner { require(featureEnabled(FEATURE_BLACKLIST), "Blacklist disabled"); require(account_ != address(0) && account_ != owner() && account_ != address(this), "Protected account"); blacklisted[account_] = blacklisted_; emit BlacklistUpdated(account_, blacklisted_); }
function setTaxes(uint16 buyTaxBps_, uint16 sellTaxBps_, uint16 transferTaxBps_) external onlyOwner {
_validateTaxes(buyTaxBps_, sellTaxBps_, transferTaxBps_);
buyTaxBps = buyTaxBps_;
sellTaxBps = sellTaxBps_;
transferTaxBps = transferTaxBps_;
emit TaxesUpdated(buyTaxBps_, sellTaxBps_, transferTaxBps_);
}
function setTaxReceiver(address receiver_) external onlyOwner {
require(receiver_ != address(0), "Invalid tax receiver");
taxReceiver = receiver_;
emit TaxReceiverUpdated(receiver_);
}
function setTaxPayout(uint8 mode_, bool burnTax_, address router_) external onlyOwner {
require(mode_ <= 2, "Invalid tax payout mode");
require(burnTax_ || mode_ == 2 || router_ != address(0), "Tax router required");
taxPayoutMode = burnTax_ ? 2 : mode_;
burnTax = burnTax_;
taxRouter = ICookDEXTaxRouter(router_);
if (router_ != address(0)) _approve(address(this), router_, type(uint256).max);
}
function setExcludedFromFees(address account_, bool excluded_) external onlyOwner {
isExcludedFromFees[account_] = excluded_;
emit FeeExclusionUpdated(account_, excluded_);
}
function setAutomatedMarketMakerPair(address pair_, bool enabled_) external onlyOwner {
require(pair_ != address(0), "Invalid pair");
automatedMarketMakerPairs[pair_] = enabled_;
emit AutomatedMarketMakerPairUpdated(pair_, enabled_);
}
function updateCreatorInformation(string calldata name_, string calldata website_, string calldata contact_) external onlyOwner {
creatorName = name_;
creatorWebsite = website_;
creatorContact = contact_;
emit CreatorInformationUpdated(name_, website_, contact_);
}
function _transfer(address from, address to, uint256 amount) internal override {
require(!transfersPaused || isExcludedFromFees[from] || isExcludedFromFees[to], "Transfers paused");
if (featureEnabled(FEATURE_BLACKLIST)) require(!blacklisted[from] && !blacklisted[to], "Blacklisted address");
if (amount == 0 || isExcludedFromFees[from] || isExcludedFromFees[to]) {
super._transfer(from, to, amount);
return;
}
if (featureEnabled(FEATURE_ANTI_WHALE)) {
require(amount <= totalSupply() * maxTransactionBps / 10_000, "Transaction limit exceeded");
if (!automatedMarketMakerPairs[to]) require(balanceOf(to) + amount <= totalSupply() * maxWalletBps / 10_000, "Wallet limit exceeded");
}
if (featureEnabled(FEATURE_ANTI_BOT) && (automatedMarketMakerPairs[from] || automatedMarketMakerPairs[to])) {
address trader = automatedMarketMakerPairs[from] ? to : from;
require(lastTradeBlock[trader] < block.number, "One trade per block");
lastTradeBlock[trader] = block.number;
}
if (!swappingTax && automatedMarketMakerPairs[to] && !burnTax && taxPayoutMode != 2 && balanceOf(address(this)) > 0) _payoutTax();
uint16 taxBps = automatedMarketMakerPairs[from]
? buyTaxBps
: automatedMarketMakerPairs[to] ? sellTaxBps : transferTaxBps;
uint256 fee = amount * taxBps / 10_000;
if (fee > 0) {
if (burnTax) _burn(from, fee);
else if (taxPayoutMode == 2) super._transfer(from, taxReceiver, fee);
else super._transfer(from, address(this), fee);
}
super._transfer(from, to, amount - fee);
}
function _payoutTax() private {
uint256 collected = balanceOf(address(this));
uint256 swapAmount = taxPayoutMode == 0 ? collected / 2 : collected;
uint256 tokenAmount = collected - swapAmount;
if (tokenAmount > 0) super._transfer(address(this), taxReceiver, tokenAmount);
if (swapAmount == 0 || address(taxRouter) == address(0)) return;
address[] memory path = new address[](2); path[0] = address(this); path[1] = taxRouter.WETH();
swappingTax = true;
try taxRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(swapAmount, 0, path, taxReceiver, block.timestamp) {} catch { super._transfer(address(this), taxReceiver, swapAmount); }
swappingTax = false;
}
function _validateTaxes(uint16 buyTaxBps_, uint16 sellTaxBps_, uint16 transferTaxBps_) private pure {
require(buyTaxBps_ <= MAX_TOTAL_TAX_BPS, "Buy tax too high");
require(sellTaxBps_ <= MAX_TOTAL_TAX_BPS, "Sell tax too high");
require(transferTaxBps_ <= MAX_TOTAL_TAX_BPS, "Transfer tax too high");
}
function _setTradingLimits(uint16 maxTransactionBps_, uint16 maxWalletBps_) private {
if (featureEnabled(FEATURE_ANTI_WHALE)) {
require(maxTransactionBps_ >= 10 && maxTransactionBps_ <= 10_000, "Invalid transaction limit");
require(maxWalletBps_ >= maxTransactionBps_ && maxWalletBps_ <= 10_000, "Invalid wallet limit");
}
maxTransactionBps = maxTransactionBps_;
maxWalletBps = maxWalletBps_;
emit TradingLimitsUpdated(maxTransactionBps_, maxWalletBps_);
}
}
Contract ABI
[
{
"inputs": [
{
"internalType": "string",
"name": "name_",
"type": "string"
},
{
"internalType": "string",
"name": "symbol_",
"type": "string"
},
{
"internalType": "uint8",
"name": "decimals_",
"type": "uint8"
},
{
"internalType": "uint256",
"name": "supply_",
"type": "uint256"
},
{
"internalType": "address",
"name": "recipient_",
"type": "address"
},
{
"internalType": "address",
"name": "taxReceiver_",
"type": "address"
},
{
"internalType": "uint16",
"name": "buyTaxBps_",
"type": "uint16"
},
{
"internalType": "uint16",
"name": "sellTaxBps_",
"type": "uint16"
},
{
"internalType": "uint16",
"name": "transferTaxBps_",
"type": "uint16"
},
{
"internalType": "uint8",
"name": "taxPayoutMode_",
"type": "uint8"
},
{
"internalType": "bool",
"name": "burnTax_",
"type": "bool"
},
{
"internalType": "address",
"name": "taxRouter_",
"type": "address"
},
{
"internalType": "string",
"name": "creatorName_",
"type": "string"
},
{
"internalType": "string",
"name": "creatorWebsite_",
"type": "string"
},
{
"internalType": "string",
"name": "creatorContact_",
"type": "string"
},
{
"internalType": "bool",
"name": "whiteLabel_",
"type": "bool"
},
{
"internalType": "bytes32",
"name": "deploymentGroup_",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "originChainId_",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "featureFlags_",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "maxSupply_",
"type": "uint256"
},
{
"internalType": "uint16",
"name": "maxTransactionBps_",
"type": "uint16"
},
{
"internalType": "uint16",
"name": "maxWalletBps_",
"type": "uint16"
},
{
"internalType": "address payable",
"name": "platformFeeReceiver_",
"type": "address"
},
{
"internalType": "uint256",
"name": "requiredPlatformFee_",
"type": "uint256"
}
],
"stateMutability": "payable",
"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": "pair",
"type": "address"
},
{
"indexed": false,
"internalType": "bool",
"name": "enabled",
"type": "bool"
}
],
"name": "AutomatedMarketMakerPairUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "account",
"type": "address"
},
{
"indexed": false,
"internalType": "bool",
"name": "blacklisted",
"type": "bool"
}
],
"name": "BlacklistUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "string",
"name": "name",
"type": "string"
},
{
"indexed": false,
"internalType": "string",
"name": "website",
"type": "string"
},
{
"indexed": false,
"internalType": "string",
"name": "contact",
"type": "string"
}
],
"name": "CreatorInformationUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "account",
"type": "address"
},
{
"indexed": false,
"internalType": "bool",
"name": "excluded",
"type": "bool"
}
],
"name": "FeeExclusionUpdated",
"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": "receiver",
"type": "address"
}
],
"name": "TaxReceiverUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint16",
"name": "buyTaxBps",
"type": "uint16"
},
{
"indexed": false,
"internalType": "uint16",
"name": "sellTaxBps",
"type": "uint16"
},
{
"indexed": false,
"internalType": "uint16",
"name": "transferTaxBps",
"type": "uint16"
}
],
"name": "TaxesUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint16",
"name": "maxTransactionBps",
"type": "uint16"
},
{
"indexed": false,
"internalType": "uint16",
"name": "maxWalletBps",
"type": "uint16"
}
],
"name": "TradingLimitsUpdated",
"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": "bool",
"name": "paused",
"type": "bool"
}
],
"name": "TransfersPausedUpdated",
"type": "event"
},
{
"inputs": [],
"name": "FEATURE_ANTI_BOT",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "FEATURE_ANTI_WHALE",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "FEATURE_BLACKLIST",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "FEATURE_BURNABLE",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "FEATURE_MINTABLE",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "FEATURE_PAUSABLE",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MAX_TOTAL_TAX_BPS",
"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": "amount",
"type": "uint256"
}
],
"name": "approve",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "automatedMarketMakerPairs",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"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": "blacklisted",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "bridgeProvider",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "amount_",
"type": "uint256"
}
],
"name": "burn",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "burnTax",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "buyTaxBps",
"outputs": [
{
"internalType": "uint16",
"name": "",
"type": "uint16"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "createdBy",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "creatorContact",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "creatorName",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "creatorWebsite",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "decimals",
"outputs": [
{
"internalType": "uint8",
"name": "",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "spender",
"type": "address"
},
{
"internalType": "uint256",
"name": "subtractedValue",
"type": "uint256"
}
],
"name": "decreaseAllowance",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "deploymentGroup",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "feature_",
"type": "uint256"
}
],
"name": "featureEnabled",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "featureFlags",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"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": "isExcludedFromFees",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "lastTradeBlock",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "maxSupply",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "maxTransactionBps",
"outputs": [
{
"internalType": "uint16",
"name": "",
"type": "uint16"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "maxWalletBps",
"outputs": [
{
"internalType": "uint16",
"name": "",
"type": "uint16"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "recipient_",
"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": "originChainId",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"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": [],
"name": "sellTaxBps",
"outputs": [
{
"internalType": "uint16",
"name": "",
"type": "uint16"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "pair_",
"type": "address"
},
{
"internalType": "bool",
"name": "enabled_",
"type": "bool"
}
],
"name": "setAutomatedMarketMakerPair",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "account_",
"type": "address"
},
{
"internalType": "bool",
"name": "blacklisted_",
"type": "bool"
}
],
"name": "setBlacklisted",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "account_",
"type": "address"
},
{
"internalType": "bool",
"name": "excluded_",
"type": "bool"
}
],
"name": "setExcludedFromFees",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bool",
"name": "paused_",
"type": "bool"
}
],
"name": "setPaused",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "mode_",
"type": "uint8"
},
{
"internalType": "bool",
"name": "burnTax_",
"type": "bool"
},
{
"internalType": "address",
"name": "router_",
"type": "address"
}
],
"name": "setTaxPayout",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "receiver_",
"type": "address"
}
],
"name": "setTaxReceiver",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint16",
"name": "buyTaxBps_",
"type": "uint16"
},
{
"internalType": "uint16",
"name": "sellTaxBps_",
"type": "uint16"
},
{
"internalType": "uint16",
"name": "transferTaxBps_",
"type": "uint16"
}
],
"name": "setTaxes",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint16",
"name": "maxTransactionBps_",
"type": "uint16"
},
{
"internalType": "uint16",
"name": "maxWalletBps_",
"type": "uint16"
}
],
"name": "setTradingLimits",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "symbol",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "taxPayoutMode",
"outputs": [
{
"internalType": "uint8",
"name": "",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "taxReceiver",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "taxRouter",
"outputs": [
{
"internalType": "contract ICookDEXTaxRouter",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "tokenTemplate",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "totalSupply",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "transfer",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "from",
"type": "address"
},
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "transferFrom",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "transferTaxBps",
"outputs": [
{
"internalType": "uint16",
"name": "",
"type": "uint16"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "transfersPaused",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "name_",
"type": "string"
},
{
"internalType": "string",
"name": "website_",
"type": "string"
},
{
"internalType": "string",
"name": "contact_",
"type": "string"
}
],
"name": "updateCreatorInformation",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"stateMutability": "payable",
"type": "receive"
}
]Raw Contract Data · JSON
{
"id": "0xc057c855abbdc721ebfca25912254c708c351df9",
"contract": "0xc057c855abbdc721ebfca25912254c708c351df9",
"name": "EVM Contract",
"type": "contract",
"bytecode": "0x608060409080825260049182361015610023575b505050361561002157600080fd5b005b600091823560e01c90816306fdde0314611ee7575080630814d3dd14611e3f578063095ea7b314611e165780630ac7f56114611df85780630ae5a89214611dd45780630c03434b14611db657806312f16a0714611d9157806316c38b3c14611ce357806318160ddd14611cc55780631a08a9c814611ca95780631d4eaead14611c835780631f6f90bd14611bdb57806323b872dd14611b12578063290a83891461165057806330e66cd214611632578063313ce567146115f557806332cde6641461148657806339509351146114375780633a5673a41461138f57806340c10f191461122b57806342966c68146111ca5780634563f30a146111a65780634ae8070614610f5b5780634fbee19314610f1e57806350a2421014610f03578063590ffdce14610e8e57806359e2e18014610e735780635ab0fe6a14610e5857806370a0823114610e22578063715018a614610dc557806372d53e9014610dab57806374db9d1114610d745780637ae7c93514610bea5780638a6dba8814610b425780638da5cb5b14610b1a57806395d89b4114610a4457806398c2c72014610a1f5780639a7a23d61461096c578063a457c2d7146108c7578063a9059cbb14610897578063ac3d3488146107b4578063b62496f514610777578063c473413a14610755578063c4e4839814610732578063c6674b6914610710578063cd8de42c14610649578063cffd129c14610624578063d01dd6d2146104f6578063d5abeb01146104d8578063d84db381146104bb578063dbac26e91461047e578063dd62ed3e14610436578063e6ef73d61461040a578063f20cd5d0146103ef578063f2fde38b1461031f578063f5d6d8a4146102f75763ffcd68910361001357346102f357816003193601126102f3578051916020830183811067ffffffffffffffff8211176102e0576102dc9450825282525191829182611f8c565b0390f35b634e487b7160e01b825260418552602482fd5b5080fd5b50346102f357816003193601126102f35760085490516001600160a01b039091168152602090f35b5082346103eb5760203660031901126103eb5761033a612047565b9061034361221d565b6001600160a01b03918216928315610399575050600554826bffffffffffffffffffffffff60a01b821617600555167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b906020608492519162461bcd60e51b8352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152fd5b8280fd5b50346102f357816003193601126102f3576020905160018152f35b50346102f357816003193601126102f357600754905160309190911c6001600160a01b03168152602090f35b50346102f357806003193601126102f35780602092610453612047565b61045b612062565b6001600160a01b0391821683526001865283832091168252845220549051908152f35b50346102f35760203660031901126102f35760209160ff9082906001600160a01b036104a8612047565b1681526014855220541690519015158152f35b508290346103eb57826003193601126103eb576020925051908152f35b50346102f357816003193601126102f3576020906010549051908152f35b5082346103eb57816003193601126103eb57610510612047565b91610519612078565b9161052261221d565b6020600f5416156105ed576001600160a01b039384169384151590816105de575b50806105d4575b1561059e57507f6a12b3df6cba4203bd7fd06b816789f87de8c594299aed5717ae070fac781bac9160209184865260148352610594828288209060ff801983541691151516179055565b519015158152a280f35b6020606492519162461bcd60e51b83528201526011602482015270141c9bdd1958dd1959081858d8dbdd5b9d607a1b6044820152fd5b503084141561054a565b90506005541684141586610543565b6020606492519162461bcd60e51b83528201526012602482015271109b1858dadb1a5cdd08191a5cd8589b195960721b6044820152fd5b50346102f357816003193601126102f35760209061ffff60075460101c169051908152f35b5082346103eb5760203660031901126103eb57610664612047565b9061066d61221d565b6001600160a01b0382169283156106d6575050600780546601000000000000600160d01b03191660309290921b6601000000000000600160d01b03169190911790557f93f0a3a4f2fc8865a3fb4dc877b0fca20a526f77982a942687cc22533e3e483c8280a280f35b906020606492519162461bcd60e51b8352820152601460248201527324b73b30b634b2103a30bc103932b1b2b4bb32b960611b6044820152fd5b50346102f357816003193601126102f35760209061ffff601154169051908152f35b50346102f357816003193601126102f3576007549051602091821c61ffff168152f35b50346102f357816003193601126102f35760209061ffff600754169051908152f35b50346102f35760203660031901126102f35760209160ff9082906001600160a01b036107a1612047565b1681526012855220541690519015158152f35b50903461089457806003193601126108945781519080600a54906107d782611fd5565b80855291602091600191828116908115610867575060011461080f575b6102dc86886108058289038361200f565b5191829182611f8c565b9350600a84527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a85b83851061085457505050508101602001610805826102dc866107f4565b8054868601840152938201938101610837565b90506102dc9795508693506020925061080594915060ff191682840152151560051b8201019294866107f4565b80fd5b50346102f357806003193601126102f3576020906108c06108b6612047565b6024359033612295565b5160018152f35b509190346108945782600319360112610894576108e2612047565b918360243592338152600160205281812060018060a01b038616825260205220549082821061091b576020856108c0858503873361211b565b608490602086519162461bcd60e51b8352820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152fd5b508290346103eb57806003193601126103eb57610987612047565b90610990612078565b9161099961221d565b6001600160a01b03169283156109ee57507fef0b71f3a695ce5a89064cc2745d0c503cf766ed985e781607660be6010b8e909160209184865260128352610594828288209060ff801983541691151516179055565b6020606492519162461bcd60e51b8352820152600c60248201526b24b73b30b634b2103830b4b960a11b6044820152fd5b5082346103eb5760203660031901126103eb576020925035600f541615159051908152f35b5091346102f357816003193601126102f35782519180918054610a6681611fd5565b80865292602092600192808416908115610aeb5750600114610a94575b6102dc8789610805828a038361200f565b815293507f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b5b838510610ad857505050508101602001610805826102dc3880610a83565b8054868601840152938201938101610aba565b9150506102dc9795508693506020925061080594915060ff191682840152151560051b82010192943880610a83565b50346102f357816003193601126102f35760055490516001600160a01b039091168152602090f35b50903461089457806003193601126108945781519080600b5490610b6582611fd5565b808552916020916001918281169081156108675750600114610b92576102dc86886108058289038361200f565b9350600b84527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db95b838510610bd757505050508101602001610805826102dc866107f4565b8054868601840152938201938101610bba565b50346102f357806003193601126102f357610c036120b5565b92610c0c6120c6565b90610c1561221d565b6008600f54161580610d3b5715610c7c575b507ffc7089fb49a7fe7c02b3ebe22fa1f8e23952812d19e8bf1384dff37c5072847d929361ffff809116916011548363ffff00008360101b169163ffffffff191617176011558351928352166020820152a180f35b61ffff80861690600a82101580610d2f575b15610cec578316908110159081610cdf575b50610c2757606490602084519162461bcd60e51b83528201526014602482015273125b9d985b1a59081dd85b1b195d081b1a5b5a5d60621b6044820152fd5b6127109150111538610ca0565b845162461bcd60e51b8152602081850152601960248201527f496e76616c6964207472616e73616374696f6e206c696d6974000000000000006044820152606490fd5b50612710821115610c8e565b835162461bcd60e51b81526020818401526013602482015272105b9d1a4b5dda185b1948191a5cd8589b1959606a1b6044820152606490fd5b50346102f35760203660031901126102f35760209181906001600160a01b03610d9b612047565b1681526015845220549051908152f35b50346102f357816003193601126102f35760209051818152f35b8234610894578060031936011261089457610dde61221d565b600580546001600160a01b0319811690915581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b50346102f35760203660031901126102f35760209181906001600160a01b03610e49612047565b16815280845220549051908152f35b50346102f357816003193601126102f3576020905160108152f35b50346102f357816003193601126102f3576020905160028152f35b50346102f357806003193601126102f3577f567d369e9bbbf0ca3aabb9976ba5d311e9e83e4c63bbab2a4771335bb167f86f6020610eca612047565b610ed2612078565b90610edb61221d565b6001600160a01b031680865260138352848620805460ff191660ff8415151617905593610594565b50346102f357816003193601126102f3576020905160088152f35b50346102f35760203660031901126102f35760209160ff9082906001600160a01b03610f48612047565b1681526013855220541690519015158152f35b508290346103eb5760603660031901126103eb5781359160ff83168084036111a257610f85612078565b6044356001600160a01b03811695919086900361119e57610fa461221d565b6002831161115b578081159384611150575b508015611147575b1561110e571561110857506002905b6007805461ffff60d01b191660d09390931b60ff60d01b1692909217901560d81b60ff60d81b16179055600880546001600160a01b0319168417905582158015611015578480f35b30156110b95761106c57503083526001602052808320828452602052600019908181852055519081527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560203092a3818080808480f35b6020608492519162461bcd60e51b8352820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152fd5b506020608492519162461bcd60e51b83528201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152fd5b90610fcd565b845162461bcd60e51b8152602081860152601360248201527215185e081c9bdd5d195c881c995c5d5a5c9959606a1b6044820152606490fd5b50851515610fbe565b600291501488610fb6565b845162461bcd60e51b8152602081860152601760248201527f496e76616c696420746178207061796f7574206d6f64650000000000000000006044820152606490fd5b8680fd5b8480fd5b50346102f357816003193601126102f3576011549051602091821c60ff1615158152f35b508290346103eb5760203660031901126103eb576001600f5416156111f857506111f590353361277a565b80f35b906020606492519162461bcd60e51b8352820152600d60248201526c109d5c9b88191a5cd8589b1959609a1b6044820152fd5b508290346103eb57806003193601126103eb57611246612047565b906024359161125361221d565b6002600f54161561135c576001600160a01b0316928315611326576010548015908115611310575b50156112ce57506020827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef926112b487956002546120f8565b60025585855284835280852082815401905551908152a380f35b6020606492519162461bcd60e51b8352820152601760248201527f4d6178696d756d20737570706c792065786365656465640000000000000000006044820152fd5b905061131e846002546120f8565b11158661127b565b6020606492519162461bcd60e51b83528201526011602482015270125b9d985b1a59081c9958da5c1a595b9d607a1b6044820152fd5b815162461bcd60e51b8152602081860152600d60248201526c135a5b9d08191a5cd8589b1959609a1b6044820152606490fd5b50903461089457806003193601126108945781519080600c54906113b282611fd5565b8085529160209160019182811690811561086757506001146113df576102dc86886108058289038361200f565b9350600c84527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c75b83851061142457505050508101602001610805826102dc866107f4565b8054868601840152938201938101611407565b50346102f357806003193601126102f3576108c060209261147f611459612047565b338352600186528483206001600160a01b038216845286529184902054602435906120f8565b903361211b565b508290346103eb5760603660031901126103eb576114a26120b5565b906114ab6120c6565b60443561ffff91828216948583036115f15783906114c761221d565b16956103e8938488116115bb578216938085116115845786116115495750918593916060959363ffff00007fb6d7a9e1cf68fd02461e40d3c33cf2c4551d4a5f101ccbb620cd29488ff528609865ffff000000006007549460201b169365ffffffffffff1916179160101b16171760075581519384526020840152820152a180f35b606490602086519162461bcd60e51b835282015260156024820152740a8e4c2dce6cccae440e8c2f040e8dede40d0d2ced605b1b6044820152fd5b855162461bcd60e51b815260208184015260116024820152700a6cad8d840e8c2f040e8dede40d0d2ced607b1b6044820152606490fd5b855162461bcd60e51b8152602081840152601060248201526f084eaf240e8c2f040e8dede40d0d2ced60831b6044820152606490fd5b8780fd5b50346102f357816003193601126102f3576020905160ff7f0000000000000000000000000000000000000000000000000000000000000012168152f35b50346102f357816003193601126102f357602090600f549051908152f35b50346102f35760603660031901126102f35767ffffffffffffffff908335828111611b0e576116829036908601612087565b919092602435818111611b0a5761169c9036908801612087565b6044358381116115f1576116b39036908a01612087565b9390986116be61221d565b818711611909576116d0600954611fd5565b91601f92838111611aaa575b50878a848211600114611a27578b91611a1c575b508860011b906000198a60031b1c1916176009555b808411611a0957611717600a54611fd5565b8381116119a9575b50838a848211600114611927578b9161191c575b508460011b906000198660031b1c191617600a555b8511611909575061175a600b54611fd5565b8181116118a9575b50879084116001146117fb5783928899926117ea96956117dd937f7844c838d5df8d4c0e4624a9d5f0d1bfdcd864ca37293b9e9a7c28ab23b042969b916117f0575b508560011b906000198760031b1c191617600b555b6117cf8651998a9960608b5260608b01916120d7565b9188830360208a01526120d7565b92858403908601526120d7565b0390a180f35b9050840135386117a4565b600b88527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db990601f198516895b8181106118915750926117dd928695926117ea98977f7844c838d5df8d4c0e4624a9d5f0d1bfdcd864ca37293b9e9a7c28ab23b042969c9d9610611877575b5050600185811b01600b556117b9565b850135600019600388901b60f8161c191690553880611867565b9192602060018192868f013581550194019201611828565b600b89527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db98280870160051c82019260208810611900575b0160051c01905b8181106118f55750611762565b8981556001016118e8565b925081926118e1565b634e487b7160e01b895260419052602488fd5b905085013538611733565b600a8c527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a8915085601f1981168d5b81811061198e575010611974575b5050600184811b01600a55611748565b860135600019600387901b60f8161c191690553880611964565b89840135855560019094019360209384019389935001611956565b600a8b527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a88480870160051c82019260208810611a00575b0160051c01905b8181106119f5575061171f565b8b81556001016119e8565b925081926119e1565b634e487b7160e01b8a526041825260248afd5b9050890135386116f0565b60098c527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af915089601f1981168d5b8d828210611a9057505010611a76575b5050600188811b01600955611705565b8a013560001960038b901b60f8161c191690553880611a66565b84013585556001909401936020938401938d935001611a56565b60098b527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af84808b0160051c82019260208c10611b01575b0160051c01905b818110611af657506116dc565b8b8155600101611ae9565b92508192611ae2565b8580fd5b8380fd5b5091346102f35760603660031901126102f357611b2d612047565b611b35612062565b91846044359460018060a01b038416815260016020528181203382526020522054906000198203611b6f575b6020866108c0878787612295565b848210611b985750918391611b8d602096956108c09503338361211b565b919394819350611b61565b606490602087519162461bcd60e51b8352820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152fd5b5090346108945780600319360112610894578151908060095490611bfe82611fd5565b808552916020916001918281169081156108675750600114611c2b576102dc86886108058289038361200f565b9350600984527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af5b838510611c7057505050508101602001610805826102dc866107f4565b8054868601840152938201938101611c53565b50346102f357816003193601126102f35760209060ff60075460d81c1690519015158152f35b50346102f357816003193601126102f357602090516103e88152f35b50346102f357816003193601126102f3576020906002549051908152f35b508290346103eb5760203660031901126103eb57813591821515809303611b0e57611d0c61221d565b80600f541615611d5e57507f59d0a893539c8c294888005dd18d82641dbe4bd222e85ae4570ce7cba6fa51469160209160115464ff0000000083851b169064ff0000000019161760115551908152a180f35b6020606492519162461bcd60e51b8352820152600e60248201526d14185d5cd948191a5cd8589b195960921b6044820152fd5b50346102f357816003193601126102f35760209061ffff60115460101c169051908152f35b50346102f357816003193601126102f357602090600d549051908152f35b50346102f357816003193601126102f35760209060ff60075460d01c169051908152f35b50346102f357816003193601126102f357602090600e549051908152f35b50346102f357806003193601126102f3576020906108c0611e35612047565b602435903361211b565b5090346108945780600319360112610894578151908060065490611e6282611fd5565b808552916020916001918281169081156108675750600114611e8f576102dc86886108058289038361200f565b9350600684527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f5b838510611ed457505050508101602001610805826102dc866107f4565b8054868601840152938201938101611eb7565b9050823461089457806003193601126108945760035481611f0782611fd5565b808552916020916001918281169081156108675750600114611f34576102dc86886108058289038361200f565b9350600384527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b838510611f7957505050508101602001610805826102dc866107f4565b8054868601840152938201938101611f5c565b6020808252825181830181905290939260005b828110611fc157505060409293506000838284010152601f8019910116010190565b818101860151848201604001528501611f9f565b90600182811c92168015612005575b6020831014611fef57565b634e487b7160e01b600052602260045260246000fd5b91607f1691611fe4565b90601f8019910116810190811067ffffffffffffffff82111761203157604052565b634e487b7160e01b600052604160045260246000fd5b600435906001600160a01b038216820361205d57565b600080fd5b602435906001600160a01b038216820361205d57565b60243590811515820361205d57565b9181601f8401121561205d5782359167ffffffffffffffff831161205d576020838186019501011161205d57565b6004359061ffff8216820361205d57565b6024359061ffff8216820361205d57565b908060209392818452848401376000828201840152601f01601f1916010190565b9190820180921161210557565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b039081169182156121cc571691821561217c5760207f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925918360005260018252604060002085600052825280604060002055604051908152a3565b60405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608490fd5b60405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608490fd5b6005546001600160a01b0316330361223157565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b8181029291811591840414171561210557565b9190820391821161210557565b9092919260ff6011549481602096871c1615801561275a575b801561273a575b156127025785600f5416612689575b80158015612669575b8015612649575b61263b57600f546008811661253c575b6010161515806124fd575b612471575b906123709161237695968260085460a01c161580612451575b80612442575b80612430575b8061241a575b61240d575b6001600160a01b0386811660009081526012835260408120549192918516156123cf57505061271061235f61ffff80600754165b1684612275565b04809381612378575b505050612288565b91612881565b565b60075490808260d81c1660001461239e57505061239691508661277a565b388281612368565b60029160d01c16146000146123c3576123be9160075460301c1687612881565b612396565b6123be91503087612881565b868316815260409020548416156123f7575061271061235f61ffff8060075460101c16612358565b61235f61ffff8061271093600754901c16612358565b6124156129ef565b612324565b503060005260008152604060002054151561231f565b5060028360075460d01c161415612319565b508260075460d81c1615612313565b506001600160a01b0385166000908152601282526040902054831661230d565b6001600160a01b0384811660009081526012885260408120549091908416156124f757845b168082526015885260408220544311156124bc57815260158752604090204390556122f4565b60405162461bcd60e51b81526004810189905260136024820152724f6e652074726164652070657220626c6f636b60681b6044820152606490fd5b85612496565b506001600160a01b0384811660009081526012885260409020548316908115612527575b506122ef565b90508316600052816040600020541638612521565b600254601154906127109061ffff8261255782861684612275565b0486116125f6576001600160a01b038816600090815260128c526040902054871615612587575b505050506122e4565b906125aa9160008c5261259f876040600020546120f8565b9460101c1690612275565b04106125b9573880808061257e565b60405162461bcd60e51b815260048101889052601560248201527415d85b1b195d081b1a5b5a5d08195e18d959591959605a1b6044820152606490fd5b60405162461bcd60e51b8152600481018c9052601a60248201527f5472616e73616374696f6e206c696d69742065786365656465640000000000006044820152606490fd5b929050612376939450612881565b506001600160a01b038316600090815260138752604090205482166122d4565b506001600160a01b038416600090815260138752604090205482166122cd565b6001600160a01b03848116600090815260148852604090205483161590816126ec575b506122c45760405162461bcd60e51b8152600481018790526013602482015272426c61636b6c6973746564206164647265737360681b6044820152606490fd5b90508316600052816040600020541615386126ac565b60405162461bcd60e51b815260048101879052601060248201526f151c985b9cd9995c9cc81c185d5cd95960821b6044820152606490fd5b506001600160a01b038316600090815260138752604090205482166122b5565b506001600160a01b038416600090815260138752604090205482166122ae565b6001600160a01b03168015612832576000918183528260205260408320548181106127e257817fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef926020928587528684520360408620558060025403600255604051908152a3565b60405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608490fd5b60405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608490fd5b6001600160a01b0390811691821561299c571691821561294b576000828152806020526040812054918083106128f757604082827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef958760209652828652038282205586815220818154019055604051908152a3565b60405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608490fd5b60405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608490fd5b60405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608490fd5b60003081526020908082526040808220549060075460ff8160d01c1615600014612c5c57612a218360011c8094612288565b80612c3f575b505081158015612c2c575b612c265780519367ffffffffffffffff916060860183811187821017612c12578152600286528186019481368737865115612bfe5730865260085482516315ab88c960e31b815290976001600160a01b0397888a16929091908681600481875afa908115612bf4578591612bbe575b5081519060019160011015612baa578a168287015260ff60a01b199a8b16600160a01b1760085560075491843b15611b0a5792908594928a988c9289519a8b9763791ac94760e01b895260a489019160048a01528960248a015260a060448a01525180915260c488019592895b828110612b8c57505050505084928692849260301c16606483015242608483015203925af19384612b67575b5050505015600014612b6057612b579160075460301c1630612881565b60085416600855565b5050612b57565b8311612b7857505238808080612b3a565b634e487b7160e01b81526041600452602490fd5b845190961687528a99508c9850958601958f95938101938301612b0e565b634e487b7160e01b86526032600452602486fd5b90508681813d8311612bed575b612bd5818361200f565b810103126111a2575189811681036111a25738612aa1565b503d612bcb565b86513d87823e3d90fd5b634e487b7160e01b81526032600452602490fd5b634e487b7160e01b86526041600452602486fd5b50505050565b506008546001600160a01b031615612a32565b612c559160301c6001600160a01b031630612881565b3880612a27565b612a21838061228856fea264697066735822122011ac4632eff365883c5c8e8f2b8ec977295e55eac73d620892cae8a4abac7bb164736f6c63430008180033",
"is_contract": true,
"verified": true,
"verification": {
"address": "0xc057c855abbdc721ebfca25912254c708c351df9",
"compiler": "0.8.24+commit.e11b9ed9.Emscripten.clang",
"contract": "contracts/tokens/CookDEXPremiumToken.sol:CookDEXPremiumToken",
"verified": true,
"match": "runtime-with-metadata",
"creation_verified": true,
"factory_deployment": {
"factory": "0x370b9Df6F6c432D38273d3c5dacA9f6f93dfC00c",
"transaction_hash": "0xdb569541583a94fe2df5962619eb8fde23f8dcf42f370dea015eab4b007c2ec0",
"block_hash": "0xfbfdb1a9926c7faae4276477702dd7112cc34e755ef168cdf12e00c3b0f47f13",
"block_number": 5248,
"method": "deploy",
"scheme": "CREATE3"
},
"constructor_arguments": "000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000003400000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000003b9aca00000000000000000000000000df6e7e94ed8c6fe335c28a8ec50381e9172f7d30000000000000000000000000df6e7e94ed8c6fe335c28a8ec50381e9172f7d30000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000005264f98afc705042ca049fa4a83578cde9b4e3da000000000000000000000000000000000000000000000000000000000000038000000000000000000000000000000000000000000000000000000000000003a000000000000000000000000000000000000000000000000000000000000003c0000000000000000000000000000000000000000000000000000000000000000164a5bbdb964407952b0b9daf2af348e391576d9592ddfe8dc74dbd5a1aa8a1c100000000000000000000000000000000000000000000000000000000013528890000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000003b9aca0000000000000000000000000000000000000000000000000000000000000027100000000000000000000000000000000000000000000000000000000000002710000000000000000000000000df6e7e94ed8c6fe335c28a8ec50381e9172f7d30000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000144e656761746976652053696e67756c617269747900000000000000000000000000000000000000000000000000000000000000000000000000000000000000044e45534900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"verified_at": "2026-10-03T08:41:53.827Z",
"chain_id": 20261001,
"abi": [
{
"inputs": [
{
"internalType": "string",
"name": "name_",
"type": "string"
},
{
"internalType": "string",
"name": "symbol_",
"type": "string"
},
{
"internalType": "uint8",
"name": "decimals_",
"type": "uint8"
},
{
"internalType": "uint256",
"name": "supply_",
"type": "uint256"
},
{
"internalType": "address",
"name": "recipient_",
"type": "address"
},
{
"internalType": "address",
"name": "taxReceiver_",
"type": "address"
},
{
"internalType": "uint16",
"name": "buyTaxBps_",
"type": "uint16"
},
{
"internalType": "uint16",
"name": "sellTaxBps_",
"type": "uint16"
},
{
"internalType": "uint16",
"name": "transferTaxBps_",
"type": "uint16"
},
{
"internalType": "uint8",
"name": "taxPayoutMode_",
"type": "uint8"
},
{
"internalType": "bool",
"name": "burnTax_",
"type": "bool"
},
{
"internalType": "address",
"name": "taxRouter_",
"type": "address"
},
{
"internalType": "string",
"name": "creatorName_",
"type": "string"
},
{
"internalType": "string",
"name": "creatorWebsite_",
"type": "string"
},
{
"internalType": "string",
"name": "creatorContact_",
"type": "string"
},
{
"internalType": "bool",
"name": "whiteLabel_",
"type": "bool"
},
{
"internalType": "bytes32",
"name": "deploymentGroup_",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "originChainId_",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "featureFlags_",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "maxSupply_",
"type": "uint256"
},
{
"internalType": "uint16",
"name": "maxTransactionBps_",
"type": "uint16"
},
{
"internalType": "uint16",
"name": "maxWalletBps_",
"type": "uint16"
},
{
"internalType": "address payable",
"name": "platformFeeReceiver_",
"type": "address"
},
{
"internalType": "uint256",
"name": "requiredPlatformFee_",
"type": "uint256"
}
],
"stateMutability": "payable",
"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": "pair",
"type": "address"
},
{
"indexed": false,
"internalType": "bool",
"name": "enabled",
"type": "bool"
}
],
"name": "AutomatedMarketMakerPairUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "account",
"type": "address"
},
{
"indexed": false,
"internalType": "bool",
"name": "blacklisted",
"type": "bool"
}
],
"name": "BlacklistUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "string",
"name": "name",
"type": "string"
},
{
"indexed": false,
"internalType": "string",
"name": "website",
"type": "string"
},
{
"indexed": false,
"internalType": "string",
"name": "contact",
"type": "string"
}
],
"name": "CreatorInformationUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "account",
"type": "address"
},
{
"indexed": false,
"internalType": "bool",
"name": "excluded",
"type": "bool"
}
],
"name": "FeeExclusionUpdated",
"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": "receiver",
"type": "address"
}
],
"name": "TaxReceiverUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint16",
"name": "buyTaxBps",
"type": "uint16"
},
{
"indexed": false,
"internalType": "uint16",
"name": "sellTaxBps",
"type": "uint16"
},
{
"indexed": false,
"internalType": "uint16",
"name": "transferTaxBps",
"type": "uint16"
}
],
"name": "TaxesUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint16",
"name": "maxTransactionBps",
"type": "uint16"
},
{
"indexed": false,
"internalType": "uint16",
"name": "maxWalletBps",
"type": "uint16"
}
],
"name": "TradingLimitsUpdated",
"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": "bool",
"name": "paused",
"type": "bool"
}
],
"name": "TransfersPausedUpdated",
"type": "event"
},
{
"inputs": [],
"name": "FEATURE_ANTI_BOT",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "FEATURE_ANTI_WHALE",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "FEATURE_BLACKLIST",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "FEATURE_BURNABLE",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "FEATURE_MINTABLE",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "FEATURE_PAUSABLE",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MAX_TOTAL_TAX_BPS",
"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": "amount",
"type": "uint256"
}
],
"name": "approve",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "automatedMarketMakerPairs",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"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": "blacklisted",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "bridgeProvider",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "amount_",
"type": "uint256"
}
],
"name": "burn",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "burnTax",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "buyTaxBps",
"outputs": [
{
"internalType": "uint16",
"name": "",
"type": "uint16"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "createdBy",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "creatorContact",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "creatorName",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "creatorWebsite",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "decimals",
"outputs": [
{
"internalType": "uint8",
"name": "",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "spender",
"type": "address"
},
{
"internalType": "uint256",
"name": "subtractedValue",
"type": "uint256"
}
],
"name": "decreaseAllowance",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "deploymentGroup",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "feature_",
"type": "uint256"
}
],
"name": "featureEnabled",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "featureFlags",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"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": "isExcludedFromFees",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "lastTradeBlock",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "maxSupply",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "maxTransactionBps",
"outputs": [
{
"internalType": "uint16",
"name": "",
"type": "uint16"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "maxWalletBps",
"outputs": [
{
"internalType": "uint16",
"name": "",
"type": "uint16"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "recipient_",
"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": "originChainId",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"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": [],
"name": "sellTaxBps",
"outputs": [
{
"internalType": "uint16",
"name": "",
"type": "uint16"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "pair_",
"type": "address"
},
{
"internalType": "bool",
"name": "enabled_",
"type": "bool"
}
],
"name": "setAutomatedMarketMakerPair",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "account_",
"type": "address"
},
{
"internalType": "bool",
"name": "blacklisted_",
"type": "bool"
}
],
"name": "setBlacklisted",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "account_",
"type": "address"
},
{
"internalType": "bool",
"name": "excluded_",
"type": "bool"
}
],
"name": "setExcludedFromFees",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bool",
"name": "paused_",
"type": "bool"
}
],
"name": "setPaused",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "mode_",
"type": "uint8"
},
{
"internalType": "bool",
"name": "burnTax_",
"type": "bool"
},
{
"internalType": "address",
"name": "router_",
"type": "address"
}
],
"name": "setTaxPayout",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "receiver_",
"type": "address"
}
],
"name": "setTaxReceiver",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint16",
"name": "buyTaxBps_",
"type": "uint16"
},
{
"internalType": "uint16",
"name": "sellTaxBps_",
"type": "uint16"
},
{
"internalType": "uint16",
"name": "transferTaxBps_",
"type": "uint16"
}
],
"name": "setTaxes",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint16",
"name": "maxTransactionBps_",
"type": "uint16"
},
{
"internalType": "uint16",
"name": "maxWalletBps_",
"type": "uint16"
}
],
"name": "setTradingLimits",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "symbol",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "taxPayoutMode",
"outputs": [
{
"internalType": "uint8",
"name": "",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "taxReceiver",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "taxRouter",
"outputs": [
{
"internalType": "contract ICookDEXTaxRouter",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "tokenTemplate",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "totalSupply",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "transfer",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "from",
"type": "address"
},
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "transferFrom",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "transferTaxBps",
"outputs": [
{
"internalType": "uint16",
"name": "",
"type": "uint16"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "transfersPaused",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "name_",
"type": "string"
},
{
"internalType": "string",
"name": "website_",
"type": "string"
},
{
"internalType": "string",
"name": "contact_",
"type": "string"
}
],
"name": "updateCreatorInformation",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"stateMutability": "payable",
"type": "receive"
}
],
"input": {
"language": "Solidity",
"sources": {
"@openzeppelin/contracts/access/Ownable.sol": {
"content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../utils/Context.sol\";\n\n/**\n * @dev Contract module which provides a basic access control mechanism, where\n * there is an account (an owner) that can be granted exclusive access to\n * specific functions.\n *\n * By default, the owner account will be the one that deploys the contract. This\n * can later be changed with {transferOwnership}.\n *\n * This module is used through inheritance. It will make available the modifier\n * `onlyOwner`, which can be applied to your functions to restrict their use to\n * the owner.\n */\nabstract contract Ownable is Context {\n address private _owner;\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the deployer as the initial owner.\n */\n constructor() {\n _transferOwnership(_msgSender());\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n _checkOwner();\n _;\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view virtual returns (address) {\n return _owner;\n }\n\n /**\n * @dev Throws if the sender is not the owner.\n */\n function _checkOwner() internal view virtual {\n require(owner() == _msgSender(), \"Ownable: caller is not the owner\");\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby disabling any functionality that is only available to the owner.\n */\n function renounceOwnership() public virtual onlyOwner {\n _transferOwnership(address(0));\n }\n\n /**\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\n * Can only be called by the current owner.\n */\n function transferOwnership(address newOwner) public virtual onlyOwner {\n require(newOwner != address(0), \"Ownable: new owner is the zero address\");\n _transferOwnership(newOwner);\n }\n\n /**\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\n * Internal function without access restriction.\n */\n function _transferOwnership(address newOwner) internal virtual {\n address oldOwner = _owner;\n _owner = newOwner;\n emit OwnershipTransferred(oldOwner, newOwner);\n }\n}\n"
},
"@openzeppelin/contracts/token/ERC20/ERC20.sol": {
"content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IERC20.sol\";\nimport \"./extensions/IERC20Metadata.sol\";\nimport \"../../utils/Context.sol\";\n\n/**\n * @dev Implementation of the {IERC20} interface.\n *\n * This implementation is agnostic to the way tokens are created. This means\n * that a supply mechanism has to be added in a derived contract using {_mint}.\n * For a generic mechanism see {ERC20PresetMinterPauser}.\n *\n * TIP: For a detailed writeup see our guide\n * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How\n * to implement supply mechanisms].\n *\n * The default value of {decimals} is 18. To change this, you should override\n * this function so it returns a different value.\n *\n * We have followed general OpenZeppelin Contracts guidelines: functions revert\n * instead returning `false` on failure. This behavior is nonetheless\n * conventional and does not conflict with the expectations of ERC20\n * applications.\n *\n * Additionally, an {Approval} event is emitted on calls to {transferFrom}.\n * This allows applications to reconstruct the allowance for all accounts just\n * by listening to said events. Other implementations of the EIP may not emit\n * these events, as it isn't required by the specification.\n *\n * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}\n * functions have been added to mitigate the well-known issues around setting\n * allowances. See {IERC20-approve}.\n */\ncontract ERC20 is Context, IERC20, IERC20Metadata {\n mapping(address => uint256) private _balances;\n\n mapping(address => mapping(address => uint256)) private _allowances;\n\n uint256 private _totalSupply;\n\n string private _name;\n string private _symbol;\n\n /**\n * @dev Sets the values for {name} and {symbol}.\n *\n * All two of these values are immutable: they can only be set once during\n * construction.\n */\n constructor(string memory name_, string memory symbol_) {\n _name = name_;\n _symbol = symbol_;\n }\n\n /**\n * @dev Returns the name of the token.\n */\n function name() public view virtual override returns (string memory) {\n return _name;\n }\n\n /**\n * @dev Returns the symbol of the token, usually a shorter version of the\n * name.\n */\n function symbol() public view virtual override returns (string memory) {\n return _symbol;\n }\n\n /**\n * @dev Returns the number of decimals used to get its user representation.\n * For example, if `decimals` equals `2`, a balance of `505` tokens should\n * be displayed to a user as `5.05` (`505 / 10 ** 2`).\n *\n * Tokens usually opt for a value of 18, imitating the relationship between\n * Ether and Wei. This is the default value returned by this function, unless\n * it's overridden.\n *\n * NOTE: This information is only used for _display_ purposes: it in\n * no way affects any of the arithmetic of the contract, including\n * {IERC20-balanceOf} and {IERC20-transfer}.\n */\n function decimals() public view virtual override returns (uint8) {\n return 18;\n }\n\n /**\n * @dev See {IERC20-totalSupply}.\n */\n function totalSupply() public view virtual override returns (uint256) {\n return _totalSupply;\n }\n\n /**\n * @dev See {IERC20-balanceOf}.\n */\n function balanceOf(address account) public view virtual override returns (uint256) {\n return _balances[account];\n }\n\n /**\n * @dev See {IERC20-transfer}.\n *\n * Requirements:\n *\n * - `to` cannot be the zero address.\n * - the caller must have a balance of at least `amount`.\n */\n function transfer(address to, uint256 amount) public virtual override returns (bool) {\n address owner = _msgSender();\n _transfer(owner, to, amount);\n return true;\n }\n\n /**\n * @dev See {IERC20-allowance}.\n */\n function allowance(address owner, address spender) public view virtual override returns (uint256) {\n return _allowances[owner][spender];\n }\n\n /**\n * @dev See {IERC20-approve}.\n *\n * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on\n * `transferFrom`. This is semantically equivalent to an infinite approval.\n *\n * Requirements:\n *\n * - `spender` cannot be the zero address.\n */\n function approve(address spender, uint256 amount) public virtual override returns (bool) {\n address owner = _msgSender();\n _approve(owner, spender, amount);\n return true;\n }\n\n /**\n * @dev See {IERC20-transferFrom}.\n *\n * Emits an {Approval} event indicating the updated allowance. This is not\n * required by the EIP. See the note at the beginning of {ERC20}.\n *\n * NOTE: Does not update the allowance if the current allowance\n * is the maximum `uint256`.\n *\n * Requirements:\n *\n * - `from` and `to` cannot be the zero address.\n * - `from` must have a balance of at least `amount`.\n * - the caller must have allowance for ``from``'s tokens of at least\n * `amount`.\n */\n function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {\n address spender = _msgSender();\n _spendAllowance(from, spender, amount);\n _transfer(from, to, amount);\n return true;\n }\n\n /**\n * @dev Atomically increases the allowance granted to `spender` by the caller.\n *\n * This is an alternative to {approve} that can be used as a mitigation for\n * problems described in {IERC20-approve}.\n *\n * Emits an {Approval} event indicating the updated allowance.\n *\n * Requirements:\n *\n * - `spender` cannot be the zero address.\n */\n function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {\n address owner = _msgSender();\n _approve(owner, spender, allowance(owner, spender) + addedValue);\n return true;\n }\n\n /**\n * @dev Atomically decreases the allowance granted to `spender` by the caller.\n *\n * This is an alternative to {approve} that can be used as a mitigation for\n * problems described in {IERC20-approve}.\n *\n * Emits an {Approval} event indicating the updated allowance.\n *\n * Requirements:\n *\n * - `spender` cannot be the zero address.\n * - `spender` must have allowance for the caller of at least\n * `subtractedValue`.\n */\n function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {\n address owner = _msgSender();\n uint256 currentAllowance = allowance(owner, spender);\n require(currentAllowance >= subtractedValue, \"ERC20: decreased allowance below zero\");\n unchecked {\n _approve(owner, spender, currentAllowance - subtractedValue);\n }\n\n return true;\n }\n\n /**\n * @dev Moves `amount` of tokens from `from` to `to`.\n *\n * This internal function is equivalent to {transfer}, and can be used to\n * e.g. implement automatic token fees, slashing mechanisms, etc.\n *\n * Emits a {Transfer} event.\n *\n * Requirements:\n *\n * - `from` cannot be the zero address.\n * - `to` cannot be the zero address.\n * - `from` must have a balance of at least `amount`.\n */\n function _transfer(address from, address to, uint256 amount) internal virtual {\n require(from != address(0), \"ERC20: transfer from the zero address\");\n require(to != address(0), \"ERC20: transfer to the zero address\");\n\n _beforeTokenTransfer(from, to, amount);\n\n uint256 fromBalance = _balances[from];\n require(fromBalance >= amount, \"ERC20: transfer amount exceeds balance\");\n unchecked {\n _balances[from] = fromBalance - amount;\n // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by\n // decrementing then incrementing.\n _balances[to] += amount;\n }\n\n emit Transfer(from, to, amount);\n\n _afterTokenTransfer(from, to, amount);\n }\n\n /** @dev Creates `amount` tokens and assigns them to `account`, increasing\n * the total supply.\n *\n * Emits a {Transfer} event with `from` set to the zero address.\n *\n * Requirements:\n *\n * - `account` cannot be the zero address.\n */\n function _mint(address account, uint256 amount) internal virtual {\n require(account != address(0), \"ERC20: mint to the zero address\");\n\n _beforeTokenTransfer(address(0), account, amount);\n\n _totalSupply += amount;\n unchecked {\n // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.\n _balances[account] += amount;\n }\n emit Transfer(address(0), account, amount);\n\n _afterTokenTransfer(address(0), account, amount);\n }\n\n /**\n * @dev Destroys `amount` tokens from `account`, reducing the\n * total supply.\n *\n * Emits a {Transfer} event with `to` set to the zero address.\n *\n * Requirements:\n *\n * - `account` cannot be the zero address.\n * - `account` must have at least `amount` tokens.\n */\n function _burn(address account, uint256 amount) internal virtual {\n require(account != address(0), \"ERC20: burn from the zero address\");\n\n _beforeTokenTransfer(account, address(0), amount);\n\n uint256 accountBalance = _balances[account];\n require(accountBalance >= amount, \"ERC20: burn amount exceeds balance\");\n unchecked {\n _balances[account] = accountBalance - amount;\n // Overflow not possible: amount <= accountBalance <= totalSupply.\n _totalSupply -= amount;\n }\n\n emit Transfer(account, address(0), amount);\n\n _afterTokenTransfer(account, address(0), amount);\n }\n\n /**\n * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.\n *\n * This internal function is equivalent to `approve`, and can be used to\n * e.g. set automatic allowances for certain subsystems, etc.\n *\n * Emits an {Approval} event.\n *\n * Requirements:\n *\n * - `owner` cannot be the zero address.\n * - `spender` cannot be the zero address.\n */\n function _approve(address owner, address spender, uint256 amount) internal virtual {\n require(owner != address(0), \"ERC20: approve from the zero address\");\n require(spender != address(0), \"ERC20: approve to the zero address\");\n\n _allowances[owner][spender] = amount;\n emit Approval(owner, spender, amount);\n }\n\n /**\n * @dev Updates `owner` s allowance for `spender` based on spent `amount`.\n *\n * Does not update the allowance amount in case of infinite allowance.\n * Revert if not enough allowance is available.\n *\n * Might emit an {Approval} event.\n */\n function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {\n uint256 currentAllowance = allowance(owner, spender);\n if (currentAllowance != type(uint256).max) {\n require(currentAllowance >= amount, \"ERC20: insufficient allowance\");\n unchecked {\n _approve(owner, spender, currentAllowance - amount);\n }\n }\n }\n\n /**\n * @dev Hook that is called before any transfer of tokens. This includes\n * minting and burning.\n *\n * Calling conditions:\n *\n * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\n * will be transferred to `to`.\n * - when `from` is zero, `amount` tokens will be minted for `to`.\n * - when `to` is zero, `amount` of ``from``'s tokens will be burned.\n * - `from` and `to` are never both zero.\n *\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\n */\n function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {}\n\n /**\n * @dev Hook that is called after any transfer of tokens. This includes\n * minting and burning.\n *\n * Calling conditions:\n *\n * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\n * has been transferred to `to`.\n * - when `from` is zero, `amount` tokens have been minted for `to`.\n * - when `to` is zero, `amount` of ``from``'s tokens have been burned.\n * - `from` and `to` are never both zero.\n *\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\n */\n function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}\n}\n"
},
"@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol": {
"content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../IERC20.sol\";\n\n/**\n * @dev Interface for the optional metadata functions from the ERC20 standard.\n *\n * _Available since v4.1._\n */\ninterface IERC20Metadata is IERC20 {\n /**\n * @dev Returns the name of the token.\n */\n function name() external view returns (string memory);\n\n /**\n * @dev Returns the symbol of the token.\n */\n function symbol() external view returns (string memory);\n\n /**\n * @dev Returns the decimals places of the token.\n */\n function decimals() external view returns (uint8);\n}\n"
},
"@openzeppelin/contracts/token/ERC20/IERC20.sol": {
"content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC20 standard as defined in the EIP.\n */\ninterface IERC20 {\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n\n /**\n * @dev Returns the amount of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the amount of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves `amount` tokens from the caller's account to `to`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address to, uint256 amount) external returns (bool);\n\n /**\n * @dev Returns the remaining number of tokens that `spender` will be\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\n * zero by default.\n *\n * This value changes when {approve} or {transferFrom} are called.\n */\n function allowance(address owner, address spender) external view returns (uint256);\n\n /**\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\n * that someone may use both the old and the new allowance by unfortunate\n * transaction ordering. One possible solution to mitigate this race\n * condition is to first reduce the spender's allowance to 0 and set the\n * desired value afterwards:\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n *\n * Emits an {Approval} event.\n */\n function approve(address spender, uint256 amount) external returns (bool);\n\n /**\n * @dev Moves `amount` tokens from `from` to `to` using the\n * allowance mechanism. `amount` is then deducted from the caller's\n * allowance.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transferFrom(address from, address to, uint256 amount) external returns (bool);\n}\n"
},
"@openzeppelin/contracts/utils/Context.sol": {
"content": "// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract Context {\n function _msgSender() internal view virtual returns (address) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes calldata) {\n return msg.data;\n }\n\n function _contextSuffixLength() internal view virtual returns (uint256) {\n return 0;\n }\n}\n"
},
"contracts/tokens/CookDEXPremiumToken.sol": {
"content": "// SPDX-License-Identifier: MIT\npragma solidity 0.8.24;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\";\nimport \"@openzeppelin/contracts/access/Ownable.sol\";\n\ninterface ICookDEXTaxRouter {\n function WETH() external view returns (address);\n function swapExactTokensForETHSupportingFeeOnTransferTokens(uint256,uint256,address[] calldata,address,uint256) external;\n}\n\ncontract CookDEXPremiumToken is ERC20, Ownable {\n uint8 private immutable _configuredDecimals;\n uint16 public constant MAX_TOTAL_TAX_BPS = 1000;\n uint256 public constant FEATURE_BURNABLE = 1;\n uint256 public constant FEATURE_MINTABLE = 2;\n uint256 public constant FEATURE_PAUSABLE = 4;\n uint256 public constant FEATURE_ANTI_WHALE = 8;\n uint256 public constant FEATURE_ANTI_BOT = 16;\n uint256 public constant FEATURE_BLACKLIST = 32;\n string public tokenTemplate;\n\n uint16 public buyTaxBps;\n uint16 public sellTaxBps;\n uint16 public transferTaxBps;\n address public taxReceiver;\n uint8 public taxPayoutMode; // 0 token + native, 1 native only, 2 token only\n bool public burnTax;\n ICookDEXTaxRouter public taxRouter;\n bool private swappingTax;\n string public creatorName;\n string public creatorWebsite;\n string public creatorContact;\n string public createdBy;\n bytes32 public deploymentGroup;\n uint256 public originChainId;\n uint256 public featureFlags;\n uint256 public maxSupply;\n uint16 public maxTransactionBps;\n uint16 public maxWalletBps;\n bool public transfersPaused;\n string public constant bridgeProvider = \"\";\n\n mapping(address => bool) public automatedMarketMakerPairs;\n mapping(address => bool) public isExcludedFromFees;\n mapping(address => bool) public blacklisted;\n mapping(address => uint256) public lastTradeBlock;\n\n event TaxesUpdated(uint16 buyTaxBps, uint16 sellTaxBps, uint16 transferTaxBps);\n event TaxReceiverUpdated(address indexed receiver);\n event FeeExclusionUpdated(address indexed account, bool excluded);\n event AutomatedMarketMakerPairUpdated(address indexed pair, bool enabled);\n event CreatorInformationUpdated(string name, string website, string contact);\n event TradingLimitsUpdated(uint16 maxTransactionBps, uint16 maxWalletBps);\n event TransfersPausedUpdated(bool paused);\n event BlacklistUpdated(address indexed account, bool blacklisted);\n\n constructor(\n string memory name_,\n string memory symbol_,\n uint8 decimals_,\n uint256 supply_,\n address recipient_,\n address taxReceiver_,\n uint16 buyTaxBps_,\n uint16 sellTaxBps_,\n uint16 transferTaxBps_,\n uint8 taxPayoutMode_,\n bool burnTax_,\n address taxRouter_,\n string memory creatorName_,\n string memory creatorWebsite_,\n string memory creatorContact_,\n bool whiteLabel_,\n bytes32 deploymentGroup_,\n uint256 originChainId_,\n uint256 featureFlags_,\n uint256 maxSupply_,\n uint16 maxTransactionBps_,\n uint16 maxWalletBps_,\n address payable platformFeeReceiver_,\n uint256 requiredPlatformFee_\n ) payable ERC20(name_, symbol_) {\n require(recipient_ != address(0), \"Invalid recipient\");\n require(decimals_ >= 6 && decimals_ <= 18, \"Invalid decimals\");\n require(taxReceiver_ != address(0), \"Invalid tax receiver\");\n require(taxPayoutMode_ <= 2, \"Invalid tax payout mode\");\n require(burnTax_ || taxPayoutMode_ == 2 || taxRouter_ != address(0), \"Tax router required\");\n require(supply_ > 0, \"Supply is zero\");\n _validateTaxes(buyTaxBps_, sellTaxBps_, transferTaxBps_);\n require(msg.value == requiredPlatformFee_, \"Incorrect platform fee\");\n\n _configuredDecimals = decimals_;\n buyTaxBps = buyTaxBps_;\n sellTaxBps = sellTaxBps_;\n transferTaxBps = transferTaxBps_;\n taxReceiver = taxReceiver_;\n taxPayoutMode = burnTax_ ? 2 : taxPayoutMode_;\n burnTax = burnTax_;\n taxRouter = ICookDEXTaxRouter(taxRouter_);\n creatorName = creatorName_;\n creatorWebsite = creatorWebsite_;\n creatorContact = creatorContact_;\n createdBy = whiteLabel_ ? \"\" : \"CookDEX\";\n tokenTemplate = whiteLabel_ ? \"\" : \"CookDEX Premium Token\";\n deploymentGroup = deploymentGroup_;\n originChainId = originChainId_;\n featureFlags = featureFlags_;\n maxSupply = maxSupply_ == 0 ? 0 : maxSupply_ * 10 ** decimals();\n _setTradingLimits(maxTransactionBps_, maxWalletBps_);\n isExcludedFromFees[recipient_] = true;\n isExcludedFromFees[taxReceiver_] = true;\n isExcludedFromFees[address(this)] = true;\n if (taxRouter_ != address(0)) _approve(address(this), taxRouter_, type(uint256).max);\n _mint(recipient_, supply_ * 10 ** decimals());\n _transferOwnership(recipient_);\n\n if (requiredPlatformFee_ > 0) {\n (bool paid, ) = platformFeeReceiver_.call{value: requiredPlatformFee_}(\"\");\n require(paid, \"Platform fee failed\");\n }\n }\n\n receive() external payable {}\n function decimals() public view override returns(uint8){return _configuredDecimals;}\n\n function featureEnabled(uint256 feature_) public view returns (bool) { return featureFlags & feature_ != 0; }\n function burn(uint256 amount_) external { require(featureEnabled(FEATURE_BURNABLE), \"Burn disabled\"); _burn(msg.sender, amount_); }\n function mint(address recipient_, uint256 amount_) external onlyOwner {\n require(featureEnabled(FEATURE_MINTABLE), \"Mint disabled\");\n require(recipient_ != address(0), \"Invalid recipient\");\n require(maxSupply == 0 || totalSupply() + amount_ <= maxSupply, \"Maximum supply exceeded\");\n _mint(recipient_, amount_);\n }\n function setPaused(bool paused_) external onlyOwner { require(featureEnabled(FEATURE_PAUSABLE), \"Pause disabled\"); transfersPaused = paused_; emit TransfersPausedUpdated(paused_); }\n function setTradingLimits(uint16 maxTransactionBps_, uint16 maxWalletBps_) external onlyOwner { require(featureEnabled(FEATURE_ANTI_WHALE), \"Anti-whale disabled\"); _setTradingLimits(maxTransactionBps_, maxWalletBps_); }\n function setBlacklisted(address account_, bool blacklisted_) external onlyOwner { require(featureEnabled(FEATURE_BLACKLIST), \"Blacklist disabled\"); require(account_ != address(0) && account_ != owner() && account_ != address(this), \"Protected account\"); blacklisted[account_] = blacklisted_; emit BlacklistUpdated(account_, blacklisted_); }\n\n function setTaxes(uint16 buyTaxBps_, uint16 sellTaxBps_, uint16 transferTaxBps_) external onlyOwner {\n _validateTaxes(buyTaxBps_, sellTaxBps_, transferTaxBps_);\n buyTaxBps = buyTaxBps_;\n sellTaxBps = sellTaxBps_;\n transferTaxBps = transferTaxBps_;\n emit TaxesUpdated(buyTaxBps_, sellTaxBps_, transferTaxBps_);\n }\n\n function setTaxReceiver(address receiver_) external onlyOwner {\n require(receiver_ != address(0), \"Invalid tax receiver\");\n taxReceiver = receiver_;\n emit TaxReceiverUpdated(receiver_);\n }\n\n function setTaxPayout(uint8 mode_, bool burnTax_, address router_) external onlyOwner {\n require(mode_ <= 2, \"Invalid tax payout mode\");\n require(burnTax_ || mode_ == 2 || router_ != address(0), \"Tax router required\");\n taxPayoutMode = burnTax_ ? 2 : mode_;\n burnTax = burnTax_;\n taxRouter = ICookDEXTaxRouter(router_);\n if (router_ != address(0)) _approve(address(this), router_, type(uint256).max);\n }\n\n function setExcludedFromFees(address account_, bool excluded_) external onlyOwner {\n isExcludedFromFees[account_] = excluded_;\n emit FeeExclusionUpdated(account_, excluded_);\n }\n\n function setAutomatedMarketMakerPair(address pair_, bool enabled_) external onlyOwner {\n require(pair_ != address(0), \"Invalid pair\");\n automatedMarketMakerPairs[pair_] = enabled_;\n emit AutomatedMarketMakerPairUpdated(pair_, enabled_);\n }\n\n function updateCreatorInformation(string calldata name_, string calldata website_, string calldata contact_) external onlyOwner {\n creatorName = name_;\n creatorWebsite = website_;\n creatorContact = contact_;\n emit CreatorInformationUpdated(name_, website_, contact_);\n }\n\n function _transfer(address from, address to, uint256 amount) internal override {\n require(!transfersPaused || isExcludedFromFees[from] || isExcludedFromFees[to], \"Transfers paused\");\n if (featureEnabled(FEATURE_BLACKLIST)) require(!blacklisted[from] && !blacklisted[to], \"Blacklisted address\");\n if (amount == 0 || isExcludedFromFees[from] || isExcludedFromFees[to]) {\n super._transfer(from, to, amount);\n return;\n }\n if (featureEnabled(FEATURE_ANTI_WHALE)) {\n require(amount <= totalSupply() * maxTransactionBps / 10_000, \"Transaction limit exceeded\");\n if (!automatedMarketMakerPairs[to]) require(balanceOf(to) + amount <= totalSupply() * maxWalletBps / 10_000, \"Wallet limit exceeded\");\n }\n if (featureEnabled(FEATURE_ANTI_BOT) && (automatedMarketMakerPairs[from] || automatedMarketMakerPairs[to])) {\n address trader = automatedMarketMakerPairs[from] ? to : from;\n require(lastTradeBlock[trader] < block.number, \"One trade per block\");\n lastTradeBlock[trader] = block.number;\n }\n if (!swappingTax && automatedMarketMakerPairs[to] && !burnTax && taxPayoutMode != 2 && balanceOf(address(this)) > 0) _payoutTax();\n uint16 taxBps = automatedMarketMakerPairs[from]\n ? buyTaxBps\n : automatedMarketMakerPairs[to] ? sellTaxBps : transferTaxBps;\n uint256 fee = amount * taxBps / 10_000;\n if (fee > 0) {\n if (burnTax) _burn(from, fee);\n else if (taxPayoutMode == 2) super._transfer(from, taxReceiver, fee);\n else super._transfer(from, address(this), fee);\n }\n super._transfer(from, to, amount - fee);\n }\n\n function _payoutTax() private {\n uint256 collected = balanceOf(address(this));\n uint256 swapAmount = taxPayoutMode == 0 ? collected / 2 : collected;\n uint256 tokenAmount = collected - swapAmount;\n if (tokenAmount > 0) super._transfer(address(this), taxReceiver, tokenAmount);\n if (swapAmount == 0 || address(taxRouter) == address(0)) return;\n address[] memory path = new address[](2); path[0] = address(this); path[1] = taxRouter.WETH();\n swappingTax = true;\n try taxRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(swapAmount, 0, path, taxReceiver, block.timestamp) {} catch { super._transfer(address(this), taxReceiver, swapAmount); }\n swappingTax = false;\n }\n\n function _validateTaxes(uint16 buyTaxBps_, uint16 sellTaxBps_, uint16 transferTaxBps_) private pure {\n require(buyTaxBps_ <= MAX_TOTAL_TAX_BPS, \"Buy tax too high\");\n require(sellTaxBps_ <= MAX_TOTAL_TAX_BPS, \"Sell tax too high\");\n require(transferTaxBps_ <= MAX_TOTAL_TAX_BPS, \"Transfer tax too high\");\n }\n\n function _setTradingLimits(uint16 maxTransactionBps_, uint16 maxWalletBps_) private {\n if (featureEnabled(FEATURE_ANTI_WHALE)) {\n require(maxTransactionBps_ >= 10 && maxTransactionBps_ <= 10_000, \"Invalid transaction limit\");\n require(maxWalletBps_ >= maxTransactionBps_ && maxWalletBps_ <= 10_000, \"Invalid wallet limit\");\n }\n maxTransactionBps = maxTransactionBps_;\n maxWalletBps = maxWalletBps_;\n emit TradingLimitsUpdated(maxTransactionBps_, maxWalletBps_);\n }\n}\n"
}
},
"settings": {
"optimizer": {
"enabled": true,
"runs": 200
},
"viaIR": true,
"evmVersion": "paris",
"outputSelection": {
"contracts/tokens/CookDEXPremiumToken.sol": {
"CookDEXPremiumToken": [
"abi",
"metadata",
"evm.bytecode",
"evm.deployedBytecode"
],
"": [
"ast"
]
}
}
}
},
"metadata": {
"compiler": {
"version": "0.8.24+commit.e11b9ed9"
},
"language": "Solidity",
"output": {
"abi": [
{
"inputs": [
{
"internalType": "string",
"name": "name_",
"type": "string"
},
{
"internalType": "string",
"name": "symbol_",
"type": "string"
},
{
"internalType": "uint8",
"name": "decimals_",
"type": "uint8"
},
{
"internalType": "uint256",
"name": "supply_",
"type": "uint256"
},
{
"internalType": "address",
"name": "recipient_",
"type": "address"
},
{
"internalType": "address",
"name": "taxReceiver_",
"type": "address"
},
{
"internalType": "uint16",
"name": "buyTaxBps_",
"type": "uint16"
},
{
"internalType": "uint16",
"name": "sellTaxBps_",
"type": "uint16"
},
{
"internalType": "uint16",
"name": "transferTaxBps_",
"type": "uint16"
},
{
"internalType": "uint8",
"name": "taxPayoutMode_",
"type": "uint8"
},
{
"internalType": "bool",
"name": "burnTax_",
"type": "bool"
},
{
"internalType": "address",
"name": "taxRouter_",
"type": "address"
},
{
"internalType": "string",
"name": "creatorName_",
"type": "string"
},
{
"internalType": "string",
"name": "creatorWebsite_",
"type": "string"
},
{
"internalType": "string",
"name": "creatorContact_",
"type": "string"
},
{
"internalType": "bool",
"name": "whiteLabel_",
"type": "bool"
},
{
"internalType": "bytes32",
"name": "deploymentGroup_",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "originChainId_",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "featureFlags_",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "maxSupply_",
"type": "uint256"
},
{
"internalType": "uint16",
"name": "maxTransactionBps_",
"type": "uint16"
},
{
"internalType": "uint16",
"name": "maxWalletBps_",
"type": "uint16"
},
{
"internalType": "address payable",
"name": "platformFeeReceiver_",
"type": "address"
},
{
"internalType": "uint256",
"name": "requiredPlatformFee_",
"type": "uint256"
}
],
"stateMutability": "payable",
"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": "pair",
"type": "address"
},
{
"indexed": false,
"internalType": "bool",
"name": "enabled",
"type": "bool"
}
],
"name": "AutomatedMarketMakerPairUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "account",
"type": "address"
},
{
"indexed": false,
"internalType": "bool",
"name": "blacklisted",
"type": "bool"
}
],
"name": "BlacklistUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "string",
"name": "name",
"type": "string"
},
{
"indexed": false,
"internalType": "string",
"name": "website",
"type": "string"
},
{
"indexed": false,
"internalType": "string",
"name": "contact",
"type": "string"
}
],
"name": "CreatorInformationUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "account",
"type": "address"
},
{
"indexed": false,
"internalType": "bool",
"name": "excluded",
"type": "bool"
}
],
"name": "FeeExclusionUpdated",
"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": "receiver",
"type": "address"
}
],
"name": "TaxReceiverUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint16",
"name": "buyTaxBps",
"type": "uint16"
},
{
"indexed": false,
"internalType": "uint16",
"name": "sellTaxBps",
"type": "uint16"
},
{
"indexed": false,
"internalType": "uint16",
"name": "transferTaxBps",
"type": "uint16"
}
],
"name": "TaxesUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint16",
"name": "maxTransactionBps",
"type": "uint16"
},
{
"indexed": false,
"internalType": "uint16",
"name": "maxWalletBps",
"type": "uint16"
}
],
"name": "TradingLimitsUpdated",
"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": "bool",
"name": "paused",
"type": "bool"
}
],
"name": "TransfersPausedUpdated",
"type": "event"
},
{
"inputs": [],
"name": "FEATURE_ANTI_BOT",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "FEATURE_ANTI_WHALE",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "FEATURE_BLACKLIST",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "FEATURE_BURNABLE",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "FEATURE_MINTABLE",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "FEATURE_PAUSABLE",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MAX_TOTAL_TAX_BPS",
"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": "amount",
"type": "uint256"
}
],
"name": "approve",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "automatedMarketMakerPairs",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"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": "blacklisted",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "bridgeProvider",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "amount_",
"type": "uint256"
}
],
"name": "burn",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "burnTax",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "buyTaxBps",
"outputs": [
{
"internalType": "uint16",
"name": "",
"type": "uint16"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "createdBy",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "creatorContact",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "creatorName",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "creatorWebsite",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "decimals",
"outputs": [
{
"internalType": "uint8",
"name": "",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "spender",
"type": "address"
},
{
"internalType": "uint256",
"name": "subtractedValue",
"type": "uint256"
}
],
"name": "decreaseAllowance",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "deploymentGroup",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "feature_",
"type": "uint256"
}
],
"name": "featureEnabled",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "featureFlags",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"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": "isExcludedFromFees",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "lastTradeBlock",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "maxSupply",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "maxTransactionBps",
"outputs": [
{
"internalType": "uint16",
"name": "",
"type": "uint16"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "maxWalletBps",
"outputs": [
{
"internalType": "uint16",
"name": "",
"type": "uint16"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "recipient_",
"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": "originChainId",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"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": [],
"name": "sellTaxBps",
"outputs": [
{
"internalType": "uint16",
"name": "",
"type": "uint16"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "pair_",
"type": "address"
},
{
"internalType": "bool",
"name": "enabled_",
"type": "bool"
}
],
"name": "setAutomatedMarketMakerPair",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "account_",
"type": "address"
},
{
"internalType": "bool",
"name": "blacklisted_",
"type": "bool"
}
],
"name": "setBlacklisted",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "account_",
"type": "address"
},
{
"internalType": "bool",
"name": "excluded_",
"type": "bool"
}
],
"name": "setExcludedFromFees",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bool",
"name": "paused_",
"type": "bool"
}
],
"name": "setPaused",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "mode_",
"type": "uint8"
},
{
"internalType": "bool",
"name": "burnTax_",
"type": "bool"
},
{
"internalType": "address",
"name": "router_",
"type": "address"
}
],
"name": "setTaxPayout",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "receiver_",
"type": "address"
}
],
"name": "setTaxReceiver",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint16",
"name": "buyTaxBps_",
"type": "uint16"
},
{
"internalType": "uint16",
"name": "sellTaxBps_",
"type": "uint16"
},
{
"internalType": "uint16",
"name": "transferTaxBps_",
"type": "uint16"
}
],
"name": "setTaxes",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint16",
"name": "maxTransactionBps_",
"type": "uint16"
},
{
"internalType": "uint16",
"name": "maxWalletBps_",
"type": "uint16"
}
],
"name": "setTradingLimits",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "symbol",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "taxPayoutMode",
"outputs": [
{
"internalType": "uint8",
"name": "",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "taxReceiver",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "taxRouter",
"outputs": [
{
"internalType": "contract ICookDEXTaxRouter",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "tokenTemplate",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "totalSupply",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "transfer",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "from",
"type": "address"
},
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "transferFrom",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "transferTaxBps",
"outputs": [
{
"internalType": "uint16",
"name": "",
"type": "uint16"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "transfersPaused",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "name_",
"type": "string"
},
{
"internalType": "string",
"name": "website_",
"type": "string"
},
{
"internalType": "string",
"name": "contact_",
"type": "string"
}
],
"name": "updateCreatorInformation",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"stateMutability": "payable",
"type": "receive"
}
],
"devdoc": {
"events": {
"Approval(address,address,uint256)": {
"details": "Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance."
},
"Transfer(address,address,uint256)": {
"details": "Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero."
}
},
"kind": "dev",
"methods": {
"allowance(address,address)": {
"details": "See {IERC20-allowance}."
},
"approve(address,uint256)": {
"details": "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."
},
"balanceOf(address)": {
"details": "See {IERC20-balanceOf}."
},
"decimals()": {
"details": "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}."
},
"decreaseAllowance(address,uint256)": {
"details": "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`."
},
"increaseAllowance(address,uint256)": {
"details": "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."
},
"name()": {
"details": "Returns the name of the token."
},
"owner()": {
"details": "Returns the address of the current owner."
},
"renounceOwnership()": {
"details": "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."
},
"symbol()": {
"details": "Returns the symbol of the token, usually a shorter version of the name."
},
"totalSupply()": {
"details": "See {IERC20-totalSupply}."
},
"transfer(address,uint256)": {
"details": "See {IERC20-transfer}. Requirements: - `to` cannot be the zero address. - the caller must have a balance of at least `amount`."
},
"transferFrom(address,address,uint256)": {
"details": "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`."
},
"transferOwnership(address)": {
"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
}
},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
},
"settings": {
"compilationTarget": {
"contracts/tokens/CookDEXPremiumToken.sol": "CookDEXPremiumToken"
},
"evmVersion": "paris",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": [],
"viaIR": true
},
"sources": {
"@openzeppelin/contracts/access/Ownable.sol": {
"keccak256": "0xba43b97fba0d32eb4254f6a5a297b39a19a247082a02d6e69349e071e2946218",
"license": "MIT",
"urls": [
"bzz-raw://fc980984badf3984b6303b377711220e067722bbd6a135b24669ff5069ef9f32",
"dweb:/ipfs/QmPHXMSXj99XjSVM21YsY6aNtLLjLVXDbyN76J5HQYvvrz"
]
},
"@openzeppelin/contracts/token/ERC20/ERC20.sol": {
"keccak256": "0xa56ca923f70c1748830700250b19c61b70db9a683516dc5e216694a50445d99c",
"license": "MIT",
"urls": [
"bzz-raw://cac938788bc4be12101e59d45588b4e059579f4e61062e1cda8d6b06c0191b15",
"dweb:/ipfs/QmV2JKCyjTVH3rkWNrfdJRhAT7tZ3usAN2XcnD4h53Mvih"
]
},
"@openzeppelin/contracts/token/ERC20/IERC20.sol": {
"keccak256": "0x287b55befed2961a7eabd7d7b1b2839cbca8a5b80ef8dcbb25ed3d4c2002c305",
"license": "MIT",
"urls": [
"bzz-raw://bd39944e8fc06be6dbe2dd1d8449b5336e23c6a7ba3e8e9ae5ae0f37f35283f5",
"dweb:/ipfs/QmPV3FGYjVwvKSgAXKUN3r9T9GwniZz83CxBpM7vyj2G53"
]
},
"@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol": {
"keccak256": "0x8de418a5503946cabe331f35fe242d3201a73f67f77aaeb7110acb1f30423aca",
"license": "MIT",
"urls": [
"bzz-raw://5a376d3dda2cb70536c0a45c208b29b34ac560c4cb4f513a42079f96ba47d2dd",
"dweb:/ipfs/QmZQg6gn1sUpM8wHzwNvSnihumUCAhxD119MpXeKp8B9s8"
]
},
"@openzeppelin/contracts/utils/Context.sol": {
"keccak256": "0xa92e4fa126feb6907daa0513ddd816b2eb91f30a808de54f63c17d0e162c3439",
"license": "MIT",
"urls": [
"bzz-raw://a367861093b74443b137564d3f3c472f70bcf114739e62059c939f25e315706c",
"dweb:/ipfs/Qmd7JMpcxD9RuQjK3uM3EzJUgSqdN8vzp8eytEiuwxQJ6h"
]
},
"contracts/tokens/CookDEXPremiumToken.sol": {
"keccak256": "0xf8038f1c9ff78825e05bcb8a3119f01475c9e1e3c179483ec39f5f27f01df52c",
"license": "MIT",
"urls": [
"bzz-raw://28bdaf096e1c3ff47853db23aa0301b9328bdf1373f59c22c8aca95e5c8de0eb",
"dweb:/ipfs/QmSu6z9jBT8hTtoSBJ7fXTJdRy7kxki7QB8GkwnNKqNakr"
]
}
},
"version": 1
}
},
"deployment": null
}