Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
100,000,000,000 ELKTR
Holders
71
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
123,932,170.364304026979129051 ELKTRValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
ELKTR
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 ELKTR 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 = 100_000_000_000 * 10 ** 18; address public pair; uint256 public TAX = 1; uint256 private _initialTax = 30; uint256 private _reduceTaxAt = 10; uint256 private _buyCount = 0; uint256 private _sellCount = 0; uint256 private _maxAmount = (_totalSupply * 9 / 1000); // 0.9% of total supply uint256 private _maxWallet = _maxAmount; bool private _tradingEnable; address private 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("Elektro AI", "ELKTR") { 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"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040526c01431e0fae6d7217caa00000006007556001600955601e600a55600a600b556000600c556000600d556103e86007546009620000429190620005fd565b6200004e91906200061d565b600e819055600f556010805460ff60a81b1916600160a81b1790556007546200007b906103e8906200061d565b6011556013805460ff191690553480156200009557600080fd5b506040516200245638038062002456833981016040819052620000b8916200065d565b6040518060400160405280600a815260200169456c656b74726f20414960b01b8152506040518060400160405280600581526020016422a625aa2960d91b815250620001136200010d6200039d60201b60201c565b620003a1565b60046200012183826200073b565b5060056200013082826200073b565b5050600680546001600160a01b038085166001600160a01b031990921682179092556010805492861661010002610100600160a81b0319909316929092179091556040805163c45a015560e01b8152905191925063c45a01559160048083019260209291908290030181865afa158015620001af573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001d5919062000807565b6001600160a01b031663c9c6539630600660009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000238573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200025e919062000807565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af1158015620002ac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002d2919062000807565b600880546001600160a01b0319166001600160a01b0392909216919091179055600160126000620003003390565b6001600160a01b03908116825260208083019390935260409182016000908120805495151560ff1996871617905530815260129093528183208054851660019081179091556006548216845282842080548616821790559086168352912080549092161790556200037b620003723390565b600754620003f1565b62000395336006546001600160a01b0316600019620004ba565b505062000842565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0382166200044d5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064015b60405180910390fd5b80600360008282546200046191906200082c565b90915550506001600160a01b0382166000818152600160209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b0383166200051e5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840162000444565b6001600160a01b038216620005815760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840162000444565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b505050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417620006175762000617620005e7565b92915050565b6000826200063b57634e487b7160e01b600052601260045260246000fd5b500490565b80516001600160a01b03811681146200065857600080fd5b919050565b600080604083850312156200067157600080fd5b6200067c8362000640565b91506200068c6020840162000640565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620006c057607f821691505b602082108103620006e157634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620005e2576000816000526020600020601f850160051c81016020861015620007125750805b601f850160051c820191505b8181101562000733578281556001016200071e565b505050505050565b81516001600160401b0381111562000757576200075762000695565b6200076f81620007688454620006ab565b84620006e7565b602080601f831160018114620007a757600084156200078e5750858301515b600019600386901b1c1916600185901b17855562000733565b600085815260208120601f198616915b82811015620007d857888601518255948401946001909101908401620007b7565b5085821015620007f75787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000602082840312156200081a57600080fd5b620008258262000640565b9392505050565b80820180821115620006175762000617620005e7565b611c0480620008526000396000f3fe6080604052600436106101a55760003560e01c806373bc5a36116100e1578063a4d66daf1161008a578063c9567bf911610064578063c9567bf9146104e9578063dd62ed3e146104fe578063f2fde38b14610551578063f928364c1461057157600080fd5b8063a4d66daf14610469578063a8aa1b311461049c578063a9059cbb146104c957600080fd5b80638da5cb5b116100bb5780638da5cb5b146103e857806395d89b4114610434578063a457c2d71461044957600080fd5b806373bc5a361461036c5780637b16cea014610382578063864b3167146103c857600080fd5b806332fc4c011161014e57806368f58b031161012857806368f58b03146102e95780636ac5eeee146102ff57806370a0823114610314578063715018a61461035757600080fd5b806332fc4c011461028957806339509351146102a95780634fe47f70146102c957600080fd5b806318160ddd1161017f57806318160ddd1461022e57806323b872dd1461024d578063313ce5671461026d57600080fd5b806306fdde03146101b1578063095ea7b3146101dc57806316697fc51461020c57600080fd5b366101ac57005b600080fd5b3480156101bd57600080fd5b506101c6610586565b6040516101d39190611856565b60405180910390f35b3480156101e857600080fd5b506101fc6101f73660046118e5565b610618565b60405190151581526020016101d3565b34801561021857600080fd5b5061022c610227366004611911565b610632565b005b34801561023a57600080fd5b506003545b6040519081526020016101d3565b34801561025957600080fd5b506101fc61026836600461194f565b610690565b34801561027957600080fd5b50604051601281526020016101d3565b34801561029557600080fd5b5061022c6102a4366004611990565b6106b4565b3480156102b557600080fd5b506101fc6102c43660046118e5565b61073d565b3480156102d557600080fd5b5061022c6102e43660046119b4565b610789565b3480156102f557600080fd5b5061023f60095481565b34801561030b57600080fd5b5061022c610818565b34801561032057600080fd5b5061023f61032f366004611990565b73ffffffffffffffffffffffffffffffffffffffff1660009081526001602052604090205490565b34801561036357600080fd5b5061022c610b5d565b34801561037857600080fd5b5061023f60115481565b34801561038e57600080fd5b506101fc61039d366004611990565b73ffffffffffffffffffffffffffffffffffffffff1660009081526012602052604090205460ff1690565b3480156103d457600080fd5b5061022c6103e33660046119b4565b610b71565b3480156103f457600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101d3565b34801561044057600080fd5b506101c6610bae565b34801561045557600080fd5b506101fc6104643660046118e5565b610bbd565b34801561047557600080fd5b506010546101fc907501000000000000000000000000000000000000000000900460ff1681565b3480156104a857600080fd5b5060085461040f9073ffffffffffffffffffffffffffffffffffffffff1681565b3480156104d557600080fd5b506101fc6104e43660046118e5565b610c8e565b3480156104f557600080fd5b5061022c610c9c565b34801561050a57600080fd5b5061023f6105193660046119cd565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260026020908152604080832093909416825291909152205490565b34801561055d57600080fd5b5061022c61056c366004611990565b610cfa565b34801561057d57600080fd5b5061022c610db1565b606060048054610595906119fb565b80601f01602080910402602001604051908101604052809291908181526020018280546105c1906119fb565b801561060e5780601f106105e35761010080835404028352916020019161060e565b820191906000526020600020905b8154815290600101906020018083116105f157829003601f168201915b5050505050905090565b600033610626818585610e9c565b60019150505b92915050565b61063a61104f565b73ffffffffffffffffffffffffffffffffffffffff91909116600090815260126020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b60003361069e8582856110d0565b6106a98585856111a7565b506001949350505050565b6106bc61104f565b601080547fffffffffffffffffffffff0000000000000000000000000000000000000000ff1661010073ffffffffffffffffffffffffffffffffffffffff8416908102919091179091556040519081527fbd5aa8e04dbf8cd0c0a2cf0d7f15cab9d94d85af3f5d347dc8359b9194610f02906020015b60405180910390a150565b33600081815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff871684529091528120549091906106269082908690610784908790611a7d565b610e9c565b61079161104f565b6103e86007546107a19190611a90565b811161080e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f56616c7565206d757374206265206d6f7265207468616e20302e31250000000060448201526064015b60405180910390fd5b600e819055600f55565b601380547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055604080516002808252606082018352600092602083019080368337019050509050308160008151811061087857610878611acb565b73ffffffffffffffffffffffffffffffffffffffff928316602091820292909201810191909152600654604080517fad5c46480000000000000000000000000000000000000000000000000000000081529051919093169263ad5c46489260048083019391928290030181865afa1580156108f7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061091b9190611afa565b8160018151811061092e5761092e611acb565b73ffffffffffffffffffffffffffffffffffffffff92831660209182029290920101526006546011546109649230921690610e9c565b6006546011546040517f791ac94700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9092169163791ac947916109c491600090869030904290600401611b17565b600060405180830381600087803b1580156109de57600080fd5b505af11580156109f2573d6000803e3d6000fd5b504792505081159050610af657601054604051600091610100900473ffffffffffffffffffffffffffffffffffffffff169083908381818185875af1925050503d8060008114610a5e576040519150601f19603f3d011682016040523d82523d6000602084013e610a63565b606091505b5050905080610af4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f4661696c656420746f2073656e6420457468657220746f20747265617375727960448201527f2077616c6c6574000000000000000000000000000000000000000000000000006064820152608401610805565b505b7fd851aeb8e2074b285cc12da5e2fbf79e642e38f62ef8e59590790c157491ee05601154604051610b2991815260200190565b60405180910390a15050601380547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b610b6561104f565b610b6f600061156b565b565b610b7961104f565b60118190556040518181527f4cba14fd4026630e64b03f8c6a0130ca310c15a5376cf7f6735c66880bb7bceb90602001610732565b606060058054610595906119fb565b33600081815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716845290915281205490919083811015610c81576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610805565b6106a98286868403610e9c565b6000336106268185856111a7565b610ca461104f565b601080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556040517f51cd7cc33235a1c89f708fecec535bf7cca0f94ed05216751befb052ca83e67990600090a1565b610d0261104f565b73ffffffffffffffffffffffffffffffffffffffff8116610da5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610805565b610dae8161156b565b50565b610db961104f565b6010547501000000000000000000000000000000000000000000900460ff16610e3e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4c696d69747320616c72656164792072656d6f766564000000000000000000006044820152606401610805565b601080547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff169055600754600f819055600e556040517fe9070d302280cd857033f56893647494c1410643fe239daabee29e9292199b3d90600090a1565b73ffffffffffffffffffffffffffffffffffffffff8316610f3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610805565b73ffffffffffffffffffffffffffffffffffffffff8216610fe1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610805565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610b6f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610805565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600260209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146111a15781811015611194576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610805565b6111a18484848403610e9c565b50505050565b73ffffffffffffffffffffffffffffffffffffffff831660009081526012602052604090205460ff1680611200575073ffffffffffffffffffffffffffffffffffffffff821660009081526012602052604090205460ff165b8061124c575060085473ffffffffffffffffffffffffffffffffffffffff83811691161480159061124c575060085473ffffffffffffffffffffffffffffffffffffffff848116911614155b80611259575060135460ff165b1561126e576112698383836115e0565b505050565b60105460ff166112da576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f54726164696e67206973206e6f74206f70656e000000000000000000000000006044820152606401610805565b6010547501000000000000000000000000000000000000000000900460ff161561141e5760085473ffffffffffffffffffffffffffffffffffffffff84811691161480611341575060085473ffffffffffffffffffffffffffffffffffffffff8381169116145b801561134e5750600e5481115b15611385576040517f801bc44b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60085473ffffffffffffffffffffffffffffffffffffffff8381169116148015906113e75750600f54816113db8473ffffffffffffffffffffffffffffffffffffffff1660009081526001602052604090205490565b6113e59190611a7d565b115b1561141e576040517fa9a44dff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006064600954836114309190611ba4565b61143a9190611a90565b60085490915073ffffffffffffffffffffffffffffffffffffffff908116908416036114d5576001600d60008282546114739190611a7d565b9091555050600b5460649061148a90600290611a90565b600d541161149a57600a5461149e565b6009545b6114a89084611ba4565b6114b29190611a90565b60115430600090815260016020526040902054919250116114d5576114d5610818565b60085473ffffffffffffffffffffffffffffffffffffffff90811690851603611542576001600c600082825461150b9190611a7d565b925050819055506064600b54600c541161152757600a5461152b565b6009545b6115359084611ba4565b61153f9190611a90565b90505b8015611560576115538430836115e0565b61155d8183611bbb565b91505b6111a18484846115e0565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b73ffffffffffffffffffffffffffffffffffffffff8316611683576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610805565b73ffffffffffffffffffffffffffffffffffffffff8216611726576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610805565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260016020526040902054818110156117dc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610805565b73ffffffffffffffffffffffffffffffffffffffff80851660008181526001602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906118499086815260200190565b60405180910390a36111a1565b60006020808352835180602085015260005b8181101561188457858101830151858201604001528201611868565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b73ffffffffffffffffffffffffffffffffffffffff81168114610dae57600080fd5b600080604083850312156118f857600080fd5b8235611903816118c3565b946020939093013593505050565b6000806040838503121561192457600080fd5b823561192f816118c3565b91506020830135801515811461194457600080fd5b809150509250929050565b60008060006060848603121561196457600080fd5b833561196f816118c3565b9250602084013561197f816118c3565b929592945050506040919091013590565b6000602082840312156119a257600080fd5b81356119ad816118c3565b9392505050565b6000602082840312156119c657600080fd5b5035919050565b600080604083850312156119e057600080fd5b82356119eb816118c3565b91506020830135611944816118c3565b600181811c90821680611a0f57607f821691505b602082108103611a48577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8082018082111561062c5761062c611a4e565b600082611ac6577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600060208284031215611b0c57600080fd5b81516119ad816118c3565b600060a08201878352602087602085015260a0604085015281875180845260c08601915060208901935060005b81811015611b7657845173ffffffffffffffffffffffffffffffffffffffff1683529383019391830191600101611b44565b505073ffffffffffffffffffffffffffffffffffffffff969096166060850152505050608001529392505050565b808202811582820484141761062c5761062c611a4e565b8181038181111561062c5761062c611a4e56fea2646970667358221220357b318cc29fe2a8923bddb2217721abdacb1d95bd6d261b941e1ebcc9fbc64064736f6c6343000817003300000000000000000000000000df5eee7996bd05e1b79efce6f0e8cd3b0031580000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Deployed Bytecode
0x6080604052600436106101a55760003560e01c806373bc5a36116100e1578063a4d66daf1161008a578063c9567bf911610064578063c9567bf9146104e9578063dd62ed3e146104fe578063f2fde38b14610551578063f928364c1461057157600080fd5b8063a4d66daf14610469578063a8aa1b311461049c578063a9059cbb146104c957600080fd5b80638da5cb5b116100bb5780638da5cb5b146103e857806395d89b4114610434578063a457c2d71461044957600080fd5b806373bc5a361461036c5780637b16cea014610382578063864b3167146103c857600080fd5b806332fc4c011161014e57806368f58b031161012857806368f58b03146102e95780636ac5eeee146102ff57806370a0823114610314578063715018a61461035757600080fd5b806332fc4c011461028957806339509351146102a95780634fe47f70146102c957600080fd5b806318160ddd1161017f57806318160ddd1461022e57806323b872dd1461024d578063313ce5671461026d57600080fd5b806306fdde03146101b1578063095ea7b3146101dc57806316697fc51461020c57600080fd5b366101ac57005b600080fd5b3480156101bd57600080fd5b506101c6610586565b6040516101d39190611856565b60405180910390f35b3480156101e857600080fd5b506101fc6101f73660046118e5565b610618565b60405190151581526020016101d3565b34801561021857600080fd5b5061022c610227366004611911565b610632565b005b34801561023a57600080fd5b506003545b6040519081526020016101d3565b34801561025957600080fd5b506101fc61026836600461194f565b610690565b34801561027957600080fd5b50604051601281526020016101d3565b34801561029557600080fd5b5061022c6102a4366004611990565b6106b4565b3480156102b557600080fd5b506101fc6102c43660046118e5565b61073d565b3480156102d557600080fd5b5061022c6102e43660046119b4565b610789565b3480156102f557600080fd5b5061023f60095481565b34801561030b57600080fd5b5061022c610818565b34801561032057600080fd5b5061023f61032f366004611990565b73ffffffffffffffffffffffffffffffffffffffff1660009081526001602052604090205490565b34801561036357600080fd5b5061022c610b5d565b34801561037857600080fd5b5061023f60115481565b34801561038e57600080fd5b506101fc61039d366004611990565b73ffffffffffffffffffffffffffffffffffffffff1660009081526012602052604090205460ff1690565b3480156103d457600080fd5b5061022c6103e33660046119b4565b610b71565b3480156103f457600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101d3565b34801561044057600080fd5b506101c6610bae565b34801561045557600080fd5b506101fc6104643660046118e5565b610bbd565b34801561047557600080fd5b506010546101fc907501000000000000000000000000000000000000000000900460ff1681565b3480156104a857600080fd5b5060085461040f9073ffffffffffffffffffffffffffffffffffffffff1681565b3480156104d557600080fd5b506101fc6104e43660046118e5565b610c8e565b3480156104f557600080fd5b5061022c610c9c565b34801561050a57600080fd5b5061023f6105193660046119cd565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260026020908152604080832093909416825291909152205490565b34801561055d57600080fd5b5061022c61056c366004611990565b610cfa565b34801561057d57600080fd5b5061022c610db1565b606060048054610595906119fb565b80601f01602080910402602001604051908101604052809291908181526020018280546105c1906119fb565b801561060e5780601f106105e35761010080835404028352916020019161060e565b820191906000526020600020905b8154815290600101906020018083116105f157829003601f168201915b5050505050905090565b600033610626818585610e9c565b60019150505b92915050565b61063a61104f565b73ffffffffffffffffffffffffffffffffffffffff91909116600090815260126020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b60003361069e8582856110d0565b6106a98585856111a7565b506001949350505050565b6106bc61104f565b601080547fffffffffffffffffffffff0000000000000000000000000000000000000000ff1661010073ffffffffffffffffffffffffffffffffffffffff8416908102919091179091556040519081527fbd5aa8e04dbf8cd0c0a2cf0d7f15cab9d94d85af3f5d347dc8359b9194610f02906020015b60405180910390a150565b33600081815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff871684529091528120549091906106269082908690610784908790611a7d565b610e9c565b61079161104f565b6103e86007546107a19190611a90565b811161080e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f56616c7565206d757374206265206d6f7265207468616e20302e31250000000060448201526064015b60405180910390fd5b600e819055600f55565b601380547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055604080516002808252606082018352600092602083019080368337019050509050308160008151811061087857610878611acb565b73ffffffffffffffffffffffffffffffffffffffff928316602091820292909201810191909152600654604080517fad5c46480000000000000000000000000000000000000000000000000000000081529051919093169263ad5c46489260048083019391928290030181865afa1580156108f7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061091b9190611afa565b8160018151811061092e5761092e611acb565b73ffffffffffffffffffffffffffffffffffffffff92831660209182029290920101526006546011546109649230921690610e9c565b6006546011546040517f791ac94700000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9092169163791ac947916109c491600090869030904290600401611b17565b600060405180830381600087803b1580156109de57600080fd5b505af11580156109f2573d6000803e3d6000fd5b504792505081159050610af657601054604051600091610100900473ffffffffffffffffffffffffffffffffffffffff169083908381818185875af1925050503d8060008114610a5e576040519150601f19603f3d011682016040523d82523d6000602084013e610a63565b606091505b5050905080610af4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602760248201527f4661696c656420746f2073656e6420457468657220746f20747265617375727960448201527f2077616c6c6574000000000000000000000000000000000000000000000000006064820152608401610805565b505b7fd851aeb8e2074b285cc12da5e2fbf79e642e38f62ef8e59590790c157491ee05601154604051610b2991815260200190565b60405180910390a15050601380547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b610b6561104f565b610b6f600061156b565b565b610b7961104f565b60118190556040518181527f4cba14fd4026630e64b03f8c6a0130ca310c15a5376cf7f6735c66880bb7bceb90602001610732565b606060058054610595906119fb565b33600081815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716845290915281205490919083811015610c81576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610805565b6106a98286868403610e9c565b6000336106268185856111a7565b610ca461104f565b601080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556040517f51cd7cc33235a1c89f708fecec535bf7cca0f94ed05216751befb052ca83e67990600090a1565b610d0261104f565b73ffffffffffffffffffffffffffffffffffffffff8116610da5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610805565b610dae8161156b565b50565b610db961104f565b6010547501000000000000000000000000000000000000000000900460ff16610e3e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4c696d69747320616c72656164792072656d6f766564000000000000000000006044820152606401610805565b601080547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff169055600754600f819055600e556040517fe9070d302280cd857033f56893647494c1410643fe239daabee29e9292199b3d90600090a1565b73ffffffffffffffffffffffffffffffffffffffff8316610f3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610805565b73ffffffffffffffffffffffffffffffffffffffff8216610fe1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610805565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610b6f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610805565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600260209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146111a15781811015611194576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610805565b6111a18484848403610e9c565b50505050565b73ffffffffffffffffffffffffffffffffffffffff831660009081526012602052604090205460ff1680611200575073ffffffffffffffffffffffffffffffffffffffff821660009081526012602052604090205460ff165b8061124c575060085473ffffffffffffffffffffffffffffffffffffffff83811691161480159061124c575060085473ffffffffffffffffffffffffffffffffffffffff848116911614155b80611259575060135460ff165b1561126e576112698383836115e0565b505050565b60105460ff166112da576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f54726164696e67206973206e6f74206f70656e000000000000000000000000006044820152606401610805565b6010547501000000000000000000000000000000000000000000900460ff161561141e5760085473ffffffffffffffffffffffffffffffffffffffff84811691161480611341575060085473ffffffffffffffffffffffffffffffffffffffff8381169116145b801561134e5750600e5481115b15611385576040517f801bc44b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60085473ffffffffffffffffffffffffffffffffffffffff8381169116148015906113e75750600f54816113db8473ffffffffffffffffffffffffffffffffffffffff1660009081526001602052604090205490565b6113e59190611a7d565b115b1561141e576040517fa9a44dff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006064600954836114309190611ba4565b61143a9190611a90565b60085490915073ffffffffffffffffffffffffffffffffffffffff908116908416036114d5576001600d60008282546114739190611a7d565b9091555050600b5460649061148a90600290611a90565b600d541161149a57600a5461149e565b6009545b6114a89084611ba4565b6114b29190611a90565b60115430600090815260016020526040902054919250116114d5576114d5610818565b60085473ffffffffffffffffffffffffffffffffffffffff90811690851603611542576001600c600082825461150b9190611a7d565b925050819055506064600b54600c541161152757600a5461152b565b6009545b6115359084611ba4565b61153f9190611a90565b90505b8015611560576115538430836115e0565b61155d8183611bbb565b91505b6111a18484846115e0565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b73ffffffffffffffffffffffffffffffffffffffff8316611683576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610805565b73ffffffffffffffffffffffffffffffffffffffff8216611726576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610805565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260016020526040902054818110156117dc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610805565b73ffffffffffffffffffffffffffffffffffffffff80851660008181526001602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906118499086815260200190565b60405180910390a36111a1565b60006020808352835180602085015260005b8181101561188457858101830151858201604001528201611868565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b73ffffffffffffffffffffffffffffffffffffffff81168114610dae57600080fd5b600080604083850312156118f857600080fd5b8235611903816118c3565b946020939093013593505050565b6000806040838503121561192457600080fd5b823561192f816118c3565b91506020830135801515811461194457600080fd5b809150509250929050565b60008060006060848603121561196457600080fd5b833561196f816118c3565b9250602084013561197f816118c3565b929592945050506040919091013590565b6000602082840312156119a257600080fd5b81356119ad816118c3565b9392505050565b6000602082840312156119c657600080fd5b5035919050565b600080604083850312156119e057600080fd5b82356119eb816118c3565b91506020830135611944816118c3565b600181811c90821680611a0f57607f821691505b602082108103611a48577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8082018082111561062c5761062c611a4e565b600082611ac6577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600060208284031215611b0c57600080fd5b81516119ad816118c3565b600060a08201878352602087602085015260a0604085015281875180845260c08601915060208901935060005b81811015611b7657845173ffffffffffffffffffffffffffffffffffffffff1683529383019391830191600101611b44565b505073ffffffffffffffffffffffffffffffffffffffff969096166060850152505050608001529392505050565b808202811582820484141761062c5761062c611a4e565b8181038181111561062c5761062c611a4e56fea2646970667358221220357b318cc29fe2a8923bddb2217721abdacb1d95bd6d261b941e1ebcc9fbc64064736f6c63430008170033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000df5eee7996bd05e1b79efce6f0e8cd3b0031580000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
-----Decoded View---------------
Arg [0] : _treasury (address): 0x00DF5EeE7996BD05E1b79eFCe6f0E8cd3b003158
Arg [1] : _router (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000000df5eee7996bd05e1b79efce6f0e8cd3b003158
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.