ERC-20
Overview
Max Total Supply
10,000,000 LOCAI
Holders
332
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
10,576.500477097470655005 LOCAIValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
LOCAI
Compiler Version
v0.8.23+commit.f704f362
Optimization Enabled:
Yes with 20000 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.23; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./interfaces/IUniswapV2Router02.sol"; import "./interfaces/IUniswapV2Factory.sol"; contract LOCAI is Ownable, ERC20 { error MaxTxAmountExceeded(); error MaxWalletAmountExceeded(); error NotAuthorized(); event OpenTrading(); event DisableLimits(); event UpdateTreasuryWL(address _treasury); event SwapBack(uint256 amount); event UpdateSwapTokenAt(uint256 amount); IUniswapV2Router02 router; uint256 _totalSupply = 10_000_000 * 10 ** 18; address public pair; uint256 public TAX = 5; uint256 private _initialTax = 30; uint256 private _reduceTaxAt = 6; uint256 private _buyCount = 0; uint256 private _sellCount = 0; uint256 private _maxAmount = _totalSupply / 20; // 5% of total supply uint256 private _maxWallet = _maxAmount; bool private _tradingEnable; address public treasuryWallet; bool public limit = true; uint256 public swapTokenAt = _totalSupply / 1000; mapping(address => bool) private _isExcludedFromFees; bool private _swaping = false; modifier onSwap() { _swaping = true; _; _swaping = false; } constructor( address _treasury, address _router ) ERC20("LocalAI", "LOCAI") { router = IUniswapV2Router02(_router); treasuryWallet = _treasury; pair = IUniswapV2Factory(router.factory()).createPair( address(this), router.WETH() ); _isExcludedFromFees[_msgSender()] = true; _isExcludedFromFees[address(this)] = true; _isExcludedFromFees[address(router)] = true; _isExcludedFromFees[address(_treasury)] = true; _mint(_msgSender(), _totalSupply); _approve(_msgSender(), address(router), type(uint256).max); } receive() external payable {} function setSwapTokenAt(uint256 value) external onlyOwner { swapTokenAt = value; emit UpdateSwapTokenAt(value); } function openTrading() external onlyOwner { _tradingEnable = true; emit OpenTrading(); } function getIsExcludedFromFees( address _address ) external view returns (bool) { return _isExcludedFromFees[_address]; } function excludedFromFees( address _address, bool _value ) external onlyOwner { _isExcludedFromFees[_address] = _value; } function _transfer( address from, address to, uint256 amount ) internal override { if ( _isExcludedFromFees[from] || _isExcludedFromFees[to] || (to != pair && from != pair) || _swaping ) { super._transfer(from, to, amount); return; } require(_tradingEnable, "Trading is not open"); if (limit) { if ((from == pair || to == pair) && amount > _maxAmount) { revert MaxTxAmountExceeded(); } if (to != pair && balanceOf(to) + amount > _maxWallet) { revert MaxWalletAmountExceeded(); } } uint256 _totalFees = (amount * TAX) / 100; if (to == pair) { _sellCount += 1; _totalFees = (amount * (_sellCount > (_reduceTaxAt / 2) ? TAX : _initialTax)) / 100; if (balanceOf(address(this)) >= swapTokenAt) { swapBack(); } } if (from == pair) { _buyCount += 1; _totalFees = (amount * (_buyCount > _reduceTaxAt ? TAX : _initialTax)) / 100; } if (_totalFees > 0) { super._transfer(from, address(this), _totalFees); amount = amount - _totalFees; } super._transfer(from, to, amount); } function swapBack() public onSwap { address[] memory path = new address[](2); path[0] = address(this); path[1] = router.WETH(); _approve(address(this), address(router), swapTokenAt); router.swapExactTokensForETHSupportingFeeOnTransferTokens( swapTokenAt, 0, path, address(this), block.timestamp ); uint256 balance = address(this).balance; if (balance > 0) { (bool sent, ) = payable(treasuryWallet).call{value: balance}(""); require(sent, "Failed to send Ether to treasury wallet"); } emit SwapBack(swapTokenAt); } function disableLimits() external onlyOwner { require(limit, "Limits already removed"); limit = false; _maxWallet = _totalSupply; _maxAmount = _totalSupply; emit DisableLimits(); } function setTreasuryWL(address _treasury) external onlyOwner { treasuryWallet = _treasury; emit UpdateTreasuryWL(_treasury); } function setMaxAmount(uint256 value) external onlyOwner { require(value > _totalSupply / 1000, "Value must be more than 0.1%"); _maxAmount = value; _maxWallet = value; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the default value returned by this function, unless * it's overridden. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer(address from, address to, uint256 amount) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 amount) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.23; import "./IUniswapV2Router01.sol"; interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.23; interface IUniswapV2Factory { event PairCreated( address indexed token0, address indexed token1, address pair, uint ); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getPair( address tokenA, address tokenB ) external view returns (address pair); function allPairs(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function createPair( address tokenA, address tokenB ) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.23; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable returns (uint[] memory amounts); function swapTokensForExactETH( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactTokensForETH( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapETHForExactTokens( uint amountOut, address[] calldata path, address to, uint deadline ) external payable returns (uint[] memory amounts); function quote( uint amountA, uint reserveA, uint reserveB ) external pure returns (uint amountB); function getAmountOut( uint amountIn, uint reserveIn, uint reserveOut ) external pure returns (uint amountOut); function getAmountIn( uint amountOut, uint reserveIn, uint reserveOut ) external pure returns (uint amountIn); function getAmountsOut( uint amountIn, address[] calldata path ) external view returns (uint[] memory amounts); function getAmountsIn( uint amountOut, address[] calldata path ) external view returns (uint[] memory amounts); }
{ "remappings": [ "@openzeppelin/=lib/openzeppelin-contracts/", "ds-test/=lib/forge-std/lib/ds-test/src/", "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/", "forge-std/=lib/forge-std/src/", "openzeppelin-contracts/=lib/openzeppelin-contracts/", "openzeppelin/=lib/openzeppelin-contracts/contracts/" ], "optimizer": { "enabled": true, "runs": 20000 }, "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":[{"internalType":"address","name":"_treasury","type":"address"},{"internalType":"address","name":"_router","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"MaxTxAmountExceeded","type":"error"},{"inputs":[],"name":"MaxWalletAmountExceeded","type":"error"},{"inputs":[],"name":"NotAuthorized","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":[],"name":"DisableLimits","type":"event"},{"anonymous":false,"inputs":[],"name":"OpenTrading","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"SwapBack","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"UpdateSwapTokenAt","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_treasury","type":"address"}],"name":"UpdateTreasuryWL","type":"event"},{"inputs":[],"name":"TAX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"disableLimits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"_value","type":"bool"}],"name":"excludedFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getIsExcludedFromFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"limit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setMaxAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setSwapTokenAt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"setTreasuryWL","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapBack","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapTokenAt","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":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasuryWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040526a084595161401484a0000006007556005600955601e600a556006600b556000600c556000600d5560146007546200003d9190620005d3565b600e819055600f556010805460ff60a81b1916600160a81b1790556007546200006a906103e890620005d3565b6011556013805460ff191690553480156200008457600080fd5b506040516200245f3803806200245f833981016040819052620000a79162000613565b604051806040016040528060078152602001664c6f63616c414960c81b815250604051806040016040528060058152602001644c4f43414960d81b815250620000ff620000f96200038960201b60201c565b6200038d565b60046200010d8382620006f1565b5060056200011c8282620006f1565b5050600680546001600160a01b038085166001600160a01b031990921682179092556010805492861661010002610100600160a81b0319909316929092179091556040805163c45a015560e01b8152905191925063c45a01559160048083019260209291908290030181865afa1580156200019b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001c19190620007bd565b6001600160a01b031663c9c6539630600660009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000224573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200024a9190620007bd565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af115801562000298573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002be9190620007bd565b600880546001600160a01b0319166001600160a01b0392909216919091179055600160126000620002ec3390565b6001600160a01b03908116825260208083019390935260409182016000908120805495151560ff199687161790553081526012909352818320805485166001908117909155600654821684528284208054861682179055908616835291208054909216179055620003676200035e3390565b600754620003dd565b62000381336006546001600160a01b0316600019620004a6565b50506200080a565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038216620004395760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064015b60405180910390fd5b80600360008282546200044d9190620007e2565b90915550506001600160a01b0382166000818152600160209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b0383166200050a5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840162000430565b6001600160a01b0382166200056d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840162000430565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b505050565b600082620005f157634e487b7160e01b600052601260045260246000fd5b500490565b80516001600160a01b03811681146200060e57600080fd5b919050565b600080604083850312156200062757600080fd5b6200063283620005f6565b91506200064260208401620005f6565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200067657607f821691505b6020821081036200069757634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620005ce576000816000526020600020601f850160051c81016020861015620006c85750805b601f850160051c820191505b81811015620006e957828155600101620006d4565b505050505050565b81516001600160401b038111156200070d576200070d6200064b565b62000725816200071e845462000661565b846200069d565b602080601f8311600181146200075d5760008415620007445750858301515b600019600386901b1c1916600185901b178555620006e9565b600085815260208120601f198616915b828110156200078e578886015182559484019460019091019084016200076d565b5085821015620007ad5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060208284031215620007d057600080fd5b620007db82620005f6565b9392505050565b808201808211156200080457634e487b7160e01b600052601160045260246000fd5b92915050565b611c45806200081a6000396000f3fe6080604052600436106101b05760003560e01c8063715018a6116100ec578063a4d66daf1161008a578063c9567bf911610064578063c9567bf91461052a578063dd62ed3e1461053f578063f2fde38b14610592578063f928364c146105b257600080fd5b8063a4d66daf146104aa578063a8aa1b31146104dd578063a9059cbb1461050a57600080fd5b8063864b3167116100c6578063864b31671461042a5780638da5cb5b1461044a57806395d89b4114610475578063a457c2d71461048a57600080fd5b8063715018a6146103b957806373bc5a36146103ce5780637b16cea0146103e457600080fd5b806332fc4c01116101595780634fe47f70116101335780634fe47f701461032b57806368f58b031461034b5780636ac5eeee1461036157806370a082311461037657600080fd5b806332fc4c011461029457806339509351146102b45780634626402b146102d457600080fd5b806318160ddd1161018a57806318160ddd1461023957806323b872dd14610258578063313ce5671461027857600080fd5b806306fdde03146101bc578063095ea7b3146101e757806316697fc51461021757600080fd5b366101b757005b600080fd5b3480156101c857600080fd5b506101d16105c7565b6040516101de9190611897565b60405180910390f35b3480156101f357600080fd5b50610207610202366004611926565b610659565b60405190151581526020016101de565b34801561022357600080fd5b50610237610232366004611952565b610673565b005b34801561024557600080fd5b506003545b6040519081526020016101de565b34801561026457600080fd5b50610207610273366004611990565b6106d1565b34801561028457600080fd5b50604051601281526020016101de565b3480156102a057600080fd5b506102376102af3660046119d1565b6106f5565b3480156102c057600080fd5b506102076102cf366004611926565b61077e565b3480156102e057600080fd5b5060105461030690610100900473ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101de565b34801561033757600080fd5b506102376103463660046119f5565b6107ca565b34801561035757600080fd5b5061024a60095481565b34801561036d57600080fd5b50610237610859565b34801561038257600080fd5b5061024a6103913660046119d1565b73ffffffffffffffffffffffffffffffffffffffff1660009081526001602052604090205490565b3480156103c557600080fd5b50610237610b9e565b3480156103da57600080fd5b5061024a60115481565b3480156103f057600080fd5b506102076103ff3660046119d1565b73ffffffffffffffffffffffffffffffffffffffff1660009081526012602052604090205460ff1690565b34801561043657600080fd5b506102376104453660046119f5565b610bb2565b34801561045657600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff16610306565b34801561048157600080fd5b506101d1610bef565b34801561049657600080fd5b506102076104a5366004611926565b610bfe565b3480156104b657600080fd5b50601054610207907501000000000000000000000000000000000000000000900460ff1681565b3480156104e957600080fd5b506008546103069073ffffffffffffffffffffffffffffffffffffffff1681565b34801561051657600080fd5b50610207610525366004611926565b610ccf565b34801561053657600080fd5b50610237610cdd565b34801561054b57600080fd5b5061024a61055a366004611a0e565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260026020908152604080832093909416825291909152205490565b34801561059e57600080fd5b506102376105ad3660046119d1565b610d3b565b3480156105be57600080fd5b50610237610df2565b6060600480546105d690611a3c565b80601f016020809104026020016040519081016040528092919081815260200182805461060290611a3c565b801561064f5780601f106106245761010080835404028352916020019161064f565b820191906000526020600020905b81548152906001019060200180831161063257829003601f168201915b5050505050905090565b600033610667818585610edd565b60019150505b92915050565b61067b611090565b73ffffffffffffffffffffffffffffffffffffffff91909116600090815260126020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b6000336106df858285611111565b6106ea8585856111e8565b506001949350505050565b6106fd611090565b601080547fffffffffffffffffffffff0000000000000000000000000000000000000000ff1661010073ffffffffffffffffffffffffffffffffffffffff8416908102919091179091556040519081527fbd5aa8e04dbf8cd0c0a2cf0d7f15cab9d94d85af3f5d347dc8359b9194610f02906020015b60405180910390a150565b33600081815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716845290915281205490919061066790829086906107c5908790611abe565b610edd565b6107d2611090565b6103e86007546107e29190611ad1565b811161084f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f56616c7565206d757374206265206d6f7265207468616e20302e31250000000060448201526064015b60405180910390fd5b600e819055600f55565b601380547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905560408051600280825260608201835260009260208301908036833701905050905030816000815181106108b9576108b9611b0c565b73ffffffffffffffffffffffffffffffffffffffff928316602091820292909201810191909152600654604080517fad5c46480000000000000000000000000000000000000000000000000000000081529051919093169263ad5c46489260048083019391928290030181865afa158015610938573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061095c9190611b3b565b8160018151811061096f5761096f611b0c565b73ffffffffffffffffffffffffffffffffffffffff92831660209182029290920101526006546011546109a59230921690610edd565b6006546011546040517f791ac94700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9092169163791ac94791610a0591600090869030904290600401611b58565b600060405180830381600087803b158015610a1f57600080fd5b505af1158015610a33573d6000803e3d6000fd5b504792505081159050610b3757601054604051600091610100900473ffffffffffffffffffffffffffffffffffffffff169083908381818185875af1925050503d8060008114610a9f576040519150601f19603f3d011682016040523d82523d6000602084013e610aa4565b606091505b5050905080610b35576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f4661696c656420746f2073656e6420457468657220746f20747265617375727960448201527f2077616c6c6574000000000000000000000000000000000000000000000000006064820152608401610846565b505b7fd851aeb8e2074b285cc12da5e2fbf79e642e38f62ef8e59590790c157491ee05601154604051610b6a91815260200190565b60405180910390a15050601380547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b610ba6611090565b610bb060006115ac565b565b610bba611090565b60118190556040518181527f4cba14fd4026630e64b03f8c6a0130ca310c15a5376cf7f6735c66880bb7bceb90602001610773565b6060600580546105d690611a3c565b33600081815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716845290915281205490919083811015610cc2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610846565b6106ea8286868403610edd565b6000336106678185856111e8565b610ce5611090565b601080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556040517f51cd7cc33235a1c89f708fecec535bf7cca0f94ed05216751befb052ca83e67990600090a1565b610d43611090565b73ffffffffffffffffffffffffffffffffffffffff8116610de6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610846565b610def816115ac565b50565b610dfa611090565b6010547501000000000000000000000000000000000000000000900460ff16610e7f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4c696d69747320616c72656164792072656d6f766564000000000000000000006044820152606401610846565b601080547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff169055600754600f819055600e556040517fe9070d302280cd857033f56893647494c1410643fe239daabee29e9292199b3d90600090a1565b73ffffffffffffffffffffffffffffffffffffffff8316610f7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610846565b73ffffffffffffffffffffffffffffffffffffffff8216611022576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610846565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610bb0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610846565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600260209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146111e257818110156111d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610846565b6111e28484848403610edd565b50505050565b73ffffffffffffffffffffffffffffffffffffffff831660009081526012602052604090205460ff1680611241575073ffffffffffffffffffffffffffffffffffffffff821660009081526012602052604090205460ff165b8061128d575060085473ffffffffffffffffffffffffffffffffffffffff83811691161480159061128d575060085473ffffffffffffffffffffffffffffffffffffffff848116911614155b8061129a575060135460ff165b156112af576112aa838383611621565b505050565b60105460ff1661131b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f54726164696e67206973206e6f74206f70656e000000000000000000000000006044820152606401610846565b6010547501000000000000000000000000000000000000000000900460ff161561145f5760085473ffffffffffffffffffffffffffffffffffffffff84811691161480611382575060085473ffffffffffffffffffffffffffffffffffffffff8381169116145b801561138f5750600e5481115b156113c6576040517f801bc44b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60085473ffffffffffffffffffffffffffffffffffffffff8381169116148015906114285750600f548161141c8473ffffffffffffffffffffffffffffffffffffffff1660009081526001602052604090205490565b6114269190611abe565b115b1561145f576040517fa9a44dff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006064600954836114719190611be5565b61147b9190611ad1565b60085490915073ffffffffffffffffffffffffffffffffffffffff90811690841603611516576001600d60008282546114b49190611abe565b9091555050600b546064906114cb90600290611ad1565b600d54116114db57600a546114df565b6009545b6114e99084611be5565b6114f39190611ad1565b601154306000908152600160205260409020549192501161151657611516610859565b60085473ffffffffffffffffffffffffffffffffffffffff90811690851603611583576001600c600082825461154c9190611abe565b925050819055506064600b54600c541161156857600a5461156c565b6009545b6115769084611be5565b6115809190611ad1565b90505b80156115a157611594843083611621565b61159e8183611bfc565b91505b6111e2848484611621565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b73ffffffffffffffffffffffffffffffffffffffff83166116c4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610846565b73ffffffffffffffffffffffffffffffffffffffff8216611767576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610846565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600160205260409020548181101561181d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610846565b73ffffffffffffffffffffffffffffffffffffffff80851660008181526001602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9061188a9086815260200190565b60405180910390a36111e2565b60006020808352835180602085015260005b818110156118c5578581018301518582016040015282016118a9565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b73ffffffffffffffffffffffffffffffffffffffff81168114610def57600080fd5b6000806040838503121561193957600080fd5b823561194481611904565b946020939093013593505050565b6000806040838503121561196557600080fd5b823561197081611904565b91506020830135801515811461198557600080fd5b809150509250929050565b6000806000606084860312156119a557600080fd5b83356119b081611904565b925060208401356119c081611904565b929592945050506040919091013590565b6000602082840312156119e357600080fd5b81356119ee81611904565b9392505050565b600060208284031215611a0757600080fd5b5035919050565b60008060408385031215611a2157600080fd5b8235611a2c81611904565b9150602083013561198581611904565b600181811c90821680611a5057607f821691505b602082108103611a89577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8082018082111561066d5761066d611a8f565b600082611b07577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600060208284031215611b4d57600080fd5b81516119ee81611904565b600060a08201878352602087602085015260a0604085015281875180845260c08601915060208901935060005b81811015611bb757845173ffffffffffffffffffffffffffffffffffffffff1683529383019391830191600101611b85565b505073ffffffffffffffffffffffffffffffffffffffff969096166060850152505050608001529392505050565b808202811582820484141761066d5761066d611a8f565b8181038181111561066d5761066d611a8f56fea2646970667358221220e841230b25fe2d779feb25faf4166aadfd1360d8b44a225edb154b970142fab064736f6c634300081700330000000000000000000000002ed655fffe5ff48e82b8e102fe7ffb723d3dd3be0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Deployed Bytecode
0x6080604052600436106101b05760003560e01c8063715018a6116100ec578063a4d66daf1161008a578063c9567bf911610064578063c9567bf91461052a578063dd62ed3e1461053f578063f2fde38b14610592578063f928364c146105b257600080fd5b8063a4d66daf146104aa578063a8aa1b31146104dd578063a9059cbb1461050a57600080fd5b8063864b3167116100c6578063864b31671461042a5780638da5cb5b1461044a57806395d89b4114610475578063a457c2d71461048a57600080fd5b8063715018a6146103b957806373bc5a36146103ce5780637b16cea0146103e457600080fd5b806332fc4c01116101595780634fe47f70116101335780634fe47f701461032b57806368f58b031461034b5780636ac5eeee1461036157806370a082311461037657600080fd5b806332fc4c011461029457806339509351146102b45780634626402b146102d457600080fd5b806318160ddd1161018a57806318160ddd1461023957806323b872dd14610258578063313ce5671461027857600080fd5b806306fdde03146101bc578063095ea7b3146101e757806316697fc51461021757600080fd5b366101b757005b600080fd5b3480156101c857600080fd5b506101d16105c7565b6040516101de9190611897565b60405180910390f35b3480156101f357600080fd5b50610207610202366004611926565b610659565b60405190151581526020016101de565b34801561022357600080fd5b50610237610232366004611952565b610673565b005b34801561024557600080fd5b506003545b6040519081526020016101de565b34801561026457600080fd5b50610207610273366004611990565b6106d1565b34801561028457600080fd5b50604051601281526020016101de565b3480156102a057600080fd5b506102376102af3660046119d1565b6106f5565b3480156102c057600080fd5b506102076102cf366004611926565b61077e565b3480156102e057600080fd5b5060105461030690610100900473ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101de565b34801561033757600080fd5b506102376103463660046119f5565b6107ca565b34801561035757600080fd5b5061024a60095481565b34801561036d57600080fd5b50610237610859565b34801561038257600080fd5b5061024a6103913660046119d1565b73ffffffffffffffffffffffffffffffffffffffff1660009081526001602052604090205490565b3480156103c557600080fd5b50610237610b9e565b3480156103da57600080fd5b5061024a60115481565b3480156103f057600080fd5b506102076103ff3660046119d1565b73ffffffffffffffffffffffffffffffffffffffff1660009081526012602052604090205460ff1690565b34801561043657600080fd5b506102376104453660046119f5565b610bb2565b34801561045657600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff16610306565b34801561048157600080fd5b506101d1610bef565b34801561049657600080fd5b506102076104a5366004611926565b610bfe565b3480156104b657600080fd5b50601054610207907501000000000000000000000000000000000000000000900460ff1681565b3480156104e957600080fd5b506008546103069073ffffffffffffffffffffffffffffffffffffffff1681565b34801561051657600080fd5b50610207610525366004611926565b610ccf565b34801561053657600080fd5b50610237610cdd565b34801561054b57600080fd5b5061024a61055a366004611a0e565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260026020908152604080832093909416825291909152205490565b34801561059e57600080fd5b506102376105ad3660046119d1565b610d3b565b3480156105be57600080fd5b50610237610df2565b6060600480546105d690611a3c565b80601f016020809104026020016040519081016040528092919081815260200182805461060290611a3c565b801561064f5780601f106106245761010080835404028352916020019161064f565b820191906000526020600020905b81548152906001019060200180831161063257829003601f168201915b5050505050905090565b600033610667818585610edd565b60019150505b92915050565b61067b611090565b73ffffffffffffffffffffffffffffffffffffffff91909116600090815260126020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b6000336106df858285611111565b6106ea8585856111e8565b506001949350505050565b6106fd611090565b601080547fffffffffffffffffffffff0000000000000000000000000000000000000000ff1661010073ffffffffffffffffffffffffffffffffffffffff8416908102919091179091556040519081527fbd5aa8e04dbf8cd0c0a2cf0d7f15cab9d94d85af3f5d347dc8359b9194610f02906020015b60405180910390a150565b33600081815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716845290915281205490919061066790829086906107c5908790611abe565b610edd565b6107d2611090565b6103e86007546107e29190611ad1565b811161084f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f56616c7565206d757374206265206d6f7265207468616e20302e31250000000060448201526064015b60405180910390fd5b600e819055600f55565b601380547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905560408051600280825260608201835260009260208301908036833701905050905030816000815181106108b9576108b9611b0c565b73ffffffffffffffffffffffffffffffffffffffff928316602091820292909201810191909152600654604080517fad5c46480000000000000000000000000000000000000000000000000000000081529051919093169263ad5c46489260048083019391928290030181865afa158015610938573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061095c9190611b3b565b8160018151811061096f5761096f611b0c565b73ffffffffffffffffffffffffffffffffffffffff92831660209182029290920101526006546011546109a59230921690610edd565b6006546011546040517f791ac94700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9092169163791ac94791610a0591600090869030904290600401611b58565b600060405180830381600087803b158015610a1f57600080fd5b505af1158015610a33573d6000803e3d6000fd5b504792505081159050610b3757601054604051600091610100900473ffffffffffffffffffffffffffffffffffffffff169083908381818185875af1925050503d8060008114610a9f576040519150601f19603f3d011682016040523d82523d6000602084013e610aa4565b606091505b5050905080610b35576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f4661696c656420746f2073656e6420457468657220746f20747265617375727960448201527f2077616c6c6574000000000000000000000000000000000000000000000000006064820152608401610846565b505b7fd851aeb8e2074b285cc12da5e2fbf79e642e38f62ef8e59590790c157491ee05601154604051610b6a91815260200190565b60405180910390a15050601380547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b610ba6611090565b610bb060006115ac565b565b610bba611090565b60118190556040518181527f4cba14fd4026630e64b03f8c6a0130ca310c15a5376cf7f6735c66880bb7bceb90602001610773565b6060600580546105d690611a3c565b33600081815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716845290915281205490919083811015610cc2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610846565b6106ea8286868403610edd565b6000336106678185856111e8565b610ce5611090565b601080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556040517f51cd7cc33235a1c89f708fecec535bf7cca0f94ed05216751befb052ca83e67990600090a1565b610d43611090565b73ffffffffffffffffffffffffffffffffffffffff8116610de6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610846565b610def816115ac565b50565b610dfa611090565b6010547501000000000000000000000000000000000000000000900460ff16610e7f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4c696d69747320616c72656164792072656d6f766564000000000000000000006044820152606401610846565b601080547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff169055600754600f819055600e556040517fe9070d302280cd857033f56893647494c1410643fe239daabee29e9292199b3d90600090a1565b73ffffffffffffffffffffffffffffffffffffffff8316610f7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610846565b73ffffffffffffffffffffffffffffffffffffffff8216611022576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610846565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610bb0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610846565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600260209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146111e257818110156111d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610846565b6111e28484848403610edd565b50505050565b73ffffffffffffffffffffffffffffffffffffffff831660009081526012602052604090205460ff1680611241575073ffffffffffffffffffffffffffffffffffffffff821660009081526012602052604090205460ff165b8061128d575060085473ffffffffffffffffffffffffffffffffffffffff83811691161480159061128d575060085473ffffffffffffffffffffffffffffffffffffffff848116911614155b8061129a575060135460ff165b156112af576112aa838383611621565b505050565b60105460ff1661131b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f54726164696e67206973206e6f74206f70656e000000000000000000000000006044820152606401610846565b6010547501000000000000000000000000000000000000000000900460ff161561145f5760085473ffffffffffffffffffffffffffffffffffffffff84811691161480611382575060085473ffffffffffffffffffffffffffffffffffffffff8381169116145b801561138f5750600e5481115b156113c6576040517f801bc44b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60085473ffffffffffffffffffffffffffffffffffffffff8381169116148015906114285750600f548161141c8473ffffffffffffffffffffffffffffffffffffffff1660009081526001602052604090205490565b6114269190611abe565b115b1561145f576040517fa9a44dff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006064600954836114719190611be5565b61147b9190611ad1565b60085490915073ffffffffffffffffffffffffffffffffffffffff90811690841603611516576001600d60008282546114b49190611abe565b9091555050600b546064906114cb90600290611ad1565b600d54116114db57600a546114df565b6009545b6114e99084611be5565b6114f39190611ad1565b601154306000908152600160205260409020549192501161151657611516610859565b60085473ffffffffffffffffffffffffffffffffffffffff90811690851603611583576001600c600082825461154c9190611abe565b925050819055506064600b54600c541161156857600a5461156c565b6009545b6115769084611be5565b6115809190611ad1565b90505b80156115a157611594843083611621565b61159e8183611bfc565b91505b6111e2848484611621565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b73ffffffffffffffffffffffffffffffffffffffff83166116c4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610846565b73ffffffffffffffffffffffffffffffffffffffff8216611767576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610846565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600160205260409020548181101561181d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610846565b73ffffffffffffffffffffffffffffffffffffffff80851660008181526001602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9061188a9086815260200190565b60405180910390a36111e2565b60006020808352835180602085015260005b818110156118c5578581018301518582016040015282016118a9565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b73ffffffffffffffffffffffffffffffffffffffff81168114610def57600080fd5b6000806040838503121561193957600080fd5b823561194481611904565b946020939093013593505050565b6000806040838503121561196557600080fd5b823561197081611904565b91506020830135801515811461198557600080fd5b809150509250929050565b6000806000606084860312156119a557600080fd5b83356119b081611904565b925060208401356119c081611904565b929592945050506040919091013590565b6000602082840312156119e357600080fd5b81356119ee81611904565b9392505050565b600060208284031215611a0757600080fd5b5035919050565b60008060408385031215611a2157600080fd5b8235611a2c81611904565b9150602083013561198581611904565b600181811c90821680611a5057607f821691505b602082108103611a89577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8082018082111561066d5761066d611a8f565b600082611b07577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600060208284031215611b4d57600080fd5b81516119ee81611904565b600060a08201878352602087602085015260a0604085015281875180845260c08601915060208901935060005b81811015611bb757845173ffffffffffffffffffffffffffffffffffffffff1683529383019391830191600101611b85565b505073ffffffffffffffffffffffffffffffffffffffff969096166060850152505050608001529392505050565b808202811582820484141761066d5761066d611a8f565b8181038181111561066d5761066d611a8f56fea2646970667358221220e841230b25fe2d779feb25faf4166aadfd1360d8b44a225edb154b970142fab064736f6c63430008170033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000002ed655fffe5ff48e82b8e102fe7ffb723d3dd3be0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
-----Decoded View---------------
Arg [0] : _treasury (address): 0x2ed655fFfE5FF48E82b8e102Fe7FFB723d3DD3be
Arg [1] : _router (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000002ed655fffe5ff48e82b8e102fe7ffb723d3dd3be
Arg [1] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
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.