More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 62 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Approve | 20081723 | 42 days ago | IN | 0 ETH | 0.00054855 | ||||
Approve | 20081713 | 42 days ago | IN | 0 ETH | 0.00051738 | ||||
Approve | 20037688 | 48 days ago | IN | 0 ETH | 0.00034011 | ||||
Transfer | 20008226 | 52 days ago | IN | 0 ETH | 0.00085359 | ||||
Approve | 19983405 | 55 days ago | IN | 0 ETH | 0.00103963 | ||||
Approve | 19963925 | 58 days ago | IN | 0 ETH | 0.00104629 | ||||
Approve | 19810933 | 79 days ago | IN | 0 ETH | 0.00025901 | ||||
Approve | 19767077 | 86 days ago | IN | 0 ETH | 0.00058033 | ||||
Transfer | 19741894 | 89 days ago | IN | 0 ETH | 0.00055262 | ||||
Transfer | 19703502 | 94 days ago | IN | 0 ETH | 0.00044799 | ||||
Transfer | 19703466 | 94 days ago | IN | 0 ETH | 0.00058931 | ||||
Approve | 19687256 | 97 days ago | IN | 0 ETH | 0.00047105 | ||||
Transfer | 19656204 | 101 days ago | IN | 0 ETH | 0.00057514 | ||||
Approve | 19572448 | 113 days ago | IN | 0 ETH | 0.00106195 | ||||
Approve | 19553169 | 115 days ago | IN | 0 ETH | 0.00052215 | ||||
Approve | 19553157 | 115 days ago | IN | 0 ETH | 0.00058113 | ||||
Approve | 19415863 | 135 days ago | IN | 0 ETH | 0.00237537 | ||||
Approve | 19364453 | 142 days ago | IN | 0 ETH | 0.00382434 | ||||
Approve | 19326061 | 147 days ago | IN | 0 ETH | 0.00294437 | ||||
Approve | 19299244 | 151 days ago | IN | 0 ETH | 0.00149526 | ||||
Transfer | 19280932 | 154 days ago | IN | 0 ETH | 0.00178707 | ||||
Transfer | 19244841 | 159 days ago | IN | 0 ETH | 0.00072937 | ||||
Transfer | 19056947 | 185 days ago | IN | 0 ETH | 0.00089337 | ||||
Approve | 18993161 | 194 days ago | IN | 0 ETH | 0.00111886 | ||||
Approve | 18945245 | 201 days ago | IN | 0 ETH | 0.00068976 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
Bannochmoor
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//spdx-license-identifier: MIT pragma solidity 0.8.19; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol"; import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol"; contract Bannochmoor is Ownable, ERC20 { IUniswapV2Router02 public uniswapV2Router; bool private _inSwap; bool public swapToETH = true; bool public tradingEnabled; address public treasury; address public uniswapV2Pair; uint256 public buyTax = 600; // 600 = 6% uint256 public numTokensSellToETH = 1000 * 10 ** decimals(); uint256 public sellTax = 600; uint256 private _supply = 1000000 * 10 ** decimals(); // 1M uint256 public transferTax = 0; mapping(address => bool) public isExcludedFromFee; error AmountCannotBeZero(); error InvalidAmount(); error MaxTaxExceeded(); error FailedETHSend(); error InconsistentArraysLengths(); error InsufficientBalance(); error TooManyRecipients(); error TradingNotEnabled(); error ZeroAddress(); event ExcludeFromFee( address indexed owner, address indexed account, bool indexed isExcluded ); event SetTaxes( address indexed owner, uint256 indexed buyTax, uint256 indexed sellTax, uint256 transferTax ); modifier lockTheSwap() { _inSwap = true; _; _inSwap = false; } modifier NotZeroAddress(address value) { if (value == address(0)) revert ZeroAddress(); _; } constructor( address _uniswapV2Router, address _treasury ) ERC20("Bannochmoor", "BNR") NotZeroAddress(_uniswapV2Router) NotZeroAddress(_treasury) { uniswapV2Router = IUniswapV2Router02(_uniswapV2Router); treasury = _treasury; isExcludedFromFee[_uniswapV2Router] = true; isExcludedFromFee[_msgSender()] = true; isExcludedFromFee[_treasury] = true; //mint tokens _mint(_treasury, _supply); //create pair uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair( address(this), uniswapV2Router.WETH() ); } receive() external payable {} function airdrop( address[] calldata recipients, uint256[] calldata values ) external onlyOwner { if (recipients.length > 500) revert TooManyRecipients(); if (recipients.length != values.length) revert InconsistentArraysLengths(); uint256 total; for (uint256 i; i < values.length; ) { total += values[i]; unchecked { ++i; } } if (total > balanceOf(_msgSender())) revert InsufficientBalance(); for (uint256 i; i < recipients.length; ) { _transfer(_msgSender(), recipients[i], values[i]); unchecked { ++i; } } } function excludeFromFee( address _address, bool _status ) external onlyOwner NotZeroAddress(_address) { isExcludedFromFee[_address] = _status; emit ExcludeFromFee(_msgSender(), _address, _status); } function setNumTokensToSellToETH(uint256 _amount) external onlyOwner { if (_amount < 100 * 10 ** decimals()) revert InvalidAmount(); if (_amount > 100000 * 10 ** decimals()) revert InvalidAmount(); numTokensSellToETH = _amount; } function setSwapToETH(bool _status) external onlyOwner { swapToETH = _status; } function setTaxes( uint256 _buyTax, uint256 _sellTax, uint256 _transferTax ) external onlyOwner { if (_buyTax > 1000) revert MaxTaxExceeded(); if (_sellTax > 1000) revert MaxTaxExceeded(); if (_transferTax > 1000) revert MaxTaxExceeded(); buyTax = _buyTax; sellTax = _sellTax; transferTax = _transferTax; emit SetTaxes(_msgSender(), _buyTax, _sellTax, _transferTax); } function setTradingEnabled() external onlyOwner { tradingEnabled = true; } function setTreasury( address value ) external onlyOwner NotZeroAddress(value) { treasury = value; } function withdrawETH() external onlyOwner { (bool success, ) = payable(treasury).call{value: address(this).balance}( "" ); if (!success) revert FailedETHSend(); } function withdrawTokens( address token ) external onlyOwner NotZeroAddress(token) { uint256 balance = IERC20(token).balanceOf(address(this)); if (balance == 0) revert InsufficientBalance(); IERC20(token).transfer(treasury, balance); } function _swapTokensForEth(uint256 tokenAmount) private lockTheSwap { IUniswapV2Router02 router = uniswapV2Router; address[] memory path = new address[](2); path[0] = address(this); path[1] = router.WETH(); _approve(address(this), address(router), tokenAmount); router.swapExactTokensForETHSupportingFeeOnTransferTokens( tokenAmount, 0, path, treasury, block.timestamp ); } function _transfer( address from, address to, uint256 amount ) internal virtual override NotZeroAddress(to) NotZeroAddress(from) { if (amount == 0) revert AmountCannotBeZero(); // sender has sufficient balance if (balanceOf(from) < amount) revert InsufficientBalance(); // trading is enabled or sender is owner or sender is this contract if (!tradingEnabled && from != owner() && from != address(this)) revert TradingNotEnabled(); // take taxes if (!isExcludedFromFee[from] && !isExcludedFromFee[to]) { address pair = uniswapV2Pair; // sell to ETH if (pair == to && !_inSwap && swapToETH) { uint256 reserves = balanceOf(address(this)); uint256 numTokensToSell = numTokensSellToETH; if (reserves >= numTokensToSell) { _swapTokensForEth(numTokensToSell); } if (address(this).balance > 0) { (bool sent, ) = payable(treasury).call{ value: address(this).balance }(""); if (!sent) revert FailedETHSend(); } } uint256 taxRate = to == pair ? sellTax : from == pair ? buyTax : transferTax; if (taxRate > 0) { // calculate tax (amount * taxRate / 1e4 uint256 tax = (amount * taxRate) / 1e4; amount -= tax; super._transfer(from, address(this), tax); } } super._transfer(from, to, amount); } }
// 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 // 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 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 (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 (last updated v4.9.4) (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
pragma solidity >=0.5.0; interface IUniswapV2Factory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; }
pragma solidity >=0.6.2; interface 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); }
pragma solidity >=0.6.2; 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; }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_uniswapV2Router","type":"address"},{"internalType":"address","name":"_treasury","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AmountCannotBeZero","type":"error"},{"inputs":[],"name":"FailedETHSend","type":"error"},{"inputs":[],"name":"InconsistentArraysLengths","type":"error"},{"inputs":[],"name":"InsufficientBalance","type":"error"},{"inputs":[],"name":"InvalidAmount","type":"error"},{"inputs":[],"name":"MaxTaxExceeded","type":"error"},{"inputs":[],"name":"TooManyRecipients","type":"error"},{"inputs":[],"name":"TradingNotEnabled","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"ExcludeFromFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"buyTax","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"sellTax","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"transferTax","type":"uint256"}],"name":"SetTaxes","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"},{"inputs":[{"internalType":"address[]","name":"recipients","type":"address[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","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":"buyTax","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":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"_status","type":"bool"}],"name":"excludeFromFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isExcludedFromFee","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":"numTokensSellToETH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sellTax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setNumTokensToSellToETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_status","type":"bool"}],"name":"setSwapToETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_buyTax","type":"uint256"},{"internalType":"uint256","name":"_sellTax","type":"uint256"},{"internalType":"uint256","name":"_transferTax","type":"uint256"}],"name":"setTaxes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setTradingEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"value","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapToETH","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[],"name":"tradingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"transferTax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040526006805460ff60a81b1916600160a81b17905561025860095562000026601290565b6200003390600a620005ee565b62000041906103e862000606565b600a55610258600b5560126200005990600a620005ee565b6200006890620f424062000606565b600c556000600d553480156200007d57600080fd5b506040516200234538038062002345833981016040819052620000a0916200063d565b6040518060400160405280600b81526020016a2130b73737b1b436b7b7b960a91b8152506040518060400160405280600381526020016221272960e91b815250620000fa620000f4620003b860201b60201c565b620003bc565b600462000108838262000719565b50600562000117828262000719565b50839150506001600160a01b038116620001445760405163d92e233d60e01b815260040160405180910390fd5b816001600160a01b0381166200016d5760405163d92e233d60e01b815260040160405180910390fd5b600680546001600160a01b038087166001600160a01b0319928316811790935560078054918716919092161790556000908152600e602081905260408220805460ff1916600190811790915591620001c23390565b6001600160a01b03908116825260208083019390935260409182016000908120805495151560ff199687161790559087168152600e909252902080549091166001179055600c54620002169084906200040c565b600660009054906101000a90046001600160a01b03166001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200026a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002909190620007e5565b6001600160a01b031663c9c6539630600660009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015620002f3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003199190620007e5565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af115801562000367573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200038d9190620007e5565b600880546001600160a01b0319166001600160a01b0392909216919091179055506200081992505050565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038216620004675760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b80600360008282546200047b919062000803565b90915550506001600160a01b0382166000818152600160209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b505050565b634e487b7160e01b600052601160045260246000fd5b600181815b8085111562000530578160001904821115620005145762000514620004d9565b808516156200052257918102915b93841c9390800290620004f4565b509250929050565b6000826200054957506001620005e8565b816200055857506000620005e8565b81600181146200057157600281146200057c576200059c565b6001915050620005e8565b60ff841115620005905762000590620004d9565b50506001821b620005e8565b5060208310610133831016604e8410600b8410161715620005c1575081810a620005e8565b620005cd8383620004ef565b8060001904821115620005e457620005e4620004d9565b0290505b92915050565b6000620005ff60ff84168362000538565b9392505050565b8082028115828204841417620005e857620005e8620004d9565b80516001600160a01b03811681146200063857600080fd5b919050565b600080604083850312156200065157600080fd5b6200065c8362000620565b91506200066c6020840162000620565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620006a057607f821691505b602082108103620006c157634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620004d457600081815260208120601f850160051c81016020861015620006f05750805b601f850160051c820191505b818110156200071157828155600101620006fc565b505050505050565b81516001600160401b0381111562000735576200073562000675565b6200074d816200074684546200068b565b84620006c7565b602080601f8311600181146200078557600084156200076c5750858301515b600019600386901b1c1916600185901b17855562000711565b600085815260208120601f198616915b82811015620007b65788860151825594840194600190910190840162000795565b5085821015620007d55787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060208284031215620007f857600080fd5b620005ff8262000620565b80820180821115620005e857620005e8620004d9565b611b1c80620008296000396000f3fe6080604052600436106101f25760003560e01c8063672434821161010d578063cc1776d3116100a0578063e086e5ec1161006f578063e086e5ec14610596578063e156afd5146105ab578063e9dae5ed146105c0578063f0f44260146105e0578063f2fde38b1461060057600080fd5b8063cc1776d314610520578063db6ba76914610536578063dd62ed3e14610556578063df8408fe1461057657600080fd5b80638da5cb5b116100dc5780638da5cb5b146104ad57806395d89b41146104cb578063a457c2d7146104e0578063a9059cbb1461050057600080fd5b8063672434821461042c57806370a082311461044c578063715018a6146104825780638124f7ac1461049757600080fd5b80633de063ef116101855780634f7041a5116101545780634f7041a5146103b05780635342acb4146103c657806361d027b3146103f657806363b5d9351461041657600080fd5b80633de063ef1461032e57806349bd5a5e1461034f57806349df728c1461036f5780634ada218b1461038f57600080fd5b806323b872dd116101c157806323b872dd146102b05780632c01f13f146102d0578063313ce567146102f2578063395093511461030e57600080fd5b806306fdde03146101fe578063095ea7b3146102295780631694505e1461025957806318160ddd1461029157600080fd5b366101f957005b600080fd5b34801561020a57600080fd5b50610213610620565b60405161022091906115e7565b60405180910390f35b34801561023557600080fd5b5061024961024436600461164a565b6106b2565b6040519015158152602001610220565b34801561026557600080fd5b50600654610279906001600160a01b031681565b6040516001600160a01b039091168152602001610220565b34801561029d57600080fd5b506003545b604051908152602001610220565b3480156102bc57600080fd5b506102496102cb366004611676565b6106cc565b3480156102dc57600080fd5b506102f06102eb3660046116b7565b6106f0565b005b3480156102fe57600080fd5b5060405160128152602001610220565b34801561031a57600080fd5b5061024961032936600461164a565b61076d565b34801561033a57600080fd5b5060065461024990600160a81b900460ff1681565b34801561035b57600080fd5b50600854610279906001600160a01b031681565b34801561037b57600080fd5b506102f061038a3660046116d0565b61078f565b34801561039b57600080fd5b5060065461024990600160b01b900460ff1681565b3480156103bc57600080fd5b506102a260095481565b3480156103d257600080fd5b506102496103e13660046116d0565b600e6020526000908152604090205460ff1681565b34801561040257600080fd5b50600754610279906001600160a01b031681565b34801561042257600080fd5b506102a2600a5481565b34801561043857600080fd5b506102f0610447366004611740565b6108ca565b34801561045857600080fd5b506102a26104673660046116d0565b6001600160a01b031660009081526001602052604090205490565b34801561048e57600080fd5b506102f06109dc565b3480156104a357600080fd5b506102a2600d5481565b3480156104b957600080fd5b506000546001600160a01b0316610279565b3480156104d757600080fd5b506102136109f0565b3480156104ec57600080fd5b506102496104fb36600461164a565b6109ff565b34801561050c57600080fd5b5061024961051b36600461164a565b610a7f565b34801561052c57600080fd5b506102a2600b5481565b34801561054257600080fd5b506102f06105513660046117ba565b610a8d565b34801561056257600080fd5b506102a26105713660046117d7565b610ab3565b34801561058257600080fd5b506102f0610591366004611810565b610ade565b3480156105a257600080fd5b506102f0610b66565b3480156105b757600080fd5b506102f0610be5565b3480156105cc57600080fd5b506102f06105db36600461183e565b610c02565b3480156105ec57600080fd5b506102f06105fb3660046116d0565b610ccc565b34801561060c57600080fd5b506102f061061b3660046116d0565b610d1f565b60606004805461062f9061186a565b80601f016020809104026020016040519081016040528092919081815260200182805461065b9061186a565b80156106a85780601f1061067d576101008083540402835291602001916106a8565b820191906000526020600020905b81548152906001019060200180831161068b57829003601f168201915b5050505050905090565b6000336106c0818585610d95565b60019150505b92915050565b6000336106da858285610eb9565b6106e5858585610f2d565b506001949350505050565b6106f86111fd565b6107046012600a61199e565b61070f9060646119ad565b81101561072f5760405163162908e360e11b815260040160405180910390fd5b61073b6012600a61199e565b61074890620186a06119ad565b8111156107685760405163162908e360e11b815260040160405180910390fd5b600a55565b6000336106c08185856107808383610ab3565b61078a91906119c4565b610d95565b6107976111fd565b806001600160a01b0381166107bf5760405163d92e233d60e01b815260040160405180910390fd5b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa158015610806573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082a91906119d7565b90508060000361084d57604051631e9acf1760e31b815260040160405180910390fd5b60075460405163a9059cbb60e01b81526001600160a01b039182166004820152602481018390529084169063a9059cbb906044016020604051808303816000875af11580156108a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c491906119f0565b50505050565b6108d26111fd565b6101f48311156108f557604051635531b49560e01b815260040160405180910390fd5b828114610914576040516264981160e01b815260040160405180910390fd5b6000805b8281101561094e5783838281811061093257610932611a0d565b905060200201358261094491906119c4565b9150600101610918565b5061095833610467565b81111561097857604051631e9acf1760e31b815260040160405180910390fd5b60005b848110156109d4576109cc3387878481811061099957610999611a0d565b90506020020160208101906109ae91906116d0565b8686858181106109c0576109c0611a0d565b90506020020135610f2d565b60010161097b565b505050505050565b6109e46111fd565b6109ee6000611257565b565b60606005805461062f9061186a565b60003381610a0d8286610ab3565b905083811015610a725760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b6106e58286868403610d95565b6000336106c0818585610f2d565b610a956111fd565b60068054911515600160a81b0260ff60a81b19909216919091179055565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b610ae66111fd565b816001600160a01b038116610b0e5760405163d92e233d60e01b815260040160405180910390fd5b6001600160a01b0383166000818152600e6020526040808220805460ff1916861515908117909155905190929133917fd4e150992187c219c07481254b45c55968768013cb1c5e66038b93a351dde8be9190a4505050565b610b6e6111fd565b6007546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610bbb576040519150601f19603f3d011682016040523d82523d6000602084013e610bc0565b606091505b5050905080610be25760405163af3f219560e01b815260040160405180910390fd5b50565b610bed6111fd565b6006805460ff60b01b1916600160b01b179055565b610c0a6111fd565b6103e8831115610c2d57604051630210e8d560e11b815260040160405180910390fd5b6103e8821115610c5057604051630210e8d560e11b815260040160405180910390fd5b6103e8811115610c7357604051630210e8d560e11b815260040160405180910390fd5b6009839055600b829055600d8190558183336001600160a01b03167f6213ee5528b8f70d7d4b24b98c4d97f55a2bec88063ca18ede411ae0aca50f7f84604051610cbf91815260200190565b60405180910390a4505050565b610cd46111fd565b806001600160a01b038116610cfc5760405163d92e233d60e01b815260040160405180910390fd5b50600780546001600160a01b0319166001600160a01b0392909216919091179055565b610d276111fd565b6001600160a01b038116610d8c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a69565b610be281611257565b6001600160a01b038316610df75760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610a69565b6001600160a01b038216610e585760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610a69565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000610ec58484610ab3565b905060001981146108c45781811015610f205760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610a69565b6108c48484848403610d95565b816001600160a01b038116610f555760405163d92e233d60e01b815260040160405180910390fd5b836001600160a01b038116610f7d5760405163d92e233d60e01b815260040160405180910390fd5b82600003610f9e5760405163d11b25af60e01b815260040160405180910390fd5b82610fbe866001600160a01b031660009081526001602052604090205490565b1015610fdd57604051631e9acf1760e31b815260040160405180910390fd5b600654600160b01b900460ff1615801561100557506000546001600160a01b03868116911614155b801561101a57506001600160a01b0385163014155b15611038576040516312f1f92360e01b815260040160405180910390fd5b6001600160a01b0385166000908152600e602052604090205460ff1615801561107a57506001600160a01b0384166000908152600e602052604090205460ff16155b156111eb576008546001600160a01b03908116908516811480156110a85750600654600160a01b900460ff16155b80156110bd5750600654600160a81b900460ff165b156111645730600090815260016020526040902054600a548082106110e5576110e5816112a7565b4715611161576007546040516000916001600160a01b03169047908381818185875af1925050503d8060008114611138576040519150601f19603f3d011682016040523d82523d6000602084013e61113d565b606091505b505090508061115f5760405163af3f219560e01b815260040160405180910390fd5b505b50505b6000816001600160a01b0316866001600160a01b0316146111a857816001600160a01b0316876001600160a01b0316146111a057600d546111ac565b6009546111ac565b600b545b905080156111e85760006127106111c383886119ad565b6111cd9190611a23565b90506111d98187611a45565b95506111e688308361143c565b505b50505b6111f685858561143c565b5050505050565b6000546001600160a01b031633146109ee5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a69565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6006805460ff60a01b198116600160a01b179091556040805160028082526060820183526001600160a01b039093169260009260208301908036833701905050905030816000815181106112fd576112fd611a0d565b60200260200101906001600160a01b031690816001600160a01b031681525050816001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561135b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061137f9190611a58565b8160018151811061139257611392611a0d565b60200260200101906001600160a01b031690816001600160a01b0316815250506113bd308385610d95565b60075460405163791ac94760e01b81526001600160a01b038481169263791ac947926113f89288926000928892909116904290600401611a75565b600060405180830381600087803b15801561141257600080fd5b505af1158015611426573d6000803e3d6000fd5b50506006805460ff60a01b191690555050505050565b6001600160a01b0383166114a05760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610a69565b6001600160a01b0382166115025760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610a69565b6001600160a01b0383166000908152600160205260409020548181101561157a5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610a69565b6001600160a01b0380851660008181526001602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906115da9086815260200190565b60405180910390a36108c4565b600060208083528351808285015260005b81811015611614578581018301518582016040015282016115f8565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b0381168114610be257600080fd5b6000806040838503121561165d57600080fd5b823561166881611635565b946020939093013593505050565b60008060006060848603121561168b57600080fd5b833561169681611635565b925060208401356116a681611635565b929592945050506040919091013590565b6000602082840312156116c957600080fd5b5035919050565b6000602082840312156116e257600080fd5b81356116ed81611635565b9392505050565b60008083601f84011261170657600080fd5b50813567ffffffffffffffff81111561171e57600080fd5b6020830191508360208260051b850101111561173957600080fd5b9250929050565b6000806000806040858703121561175657600080fd5b843567ffffffffffffffff8082111561176e57600080fd5b61177a888389016116f4565b9096509450602087013591508082111561179357600080fd5b506117a0878288016116f4565b95989497509550505050565b8015158114610be257600080fd5b6000602082840312156117cc57600080fd5b81356116ed816117ac565b600080604083850312156117ea57600080fd5b82356117f581611635565b9150602083013561180581611635565b809150509250929050565b6000806040838503121561182357600080fd5b823561182e81611635565b91506020830135611805816117ac565b60008060006060848603121561185357600080fd5b505081359360208301359350604090920135919050565b600181811c9082168061187e57607f821691505b60208210810361189e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600181815b808511156118f55781600019048211156118db576118db6118a4565b808516156118e857918102915b93841c93908002906118bf565b509250929050565b60008261190c575060016106c6565b81611919575060006106c6565b816001811461192f576002811461193957611955565b60019150506106c6565b60ff84111561194a5761194a6118a4565b50506001821b6106c6565b5060208310610133831016604e8410600b8410161715611978575081810a6106c6565b61198283836118ba565b8060001904821115611996576119966118a4565b029392505050565b60006116ed60ff8416836118fd565b80820281158282048414176106c6576106c66118a4565b808201808211156106c6576106c66118a4565b6000602082840312156119e957600080fd5b5051919050565b600060208284031215611a0257600080fd5b81516116ed816117ac565b634e487b7160e01b600052603260045260246000fd5b600082611a4057634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156106c6576106c66118a4565b600060208284031215611a6a57600080fd5b81516116ed81611635565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015611ac55784516001600160a01b031683529383019391830191600101611aa0565b50506001600160a01b0396909616606085015250505060800152939250505056fea2646970667358221220d33985e546404253a4d85a2dcf4b0758e71c34370a4d23cc6fc9e58b0e336e8e64736f6c634300081300330000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d00000000000000000000000037c364973fd49d135d2a58029b7990a75665606a
Deployed Bytecode
0x6080604052600436106101f25760003560e01c8063672434821161010d578063cc1776d3116100a0578063e086e5ec1161006f578063e086e5ec14610596578063e156afd5146105ab578063e9dae5ed146105c0578063f0f44260146105e0578063f2fde38b1461060057600080fd5b8063cc1776d314610520578063db6ba76914610536578063dd62ed3e14610556578063df8408fe1461057657600080fd5b80638da5cb5b116100dc5780638da5cb5b146104ad57806395d89b41146104cb578063a457c2d7146104e0578063a9059cbb1461050057600080fd5b8063672434821461042c57806370a082311461044c578063715018a6146104825780638124f7ac1461049757600080fd5b80633de063ef116101855780634f7041a5116101545780634f7041a5146103b05780635342acb4146103c657806361d027b3146103f657806363b5d9351461041657600080fd5b80633de063ef1461032e57806349bd5a5e1461034f57806349df728c1461036f5780634ada218b1461038f57600080fd5b806323b872dd116101c157806323b872dd146102b05780632c01f13f146102d0578063313ce567146102f2578063395093511461030e57600080fd5b806306fdde03146101fe578063095ea7b3146102295780631694505e1461025957806318160ddd1461029157600080fd5b366101f957005b600080fd5b34801561020a57600080fd5b50610213610620565b60405161022091906115e7565b60405180910390f35b34801561023557600080fd5b5061024961024436600461164a565b6106b2565b6040519015158152602001610220565b34801561026557600080fd5b50600654610279906001600160a01b031681565b6040516001600160a01b039091168152602001610220565b34801561029d57600080fd5b506003545b604051908152602001610220565b3480156102bc57600080fd5b506102496102cb366004611676565b6106cc565b3480156102dc57600080fd5b506102f06102eb3660046116b7565b6106f0565b005b3480156102fe57600080fd5b5060405160128152602001610220565b34801561031a57600080fd5b5061024961032936600461164a565b61076d565b34801561033a57600080fd5b5060065461024990600160a81b900460ff1681565b34801561035b57600080fd5b50600854610279906001600160a01b031681565b34801561037b57600080fd5b506102f061038a3660046116d0565b61078f565b34801561039b57600080fd5b5060065461024990600160b01b900460ff1681565b3480156103bc57600080fd5b506102a260095481565b3480156103d257600080fd5b506102496103e13660046116d0565b600e6020526000908152604090205460ff1681565b34801561040257600080fd5b50600754610279906001600160a01b031681565b34801561042257600080fd5b506102a2600a5481565b34801561043857600080fd5b506102f0610447366004611740565b6108ca565b34801561045857600080fd5b506102a26104673660046116d0565b6001600160a01b031660009081526001602052604090205490565b34801561048e57600080fd5b506102f06109dc565b3480156104a357600080fd5b506102a2600d5481565b3480156104b957600080fd5b506000546001600160a01b0316610279565b3480156104d757600080fd5b506102136109f0565b3480156104ec57600080fd5b506102496104fb36600461164a565b6109ff565b34801561050c57600080fd5b5061024961051b36600461164a565b610a7f565b34801561052c57600080fd5b506102a2600b5481565b34801561054257600080fd5b506102f06105513660046117ba565b610a8d565b34801561056257600080fd5b506102a26105713660046117d7565b610ab3565b34801561058257600080fd5b506102f0610591366004611810565b610ade565b3480156105a257600080fd5b506102f0610b66565b3480156105b757600080fd5b506102f0610be5565b3480156105cc57600080fd5b506102f06105db36600461183e565b610c02565b3480156105ec57600080fd5b506102f06105fb3660046116d0565b610ccc565b34801561060c57600080fd5b506102f061061b3660046116d0565b610d1f565b60606004805461062f9061186a565b80601f016020809104026020016040519081016040528092919081815260200182805461065b9061186a565b80156106a85780601f1061067d576101008083540402835291602001916106a8565b820191906000526020600020905b81548152906001019060200180831161068b57829003601f168201915b5050505050905090565b6000336106c0818585610d95565b60019150505b92915050565b6000336106da858285610eb9565b6106e5858585610f2d565b506001949350505050565b6106f86111fd565b6107046012600a61199e565b61070f9060646119ad565b81101561072f5760405163162908e360e11b815260040160405180910390fd5b61073b6012600a61199e565b61074890620186a06119ad565b8111156107685760405163162908e360e11b815260040160405180910390fd5b600a55565b6000336106c08185856107808383610ab3565b61078a91906119c4565b610d95565b6107976111fd565b806001600160a01b0381166107bf5760405163d92e233d60e01b815260040160405180910390fd5b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa158015610806573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082a91906119d7565b90508060000361084d57604051631e9acf1760e31b815260040160405180910390fd5b60075460405163a9059cbb60e01b81526001600160a01b039182166004820152602481018390529084169063a9059cbb906044016020604051808303816000875af11580156108a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c491906119f0565b50505050565b6108d26111fd565b6101f48311156108f557604051635531b49560e01b815260040160405180910390fd5b828114610914576040516264981160e01b815260040160405180910390fd5b6000805b8281101561094e5783838281811061093257610932611a0d565b905060200201358261094491906119c4565b9150600101610918565b5061095833610467565b81111561097857604051631e9acf1760e31b815260040160405180910390fd5b60005b848110156109d4576109cc3387878481811061099957610999611a0d565b90506020020160208101906109ae91906116d0565b8686858181106109c0576109c0611a0d565b90506020020135610f2d565b60010161097b565b505050505050565b6109e46111fd565b6109ee6000611257565b565b60606005805461062f9061186a565b60003381610a0d8286610ab3565b905083811015610a725760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b6106e58286868403610d95565b6000336106c0818585610f2d565b610a956111fd565b60068054911515600160a81b0260ff60a81b19909216919091179055565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b610ae66111fd565b816001600160a01b038116610b0e5760405163d92e233d60e01b815260040160405180910390fd5b6001600160a01b0383166000818152600e6020526040808220805460ff1916861515908117909155905190929133917fd4e150992187c219c07481254b45c55968768013cb1c5e66038b93a351dde8be9190a4505050565b610b6e6111fd565b6007546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610bbb576040519150601f19603f3d011682016040523d82523d6000602084013e610bc0565b606091505b5050905080610be25760405163af3f219560e01b815260040160405180910390fd5b50565b610bed6111fd565b6006805460ff60b01b1916600160b01b179055565b610c0a6111fd565b6103e8831115610c2d57604051630210e8d560e11b815260040160405180910390fd5b6103e8821115610c5057604051630210e8d560e11b815260040160405180910390fd5b6103e8811115610c7357604051630210e8d560e11b815260040160405180910390fd5b6009839055600b829055600d8190558183336001600160a01b03167f6213ee5528b8f70d7d4b24b98c4d97f55a2bec88063ca18ede411ae0aca50f7f84604051610cbf91815260200190565b60405180910390a4505050565b610cd46111fd565b806001600160a01b038116610cfc5760405163d92e233d60e01b815260040160405180910390fd5b50600780546001600160a01b0319166001600160a01b0392909216919091179055565b610d276111fd565b6001600160a01b038116610d8c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a69565b610be281611257565b6001600160a01b038316610df75760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610a69565b6001600160a01b038216610e585760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610a69565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000610ec58484610ab3565b905060001981146108c45781811015610f205760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610a69565b6108c48484848403610d95565b816001600160a01b038116610f555760405163d92e233d60e01b815260040160405180910390fd5b836001600160a01b038116610f7d5760405163d92e233d60e01b815260040160405180910390fd5b82600003610f9e5760405163d11b25af60e01b815260040160405180910390fd5b82610fbe866001600160a01b031660009081526001602052604090205490565b1015610fdd57604051631e9acf1760e31b815260040160405180910390fd5b600654600160b01b900460ff1615801561100557506000546001600160a01b03868116911614155b801561101a57506001600160a01b0385163014155b15611038576040516312f1f92360e01b815260040160405180910390fd5b6001600160a01b0385166000908152600e602052604090205460ff1615801561107a57506001600160a01b0384166000908152600e602052604090205460ff16155b156111eb576008546001600160a01b03908116908516811480156110a85750600654600160a01b900460ff16155b80156110bd5750600654600160a81b900460ff165b156111645730600090815260016020526040902054600a548082106110e5576110e5816112a7565b4715611161576007546040516000916001600160a01b03169047908381818185875af1925050503d8060008114611138576040519150601f19603f3d011682016040523d82523d6000602084013e61113d565b606091505b505090508061115f5760405163af3f219560e01b815260040160405180910390fd5b505b50505b6000816001600160a01b0316866001600160a01b0316146111a857816001600160a01b0316876001600160a01b0316146111a057600d546111ac565b6009546111ac565b600b545b905080156111e85760006127106111c383886119ad565b6111cd9190611a23565b90506111d98187611a45565b95506111e688308361143c565b505b50505b6111f685858561143c565b5050505050565b6000546001600160a01b031633146109ee5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a69565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6006805460ff60a01b198116600160a01b179091556040805160028082526060820183526001600160a01b039093169260009260208301908036833701905050905030816000815181106112fd576112fd611a0d565b60200260200101906001600160a01b031690816001600160a01b031681525050816001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561135b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061137f9190611a58565b8160018151811061139257611392611a0d565b60200260200101906001600160a01b031690816001600160a01b0316815250506113bd308385610d95565b60075460405163791ac94760e01b81526001600160a01b038481169263791ac947926113f89288926000928892909116904290600401611a75565b600060405180830381600087803b15801561141257600080fd5b505af1158015611426573d6000803e3d6000fd5b50506006805460ff60a01b191690555050505050565b6001600160a01b0383166114a05760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610a69565b6001600160a01b0382166115025760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610a69565b6001600160a01b0383166000908152600160205260409020548181101561157a5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610a69565b6001600160a01b0380851660008181526001602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906115da9086815260200190565b60405180910390a36108c4565b600060208083528351808285015260005b81811015611614578581018301518582016040015282016115f8565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b0381168114610be257600080fd5b6000806040838503121561165d57600080fd5b823561166881611635565b946020939093013593505050565b60008060006060848603121561168b57600080fd5b833561169681611635565b925060208401356116a681611635565b929592945050506040919091013590565b6000602082840312156116c957600080fd5b5035919050565b6000602082840312156116e257600080fd5b81356116ed81611635565b9392505050565b60008083601f84011261170657600080fd5b50813567ffffffffffffffff81111561171e57600080fd5b6020830191508360208260051b850101111561173957600080fd5b9250929050565b6000806000806040858703121561175657600080fd5b843567ffffffffffffffff8082111561176e57600080fd5b61177a888389016116f4565b9096509450602087013591508082111561179357600080fd5b506117a0878288016116f4565b95989497509550505050565b8015158114610be257600080fd5b6000602082840312156117cc57600080fd5b81356116ed816117ac565b600080604083850312156117ea57600080fd5b82356117f581611635565b9150602083013561180581611635565b809150509250929050565b6000806040838503121561182357600080fd5b823561182e81611635565b91506020830135611805816117ac565b60008060006060848603121561185357600080fd5b505081359360208301359350604090920135919050565b600181811c9082168061187e57607f821691505b60208210810361189e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600181815b808511156118f55781600019048211156118db576118db6118a4565b808516156118e857918102915b93841c93908002906118bf565b509250929050565b60008261190c575060016106c6565b81611919575060006106c6565b816001811461192f576002811461193957611955565b60019150506106c6565b60ff84111561194a5761194a6118a4565b50506001821b6106c6565b5060208310610133831016604e8410600b8410161715611978575081810a6106c6565b61198283836118ba565b8060001904821115611996576119966118a4565b029392505050565b60006116ed60ff8416836118fd565b80820281158282048414176106c6576106c66118a4565b808201808211156106c6576106c66118a4565b6000602082840312156119e957600080fd5b5051919050565b600060208284031215611a0257600080fd5b81516116ed816117ac565b634e487b7160e01b600052603260045260246000fd5b600082611a4057634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156106c6576106c66118a4565b600060208284031215611a6a57600080fd5b81516116ed81611635565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015611ac55784516001600160a01b031683529383019391830191600101611aa0565b50506001600160a01b0396909616606085015250505060800152939250505056fea2646970667358221220d33985e546404253a4d85a2dcf4b0758e71c34370a4d23cc6fc9e58b0e336e8e64736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d00000000000000000000000037c364973fd49d135d2a58029b7990a75665606a
-----Decoded View---------------
Arg [0] : _uniswapV2Router (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
Arg [1] : _treasury (address): 0x37C364973FD49D135D2a58029b7990A75665606A
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Arg [1] : 00000000000000000000000037c364973fd49d135d2a58029b7990a75665606a
Loading...
Loading
Loading...
Loading
OVERVIEW
Bannochmoor integrates Scottish heritage with blockchain, offering a castle estate experience via NFTs for access, underpinned by the $BNR token driving ecosystem engagement.Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.