Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
10,000,000 TCAI
Holders
40
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
TensorCode
Compiler Version
v0.8.23+commit.f704f362
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// Website: https://tensorcodeai.xyz // Docs: https://docs.tensorcodeai.xyz // Twitter: https://x.com/tensorcode_ai // Telegram: https://t.me/tensor_code pragma solidity ^0.8.12; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import {SafeMath} from "@openzeppelin/contracts/utils/math/SafeMath.sol"; import {IUniswapV2Factory} from "./interfaces/IUniswapV2Factory.sol"; import {IUniswapV2Router02} from "./interfaces/IUniswapV2Router02.sol"; contract TensorCode is ERC20, Ownable(msg.sender) { using SafeMath for uint256; IUniswapV2Router02 public immutable uniswapRouter; address public uniswapV2Pair; bool private swapping; address public treasuryWallet; uint256 public maxTransactionAmount; uint256 public swapTokensAtAmount; uint256 public maxWallet; bool public limitsInEffect = true; bool public tradingActive = false; bool public swapEnabled = false; bool public blacklistRenounced = false; // Anti-bot and anti-whale mappings and variables mapping(address => bool) blacklisted; uint256 public buyTotalFees; uint256 public buyTreasuryFee; uint256 public sellTotalFees; uint256 public sellTreasuryFee; uint256 public tokensForTreasury; /******************/ // exclude from fees and max transaction amount mapping(address => bool) private _isExcludedFromFees; mapping(address => bool) public _isExcludedMaxTransactionAmount; // store addresses that a automatic market maker pairs. Any transfer *to* these addresses // could be subject to a maximum transfer amount mapping(address => bool) public automatedMarketMakerPairs; event UpdateUniswapRouter( address indexed newAddress, address indexed oldAddress ); event ExcludeFromFees(address indexed account, bool isExcluded); event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value); event treasuryWalletUpdated( address indexed newWallet, address indexed oldWallet ); constructor() ERC20("TensorCode AI", "TCAI") { IUniswapV2Router02 _uniswapRouter = IUniswapV2Router02( 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D ); excludeFromMaxTransaction(address(_uniswapRouter), true); uniswapRouter = _uniswapRouter; uint256 _buyTreasuryFee = 30; uint256 _sellTreasuryFee = 30; uint256 totalSupply = 10_000_000 * 1e18; maxTransactionAmount = 100_000 * 1e18; maxWallet = 100_000 * 1e18; swapTokensAtAmount = (totalSupply * 5) / 10000; buyTreasuryFee = _buyTreasuryFee; buyTotalFees = buyTreasuryFee; sellTreasuryFee = _sellTreasuryFee; sellTotalFees = sellTreasuryFee; treasuryWallet = address(0x375F5db2e7f22BdE5c601D94Bd4304f02Cd89A2A); excludeFromFees(owner(), true); excludeFromFees(address(this), true); excludeFromMaxTransaction(owner(), true); excludeFromMaxTransaction(address(this), true); _mint(msg.sender, totalSupply); } receive() external payable {} function createPair() external onlyOwner { uniswapV2Pair = IUniswapV2Factory(uniswapRouter.factory()) .createPair(address(this), uniswapRouter.WETH()); excludeFromMaxTransaction(address(uniswapV2Pair), true); _setAutomatedMarketMakerPair(address(uniswapV2Pair), true); } function enableTrading() external onlyOwner { tradingActive = true; swapEnabled = true; } // remove limits after token is stable function removeLimits() external onlyOwner returns (bool) { limitsInEffect = false; return true; } // change the minimum amount of tokens to sell from fees function updateSwapTokensAtAmount(uint256 newAmount) external onlyOwner returns (bool) { swapTokensAtAmount = newAmount; return true; } function updateMaxTxnAmount(uint256 newNum) external onlyOwner { require( newNum >= ((totalSupply() * 5) / 1000) / 1e18, "Cannot set maxTransactionAmount lower than 0.5%" ); maxTransactionAmount = newNum * (10**18); } function updateMaxWalletAmount(uint256 newNum) external onlyOwner { require( newNum >= ((totalSupply() * 10) / 1000) / 1e18, "Cannot set maxWallet lower than 1.0%" ); maxWallet = newNum * (10**18); } function excludeFromMaxTransaction(address updAds, bool isEx) public onlyOwner { _isExcludedMaxTransactionAmount[updAds] = isEx; } // only use to disable contract sales if absolutely necessary (emergency use only) function updateSwapEnabled(bool enabled) external onlyOwner { swapEnabled = enabled; } function updateBuyFees( uint256 _treasuryFee ) external onlyOwner { buyTreasuryFee = _treasuryFee; buyTotalFees = buyTreasuryFee; } function updateSellFees( uint256 _treasuryFee ) external onlyOwner { sellTreasuryFee = _treasuryFee; sellTotalFees = sellTreasuryFee; } function excludeFromFees(address account, bool excluded) public onlyOwner { _isExcludedFromFees[account] = excluded; emit ExcludeFromFees(account, excluded); } function setAutomatedMarketMakerPair(address pair, bool value) public onlyOwner { require( pair != uniswapV2Pair, "The pair cannot be removed from automatedMarketMakerPairs" ); _setAutomatedMarketMakerPair(pair, value); } function _setAutomatedMarketMakerPair(address pair, bool value) private { automatedMarketMakerPairs[pair] = value; emit SetAutomatedMarketMakerPair(pair, value); } function updateTreasuryWallet(address newWallet) external onlyOwner { emit treasuryWalletUpdated(newWallet, treasuryWallet); treasuryWallet = newWallet; } function isExcludedFromFees(address account) public view returns (bool) { return _isExcludedFromFees[account]; } function isBlacklisted(address account) public view returns (bool) { return blacklisted[account]; } function _transfer( address from, address to, uint256 amount ) internal override { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); require(!blacklisted[from],"Sender blacklisted"); require(!blacklisted[to],"Receiver blacklisted"); if (amount == 0) { super._transfer(from, to, 0); return; } if (limitsInEffect) { if ( from != owner() && to != owner() && to != address(0) && !swapping ) { if (!tradingActive) { require( _isExcludedFromFees[from] || _isExcludedFromFees[to], "Trading is not active." ); } //when buy if ( automatedMarketMakerPairs[from] && !_isExcludedMaxTransactionAmount[to] ) { require( amount <= maxTransactionAmount, "Buy transfer amount exceeds the maxTransactionAmount." ); require( amount + balanceOf(to) <= maxWallet, "Max wallet exceeded" ); } //when sell else if ( automatedMarketMakerPairs[to] && !_isExcludedMaxTransactionAmount[from] ) { require( amount <= maxTransactionAmount, "Sell transfer amount exceeds the maxTransactionAmount." ); } else if (!_isExcludedMaxTransactionAmount[to]) { require( amount + balanceOf(to) <= maxWallet, "Max wallet exceeded" ); } } } uint256 contractTokenBalance = balanceOf(address(this)); bool canSwap = contractTokenBalance >= swapTokensAtAmount; if ( canSwap && swapEnabled && !swapping && !automatedMarketMakerPairs[from] && !_isExcludedFromFees[from] && !_isExcludedFromFees[to] ) { swapping = true; swapBack(); swapping = false; } bool takeFee = !swapping; // if any account belongs to _isExcludedFromFee account then remove the fee if (_isExcludedFromFees[from] || _isExcludedFromFees[to]) { takeFee = false; } uint256 fees = 0; // only take fees on buys/sells, do not take on wallet transfers if (takeFee) { // on sell if (automatedMarketMakerPairs[to] && sellTotalFees > 0) { fees = amount.mul(sellTotalFees).div(100); tokensForTreasury += (fees * sellTreasuryFee) / sellTotalFees; } // on buy else if (automatedMarketMakerPairs[from] && buyTotalFees > 0) { fees = amount.mul(buyTotalFees).div(100); tokensForTreasury += (fees * buyTreasuryFee) / buyTotalFees; } if (fees > 0) { super._transfer(from, address(this), fees); } amount -= fees; } super._transfer(from, to, amount); } function swapTokensForEth(uint256 tokenAmount) private { // generate the uniswap pair path of token -> weth address[] memory path = new address[](2); path[0] = address(this); path[1] = uniswapRouter.WETH(); _approve(address(this), address(uniswapRouter), tokenAmount); // make the swap uniswapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens( tokenAmount, 0, // accept any amount of ETH path, address(this), block.timestamp ); } function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private { // approve token transfer to cover all possible scenarios _approve(address(this), address(uniswapRouter), tokenAmount); // add the liquidity uniswapRouter.addLiquidityETH{value: ethAmount}( address(this), tokenAmount, 0, // slippage is unavoidable 0, // slippage is unavoidable owner(), block.timestamp ); } function swapBack() private { uint256 contractBalance = balanceOf(address(this)); uint256 totalTokensToSwap = tokensForTreasury; bool success; if (contractBalance == 0 || totalTokensToSwap == 0) { return; } if (contractBalance > swapTokensAtAmount * 20) { contractBalance = swapTokensAtAmount * 20; } uint256 amountToSwapForETH = contractBalance; uint256 initialETHBalance = address(this).balance; swapTokensForEth(amountToSwapForETH); uint256 ethBalance = address(this).balance.sub(initialETHBalance); tokensForTreasury = 0; (success, ) = address(treasuryWallet).call{value: ethBalance}(""); } function withdrawTCAI() external onlyOwner { uint256 balance = IERC20(address(this)).balanceOf(address(this)); IERC20(address(this)).transfer(msg.sender, balance); payable(msg.sender).transfer(address(this).balance); } function withdrawToken(address _token, address _to) external onlyOwner { require(_token != address(0), "_token address cannot be 0"); uint256 _contractBalance = IERC20(_token).balanceOf(address(this)); IERC20(_token).transfer(_to, _contractBalance); } function withdrawETH(address toAddr) external onlyOwner { (bool success, ) = toAddr.call{ value: address(this).balance } (""); require(success); } // @dev team renounce blacklist commands function renounceBlacklist() public onlyOwner { blacklistRenounced = true; } function blacklist(address _addr) public onlyOwner { require(!blacklistRenounced, "Team has revoked blacklist rights"); require( _addr != address(uniswapV2Pair) && _addr != address(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D), "Cannot blacklist token's v2 router or v2 pool." ); blacklisted[_addr] = true; } // @dev blacklist v3 pools; can unblacklist() down the road to suit project and community function blacklistLiquidityPool(address lpAddress) public onlyOwner { require(!blacklistRenounced, "Team has revoked blacklist rights"); require( lpAddress != address(uniswapV2Pair) && lpAddress != address(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D), "Cannot blacklist token's v2 router or v2 pool." ); blacklisted[lpAddress] = true; } // @dev unblacklist address; not affected by blacklistRenounced incase team wants to unblacklist v3 pools down the road function unblacklist(address _addr) public onlyOwner { blacklisted[_addr] = false; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is set to the address provided by the deployer. This can * later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "./IERC20.sol"; import {IERC20Metadata} from "./extensions/IERC20Metadata.sol"; import {Context} from "../../utils/Context.sol"; import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. */ abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors { mapping(address account => uint256) private _balances; mapping(address account => mapping(address spender => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the default value returned by this function, unless * it's overridden. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `value`. */ function transfer(address to, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _transfer(owner, to, value); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `value` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, value); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `value`. * - the caller must have allowance for ``from``'s tokens of at least * `value`. */ function transferFrom(address from, address to, uint256 value) public virtual returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, value); _transfer(from, to, value); return true; } /** * @dev Moves a `value` amount of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _transfer(address from, address to, uint256 value) internal virtual { if (from == address(0)) { revert ERC20InvalidSender(address(0)); } if (to == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(from, to, value); } /** * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from` * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding * this function. * * Emits a {Transfer} event. */ function _update(address from, address to, uint256 value) internal virtual { if (from == address(0)) { // Overflow check required: The rest of the code assumes that totalSupply never overflows _totalSupply += value; } else { uint256 fromBalance = _balances[from]; if (fromBalance < value) { revert ERC20InsufficientBalance(from, fromBalance, value); } unchecked { // Overflow not possible: value <= fromBalance <= totalSupply. _balances[from] = fromBalance - value; } } if (to == address(0)) { unchecked { // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply. _totalSupply -= value; } } else { unchecked { // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256. _balances[to] += value; } } emit Transfer(from, to, value); } /** * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0). * Relies on the `_update` mechanism * * Emits a {Transfer} event with `from` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _mint(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(address(0), account, value); } /** * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply. * Relies on the `_update` mechanism. * * Emits a {Transfer} event with `to` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead */ function _burn(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidSender(address(0)); } _update(account, address(0), value); } /** * @dev Sets `value` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. * * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument. */ function _approve(address owner, address spender, uint256 value) internal { _approve(owner, spender, value, true); } /** * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event. * * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any * `Approval` event during `transferFrom` operations. * * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to * true using the following override: * ``` * function _approve(address owner, address spender, uint256 value, bool) internal virtual override { * super._approve(owner, spender, value, true); * } * ``` * * Requirements are the same as {_approve}. */ function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual { if (owner == address(0)) { revert ERC20InvalidApprover(address(0)); } if (spender == address(0)) { revert ERC20InvalidSpender(address(0)); } _allowances[owner][spender] = value; if (emitEvent) { emit Approval(owner, spender, value); } } /** * @dev Updates `owner` s allowance for `spender` based on spent `value`. * * Does not update the allowance value in case of infinite allowance. * Revert if not enough allowance is available. * * Does not emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 value) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { if (currentAllowance < value) { revert ERC20InsufficientAllowance(spender, currentAllowance, value); } unchecked { _approve(owner, spender, currentAllowance - value, false); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 value) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets a `value` amount of tokens as the allowance of `spender` over the * caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 value) external returns (bool); }
pragma solidity ^0.8.19; /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
pragma solidity >=0.5.0; interface IUniswapV2Factory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; }
pragma solidity >=0.6.2; interface IUniswapV2Router02 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns ( uint256 amountA, uint256 amountB, uint256 liquidity ); function addLiquidityETH( address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external payable returns ( uint256 amountToken, uint256 amountETH, uint256 liquidity ); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens. */ interface IERC20Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC20InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC20InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers. * @param spender Address that may be allowed to operate on tokens without being their owner. * @param allowance Amount of tokens a `spender` is allowed to operate with. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC20InvalidApprover(address approver); /** * @dev Indicates a failure with the `spender` to be approved. Used in approvals. * @param spender Address that may be allowed to operate on tokens without being their owner. */ error ERC20InvalidSpender(address spender); } /** * @dev Standard ERC721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20. * Used in balance queries. * @param owner Address of the current owner of a token. */ error ERC721InvalidOwner(address owner); /** * @dev Indicates a `tokenId` whose `owner` is the zero address. * @param tokenId Identifier number of a token. */ error ERC721NonexistentToken(uint256 tokenId); /** * @dev Indicates an error related to the ownership over a particular token. Used in transfers. * @param sender Address whose tokens are being transferred. * @param tokenId Identifier number of a token. * @param owner Address of the current owner of a token. */ error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC721InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC721InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param tokenId Identifier number of a token. */ error ERC721InsufficientApproval(address operator, uint256 tokenId); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC721InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC721InvalidOperator(address operator); } /** * @dev Standard ERC1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens. */ interface IERC1155Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. * @param tokenId Identifier number of a token. */ error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC1155InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC1155InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param owner Address of the current owner of a token. */ error ERC1155MissingApprovalForAll(address operator, address owner); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC1155InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC1155InvalidOperator(address operator); /** * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. * Used in batch transfers. * @param idsLength Length of the array of token identifiers * @param valuesLength Length of the array of token amounts */ error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); }
{ "remappings": [ "@openzeppelin/=node_modules/@openzeppelin/", "ds-test/=lib/forge-std/lib/ds-test/src/", "forge-std/=lib/forge-std/src/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "useLiteralContent": false, "bytecodeHash": "ipfs", "appendCBOR": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "paris", "viaIR": false, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"ExcludeFromFees","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":"pair","type":"address"},{"indexed":true,"internalType":"bool","name":"value","type":"bool"}],"name":"SetAutomatedMarketMakerPair","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":true,"internalType":"address","name":"newAddress","type":"address"},{"indexed":true,"internalType":"address","name":"oldAddress","type":"address"}],"name":"UpdateUniswapRouter","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newWallet","type":"address"},{"indexed":true,"internalType":"address","name":"oldWallet","type":"address"}],"name":"treasuryWalletUpdated","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_isExcludedMaxTransactionAmount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","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":"_addr","type":"address"}],"name":"blacklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"lpAddress","type":"address"}],"name":"blacklistLiquidityPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"blacklistRenounced","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyTotalFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyTreasuryFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"createPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"enableTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"excludeFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"updAds","type":"address"},{"internalType":"bool","name":"isEx","type":"bool"}],"name":"excludeFromMaxTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isBlacklisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"limitsInEffect","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTransactionAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"removeLimits","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceBlacklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sellTotalFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellTreasuryFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"setAutomatedMarketMakerPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapTokensAtAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensForTreasury","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tradingActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasuryWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"unblacklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapRouter","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_treasuryFee","type":"uint256"}],"name":"updateBuyFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newNum","type":"uint256"}],"name":"updateMaxTxnAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newNum","type":"uint256"}],"name":"updateMaxWalletAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_treasuryFee","type":"uint256"}],"name":"updateSellFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enabled","type":"bool"}],"name":"updateSwapEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"updateSwapTokensAtAmount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newWallet","type":"address"}],"name":"updateTreasuryWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"toAddr","type":"address"}],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawTCAI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_to","type":"address"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60a0604052600b805463ffffffff191660011790553480156200002157600080fd5b50336040518060400160405280600d81526020016c54656e736f72436f646520414960981b815250604051806040016040528060048152602001635443414960e01b815250816003908162000077919062000516565b50600462000086828262000516565b5050506001600160a01b038116620000b957604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b620000c481620001dd565b50737a250d5630b4cf539739df2c5dacb4c659f2488d620000e78160016200022f565b6001600160a01b03811660805269152d02c7e14af68000006008819055600a55601e806a084595161401484a00000061271062000126826005620005f8565b62000132919062000618565b600955600e839055600d8390556010829055600f829055600780546001600160a01b03191673375f5db2e7f22bde5c601d94bd4304f02cd89a2a1790556200018e620001866005546001600160a01b031690565b600162000264565b6200019b30600162000264565b620001ba620001b26005546001600160a01b031690565b60016200022f565b620001c73060016200022f565b620001d33382620002cd565b5050505062000651565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620002396200030b565b6001600160a01b03919091166000908152601360205260409020805460ff1916911515919091179055565b6200026e6200030b565b6001600160a01b038216600081815260126020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6001600160a01b038216620002f95760405163ec442f0560e01b815260006004820152602401620000b0565b62000307600083836200033c565b5050565b6005546001600160a01b031633146200033a5760405163118cdaa760e01b8152336004820152602401620000b0565b565b6001600160a01b0383166200036b5780600260008282546200035f91906200063b565b90915550620003df9050565b6001600160a01b03831660009081526020819052604090205481811015620003c05760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401620000b0565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b038216620003fd576002805482900390556200041c565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516200046291815260200190565b60405180910390a3505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200049a57607f821691505b602082108103620004bb57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000511576000816000526020600020601f850160051c81016020861015620004ec5750805b601f850160051c820191505b818110156200050d57828155600101620004f8565b5050505b505050565b81516001600160401b038111156200053257620005326200046f565b6200054a8162000543845462000485565b84620004c1565b602080601f831160018114620005825760008415620005695750858301515b600019600386901b1c1916600185901b1785556200050d565b600085815260208120601f198616915b82811015620005b35788860151825594840194600190910190840162000592565b5085821015620005d25787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417620006125762000612620005e2565b92915050565b6000826200063657634e487b7160e01b600052601260045260246000fd5b500490565b80820180821115620006125762000612620005e2565b60805161255f620006906000396000818161061101528181610fb10152818161104201528181612090015281816121490152612185015261255f6000f3fe6080604052600436106102e85760003560e01c80637571336a11610190578063c18bc195116100dc578063e19b282311610095578063f2fde38b1161006f578063f2fde38b146108f2578063f8b45b0514610912578063f9f92be41461089c578063fe575a871461092857600080fd5b8063e19b28231461089c578063e2f45605146108bc578063eba4c333146108d257600080fd5b8063c18bc195146107d4578063c8c8ebe4146107f4578063cc2ffe7c1461080a578063d257b34f14610820578063d85ba06314610840578063dd62ed3e1461085657600080fd5b806395d89b4111610149578063a9059cbb11610123578063a9059cbb14610745578063b62496f514610765578063bbc0c74214610795578063c0246668146107b457600080fd5b806395d89b41146106fb5780639a7a23d6146107105780639e78fb4f1461073057600080fd5b80637571336a1461064857806375e3661e14610668578063809d458d146106885780638a8c523c146106a85780638da5cb5b146106bd578063924de9b7146106db57600080fd5b80634a62bb651161024f5780636b2fb12411610208578063715018a6116101e2578063715018a6146105ca57806371fc4688146105df578063735de9f7146105ff578063751039fc1461063357600080fd5b80636b2fb1241461055e5780636ddd17131461057457806370a082311461059457600080fd5b80634a62bb65146104aa5780634fbee193146104c45780635c068a8c146104fd5780635f18936114610513578063690d8320146105285780636a486a8e1461054857600080fd5b8063313ce567116102a1578063313ce567146103e05780633aeac4e1146103fc5780633dc599ff1461041c5780633f5b1dd71461043d5780634626402b1461045257806349bd5a5e1461048a57600080fd5b806306fdde03146102f4578063095ea7b31461031f57806310d5de531461034f57806318160ddd1461037f578063203e727e1461039e57806323b872dd146103c057600080fd5b366102ef57005b600080fd5b34801561030057600080fd5b50610309610961565b6040516103169190612205565b60405180910390f35b34801561032b57600080fd5b5061033f61033a366004612269565b6109f3565b6040519015158152602001610316565b34801561035b57600080fd5b5061033f61036a366004612295565b60136020526000908152604090205460ff1681565b34801561038b57600080fd5b506002545b604051908152602001610316565b3480156103aa57600080fd5b506103be6103b93660046122b2565b610a0d565b005b3480156103cc57600080fd5b5061033f6103db3660046122cb565b610acd565b3480156103ec57600080fd5b5060405160128152602001610316565b34801561040857600080fd5b506103be61041736600461230c565b610af1565b34801561042857600080fd5b50600b5461033f906301000000900460ff1681565b34801561044957600080fd5b506103be610c37565b34801561045e57600080fd5b50600754610472906001600160a01b031681565b6040516001600160a01b039091168152602001610316565b34801561049657600080fd5b50600654610472906001600160a01b031681565b3480156104b657600080fd5b50600b5461033f9060ff1681565b3480156104d057600080fd5b5061033f6104df366004612295565b6001600160a01b031660009081526012602052604090205460ff1690565b34801561050957600080fd5b50610390600e5481565b34801561051f57600080fd5b506103be610d3d565b34801561053457600080fd5b506103be610543366004612295565b610d5a565b34801561055457600080fd5b50610390600f5481565b34801561056a57600080fd5b5061039060105481565b34801561058057600080fd5b50600b5461033f9062010000900460ff1681565b3480156105a057600080fd5b506103906105af366004612295565b6001600160a01b031660009081526020819052604090205490565b3480156105d657600080fd5b506103be610dc2565b3480156105eb57600080fd5b506103be6105fa3660046122b2565b610dd6565b34801561060b57600080fd5b506104727f000000000000000000000000000000000000000000000000000000000000000081565b34801561063f57600080fd5b5061033f610de8565b34801561065457600080fd5b506103be610663366004612353565b610e02565b34801561067457600080fd5b506103be610683366004612295565b610e35565b34801561069457600080fd5b506103be6106a3366004612295565b610e5e565b3480156106b457600080fd5b506103be610ec3565b3480156106c957600080fd5b506005546001600160a01b0316610472565b3480156106e757600080fd5b506103be6106f6366004612381565b610ede565b34801561070757600080fd5b50610309610f02565b34801561071c57600080fd5b506103be61072b366004612353565b610f11565b34801561073c57600080fd5b506103be610fa7565b34801561075157600080fd5b5061033f610760366004612269565b611174565b34801561077157600080fd5b5061033f610780366004612295565b60146020526000908152604090205460ff1681565b3480156107a157600080fd5b50600b5461033f90610100900460ff1681565b3480156107c057600080fd5b506103be6107cf366004612353565b611182565b3480156107e057600080fd5b506103be6107ef3660046122b2565b6111e9565b34801561080057600080fd5b5061039060085481565b34801561081657600080fd5b5061039060115481565b34801561082c57600080fd5b5061033f61083b3660046122b2565b611298565b34801561084c57600080fd5b50610390600d5481565b34801561086257600080fd5b5061039061087136600461230c565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3480156108a857600080fd5b506103be6108b7366004612295565b6112ab565b3480156108c857600080fd5b5061039060095481565b3480156108de57600080fd5b506103be6108ed3660046122b2565b6113d9565b3480156108fe57600080fd5b506103be61090d366004612295565b6113eb565b34801561091e57600080fd5b50610390600a5481565b34801561093457600080fd5b5061033f610943366004612295565b6001600160a01b03166000908152600c602052604090205460ff1690565b6060600380546109709061239e565b80601f016020809104026020016040519081016040528092919081815260200182805461099c9061239e565b80156109e95780601f106109be576101008083540402835291602001916109e9565b820191906000526020600020905b8154815290600101906020018083116109cc57829003601f168201915b5050505050905090565b600033610a01818585611429565b60019150505b92915050565b610a1561143b565b670de0b6b3a76400006103e8610a2a60025490565b610a359060056123ee565b610a3f9190612405565b610a499190612405565b811015610ab55760405162461bcd60e51b815260206004820152602f60248201527f43616e6e6f7420736574206d61785472616e73616374696f6e416d6f756e742060448201526e6c6f776572207468616e20302e352560881b60648201526084015b60405180910390fd5b610ac781670de0b6b3a76400006123ee565b60085550565b600033610adb858285611468565b610ae68585856114e0565b506001949350505050565b610af961143b565b6001600160a01b038216610b4f5760405162461bcd60e51b815260206004820152601a60248201527f5f746f6b656e20616464726573732063616e6e6f7420626520300000000000006044820152606401610aac565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa158015610b96573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bba9190612427565b60405163a9059cbb60e01b81526001600160a01b038481166004830152602482018390529192509084169063a9059cbb906044016020604051808303816000875af1158015610c0d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c319190612440565b50505050565b610c3f61143b565b6040516370a0823160e01b815230600482018190526000916370a0823190602401602060405180830381865afa158015610c7d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca19190612427565b60405163a9059cbb60e01b815233600482015260248101829052909150309063a9059cbb906044016020604051808303816000875af1158015610ce8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d0c9190612440565b5060405133904780156108fc02916000818181858888f19350505050158015610d39573d6000803e3d6000fd5b5050565b610d4561143b565b600b805463ff00000019166301000000179055565b610d6261143b565b6000816001600160a01b03164760405160006040518083038185875af1925050503d8060008114610daf576040519150601f19603f3d011682016040523d82523d6000602084013e610db4565b606091505b5050905080610d3957600080fd5b610dca61143b565b610dd46000611c4c565b565b610dde61143b565b600e819055600d55565b6000610df261143b565b50600b805460ff19169055600190565b610e0a61143b565b6001600160a01b03919091166000908152601360205260409020805460ff1916911515919091179055565b610e3d61143b565b6001600160a01b03166000908152600c60205260409020805460ff19169055565b610e6661143b565b6007546040516001600160a01b03918216918316907f02f8a1483978974a6412ba3a67040b4daa4fc0dfe9439a7295f9a9538394f63590600090a3600780546001600160a01b0319166001600160a01b0392909216919091179055565b610ecb61143b565b600b805462ffff00191662010100179055565b610ee661143b565b600b8054911515620100000262ff000019909216919091179055565b6060600480546109709061239e565b610f1961143b565b6006546001600160a01b0390811690831603610f9d5760405162461bcd60e51b815260206004820152603960248201527f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d2060448201527f6175746f6d617465644d61726b65744d616b65725061697273000000000000006064820152608401610aac565b610d398282611c9e565b610faf61143b565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa15801561100d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611031919061245d565b6001600160a01b031663c9c65396307f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561109e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110c2919061245d565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af115801561110f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611133919061245d565b600680546001600160a01b0319166001600160a01b0392909216918217905561115d906001610e02565b600654610dd4906001600160a01b03166001611c9e565b600033610a018185856114e0565b61118a61143b565b6001600160a01b038216600081815260126020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6111f161143b565b670de0b6b3a76400006103e861120660025490565b61121190600a6123ee565b61121b9190612405565b6112259190612405565b8110156112805760405162461bcd60e51b8152602060048201526024808201527f43616e6e6f7420736574206d617857616c6c6574206c6f776572207468616e20604482015263312e302560e01b6064820152608401610aac565b61129281670de0b6b3a76400006123ee565b600a5550565b60006112a261143b565b50600955600190565b6112b361143b565b600b546301000000900460ff16156113175760405162461bcd60e51b815260206004820152602160248201527f5465616d20686173207265766f6b656420626c61636b6c6973742072696768746044820152607360f81b6064820152608401610aac565b6006546001600160a01b0382811691161480159061135257506001600160a01b038116737a250d5630b4cf539739df2c5dacb4c659f2488d14155b6113b55760405162461bcd60e51b815260206004820152602e60248201527f43616e6e6f7420626c61636b6c69737420746f6b656e277320763220726f757460448201526d32b91037b9103b19103837b7b61760911b6064820152608401610aac565b6001600160a01b03166000908152600c60205260409020805460ff19166001179055565b6113e161143b565b6010819055600f55565b6113f361143b565b6001600160a01b03811661141d57604051631e4fbdf760e01b815260006004820152602401610aac565b61142681611c4c565b50565b6114368383836001611cf2565b505050565b6005546001600160a01b03163314610dd45760405163118cdaa760e01b8152336004820152602401610aac565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610c3157818110156114d157604051637dc7a0d960e11b81526001600160a01b03841660048201526024810182905260448101839052606401610aac565b610c3184848484036000611cf2565b6001600160a01b0383166115445760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610aac565b6001600160a01b0382166115a65760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610aac565b6001600160a01b0383166000908152600c602052604090205460ff16156116045760405162461bcd60e51b815260206004820152601260248201527114d95b99195c88189b1858dadb1a5cdd195960721b6044820152606401610aac565b6001600160a01b0382166000908152600c602052604090205460ff16156116645760405162461bcd60e51b8152602060048201526014602482015273149958d95a5d995c88189b1858dadb1a5cdd195960621b6044820152606401610aac565b806000036116785761143683836000611dc7565b600b5460ff16156119d7576005546001600160a01b038481169116148015906116af57506005546001600160a01b03838116911614155b80156116c357506001600160a01b03821615155b80156116d95750600654600160a01b900460ff16155b156119d757600b54610100900460ff16611771576001600160a01b03831660009081526012602052604090205460ff168061172c57506001600160a01b03821660009081526012602052604090205460ff165b6117715760405162461bcd60e51b81526020600482015260166024820152752a3930b234b7339034b9903737ba1030b1ba34bb329760511b6044820152606401610aac565b6001600160a01b03831660009081526014602052604090205460ff1680156117b257506001600160a01b03821660009081526013602052604090205460ff16155b15611896576008548111156118275760405162461bcd60e51b815260206004820152603560248201527f427579207472616e7366657220616d6f756e742065786365656473207468652060448201527436b0bc2a3930b739b0b1ba34b7b720b6b7bab73a1760591b6064820152608401610aac565b600a546001600160a01b03831660009081526020819052604090205461184d908361247a565b11156118915760405162461bcd60e51b815260206004820152601360248201527213585e081dd85b1b195d08195e18d959591959606a1b6044820152606401610aac565b6119d7565b6001600160a01b03821660009081526014602052604090205460ff1680156118d757506001600160a01b03831660009081526013602052604090205460ff16155b1561194d576008548111156118915760405162461bcd60e51b815260206004820152603660248201527f53656c6c207472616e7366657220616d6f756e742065786365656473207468656044820152751036b0bc2a3930b739b0b1ba34b7b720b6b7bab73a1760511b6064820152608401610aac565b6001600160a01b03821660009081526013602052604090205460ff166119d757600a546001600160a01b038316600090815260208190526040902054611993908361247a565b11156119d75760405162461bcd60e51b815260206004820152601360248201527213585e081dd85b1b195d08195e18d959591959606a1b6044820152606401610aac565b3060009081526020819052604090205460095481108015908190611a035750600b5462010000900460ff165b8015611a195750600654600160a01b900460ff16155b8015611a3e57506001600160a01b03851660009081526014602052604090205460ff16155b8015611a6357506001600160a01b03851660009081526012602052604090205460ff16155b8015611a8857506001600160a01b03841660009081526012602052604090205460ff16155b15611ab6576006805460ff60a01b1916600160a01b179055611aa8611e26565b6006805460ff60a01b191690555b6006546001600160a01b03861660009081526012602052604090205460ff600160a01b909204821615911680611b0457506001600160a01b03851660009081526012602052604090205460ff165b15611b0d575060005b60008115611c38576001600160a01b03861660009081526014602052604090205460ff168015611b3f57506000600f54115b15611b9d57611b646064611b5e600f5488611ef090919063ffffffff16565b90611f03565b9050600f5460105482611b7791906123ee565b611b819190612405565b60116000828254611b92919061247a565b90915550611c1a9050565b6001600160a01b03871660009081526014602052604090205460ff168015611bc757506000600d54115b15611c1a57611be66064611b5e600d5488611ef090919063ffffffff16565b9050600d54600e5482611bf991906123ee565b611c039190612405565b60116000828254611c14919061247a565b90915550505b8015611c2b57611c2b873083611dc7565b611c35818661248d565b94505b611c43878787611dc7565b50505050505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216600081815260146020526040808220805460ff191685151590811790915590519092917fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab91a35050565b6001600160a01b038416611d1c5760405163e602df0560e01b815260006004820152602401610aac565b6001600160a01b038316611d4657604051634a1406b160e11b815260006004820152602401610aac565b6001600160a01b0380851660009081526001602090815260408083209387168352929052208290558015610c3157826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051611db991815260200190565b60405180910390a350505050565b6001600160a01b038316611df157604051634b637e8f60e11b815260006004820152602401610aac565b6001600160a01b038216611e1b5760405163ec442f0560e01b815260006004820152602401610aac565b611436838383611f0f565b306000908152602081905260408120546011549091821580611e46575081155b15611e5057505050565b600954611e5e9060146123ee565b831115611e7657600954611e739060146123ee565b92505b8247611e8182612039565b6000611e8d47836121f9565b600060118190556007546040519293506001600160a01b031691839181818185875af1925050503d8060008114611ee0576040519150601f19603f3d011682016040523d82523d6000602084013e611ee5565b606091505b505050505050505050565b6000611efc82846123ee565b9392505050565b6000611efc8284612405565b6001600160a01b038316611f3a578060026000828254611f2f919061247a565b90915550611fac9050565b6001600160a01b03831660009081526020819052604090205481811015611f8d5760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610aac565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b038216611fc857600280548290039055611fe7565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161202c91815260200190565b60405180910390a3505050565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061206e5761206e6124a0565b60200260200101906001600160a01b031690816001600160a01b0316815250507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156120ec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612110919061245d565b81600181518110612123576121236124a0565b60200260200101906001600160a01b031690816001600160a01b03168152505061216e307f000000000000000000000000000000000000000000000000000000000000000084611429565b60405163791ac94760e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063791ac947906121c39085906000908690309042906004016124b6565b600060405180830381600087803b1580156121dd57600080fd5b505af11580156121f1573d6000803e3d6000fd5b505050505050565b6000611efc828461248d565b60006020808352835180602085015260005b8181101561223357858101830151858201604001528201612217565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461142657600080fd5b6000806040838503121561227c57600080fd5b823561228781612254565b946020939093013593505050565b6000602082840312156122a757600080fd5b8135611efc81612254565b6000602082840312156122c457600080fd5b5035919050565b6000806000606084860312156122e057600080fd5b83356122eb81612254565b925060208401356122fb81612254565b929592945050506040919091013590565b6000806040838503121561231f57600080fd5b823561232a81612254565b9150602083013561233a81612254565b809150509250929050565b801515811461142657600080fd5b6000806040838503121561236657600080fd5b823561237181612254565b9150602083013561233a81612345565b60006020828403121561239357600080fd5b8135611efc81612345565b600181811c908216806123b257607f821691505b6020821081036123d257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610a0757610a076123d8565b60008261242257634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561243957600080fd5b5051919050565b60006020828403121561245257600080fd5b8151611efc81612345565b60006020828403121561246f57600080fd5b8151611efc81612254565b80820180821115610a0757610a076123d8565b81810381811115610a0757610a076123d8565b634e487b7160e01b600052603260045260246000fd5b600060a08201878352602087602085015260a0604085015281875180845260c08601915060208901935060005b818110156125085784516001600160a01b0316835293830193918301916001016124e3565b50506001600160a01b0396909616606085015250505060800152939250505056fea26469706673582212204b9ce4a2f513521e3f9dc7c97ea625031924249c5cfe5024c0281fabbd5e567164736f6c63430008170033
Deployed Bytecode
0x6080604052600436106102e85760003560e01c80637571336a11610190578063c18bc195116100dc578063e19b282311610095578063f2fde38b1161006f578063f2fde38b146108f2578063f8b45b0514610912578063f9f92be41461089c578063fe575a871461092857600080fd5b8063e19b28231461089c578063e2f45605146108bc578063eba4c333146108d257600080fd5b8063c18bc195146107d4578063c8c8ebe4146107f4578063cc2ffe7c1461080a578063d257b34f14610820578063d85ba06314610840578063dd62ed3e1461085657600080fd5b806395d89b4111610149578063a9059cbb11610123578063a9059cbb14610745578063b62496f514610765578063bbc0c74214610795578063c0246668146107b457600080fd5b806395d89b41146106fb5780639a7a23d6146107105780639e78fb4f1461073057600080fd5b80637571336a1461064857806375e3661e14610668578063809d458d146106885780638a8c523c146106a85780638da5cb5b146106bd578063924de9b7146106db57600080fd5b80634a62bb651161024f5780636b2fb12411610208578063715018a6116101e2578063715018a6146105ca57806371fc4688146105df578063735de9f7146105ff578063751039fc1461063357600080fd5b80636b2fb1241461055e5780636ddd17131461057457806370a082311461059457600080fd5b80634a62bb65146104aa5780634fbee193146104c45780635c068a8c146104fd5780635f18936114610513578063690d8320146105285780636a486a8e1461054857600080fd5b8063313ce567116102a1578063313ce567146103e05780633aeac4e1146103fc5780633dc599ff1461041c5780633f5b1dd71461043d5780634626402b1461045257806349bd5a5e1461048a57600080fd5b806306fdde03146102f4578063095ea7b31461031f57806310d5de531461034f57806318160ddd1461037f578063203e727e1461039e57806323b872dd146103c057600080fd5b366102ef57005b600080fd5b34801561030057600080fd5b50610309610961565b6040516103169190612205565b60405180910390f35b34801561032b57600080fd5b5061033f61033a366004612269565b6109f3565b6040519015158152602001610316565b34801561035b57600080fd5b5061033f61036a366004612295565b60136020526000908152604090205460ff1681565b34801561038b57600080fd5b506002545b604051908152602001610316565b3480156103aa57600080fd5b506103be6103b93660046122b2565b610a0d565b005b3480156103cc57600080fd5b5061033f6103db3660046122cb565b610acd565b3480156103ec57600080fd5b5060405160128152602001610316565b34801561040857600080fd5b506103be61041736600461230c565b610af1565b34801561042857600080fd5b50600b5461033f906301000000900460ff1681565b34801561044957600080fd5b506103be610c37565b34801561045e57600080fd5b50600754610472906001600160a01b031681565b6040516001600160a01b039091168152602001610316565b34801561049657600080fd5b50600654610472906001600160a01b031681565b3480156104b657600080fd5b50600b5461033f9060ff1681565b3480156104d057600080fd5b5061033f6104df366004612295565b6001600160a01b031660009081526012602052604090205460ff1690565b34801561050957600080fd5b50610390600e5481565b34801561051f57600080fd5b506103be610d3d565b34801561053457600080fd5b506103be610543366004612295565b610d5a565b34801561055457600080fd5b50610390600f5481565b34801561056a57600080fd5b5061039060105481565b34801561058057600080fd5b50600b5461033f9062010000900460ff1681565b3480156105a057600080fd5b506103906105af366004612295565b6001600160a01b031660009081526020819052604090205490565b3480156105d657600080fd5b506103be610dc2565b3480156105eb57600080fd5b506103be6105fa3660046122b2565b610dd6565b34801561060b57600080fd5b506104727f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b34801561063f57600080fd5b5061033f610de8565b34801561065457600080fd5b506103be610663366004612353565b610e02565b34801561067457600080fd5b506103be610683366004612295565b610e35565b34801561069457600080fd5b506103be6106a3366004612295565b610e5e565b3480156106b457600080fd5b506103be610ec3565b3480156106c957600080fd5b506005546001600160a01b0316610472565b3480156106e757600080fd5b506103be6106f6366004612381565b610ede565b34801561070757600080fd5b50610309610f02565b34801561071c57600080fd5b506103be61072b366004612353565b610f11565b34801561073c57600080fd5b506103be610fa7565b34801561075157600080fd5b5061033f610760366004612269565b611174565b34801561077157600080fd5b5061033f610780366004612295565b60146020526000908152604090205460ff1681565b3480156107a157600080fd5b50600b5461033f90610100900460ff1681565b3480156107c057600080fd5b506103be6107cf366004612353565b611182565b3480156107e057600080fd5b506103be6107ef3660046122b2565b6111e9565b34801561080057600080fd5b5061039060085481565b34801561081657600080fd5b5061039060115481565b34801561082c57600080fd5b5061033f61083b3660046122b2565b611298565b34801561084c57600080fd5b50610390600d5481565b34801561086257600080fd5b5061039061087136600461230c565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3480156108a857600080fd5b506103be6108b7366004612295565b6112ab565b3480156108c857600080fd5b5061039060095481565b3480156108de57600080fd5b506103be6108ed3660046122b2565b6113d9565b3480156108fe57600080fd5b506103be61090d366004612295565b6113eb565b34801561091e57600080fd5b50610390600a5481565b34801561093457600080fd5b5061033f610943366004612295565b6001600160a01b03166000908152600c602052604090205460ff1690565b6060600380546109709061239e565b80601f016020809104026020016040519081016040528092919081815260200182805461099c9061239e565b80156109e95780601f106109be576101008083540402835291602001916109e9565b820191906000526020600020905b8154815290600101906020018083116109cc57829003601f168201915b5050505050905090565b600033610a01818585611429565b60019150505b92915050565b610a1561143b565b670de0b6b3a76400006103e8610a2a60025490565b610a359060056123ee565b610a3f9190612405565b610a499190612405565b811015610ab55760405162461bcd60e51b815260206004820152602f60248201527f43616e6e6f7420736574206d61785472616e73616374696f6e416d6f756e742060448201526e6c6f776572207468616e20302e352560881b60648201526084015b60405180910390fd5b610ac781670de0b6b3a76400006123ee565b60085550565b600033610adb858285611468565b610ae68585856114e0565b506001949350505050565b610af961143b565b6001600160a01b038216610b4f5760405162461bcd60e51b815260206004820152601a60248201527f5f746f6b656e20616464726573732063616e6e6f7420626520300000000000006044820152606401610aac565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa158015610b96573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bba9190612427565b60405163a9059cbb60e01b81526001600160a01b038481166004830152602482018390529192509084169063a9059cbb906044016020604051808303816000875af1158015610c0d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c319190612440565b50505050565b610c3f61143b565b6040516370a0823160e01b815230600482018190526000916370a0823190602401602060405180830381865afa158015610c7d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca19190612427565b60405163a9059cbb60e01b815233600482015260248101829052909150309063a9059cbb906044016020604051808303816000875af1158015610ce8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d0c9190612440565b5060405133904780156108fc02916000818181858888f19350505050158015610d39573d6000803e3d6000fd5b5050565b610d4561143b565b600b805463ff00000019166301000000179055565b610d6261143b565b6000816001600160a01b03164760405160006040518083038185875af1925050503d8060008114610daf576040519150601f19603f3d011682016040523d82523d6000602084013e610db4565b606091505b5050905080610d3957600080fd5b610dca61143b565b610dd46000611c4c565b565b610dde61143b565b600e819055600d55565b6000610df261143b565b50600b805460ff19169055600190565b610e0a61143b565b6001600160a01b03919091166000908152601360205260409020805460ff1916911515919091179055565b610e3d61143b565b6001600160a01b03166000908152600c60205260409020805460ff19169055565b610e6661143b565b6007546040516001600160a01b03918216918316907f02f8a1483978974a6412ba3a67040b4daa4fc0dfe9439a7295f9a9538394f63590600090a3600780546001600160a01b0319166001600160a01b0392909216919091179055565b610ecb61143b565b600b805462ffff00191662010100179055565b610ee661143b565b600b8054911515620100000262ff000019909216919091179055565b6060600480546109709061239e565b610f1961143b565b6006546001600160a01b0390811690831603610f9d5760405162461bcd60e51b815260206004820152603960248201527f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d2060448201527f6175746f6d617465644d61726b65744d616b65725061697273000000000000006064820152608401610aac565b610d398282611c9e565b610faf61143b565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa15801561100d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611031919061245d565b6001600160a01b031663c9c65396307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561109e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110c2919061245d565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af115801561110f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611133919061245d565b600680546001600160a01b0319166001600160a01b0392909216918217905561115d906001610e02565b600654610dd4906001600160a01b03166001611c9e565b600033610a018185856114e0565b61118a61143b565b6001600160a01b038216600081815260126020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6111f161143b565b670de0b6b3a76400006103e861120660025490565b61121190600a6123ee565b61121b9190612405565b6112259190612405565b8110156112805760405162461bcd60e51b8152602060048201526024808201527f43616e6e6f7420736574206d617857616c6c6574206c6f776572207468616e20604482015263312e302560e01b6064820152608401610aac565b61129281670de0b6b3a76400006123ee565b600a5550565b60006112a261143b565b50600955600190565b6112b361143b565b600b546301000000900460ff16156113175760405162461bcd60e51b815260206004820152602160248201527f5465616d20686173207265766f6b656420626c61636b6c6973742072696768746044820152607360f81b6064820152608401610aac565b6006546001600160a01b0382811691161480159061135257506001600160a01b038116737a250d5630b4cf539739df2c5dacb4c659f2488d14155b6113b55760405162461bcd60e51b815260206004820152602e60248201527f43616e6e6f7420626c61636b6c69737420746f6b656e277320763220726f757460448201526d32b91037b9103b19103837b7b61760911b6064820152608401610aac565b6001600160a01b03166000908152600c60205260409020805460ff19166001179055565b6113e161143b565b6010819055600f55565b6113f361143b565b6001600160a01b03811661141d57604051631e4fbdf760e01b815260006004820152602401610aac565b61142681611c4c565b50565b6114368383836001611cf2565b505050565b6005546001600160a01b03163314610dd45760405163118cdaa760e01b8152336004820152602401610aac565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610c3157818110156114d157604051637dc7a0d960e11b81526001600160a01b03841660048201526024810182905260448101839052606401610aac565b610c3184848484036000611cf2565b6001600160a01b0383166115445760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610aac565b6001600160a01b0382166115a65760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610aac565b6001600160a01b0383166000908152600c602052604090205460ff16156116045760405162461bcd60e51b815260206004820152601260248201527114d95b99195c88189b1858dadb1a5cdd195960721b6044820152606401610aac565b6001600160a01b0382166000908152600c602052604090205460ff16156116645760405162461bcd60e51b8152602060048201526014602482015273149958d95a5d995c88189b1858dadb1a5cdd195960621b6044820152606401610aac565b806000036116785761143683836000611dc7565b600b5460ff16156119d7576005546001600160a01b038481169116148015906116af57506005546001600160a01b03838116911614155b80156116c357506001600160a01b03821615155b80156116d95750600654600160a01b900460ff16155b156119d757600b54610100900460ff16611771576001600160a01b03831660009081526012602052604090205460ff168061172c57506001600160a01b03821660009081526012602052604090205460ff165b6117715760405162461bcd60e51b81526020600482015260166024820152752a3930b234b7339034b9903737ba1030b1ba34bb329760511b6044820152606401610aac565b6001600160a01b03831660009081526014602052604090205460ff1680156117b257506001600160a01b03821660009081526013602052604090205460ff16155b15611896576008548111156118275760405162461bcd60e51b815260206004820152603560248201527f427579207472616e7366657220616d6f756e742065786365656473207468652060448201527436b0bc2a3930b739b0b1ba34b7b720b6b7bab73a1760591b6064820152608401610aac565b600a546001600160a01b03831660009081526020819052604090205461184d908361247a565b11156118915760405162461bcd60e51b815260206004820152601360248201527213585e081dd85b1b195d08195e18d959591959606a1b6044820152606401610aac565b6119d7565b6001600160a01b03821660009081526014602052604090205460ff1680156118d757506001600160a01b03831660009081526013602052604090205460ff16155b1561194d576008548111156118915760405162461bcd60e51b815260206004820152603660248201527f53656c6c207472616e7366657220616d6f756e742065786365656473207468656044820152751036b0bc2a3930b739b0b1ba34b7b720b6b7bab73a1760511b6064820152608401610aac565b6001600160a01b03821660009081526013602052604090205460ff166119d757600a546001600160a01b038316600090815260208190526040902054611993908361247a565b11156119d75760405162461bcd60e51b815260206004820152601360248201527213585e081dd85b1b195d08195e18d959591959606a1b6044820152606401610aac565b3060009081526020819052604090205460095481108015908190611a035750600b5462010000900460ff165b8015611a195750600654600160a01b900460ff16155b8015611a3e57506001600160a01b03851660009081526014602052604090205460ff16155b8015611a6357506001600160a01b03851660009081526012602052604090205460ff16155b8015611a8857506001600160a01b03841660009081526012602052604090205460ff16155b15611ab6576006805460ff60a01b1916600160a01b179055611aa8611e26565b6006805460ff60a01b191690555b6006546001600160a01b03861660009081526012602052604090205460ff600160a01b909204821615911680611b0457506001600160a01b03851660009081526012602052604090205460ff165b15611b0d575060005b60008115611c38576001600160a01b03861660009081526014602052604090205460ff168015611b3f57506000600f54115b15611b9d57611b646064611b5e600f5488611ef090919063ffffffff16565b90611f03565b9050600f5460105482611b7791906123ee565b611b819190612405565b60116000828254611b92919061247a565b90915550611c1a9050565b6001600160a01b03871660009081526014602052604090205460ff168015611bc757506000600d54115b15611c1a57611be66064611b5e600d5488611ef090919063ffffffff16565b9050600d54600e5482611bf991906123ee565b611c039190612405565b60116000828254611c14919061247a565b90915550505b8015611c2b57611c2b873083611dc7565b611c35818661248d565b94505b611c43878787611dc7565b50505050505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216600081815260146020526040808220805460ff191685151590811790915590519092917fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab91a35050565b6001600160a01b038416611d1c5760405163e602df0560e01b815260006004820152602401610aac565b6001600160a01b038316611d4657604051634a1406b160e11b815260006004820152602401610aac565b6001600160a01b0380851660009081526001602090815260408083209387168352929052208290558015610c3157826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051611db991815260200190565b60405180910390a350505050565b6001600160a01b038316611df157604051634b637e8f60e11b815260006004820152602401610aac565b6001600160a01b038216611e1b5760405163ec442f0560e01b815260006004820152602401610aac565b611436838383611f0f565b306000908152602081905260408120546011549091821580611e46575081155b15611e5057505050565b600954611e5e9060146123ee565b831115611e7657600954611e739060146123ee565b92505b8247611e8182612039565b6000611e8d47836121f9565b600060118190556007546040519293506001600160a01b031691839181818185875af1925050503d8060008114611ee0576040519150601f19603f3d011682016040523d82523d6000602084013e611ee5565b606091505b505050505050505050565b6000611efc82846123ee565b9392505050565b6000611efc8284612405565b6001600160a01b038316611f3a578060026000828254611f2f919061247a565b90915550611fac9050565b6001600160a01b03831660009081526020819052604090205481811015611f8d5760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610aac565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b038216611fc857600280548290039055611fe7565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161202c91815260200190565b60405180910390a3505050565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061206e5761206e6124a0565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa1580156120ec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612110919061245d565b81600181518110612123576121236124a0565b60200260200101906001600160a01b031690816001600160a01b03168152505061216e307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84611429565b60405163791ac94760e01b81526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d169063791ac947906121c39085906000908690309042906004016124b6565b600060405180830381600087803b1580156121dd57600080fd5b505af11580156121f1573d6000803e3d6000fd5b505050505050565b6000611efc828461248d565b60006020808352835180602085015260005b8181101561223357858101830151858201604001528201612217565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b038116811461142657600080fd5b6000806040838503121561227c57600080fd5b823561228781612254565b946020939093013593505050565b6000602082840312156122a757600080fd5b8135611efc81612254565b6000602082840312156122c457600080fd5b5035919050565b6000806000606084860312156122e057600080fd5b83356122eb81612254565b925060208401356122fb81612254565b929592945050506040919091013590565b6000806040838503121561231f57600080fd5b823561232a81612254565b9150602083013561233a81612254565b809150509250929050565b801515811461142657600080fd5b6000806040838503121561236657600080fd5b823561237181612254565b9150602083013561233a81612345565b60006020828403121561239357600080fd5b8135611efc81612345565b600181811c908216806123b257607f821691505b6020821081036123d257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610a0757610a076123d8565b60008261242257634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561243957600080fd5b5051919050565b60006020828403121561245257600080fd5b8151611efc81612345565b60006020828403121561246f57600080fd5b8151611efc81612254565b80820180821115610a0757610a076123d8565b81810381811115610a0757610a076123d8565b634e487b7160e01b600052603260045260246000fd5b600060a08201878352602087602085015260a0604085015281875180845260c08601915060208901935060005b818110156125085784516001600160a01b0316835293830193918301916001016124e3565b50506001600160a01b0396909616606085015250505060800152939250505056fea26469706673582212204b9ce4a2f513521e3f9dc7c97ea625031924249c5cfe5024c0281fabbd5e567164736f6c63430008170033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.