ERC-20
Overview
Max Total Supply
1,000,000,000,000,000,000,000,000,000,000 CHAD
Holders
161
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 0 Decimals)
Balance
425,169,621,740 CHADValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
CHAD
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
/** THIS CONTRACT IS PROVIDED ON AN “AS IS” BASIS. USE THIS SOFTWARE AT YOUR OWN RISK. THERE IS NO WARRANTY, EXPRESSED OR IMPLIED, THAT DESCRIBED FUNCTIONALITY WILL FUNCTION AS EXPECTED OR INTENDED. PRODUCT MAY CEASE TO EXIST. NOT AN INVESTMENT, SECURITY OR A SWAP. TOKENS HAVE NO RIGHTS, USES, PURPOSE, ATTRIBUTES, FUNCTIONALITIES OR FEATURES, EXPRESS OR IMPLIED, INCLUDING, WITHOUT LIMITATION, ANY USES, PURPOSE OR ATTRIBUTES. TOKENS MAY HAVE NO VALUE. PRODUCT MAY CONTAIN BUGS AND SERIOUS BREACHES IN THE SECURITY THAT MAY RESULT IN LOSS OF YOUR ASSETS OR THEIR IMPLIED VALUE. ALL THE CRYPTOCURRENCY TRANSFERRED TO THIS SMART CONTRACT MAY BE LOST. THE CONTRACT DEVLOPERS ARE NOT RESPONSIBLE FOR ANY MONETARY LOSS, PROFIT LOSS OR ANY OTHER LOSSES DUE TO USE OF DESCRIBED PRODUCT. CHANGES COULD BE MADE BEFORE AND AFTER THE RELEASE OF THE PRODUCT. NO PRIOR NOTICE MAY BE GIVEN. ALL TRANSACTION ON THE BLOCKCHAIN ARE FINAL, NO REFUND, COMPENSATION OR REIMBURSEMENT POSSIBLE. YOU MAY LOOSE ALL THE CRYPTOCURRENCY USED TO INTERACT WITH THIS CONTRACT. IT IS YOUR RESPONSIBILITY TO REVIEW THE PROJECT, TEAM, TERMS & CONDITIONS BEFORE USING THE PRODUCT. **/ // SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "../lib/IUniswapV2Pair.sol"; import "../lib/IUniswapV2Factory.sol"; import "../lib/IUniswapV2Router.sol"; contract CHAD is ERC20, Ownable { using SafeMath for uint256; IUniswapV2Router02 public uniswapV2Router; address public uniswapV2Pair; uint256 public _totalSupply = 1e12 * 1e18; // 1T tokens uint256 public swapTokensAtAmount = 1e9 * 1e18; // 1B = Threshold for swap (0.1%) address public taxAddr; uint256 public sellTax = 20; uint256 public buyTax = 0; bool public _hasLiqBeenAdded = false; uint256 public launchedAt = 0; uint256 public swapAndLiquifycount = 0; uint256 public snipersCaught = 0; mapping(address => bool) private whitelisted; mapping(address => bool) public blacklisted; bool private swapping; mapping(address => bool) public automatedMarketMakerPairs; receive() external payable {} constructor( address _uniswapAddress ) ERC20("CHADGPT", "CHAD") { // Set Uniswap Address IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02( address(_uniswapAddress) ); address _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()) .createPair(address(this), _uniswapV2Router.WETH()); uniswapV2Router = _uniswapV2Router; uniswapV2Pair = _uniswapV2Pair; _setAutomatedMarketMakerPair(_uniswapV2Pair, true); whitelist(address(this), true); whitelist(owner(), true); taxAddr = owner(); super._mint(owner(), _totalSupply); } /** * ADMIN SETTINGS */ function updateMarketingVariables( uint256 _sellTax, uint256 _buyTax ) public onlyOwner { sellTax = _sellTax; buyTax = _buyTax; } function updateUniswapV2Router(address newAddress) public onlyOwner { require( newAddress != address(uniswapV2Router), "CHAD: The router already has that address" ); uniswapV2Router = IUniswapV2Router02(newAddress); } function manualSwapandLiquify(uint256 _balance) external onlyOwner { swapAndSendDividends(_balance); } function setAutomatedMarketMakerPair( address pair, bool value ) public onlyOwner { require( pair != uniswapV2Pair, "CHAD: The Uniswap pair cannot be removed from automatedMarketMakerPairs" ); _setAutomatedMarketMakerPair(pair, value); } /** * Private functions */ function swapAndSendDividends(uint256 tokens) private { swapTokensForEth(tokens); uint256 dividends = address(this).balance; (bool success, ) = address(taxAddr).call{value: address(this).balance}( "" ); } // Main override transfer function function _transfer( address from, address to, uint256 amount ) internal override { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); require(!blacklisted[from], "CHAD: Blocked Transfer"); require(amount > 0, "CHAD: 0 transfers not acceptable"); // Sniper Protection if (!_hasLiqBeenAdded) { // If no liquidity yet, allow owner to add liquidity _checkLiquidityAdd(from, to); } else { // if liquidity has already been added. if ( launchedAt > 0 && from == uniswapV2Pair && owner() != from && owner() != to ) { if (block.number - launchedAt < 10) { _blacklist(to, true); snipersCaught++; } } } uint256 contractTokenBalance = balanceOf(address(this)); bool canSwap = contractTokenBalance >= swapTokensAtAmount; if ( canSwap && !swapping && !automatedMarketMakerPairs[from] && from != taxAddr && to != taxAddr ) { swapping = true; swapAndSendDividends(swapTokensAtAmount); swapping = false; } bool takeFee = !swapping; // if any account is whitelisted account then remove the fee if (whitelisted[from] || whitelisted[to]) { takeFee = false; } if (takeFee) { uint256 fees = 0; if (automatedMarketMakerPairs[from]) { fees = fees.add(amount.mul(buyTax).div(100)); } else { fees = fees.add(amount.mul(sellTax).div(100)); } amount = amount.sub(fees); super._transfer(from, address(this), fees); } super._transfer(from, to, amount); } function _checkLiquidityAdd(address from, address to) private { // if liquidity is added by the _liquidityholders set // trading enables to true and start the anti sniper timer require(!_hasLiqBeenAdded, "Liquidity already added and marked."); // require liquidity has been added == false (not added). // This is basically only called when owner is adding liquidity. if (from == owner() && to == uniswapV2Pair) { _hasLiqBeenAdded = true; launchedAt = block.number; } } function whitelist(address account, bool isWhitelisted) public onlyOwner { whitelisted[account] = isWhitelisted; (account, isWhitelisted); } function blacklist(address account, bool isBlacklisted) public onlyOwner { _blacklist(account, isBlacklisted); } /**********/ /* PRIVATE FUNCTIONS */ /**********/ function _blacklist(address account, bool isBlacklisted) private { blacklisted[account] = isBlacklisted; (account, isBlacklisted); } function swapTokensForEth(uint256 tokenAmount) private { // generate the uniswap pair path of token -> weth address[] memory path = new address[](2); path[0] = address(this); path[1] = uniswapV2Router.WETH(); _approve(address(this), address(uniswapV2Router), tokenAmount); // make the swap uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens( tokenAmount, 0, // accept any amount of ETH path, address(this), block.timestamp ); } function _setAutomatedMarketMakerPair(address pair, bool value) private { require( automatedMarketMakerPairs[pair] != value, "CHAD: Automated market maker pair is already set to that value" ); automatedMarketMakerPairs[pair] = value; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.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]. * * 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}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * 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 value {ERC20} uses, unless this function is * 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.7.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 anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing 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.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; interface IUniswapV2Pair { event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint); function balanceOf(address owner) external view returns (uint); function allowance(address owner, address spender) external view returns (uint); function approve(address spender, uint value) external returns (bool); function transfer(address to, uint value) external returns (bool); function transferFrom(address from, address to, uint value) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint); function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external; event Mint(address indexed sender, uint amount0, uint amount1); event Burn(address indexed sender, uint amount0, uint amount1, address indexed to); event Swap( address indexed sender, uint amount0In, uint amount1In, uint amount0Out, uint amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint); function factory() external view returns (address); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast); function price0CumulativeLast() external view returns (uint); function price1CumulativeLast() external view returns (uint); function kLast() external view returns (uint); function mint(address to) external returns (uint liquidity); function burn(address to) external returns (uint amount0, uint amount1); function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external; function skim(address to) external; function sync() external; function initialize(address, address) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; 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 pragma solidity ^0.8.4; 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; 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 // OpenZeppelin Contracts (last updated v4.6.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; } }
{ "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":"_uniswapAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","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":[],"name":"_hasLiqBeenAdded","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_totalSupply","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":"","type":"address"}],"name":"automatedMarketMakerPairs","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"isBlacklisted","type":"bool"}],"name":"blacklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"blacklisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"launchedAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_balance","type":"uint256"}],"name":"manualSwapandLiquify","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sellTax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pair","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"setAutomatedMarketMakerPair","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"snipersCaught","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapAndLiquifycount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapTokensAtAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"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":[{"internalType":"uint256","name":"_sellTax","type":"uint256"},{"internalType":"uint256","name":"_buyTax","type":"uint256"}],"name":"updateMarketingVariables","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"}],"name":"updateUniswapV2Router","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"isWhitelisted","type":"bool"}],"name":"whitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040526c0c9f2c9cd04674edea400000006008556b033b2e3c9fd0803ce80000006009556014600b556000600c819055600d805460ff19169055600e819055600f8190556010553480156200005557600080fd5b5060405162001ffc38038062001ffc83398101604081905262000078916200064b565b604080518082018252600781526610d2105111d41560ca1b60208083019182528351808501909452600484526310d2105160e21b908401528151919291620000c391600391620005a5565b508051620000d9906004906020840190620005a5565b505050620000f6620000f06200033360201b60201c565b62000337565b60008190506000816001600160a01b031663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b1580156200013757600080fd5b505afa1580156200014c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200017291906200064b565b6001600160a01b031663c9c6539630846001600160a01b031663ad5c46486040518163ffffffff1660e01b815260040160206040518083038186803b158015620001bb57600080fd5b505afa158015620001d0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001f691906200064b565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604401602060405180830381600087803b1580156200023f57600080fd5b505af115801562000254573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200027a91906200064b565b600680546001600160a01b038086166001600160a01b03199283161790925560078054928416929091169190911790559050620002b981600162000389565b620002c63060016200044f565b620002e5620002dd6005546001600160a01b031690565b60016200044f565b6005546001600160a01b0316600a80546001600160a01b0319166001600160a01b039283161790556005546200032a91166008546200048460201b62000a121760201c565b505050620006e1565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03821660009081526014602052604090205460ff1615158115151415620004245760405162461bcd60e51b815260206004820152603e60248201527f434841443a204175746f6d61746564206d61726b6574206d616b65722070616960448201527f7220697320616c72656164792073657420746f20746861742076616c7565000060648201526084015b60405180910390fd5b6001600160a01b03919091166000908152601460205260409020805460ff1916911515919091179055565b6200045962000547565b6001600160a01b03919091166000908152601160205260409020805460ff1916911515919091179055565b6001600160a01b038216620004dc5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016200041b565b8060026000828254620004f091906200067d565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6005546001600160a01b03163314620005a35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016200041b565b565b828054620005b390620006a4565b90600052602060002090601f016020900481019282620005d7576000855562000622565b82601f10620005f257805160ff191683800117855562000622565b8280016001018555821562000622579182015b828111156200062257825182559160200191906001019062000605565b506200063092915062000634565b5090565b5b8082111562000630576000815560010162000635565b6000602082840312156200065e57600080fd5b81516001600160a01b03811681146200067657600080fd5b9392505050565b600082198211156200069f57634e487b7160e01b600052601160045260246000fd5b500190565b600181811c90821680620006b957607f821691505b60208210811415620006db57634e487b7160e01b600052602260045260246000fd5b50919050565b61190b80620006f16000396000f3fe6080604052600436106101f25760003560e01c8063715018a61161010d578063bf56b371116100a0578063dd62ed3e1161006f578063dd62ed3e14610594578063e2f45605146105b4578063e79d4160146105ca578063f2fde38b146105e0578063f59c37081461060057600080fd5b8063bf56b37114610518578063cc1776d31461052e578063d060ad8d14610544578063dbac26e91461056457600080fd5b80639a7a23d6116100dc5780639a7a23d614610488578063a457c2d7146104a8578063a9059cbb146104c8578063b62496f5146104e857600080fd5b8063715018a61461042a5780638da5cb5b1461043f57806392b5d0461461045d57806395d89b411461047357600080fd5b80633eaaf86b1161018557806350a8e0161161015457806350a8e0161461039a57806358f057a9146103b457806365b8dbc0146103d457806370a08231146103f457600080fd5b80633eaaf86b1461032c578063404e51291461034257806349bd5a5e146103645780634f7041a51461038457600080fd5b806323b872dd116101c157806323b872dd146102b057806326905e04146102d0578063313ce567146102f0578063395093511461030c57600080fd5b806306fdde03146101fe578063095ea7b3146102295780631694505e1461025957806318160ddd1461029157600080fd5b366101f957005b600080fd5b34801561020a57600080fd5b50610213610620565b6040516102209190611680565b60405180910390f35b34801561023557600080fd5b50610249610244366004611619565b6106b2565b6040519015158152602001610220565b34801561026557600080fd5b50600654610279906001600160a01b031681565b6040516001600160a01b039091168152602001610220565b34801561029d57600080fd5b506002545b604051908152602001610220565b3480156102bc57600080fd5b506102496102cb3660046115a5565b6106ca565b3480156102dc57600080fd5b50600a54610279906001600160a01b031681565b3480156102fc57600080fd5b5060405160128152602001610220565b34801561031857600080fd5b50610249610327366004611619565b6106ee565b34801561033857600080fd5b506102a260085481565b34801561034e57600080fd5b5061036261035d3660046115e6565b610710565b005b34801561037057600080fd5b50600754610279906001600160a01b031681565b34801561039057600080fd5b506102a2600c5481565b3480156103a657600080fd5b50600d546102499060ff1681565b3480156103c057600080fd5b506103626103cf36600461165e565b610726565b3480156103e057600080fd5b506103626103ef366004611532565b610739565b34801561040057600080fd5b506102a261040f366004611532565b6001600160a01b031660009081526020819052604090205490565b34801561043657600080fd5b506103626107d8565b34801561044b57600080fd5b506005546001600160a01b0316610279565b34801561046957600080fd5b506102a2600f5481565b34801561047f57600080fd5b506102136107ec565b34801561049457600080fd5b506103626104a33660046115e6565b6107fb565b3480156104b457600080fd5b506102496104c3366004611619565b6108a1565b3480156104d457600080fd5b506102496104e3366004611619565b61091c565b3480156104f457600080fd5b50610249610503366004611532565b60146020526000908152604090205460ff1681565b34801561052457600080fd5b506102a2600e5481565b34801561053a57600080fd5b506102a2600b5481565b34801561055057600080fd5b5061036261055f366004611645565b61092a565b34801561057057600080fd5b5061024961057f366004611532565b60126020526000908152604090205460ff1681565b3480156105a057600080fd5b506102a26105af36600461156c565b61093e565b3480156105c057600080fd5b506102a260095481565b3480156105d657600080fd5b506102a260105481565b3480156105ec57600080fd5b506103626105fb366004611532565b610969565b34801561060c57600080fd5b5061036261061b3660046115e6565b6109df565b60606003805461062f9061183e565b80601f016020809104026020016040519081016040528092919081815260200182805461065b9061183e565b80156106a85780601f1061067d576101008083540402835291602001916106a8565b820191906000526020600020905b81548152906001019060200180831161068b57829003601f168201915b5050505050905090565b6000336106c0818585610ad1565b5060019392505050565b6000336106d8858285610bf5565b6106e3858585610c6f565b506001949350505050565b6000336106c0818585610701838361093e565b61070b91906117ce565b610ad1565b610718610fdc565b6107228282611036565b5050565b61072e610fdc565b600b91909155600c55565b610741610fdc565b6006546001600160a01b03828116911614156107b65760405162461bcd60e51b815260206004820152602960248201527f434841443a2054686520726f7574657220616c7265616479206861732074686160448201526874206164647265737360b81b60648201526084015b60405180910390fd5b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6107e0610fdc565b6107ea6000611061565b565b60606004805461062f9061183e565b610803610fdc565b6007546001600160a01b03838116911614156108975760405162461bcd60e51b815260206004820152604760248201527f434841443a2054686520556e697377617020706169722063616e6e6f7420626560448201527f2072656d6f7665642066726f6d206175746f6d617465644d61726b65744d616b6064820152666572506169727360c81b608482015260a4016107ad565b61072282826110b3565b600033816108af828661093e565b90508381101561090f5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016107ad565b6106e38286868403610ad1565b6000336106c0818585610c6f565b610932610fdc565b61093b81611173565b50565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610971610fdc565b6001600160a01b0381166109d65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107ad565b61093b81611061565b6109e7610fdc565b6001600160a01b03919091166000908152601160205260409020805460ff1916911515919091179055565b6001600160a01b038216610a685760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016107ad565b8060026000828254610a7a91906117ce565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b038316610b335760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016107ad565b6001600160a01b038216610b945760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016107ad565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000610c01848461093e565b90506000198114610c695781811015610c5c5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016107ad565b610c698484848403610ad1565b50505050565b6001600160a01b038316610c955760405162461bcd60e51b81526004016107ad90611718565b6001600160a01b038216610cbb5760405162461bcd60e51b81526004016107ad906116d5565b6001600160a01b03831660009081526012602052604090205460ff1615610d1d5760405162461bcd60e51b815260206004820152601660248201527521a420a21d10213637b1b5b2b2102a3930b739b332b960511b60448201526064016107ad565b60008111610d6d5760405162461bcd60e51b815260206004820181905260248201527f434841443a2030207472616e7366657273206e6f742061636365707461626c6560448201526064016107ad565b600d5460ff16610d8657610d8183836111cd565b610e3f565b6000600e54118015610da557506007546001600160a01b038481169116145b8015610dd45750826001600160a01b0316610dc86005546001600160a01b031690565b6001600160a01b031614155b8015610e035750816001600160a01b0316610df76005546001600160a01b031690565b6001600160a01b031614155b15610e3f57600a600e5443610e189190611827565b1015610e3f57610e29826001611036565b60108054906000610e3983611879565b91905055505b3060009081526020819052604090205460095481108015908190610e66575060135460ff16155b8015610e8b57506001600160a01b03851660009081526014602052604090205460ff16155b8015610ea55750600a546001600160a01b03868116911614155b8015610ebf5750600a546001600160a01b03858116911614155b15610ee8576013805460ff19166001179055600954610edd90611173565b6013805460ff191690555b6013546001600160a01b03861660009081526011602052604090205460ff91821615911680610f2f57506001600160a01b03851660009081526011602052604090205460ff165b15610f38575060005b8015610fc9576001600160a01b03861660009081526014602052604081205460ff1615610f9057610f89610f826064610f7c600c548961127090919063ffffffff16565b90611283565b829061128f565b9050610fb0565b610fad610f826064610f7c600b548961127090919063ffffffff16565b90505b610fba858261129b565b9450610fc78730836112a7565b505b610fd48686866112a7565b505050505050565b6005546001600160a01b031633146107ea5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107ad565b6001600160a01b03919091166000908152601260205260409020805460ff1916911515919091179055565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03821660009081526014602052604090205460ff16151581151514156111485760405162461bcd60e51b815260206004820152603e60248201527f434841443a204175746f6d61746564206d61726b6574206d616b65722070616960448201527f7220697320616c72656164792073657420746f20746861742076616c7565000060648201526084016107ad565b6001600160a01b03919091166000908152601460205260409020805460ff1916911515919091179055565b61117c816113d1565b600a5460405147916000916001600160a01b039091169047908381818185875af1925050503d8060008114610fd4576040519150601f19603f3d011682016040523d82523d6000602084013e610fd4565b600d5460ff161561122c5760405162461bcd60e51b815260206004820152602360248201527f4c697175696469747920616c726561647920616464656420616e64206d61726b60448201526232b21760e91b60648201526084016107ad565b6005546001600160a01b03838116911614801561125657506007546001600160a01b038281169116145b1561072257600d805460ff1916600117905543600e555050565b600061127c8284611808565b9392505050565b600061127c82846117e6565b600061127c82846117ce565b600061127c8284611827565b6001600160a01b0383166112cd5760405162461bcd60e51b81526004016107ad90611718565b6001600160a01b0382166112f35760405162461bcd60e51b81526004016107ad906116d5565b6001600160a01b0383166000908152602081905260409020548181101561136b5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016107ad565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610c69565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110611406576114066118aa565b6001600160a01b03928316602091820292909201810191909152600654604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b15801561145a57600080fd5b505afa15801561146e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611492919061154f565b816001815181106114a5576114a56118aa565b6001600160a01b0392831660209182029290920101526006546114cb9130911684610ad1565b60065460405163791ac94760e01b81526001600160a01b039091169063791ac9479061150490859060009086903090429060040161175d565b600060405180830381600087803b15801561151e57600080fd5b505af1158015610fd4573d6000803e3d6000fd5b60006020828403121561154457600080fd5b813561127c816118c0565b60006020828403121561156157600080fd5b815161127c816118c0565b6000806040838503121561157f57600080fd5b823561158a816118c0565b9150602083013561159a816118c0565b809150509250929050565b6000806000606084860312156115ba57600080fd5b83356115c5816118c0565b925060208401356115d5816118c0565b929592945050506040919091013590565b600080604083850312156115f957600080fd5b8235611604816118c0565b91506020830135801515811461159a57600080fd5b6000806040838503121561162c57600080fd5b8235611637816118c0565b946020939093013593505050565b60006020828403121561165757600080fd5b5035919050565b6000806040838503121561167157600080fd5b50508035926020909101359150565b600060208083528351808285015260005b818110156116ad57858101830151858201604001528201611691565b818111156116bf576000604083870101525b50601f01601f1916929092016040019392505050565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156117ad5784516001600160a01b031683529383019391830191600101611788565b50506001600160a01b03969096166060850152505050608001529392505050565b600082198211156117e1576117e1611894565b500190565b60008261180357634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161561182257611822611894565b500290565b60008282101561183957611839611894565b500390565b600181811c9082168061185257607f821691505b6020821081141561187357634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561188d5761188d611894565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6001600160a01b038116811461093b57600080fdfea264697066735822122031845ca31e8d68aff436d98f4dbb9b09ec8fda19a179baa89b4cf8e2c18642ce64736f6c634300080700330000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Deployed Bytecode
0x6080604052600436106101f25760003560e01c8063715018a61161010d578063bf56b371116100a0578063dd62ed3e1161006f578063dd62ed3e14610594578063e2f45605146105b4578063e79d4160146105ca578063f2fde38b146105e0578063f59c37081461060057600080fd5b8063bf56b37114610518578063cc1776d31461052e578063d060ad8d14610544578063dbac26e91461056457600080fd5b80639a7a23d6116100dc5780639a7a23d614610488578063a457c2d7146104a8578063a9059cbb146104c8578063b62496f5146104e857600080fd5b8063715018a61461042a5780638da5cb5b1461043f57806392b5d0461461045d57806395d89b411461047357600080fd5b80633eaaf86b1161018557806350a8e0161161015457806350a8e0161461039a57806358f057a9146103b457806365b8dbc0146103d457806370a08231146103f457600080fd5b80633eaaf86b1461032c578063404e51291461034257806349bd5a5e146103645780634f7041a51461038457600080fd5b806323b872dd116101c157806323b872dd146102b057806326905e04146102d0578063313ce567146102f0578063395093511461030c57600080fd5b806306fdde03146101fe578063095ea7b3146102295780631694505e1461025957806318160ddd1461029157600080fd5b366101f957005b600080fd5b34801561020a57600080fd5b50610213610620565b6040516102209190611680565b60405180910390f35b34801561023557600080fd5b50610249610244366004611619565b6106b2565b6040519015158152602001610220565b34801561026557600080fd5b50600654610279906001600160a01b031681565b6040516001600160a01b039091168152602001610220565b34801561029d57600080fd5b506002545b604051908152602001610220565b3480156102bc57600080fd5b506102496102cb3660046115a5565b6106ca565b3480156102dc57600080fd5b50600a54610279906001600160a01b031681565b3480156102fc57600080fd5b5060405160128152602001610220565b34801561031857600080fd5b50610249610327366004611619565b6106ee565b34801561033857600080fd5b506102a260085481565b34801561034e57600080fd5b5061036261035d3660046115e6565b610710565b005b34801561037057600080fd5b50600754610279906001600160a01b031681565b34801561039057600080fd5b506102a2600c5481565b3480156103a657600080fd5b50600d546102499060ff1681565b3480156103c057600080fd5b506103626103cf36600461165e565b610726565b3480156103e057600080fd5b506103626103ef366004611532565b610739565b34801561040057600080fd5b506102a261040f366004611532565b6001600160a01b031660009081526020819052604090205490565b34801561043657600080fd5b506103626107d8565b34801561044b57600080fd5b506005546001600160a01b0316610279565b34801561046957600080fd5b506102a2600f5481565b34801561047f57600080fd5b506102136107ec565b34801561049457600080fd5b506103626104a33660046115e6565b6107fb565b3480156104b457600080fd5b506102496104c3366004611619565b6108a1565b3480156104d457600080fd5b506102496104e3366004611619565b61091c565b3480156104f457600080fd5b50610249610503366004611532565b60146020526000908152604090205460ff1681565b34801561052457600080fd5b506102a2600e5481565b34801561053a57600080fd5b506102a2600b5481565b34801561055057600080fd5b5061036261055f366004611645565b61092a565b34801561057057600080fd5b5061024961057f366004611532565b60126020526000908152604090205460ff1681565b3480156105a057600080fd5b506102a26105af36600461156c565b61093e565b3480156105c057600080fd5b506102a260095481565b3480156105d657600080fd5b506102a260105481565b3480156105ec57600080fd5b506103626105fb366004611532565b610969565b34801561060c57600080fd5b5061036261061b3660046115e6565b6109df565b60606003805461062f9061183e565b80601f016020809104026020016040519081016040528092919081815260200182805461065b9061183e565b80156106a85780601f1061067d576101008083540402835291602001916106a8565b820191906000526020600020905b81548152906001019060200180831161068b57829003601f168201915b5050505050905090565b6000336106c0818585610ad1565b5060019392505050565b6000336106d8858285610bf5565b6106e3858585610c6f565b506001949350505050565b6000336106c0818585610701838361093e565b61070b91906117ce565b610ad1565b610718610fdc565b6107228282611036565b5050565b61072e610fdc565b600b91909155600c55565b610741610fdc565b6006546001600160a01b03828116911614156107b65760405162461bcd60e51b815260206004820152602960248201527f434841443a2054686520726f7574657220616c7265616479206861732074686160448201526874206164647265737360b81b60648201526084015b60405180910390fd5b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6107e0610fdc565b6107ea6000611061565b565b60606004805461062f9061183e565b610803610fdc565b6007546001600160a01b03838116911614156108975760405162461bcd60e51b815260206004820152604760248201527f434841443a2054686520556e697377617020706169722063616e6e6f7420626560448201527f2072656d6f7665642066726f6d206175746f6d617465644d61726b65744d616b6064820152666572506169727360c81b608482015260a4016107ad565b61072282826110b3565b600033816108af828661093e565b90508381101561090f5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016107ad565b6106e38286868403610ad1565b6000336106c0818585610c6f565b610932610fdc565b61093b81611173565b50565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610971610fdc565b6001600160a01b0381166109d65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107ad565b61093b81611061565b6109e7610fdc565b6001600160a01b03919091166000908152601160205260409020805460ff1916911515919091179055565b6001600160a01b038216610a685760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016107ad565b8060026000828254610a7a91906117ce565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6001600160a01b038316610b335760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016107ad565b6001600160a01b038216610b945760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016107ad565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000610c01848461093e565b90506000198114610c695781811015610c5c5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016107ad565b610c698484848403610ad1565b50505050565b6001600160a01b038316610c955760405162461bcd60e51b81526004016107ad90611718565b6001600160a01b038216610cbb5760405162461bcd60e51b81526004016107ad906116d5565b6001600160a01b03831660009081526012602052604090205460ff1615610d1d5760405162461bcd60e51b815260206004820152601660248201527521a420a21d10213637b1b5b2b2102a3930b739b332b960511b60448201526064016107ad565b60008111610d6d5760405162461bcd60e51b815260206004820181905260248201527f434841443a2030207472616e7366657273206e6f742061636365707461626c6560448201526064016107ad565b600d5460ff16610d8657610d8183836111cd565b610e3f565b6000600e54118015610da557506007546001600160a01b038481169116145b8015610dd45750826001600160a01b0316610dc86005546001600160a01b031690565b6001600160a01b031614155b8015610e035750816001600160a01b0316610df76005546001600160a01b031690565b6001600160a01b031614155b15610e3f57600a600e5443610e189190611827565b1015610e3f57610e29826001611036565b60108054906000610e3983611879565b91905055505b3060009081526020819052604090205460095481108015908190610e66575060135460ff16155b8015610e8b57506001600160a01b03851660009081526014602052604090205460ff16155b8015610ea55750600a546001600160a01b03868116911614155b8015610ebf5750600a546001600160a01b03858116911614155b15610ee8576013805460ff19166001179055600954610edd90611173565b6013805460ff191690555b6013546001600160a01b03861660009081526011602052604090205460ff91821615911680610f2f57506001600160a01b03851660009081526011602052604090205460ff165b15610f38575060005b8015610fc9576001600160a01b03861660009081526014602052604081205460ff1615610f9057610f89610f826064610f7c600c548961127090919063ffffffff16565b90611283565b829061128f565b9050610fb0565b610fad610f826064610f7c600b548961127090919063ffffffff16565b90505b610fba858261129b565b9450610fc78730836112a7565b505b610fd48686866112a7565b505050505050565b6005546001600160a01b031633146107ea5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107ad565b6001600160a01b03919091166000908152601260205260409020805460ff1916911515919091179055565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03821660009081526014602052604090205460ff16151581151514156111485760405162461bcd60e51b815260206004820152603e60248201527f434841443a204175746f6d61746564206d61726b6574206d616b65722070616960448201527f7220697320616c72656164792073657420746f20746861742076616c7565000060648201526084016107ad565b6001600160a01b03919091166000908152601460205260409020805460ff1916911515919091179055565b61117c816113d1565b600a5460405147916000916001600160a01b039091169047908381818185875af1925050503d8060008114610fd4576040519150601f19603f3d011682016040523d82523d6000602084013e610fd4565b600d5460ff161561122c5760405162461bcd60e51b815260206004820152602360248201527f4c697175696469747920616c726561647920616464656420616e64206d61726b60448201526232b21760e91b60648201526084016107ad565b6005546001600160a01b03838116911614801561125657506007546001600160a01b038281169116145b1561072257600d805460ff1916600117905543600e555050565b600061127c8284611808565b9392505050565b600061127c82846117e6565b600061127c82846117ce565b600061127c8284611827565b6001600160a01b0383166112cd5760405162461bcd60e51b81526004016107ad90611718565b6001600160a01b0382166112f35760405162461bcd60e51b81526004016107ad906116d5565b6001600160a01b0383166000908152602081905260409020548181101561136b5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016107ad565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610c69565b6040805160028082526060820183526000926020830190803683370190505090503081600081518110611406576114066118aa565b6001600160a01b03928316602091820292909201810191909152600654604080516315ab88c960e31b81529051919093169263ad5c4648926004808301939192829003018186803b15801561145a57600080fd5b505afa15801561146e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611492919061154f565b816001815181106114a5576114a56118aa565b6001600160a01b0392831660209182029290920101526006546114cb9130911684610ad1565b60065460405163791ac94760e01b81526001600160a01b039091169063791ac9479061150490859060009086903090429060040161175d565b600060405180830381600087803b15801561151e57600080fd5b505af1158015610fd4573d6000803e3d6000fd5b60006020828403121561154457600080fd5b813561127c816118c0565b60006020828403121561156157600080fd5b815161127c816118c0565b6000806040838503121561157f57600080fd5b823561158a816118c0565b9150602083013561159a816118c0565b809150509250929050565b6000806000606084860312156115ba57600080fd5b83356115c5816118c0565b925060208401356115d5816118c0565b929592945050506040919091013590565b600080604083850312156115f957600080fd5b8235611604816118c0565b91506020830135801515811461159a57600080fd5b6000806040838503121561162c57600080fd5b8235611637816118c0565b946020939093013593505050565b60006020828403121561165757600080fd5b5035919050565b6000806040838503121561167157600080fd5b50508035926020909101359150565b600060208083528351808285015260005b818110156116ad57858101830151858201604001528201611691565b818111156116bf576000604083870101525b50601f01601f1916929092016040019392505050565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156117ad5784516001600160a01b031683529383019391830191600101611788565b50506001600160a01b03969096166060850152505050608001529392505050565b600082198211156117e1576117e1611894565b500190565b60008261180357634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161561182257611822611894565b500290565b60008282101561183957611839611894565b500390565b600181811c9082168061185257607f821691505b6020821081141561187357634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561188d5761188d611894565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6001600160a01b038116811461093b57600080fdfea264697066735822122031845ca31e8d68aff436d98f4dbb9b09ec8fda19a179baa89b4cf8e2c18642ce64736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
-----Decoded View---------------
Arg [0] : _uniswapAddress (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 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.