ERC-20
Decentralized Web
Overview
Max Total Supply
100,000,000 XALPHA
Holders
2,922 ( -0.068%)
Market
Price
$0.06 @ 0.000017 ETH (-11.54%)
Onchain Market Cap
$6,086,693.71
Circulating Supply Market Cap
$0.00
Other Info
Token Contract (WITH 18 Decimals)
Balance
736.285160158750320778 XALPHAValue
$44.82 ( ~0.0122307692568626 Eth) [0.0007%]Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
XAlpha
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED // Website: https://x-alpha.ai // Twitter: https://twitter.com/XAlphaAI // Telegram: https://t.me/xalphaAI 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; } } // File @openzeppelin/contracts/access/[email protected] // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @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); } } // File @openzeppelin/contracts/token/ERC20/[email protected] // 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); } // File @openzeppelin/contracts/token/ERC20/extensions/[email protected] // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; /** * @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); } // File @openzeppelin/contracts/token/ERC20/[email protected] // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; /** * @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 {} } // File @uniswap/v2-periphery/contracts/interfaces/[email protected] 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); } // File @uniswap/v2-periphery/contracts/interfaces/[email protected] 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; } // File @uniswap/v2-core/contracts/interfaces/[email protected] 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; } // File @uniswap/v2-core/contracts/interfaces/[email protected] pragma solidity >=0.5.0; 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; } pragma solidity ^0.8.9; contract XAlpha is ERC20, Ownable { address private WETH; address public constant uniswapV2Router02 = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D; IUniswapV2Pair public pairContract; IUniswapV2Router02 public router; address public pair; mapping(address => uint256) private buyBlock; address public feeReceiver = 0x6AEe3771C4Cefe20F9CF7B9293fD3B913B2043Fe; uint16 public feeInitialPercentageBuy = 2000; uint16 public feeInitialPercentageSell = 2000; uint16 public feePercentageBuy = 500; uint16 public feePercentageSell = 500; uint256 public maxTokenAmountPerWallet = 2000000 * 10 ** decimals(); uint256 public maxTokenAmountPerTransaction = 1000000 * 10 ** decimals(); uint256 public initialBuyCountThreshold = 75; uint256 private buyCount = 0; uint256 public swapThreshold = 100000000000000000; bool private inSwap = false; modifier lockTheSwap() { inSwap = true; _; inSwap = false; } constructor() ERC20(unicode"X-Alpha.ai", unicode"XALPHA") { router = IUniswapV2Router02(uniswapV2Router02); WETH = router.WETH(); pair = IUniswapV2Factory(router.factory()).createPair( WETH, address(this) ); pairContract = IUniswapV2Pair(pair); _approve(address(this), uniswapV2Router02, type(uint256).max); _approve(address(this), pair, type(uint256).max); _approve(msg.sender, uniswapV2Router02, type(uint256).max); _mint(msg.sender, (100000000) * 10 ** decimals()); } receive() external payable {} modifier isBot(address from, address to) { require( block.number > buyBlock[from] || block.number > buyBlock[to], "Cannot perform more than one transaction in the same block" ); _; buyBlock[from] = block.number; buyBlock[to] = block.number; } function checkMaxTransactionAmountExceeded(uint256 amount) private view { if (msg.sender != owner() || msg.sender != address(this)) require( amount <= maxTokenAmountPerTransaction, "Max token per transaction exceeded" ); } function checkMaxWalletAmountExceeded( address to, uint256 amount ) private view { if (msg.sender != owner() || to != address(this)) require( balanceOf(to) + amount <= maxTokenAmountPerWallet, "Max token per wallet exceeded" ); } function calculateTokenAmountInETH( uint256 amount ) public view returns (uint256) { address[] memory path = new address[](2); path[0] = address(this); path[1] = WETH; try router.getAmountsOut(amount, path) returns ( uint[] memory amountsOut ) { return amountsOut[1]; } catch { return 0; } } function swapBalanceToETHAndSend() private lockTheSwap { uint256 amountIn = balanceOf(address(this)); address[] memory path = new address[](2); path[0] = address(this); path[1] = WETH; router.swapExactTokensForETHSupportingFeeOnTransferTokens( amountIn, 0, path, address(this), block.timestamp ); payable(feeReceiver).transfer(address(this).balance); } function distributeFees() private { uint256 amountInETH = calculateTokenAmountInETH( balanceOf(address(this)) ); (uint112 reserve0, uint112 reserve1, ) = pairContract.getReserves(); uint256 totalETHInPool; if (pairContract.token0() == WETH) totalETHInPool = uint256(reserve0); else if (pairContract.token1() == WETH) totalETHInPool = uint256(reserve1); if (amountInETH > swapThreshold) swapBalanceToETHAndSend(); } function _transfer( address from, address to, uint256 amount ) internal override isBot(from, to) { if ( from == owner() || to == owner() || from == feeReceiver || to == feeReceiver || from == feeReceiver || to == feeReceiver || inSwap ) { super._transfer(from, to, amount); } else { uint256 feePercentage = 0; bool buying = from == pair && to != uniswapV2Router02; bool selling = from != uniswapV2Router02 && to == pair; if (msg.sender != pair && !inSwap) distributeFees(); if (buying) { if (buyCount < initialBuyCountThreshold) { feePercentage = feeInitialPercentageBuy; buyCount++; } else { feePercentage = feePercentageBuy; } } if (selling) { if (buyCount < initialBuyCountThreshold) { feePercentage = feeInitialPercentageSell; } else { feePercentage = feePercentageSell; } } uint256 feeAmount = (amount * feePercentage) / (10000); uint256 finalAmount = (amount - feeAmount); if (maxTokenAmountPerTransaction > 0) checkMaxTransactionAmountExceeded(amount); if (buying && maxTokenAmountPerWallet > 0) checkMaxWalletAmountExceeded(to, finalAmount); super._transfer(from, address(this), feeAmount); super._transfer(from, to, finalAmount); } } function manualSwap() external onlyOwner { swapBalanceToETHAndSend(); } function removeLimits() external onlyOwner { maxTokenAmountPerWallet = 0; maxTokenAmountPerTransaction = 0; } function removeTaxes() external onlyOwner { feePercentageBuy = 0; feePercentageSell = 0; } function updateBuyFee(uint16 _feePercentageBuy) external onlyOwner { require(_feePercentageBuy <= 2000, "Must keep fees at 20% or less"); feePercentageBuy = _feePercentageBuy; } function updateInitialBuyFee(uint16 _feeInitialPercentageBuy) external onlyOwner { require(_feeInitialPercentageBuy <= 2000, "Must keep fees at 20% or less"); feeInitialPercentageBuy = _feeInitialPercentageBuy; } function updateSellFee(uint16 _feePercentageSell) external onlyOwner { require(_feePercentageSell <= 2000, "Must keep fees at 20% or less"); feePercentageSell = _feePercentageSell; } function updateInitialSellFee(uint16 _feeInitialPercentageSell) external onlyOwner { require(_feeInitialPercentageSell <= 2000, "Must keep fees at 20% or less"); feeInitialPercentageSell = _feeInitialPercentageSell; } function updateMaxTokenAmountPerWallet(uint16 _maxTokenAmountPerWallet) external onlyOwner { maxTokenAmountPerWallet = _maxTokenAmountPerWallet; } function updateMaxTokenAmountPerTransaction(uint16 _maxTokenAmountPerTransaction) external onlyOwner { maxTokenAmountPerTransaction = _maxTokenAmountPerTransaction; } function updateFeeReceiver(address _feeReceiver) external onlyOwner { feeReceiver = _feeReceiver; } function updateInitialBuyCountThreshold(uint256 _initialBuyCountThreshold) external onlyOwner { initialBuyCountThreshold = _initialBuyCountThreshold; } }
{ "evmVersion": "istanbul", "optimizer": { "enabled": true, "runs": 200 }, "libraries": { "XAlpha.sol": {} }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"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":[{"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":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"calculateTokenAmountInETH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeInitialPercentageBuy","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeInitialPercentageSell","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feePercentageBuy","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feePercentageSell","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initialBuyCountThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"manualSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxTokenAmountPerTransaction","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokenAmountPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pairContract","outputs":[{"internalType":"contract IUniswapV2Pair","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"removeLimits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"removeTaxes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapV2Router02","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_feePercentageBuy","type":"uint16"}],"name":"updateBuyFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeReceiver","type":"address"}],"name":"updateFeeReceiver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_initialBuyCountThreshold","type":"uint256"}],"name":"updateInitialBuyCountThreshold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_feeInitialPercentageBuy","type":"uint16"}],"name":"updateInitialBuyFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_feeInitialPercentageSell","type":"uint16"}],"name":"updateInitialSellFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_maxTokenAmountPerTransaction","type":"uint16"}],"name":"updateMaxTokenAmountPerTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_maxTokenAmountPerWallet","type":"uint16"}],"name":"updateMaxTokenAmountPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_feePercentageSell","type":"uint16"}],"name":"updateSellFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6080604052600b80546001600160e01b0319167b01f401f407d007d06aee3771c4cefe20f9cf7b9293fd3b913b2043fe1790556200003b601290565b6200004890600a620006ca565b6200005790621e8480620006e2565b600c55620000686012600a620006ca565b6200007790620f4240620006e2565b600d55604b600e556000600f5567016345785d8a00006010556011805460ff19169055348015620000a757600080fd5b506040518060400160405280600a815260200169582d416c7068612e616960b01b8152506040518060400160405280600681526020016558414c50484160d01b8152508160039081620000fb9190620007a0565b5060046200010a8282620007a0565b50505062000127620001216200036b60201b60201c565b6200036f565b600880546001600160a01b031916737a250d5630b4cf539739df2c5dacb4c659f2488d908117909155604080516315ab88c960e31b8152905163ad5c4648916004808201926020929091908290030181865afa1580156200018c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001b291906200086c565b600680546001600160a01b0319166001600160a01b039283161790556008546040805163c45a015560e01b81529051919092169163c45a01559160048083019260209291908290030181865afa15801562000211573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200023791906200086c565b6006546040516364e329cb60e11b81526001600160a01b03918216600482015230602482015291169063c9c65396906044016020604051808303816000875af115801562000289573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002af91906200086c565b600980546001600160a01b03929092166001600160a01b0319928316811790915560078054909216179055620002fd30737a250d5630b4cf539739df2c5dacb4c659f2488d600019620003c1565b600954620003199030906001600160a01b0316600019620003c1565b6200033c33737a250d5630b4cf539739df2c5dacb4c659f2488d600019620003c1565b62000365336200034f6012600a620006ca565b6200035f906305f5e100620006e2565b620004ed565b620008ad565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038316620004295760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084015b60405180910390fd5b6001600160a01b0382166200048c5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840162000420565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038216620005455760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640162000420565b806002600082825462000559919062000897565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b505050565b634e487b7160e01b600052601160045260246000fd5b600181815b808511156200060c578160001904821115620005f057620005f0620005b5565b80851615620005fe57918102915b93841c9390800290620005d0565b509250929050565b6000826200062557506001620006c4565b816200063457506000620006c4565b81600181146200064d5760028114620006585762000678565b6001915050620006c4565b60ff8411156200066c576200066c620005b5565b50506001821b620006c4565b5060208310610133831016604e8410600b84101617156200069d575081810a620006c4565b620006a98383620005cb565b8060001904821115620006c057620006c0620005b5565b0290505b92915050565b6000620006db60ff84168362000614565b9392505050565b8082028115828204841417620006c457620006c4620005b5565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200072757607f821691505b6020821081036200074857634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620005b057600081815260208120601f850160051c81016020861015620007775750805b601f850160051c820191505b81811015620007985782815560010162000783565b505050505050565b81516001600160401b03811115620007bc57620007bc620006fc565b620007d481620007cd845462000712565b846200074e565b602080601f8311600181146200080c5760008415620007f35750858301515b600019600386901b1c1916600185901b17855562000798565b600085815260208120601f198616915b828110156200083d578886015182559484019460019091019084016200081c565b50858210156200085c5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000602082840312156200087f57600080fd5b81516001600160a01b0381168114620006db57600080fd5b80820180821115620006c457620006c4620005b5565b611c6f80620008bd6000396000f3fe6080604052600436106102345760003560e01c8063751039fc1161012e578063a9059cbb116100ab578063c6b0a1761161006f578063c6b0a17614610692578063d594f3e9146106a8578063dd62ed3e146106c8578063f2fde38b146106e8578063f887ea401461070857600080fd5b8063a9059cbb146105f0578063ab99904214610610578063b3f0067414610632578063bde1d4c314610652578063c69bebe41461067257600080fd5b80639277883d116100f25780639277883d1461055357806395d89b4114610573578063a457c2d714610588578063a7c6402c146105a8578063a8aa1b31146105d057600080fd5b8063751039fc146104c05780637c988e09146104d55780638032fa8c146104f55780638da5cb5b146105155780639272ee571461053357600080fd5b806339509351116101bc57806351bc3c851161018057806351bc3c8514610435578063685fbc6b1461044a57806369e1ea7f1461046057806370a0823114610475578063715018a6146104ab57600080fd5b806339509351146103855780633a4ceedd146103a5578063418bce8a146103c75780634d709adf146103dd5780634f9973ce1461041557600080fd5b806314c134631161020357806314c13463146102f057806318160ddd1461031257806323b872dd14610327578063313ce567146103475780633912a2c31461036357600080fd5b80630214c463146102405780630445b6671461027a57806306fdde031461029e578063095ea7b3146102c057600080fd5b3661023b57005b600080fd5b34801561024c57600080fd5b50600b5461026290600160b01b900461ffff1681565b60405161ffff90911681526020015b60405180910390f35b34801561028657600080fd5b5061029060105481565b604051908152602001610271565b3480156102aa57600080fd5b506102b3610728565b60405161027191906117c2565b3480156102cc57600080fd5b506102e06102db366004611825565b6107ba565b6040519015158152602001610271565b3480156102fc57600080fd5b5061031061030b366004611851565b6107d4565b005b34801561031e57600080fd5b50600254610290565b34801561033357600080fd5b506102e061034236600461186a565b6107e1565b34801561035357600080fd5b5060405160128152602001610271565b34801561036f57600080fd5b50600b5461026290600160a01b900461ffff1681565b34801561039157600080fd5b506102e06103a0366004611825565b610805565b3480156103b157600080fd5b50600b5461026290600160c01b900461ffff1681565b3480156103d357600080fd5b50610290600d5481565b3480156103e957600080fd5b506007546103fd906001600160a01b031681565b6040516001600160a01b039091168152602001610271565b34801561042157600080fd5b506103106104303660046118ab565b610827565b34801561044157600080fd5b50610310610880565b34801561045657600080fd5b50610290600c5481565b34801561046c57600080fd5b50610310610892565b34801561048157600080fd5b506102906104903660046118d6565b6001600160a01b031660009081526020819052604090205490565b3480156104b757600080fd5b506103106108ac565b3480156104cc57600080fd5b506103106108be565b3480156104e157600080fd5b506103106104f03660046118ab565b6108d2565b34801561050157600080fd5b506103106105103660046118ab565b610922565b34801561052157600080fd5b506005546001600160a01b03166103fd565b34801561053f57600080fd5b5061031061054e3660046118ab565b610933565b34801561055f57600080fd5b5061029061056e366004611851565b610944565b34801561057f57600080fd5b506102b3610a62565b34801561059457600080fd5b506102e06105a3366004611825565b610a71565b3480156105b457600080fd5b506103fd737a250d5630b4cf539739df2c5dacb4c659f2488d81565b3480156105dc57600080fd5b506009546103fd906001600160a01b031681565b3480156105fc57600080fd5b506102e061060b366004611825565b610aec565b34801561061c57600080fd5b50600b5461026290600160d01b900461ffff1681565b34801561063e57600080fd5b50600b546103fd906001600160a01b031681565b34801561065e57600080fd5b5061031061066d3660046118ab565b610afa565b34801561067e57600080fd5b5061031061068d3660046118d6565b610b4a565b34801561069e57600080fd5b50610290600e5481565b3480156106b457600080fd5b506103106106c33660046118ab565b610b74565b3480156106d457600080fd5b506102906106e33660046118f3565b610bc4565b3480156106f457600080fd5b506103106107033660046118d6565b610bef565b34801561071457600080fd5b506008546103fd906001600160a01b031681565b6060600380546107379061192c565b80601f01602080910402602001604051908101604052809291908181526020018280546107639061192c565b80156107b05780601f10610785576101008083540402835291602001916107b0565b820191906000526020600020905b81548152906001019060200180831161079357829003601f168201915b5050505050905090565b6000336107c8818585610c68565b60019150505b92915050565b6107dc610d8c565b600e55565b6000336107ef858285610de6565b6107fa858585610e60565b506001949350505050565b6000336107c88185856108188383610bc4565b6108229190611976565b610c68565b61082f610d8c565b6107d08161ffff16111561085e5760405162461bcd60e51b815260040161085590611989565b60405180910390fd5b600b805461ffff909216600160d01b0261ffff60d01b19909216919091179055565b610888610d8c565b610890611192565b565b61089a610d8c565b600b805463ffffffff60c01b19169055565b6108b4610d8c565b61089060006112d6565b6108c6610d8c565b6000600c819055600d55565b6108da610d8c565b6107d08161ffff1611156109005760405162461bcd60e51b815260040161085590611989565b600b805461ffff909216600160c01b0261ffff60c01b19909216919091179055565b61092a610d8c565b61ffff16600d55565b61093b610d8c565b61ffff16600c55565b60408051600280825260608201835260009283929190602083019080368337019050509050308160008151811061097d5761097d6119d6565b6001600160a01b0392831660209182029290920101526006548251911690829060019081106109ae576109ae6119d6565b6001600160a01b03928316602091820292909201015260085460405163d06ca61f60e01b815291169063d06ca61f906109ed9086908590600401611a30565b600060405180830381865afa925050508015610a2b57506040513d6000823e601f3d908101601f19168201604052610a289190810190611a51565b60015b610a385750600092915050565b80600181518110610a4b57610a4b6119d6565b602002602001015192505050919050565b50919050565b6060600480546107379061192c565b60003381610a7f8286610bc4565b905083811015610adf5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610855565b6107fa8286868403610c68565b6000336107c8818585610e60565b610b02610d8c565b6107d08161ffff161115610b285760405162461bcd60e51b815260040161085590611989565b600b805461ffff909216600160b01b0261ffff60b01b19909216919091179055565b610b52610d8c565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b610b7c610d8c565b6107d08161ffff161115610ba25760405162461bcd60e51b815260040161085590611989565b600b805461ffff909216600160a01b0261ffff60a01b19909216919091179055565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610bf7610d8c565b6001600160a01b038116610c5c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610855565b610c65816112d6565b50565b6001600160a01b038316610cca5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610855565b6001600160a01b038216610d2b5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610855565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6005546001600160a01b031633146108905760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610855565b6000610df28484610bc4565b90506000198114610e5a5781811015610e4d5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610855565b610e5a8484848403610c68565b50505050565b6001600160a01b0383166000908152600a602052604090205483908390431180610ea157506001600160a01b0381166000908152600a602052604090205443115b610f135760405162461bcd60e51b815260206004820152603a60248201527f43616e6e6f7420706572666f726d206d6f7265207468616e206f6e652074726160448201527f6e73616374696f6e20696e207468652073616d6520626c6f636b0000000000006064820152608401610855565b6005546001600160a01b0386811691161480610f3c57506005546001600160a01b038581169116145b80610f545750600b546001600160a01b038681169116145b80610f6c5750600b546001600160a01b038581169116145b80610f845750600b546001600160a01b038681169116145b80610f9c5750600b546001600160a01b038581169116145b80610fa9575060115460ff165b15610fbe57610fb9858585611328565b611163565b60095460009081906001600160a01b038881169116148015610ffd57506001600160a01b038616737a250d5630b4cf539739df2c5dacb4c659f2488d14155b905060006001600160a01b038816737a250d5630b4cf539739df2c5dacb4c659f2488d1480159061103b57506009546001600160a01b038881169116145b6009549091506001600160a01b0316331480159061105c575060115460ff16155b15611069576110696114cc565b81156110b657600e54600f5410156110a557600b54600f8054600160a01b90920461ffff169450600061109b83611b0f565b91905055506110b6565b600b54600160c01b900461ffff1692505b80156110ee57600e54600f5410156110dd57600b54600160b01b900461ffff1692506110ee565b600b54600160d01b900461ffff1692505b60006127106110fd8589611b28565b6111079190611b3f565b905060006111158289611b61565b600d5490915015611129576111298861169f565b83801561113857506000600c54115b1561114757611147898261171b565b6111528a3084611328565b61115d8a8a83611328565b50505050505b6001600160a01b039182166000908152600a602052604080822043908190559290931681529190912055505050565b6011805460ff191660011790553060009081526020818152604080832054815160028082526060820184529194939092908301908036833701905050905030816000815181106111e4576111e46119d6565b6001600160a01b039283166020918202929092010152600654825191169082906001908110611215576112156119d6565b6001600160a01b03928316602091820292909201015260085460405163791ac94760e01b815291169063791ac9479061125b908590600090869030904290600401611b74565b600060405180830381600087803b15801561127557600080fd5b505af1158015611289573d6000803e3d6000fd5b5050600b546040516001600160a01b0390911692504780156108fc029250906000818181858888f193505050501580156112c7573d6000803e3d6000fd5b50506011805460ff1916905550565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03831661138c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610855565b6001600160a01b0382166113ee5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610855565b6001600160a01b038316600090815260208190526040902054818110156114665760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610855565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610e5a565b306000908152602081905260408120546114e590610944565b9050600080600760009054906101000a90046001600160a01b03166001600160a01b0316630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa15801561153d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115619190611bcc565b5060065460075460408051630dfe168160e01b815290519496509294506000936001600160a01b03928316939290911691630dfe16819160048083019260209291908290030181865afa1580156115bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115e09190611c1c565b6001600160a01b0316036115fe57506001600160701b03821661168d565b6006546007546040805163d21220a760e01b815290516001600160a01b03938416939092169163d21220a7916004808201926020929091908290030181865afa15801561164f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116739190611c1c565b6001600160a01b03160361168d57506001600160701b0381165b601054841115610e5a57610e5a611192565b6005546001600160a01b0316331415806116b95750333014155b15610c6557600d54811115610c655760405162461bcd60e51b815260206004820152602260248201527f4d617820746f6b656e20706572207472616e73616374696f6e20657863656564604482015261195960f21b6064820152608401610855565b6005546001600160a01b03163314158061173e57506001600160a01b0382163014155b156117be57600c5481611766846001600160a01b031660009081526020819052604090205490565b6117709190611976565b11156117be5760405162461bcd60e51b815260206004820152601d60248201527f4d617820746f6b656e207065722077616c6c65742065786365656465640000006044820152606401610855565b5050565b600060208083528351808285015260005b818110156117ef578581018301518582016040015282016117d3565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b0381168114610c6557600080fd5b6000806040838503121561183857600080fd5b823561184381611810565b946020939093013593505050565b60006020828403121561186357600080fd5b5035919050565b60008060006060848603121561187f57600080fd5b833561188a81611810565b9250602084013561189a81611810565b929592945050506040919091013590565b6000602082840312156118bd57600080fd5b813561ffff811681146118cf57600080fd5b9392505050565b6000602082840312156118e857600080fd5b81356118cf81611810565b6000806040838503121561190657600080fd5b823561191181611810565b9150602083013561192181611810565b809150509250929050565b600181811c9082168061194057607f821691505b602082108103610a5c57634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b808201808211156107ce576107ce611960565b6020808252601d908201527f4d757374206b656570206665657320617420323025206f72206c657373000000604082015260600190565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b600081518084526020808501945080840160005b83811015611a255781516001600160a01b031687529582019590820190600101611a00565b509495945050505050565b828152604060208201526000611a4960408301846119ec565b949350505050565b60006020808385031215611a6457600080fd5b825167ffffffffffffffff80821115611a7c57600080fd5b818501915085601f830112611a9057600080fd5b815181811115611aa257611aa26119c0565b8060051b604051601f19603f83011681018181108582111715611ac757611ac76119c0565b604052918252848201925083810185019188831115611ae557600080fd5b938501935b82851015611b0357845184529385019392850192611aea565b98975050505050505050565b600060018201611b2157611b21611960565b5060010190565b80820281158282048414176107ce576107ce611960565b600082611b5c57634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156107ce576107ce611960565b85815284602082015260a060408201526000611b9360a08301866119ec565b6001600160a01b0394909416606083015250608001529392505050565b80516001600160701b0381168114611bc757600080fd5b919050565b600080600060608486031215611be157600080fd5b611bea84611bb0565b9250611bf860208501611bb0565b9150604084015163ffffffff81168114611c1157600080fd5b809150509250925092565b600060208284031215611c2e57600080fd5b81516118cf8161181056fea2646970667358221220d0c70db6ca5b32c9f04578db0eb265982835f64edaf6950eb9e4b570f58b644e64736f6c63430008110033
Deployed Bytecode
0x6080604052600436106102345760003560e01c8063751039fc1161012e578063a9059cbb116100ab578063c6b0a1761161006f578063c6b0a17614610692578063d594f3e9146106a8578063dd62ed3e146106c8578063f2fde38b146106e8578063f887ea401461070857600080fd5b8063a9059cbb146105f0578063ab99904214610610578063b3f0067414610632578063bde1d4c314610652578063c69bebe41461067257600080fd5b80639277883d116100f25780639277883d1461055357806395d89b4114610573578063a457c2d714610588578063a7c6402c146105a8578063a8aa1b31146105d057600080fd5b8063751039fc146104c05780637c988e09146104d55780638032fa8c146104f55780638da5cb5b146105155780639272ee571461053357600080fd5b806339509351116101bc57806351bc3c851161018057806351bc3c8514610435578063685fbc6b1461044a57806369e1ea7f1461046057806370a0823114610475578063715018a6146104ab57600080fd5b806339509351146103855780633a4ceedd146103a5578063418bce8a146103c75780634d709adf146103dd5780634f9973ce1461041557600080fd5b806314c134631161020357806314c13463146102f057806318160ddd1461031257806323b872dd14610327578063313ce567146103475780633912a2c31461036357600080fd5b80630214c463146102405780630445b6671461027a57806306fdde031461029e578063095ea7b3146102c057600080fd5b3661023b57005b600080fd5b34801561024c57600080fd5b50600b5461026290600160b01b900461ffff1681565b60405161ffff90911681526020015b60405180910390f35b34801561028657600080fd5b5061029060105481565b604051908152602001610271565b3480156102aa57600080fd5b506102b3610728565b60405161027191906117c2565b3480156102cc57600080fd5b506102e06102db366004611825565b6107ba565b6040519015158152602001610271565b3480156102fc57600080fd5b5061031061030b366004611851565b6107d4565b005b34801561031e57600080fd5b50600254610290565b34801561033357600080fd5b506102e061034236600461186a565b6107e1565b34801561035357600080fd5b5060405160128152602001610271565b34801561036f57600080fd5b50600b5461026290600160a01b900461ffff1681565b34801561039157600080fd5b506102e06103a0366004611825565b610805565b3480156103b157600080fd5b50600b5461026290600160c01b900461ffff1681565b3480156103d357600080fd5b50610290600d5481565b3480156103e957600080fd5b506007546103fd906001600160a01b031681565b6040516001600160a01b039091168152602001610271565b34801561042157600080fd5b506103106104303660046118ab565b610827565b34801561044157600080fd5b50610310610880565b34801561045657600080fd5b50610290600c5481565b34801561046c57600080fd5b50610310610892565b34801561048157600080fd5b506102906104903660046118d6565b6001600160a01b031660009081526020819052604090205490565b3480156104b757600080fd5b506103106108ac565b3480156104cc57600080fd5b506103106108be565b3480156104e157600080fd5b506103106104f03660046118ab565b6108d2565b34801561050157600080fd5b506103106105103660046118ab565b610922565b34801561052157600080fd5b506005546001600160a01b03166103fd565b34801561053f57600080fd5b5061031061054e3660046118ab565b610933565b34801561055f57600080fd5b5061029061056e366004611851565b610944565b34801561057f57600080fd5b506102b3610a62565b34801561059457600080fd5b506102e06105a3366004611825565b610a71565b3480156105b457600080fd5b506103fd737a250d5630b4cf539739df2c5dacb4c659f2488d81565b3480156105dc57600080fd5b506009546103fd906001600160a01b031681565b3480156105fc57600080fd5b506102e061060b366004611825565b610aec565b34801561061c57600080fd5b50600b5461026290600160d01b900461ffff1681565b34801561063e57600080fd5b50600b546103fd906001600160a01b031681565b34801561065e57600080fd5b5061031061066d3660046118ab565b610afa565b34801561067e57600080fd5b5061031061068d3660046118d6565b610b4a565b34801561069e57600080fd5b50610290600e5481565b3480156106b457600080fd5b506103106106c33660046118ab565b610b74565b3480156106d457600080fd5b506102906106e33660046118f3565b610bc4565b3480156106f457600080fd5b506103106107033660046118d6565b610bef565b34801561071457600080fd5b506008546103fd906001600160a01b031681565b6060600380546107379061192c565b80601f01602080910402602001604051908101604052809291908181526020018280546107639061192c565b80156107b05780601f10610785576101008083540402835291602001916107b0565b820191906000526020600020905b81548152906001019060200180831161079357829003601f168201915b5050505050905090565b6000336107c8818585610c68565b60019150505b92915050565b6107dc610d8c565b600e55565b6000336107ef858285610de6565b6107fa858585610e60565b506001949350505050565b6000336107c88185856108188383610bc4565b6108229190611976565b610c68565b61082f610d8c565b6107d08161ffff16111561085e5760405162461bcd60e51b815260040161085590611989565b60405180910390fd5b600b805461ffff909216600160d01b0261ffff60d01b19909216919091179055565b610888610d8c565b610890611192565b565b61089a610d8c565b600b805463ffffffff60c01b19169055565b6108b4610d8c565b61089060006112d6565b6108c6610d8c565b6000600c819055600d55565b6108da610d8c565b6107d08161ffff1611156109005760405162461bcd60e51b815260040161085590611989565b600b805461ffff909216600160c01b0261ffff60c01b19909216919091179055565b61092a610d8c565b61ffff16600d55565b61093b610d8c565b61ffff16600c55565b60408051600280825260608201835260009283929190602083019080368337019050509050308160008151811061097d5761097d6119d6565b6001600160a01b0392831660209182029290920101526006548251911690829060019081106109ae576109ae6119d6565b6001600160a01b03928316602091820292909201015260085460405163d06ca61f60e01b815291169063d06ca61f906109ed9086908590600401611a30565b600060405180830381865afa925050508015610a2b57506040513d6000823e601f3d908101601f19168201604052610a289190810190611a51565b60015b610a385750600092915050565b80600181518110610a4b57610a4b6119d6565b602002602001015192505050919050565b50919050565b6060600480546107379061192c565b60003381610a7f8286610bc4565b905083811015610adf5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610855565b6107fa8286868403610c68565b6000336107c8818585610e60565b610b02610d8c565b6107d08161ffff161115610b285760405162461bcd60e51b815260040161085590611989565b600b805461ffff909216600160b01b0261ffff60b01b19909216919091179055565b610b52610d8c565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b610b7c610d8c565b6107d08161ffff161115610ba25760405162461bcd60e51b815260040161085590611989565b600b805461ffff909216600160a01b0261ffff60a01b19909216919091179055565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610bf7610d8c565b6001600160a01b038116610c5c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610855565b610c65816112d6565b50565b6001600160a01b038316610cca5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610855565b6001600160a01b038216610d2b5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610855565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6005546001600160a01b031633146108905760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610855565b6000610df28484610bc4565b90506000198114610e5a5781811015610e4d5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610855565b610e5a8484848403610c68565b50505050565b6001600160a01b0383166000908152600a602052604090205483908390431180610ea157506001600160a01b0381166000908152600a602052604090205443115b610f135760405162461bcd60e51b815260206004820152603a60248201527f43616e6e6f7420706572666f726d206d6f7265207468616e206f6e652074726160448201527f6e73616374696f6e20696e207468652073616d6520626c6f636b0000000000006064820152608401610855565b6005546001600160a01b0386811691161480610f3c57506005546001600160a01b038581169116145b80610f545750600b546001600160a01b038681169116145b80610f6c5750600b546001600160a01b038581169116145b80610f845750600b546001600160a01b038681169116145b80610f9c5750600b546001600160a01b038581169116145b80610fa9575060115460ff165b15610fbe57610fb9858585611328565b611163565b60095460009081906001600160a01b038881169116148015610ffd57506001600160a01b038616737a250d5630b4cf539739df2c5dacb4c659f2488d14155b905060006001600160a01b038816737a250d5630b4cf539739df2c5dacb4c659f2488d1480159061103b57506009546001600160a01b038881169116145b6009549091506001600160a01b0316331480159061105c575060115460ff16155b15611069576110696114cc565b81156110b657600e54600f5410156110a557600b54600f8054600160a01b90920461ffff169450600061109b83611b0f565b91905055506110b6565b600b54600160c01b900461ffff1692505b80156110ee57600e54600f5410156110dd57600b54600160b01b900461ffff1692506110ee565b600b54600160d01b900461ffff1692505b60006127106110fd8589611b28565b6111079190611b3f565b905060006111158289611b61565b600d5490915015611129576111298861169f565b83801561113857506000600c54115b1561114757611147898261171b565b6111528a3084611328565b61115d8a8a83611328565b50505050505b6001600160a01b039182166000908152600a602052604080822043908190559290931681529190912055505050565b6011805460ff191660011790553060009081526020818152604080832054815160028082526060820184529194939092908301908036833701905050905030816000815181106111e4576111e46119d6565b6001600160a01b039283166020918202929092010152600654825191169082906001908110611215576112156119d6565b6001600160a01b03928316602091820292909201015260085460405163791ac94760e01b815291169063791ac9479061125b908590600090869030904290600401611b74565b600060405180830381600087803b15801561127557600080fd5b505af1158015611289573d6000803e3d6000fd5b5050600b546040516001600160a01b0390911692504780156108fc029250906000818181858888f193505050501580156112c7573d6000803e3d6000fd5b50506011805460ff1916905550565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03831661138c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610855565b6001600160a01b0382166113ee5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610855565b6001600160a01b038316600090815260208190526040902054818110156114665760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610855565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610e5a565b306000908152602081905260408120546114e590610944565b9050600080600760009054906101000a90046001600160a01b03166001600160a01b0316630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa15801561153d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115619190611bcc565b5060065460075460408051630dfe168160e01b815290519496509294506000936001600160a01b03928316939290911691630dfe16819160048083019260209291908290030181865afa1580156115bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115e09190611c1c565b6001600160a01b0316036115fe57506001600160701b03821661168d565b6006546007546040805163d21220a760e01b815290516001600160a01b03938416939092169163d21220a7916004808201926020929091908290030181865afa15801561164f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116739190611c1c565b6001600160a01b03160361168d57506001600160701b0381165b601054841115610e5a57610e5a611192565b6005546001600160a01b0316331415806116b95750333014155b15610c6557600d54811115610c655760405162461bcd60e51b815260206004820152602260248201527f4d617820746f6b656e20706572207472616e73616374696f6e20657863656564604482015261195960f21b6064820152608401610855565b6005546001600160a01b03163314158061173e57506001600160a01b0382163014155b156117be57600c5481611766846001600160a01b031660009081526020819052604090205490565b6117709190611976565b11156117be5760405162461bcd60e51b815260206004820152601d60248201527f4d617820746f6b656e207065722077616c6c65742065786365656465640000006044820152606401610855565b5050565b600060208083528351808285015260005b818110156117ef578581018301518582016040015282016117d3565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b0381168114610c6557600080fd5b6000806040838503121561183857600080fd5b823561184381611810565b946020939093013593505050565b60006020828403121561186357600080fd5b5035919050565b60008060006060848603121561187f57600080fd5b833561188a81611810565b9250602084013561189a81611810565b929592945050506040919091013590565b6000602082840312156118bd57600080fd5b813561ffff811681146118cf57600080fd5b9392505050565b6000602082840312156118e857600080fd5b81356118cf81611810565b6000806040838503121561190657600080fd5b823561191181611810565b9150602083013561192181611810565b809150509250929050565b600181811c9082168061194057607f821691505b602082108103610a5c57634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b808201808211156107ce576107ce611960565b6020808252601d908201527f4d757374206b656570206665657320617420323025206f72206c657373000000604082015260600190565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b600081518084526020808501945080840160005b83811015611a255781516001600160a01b031687529582019590820190600101611a00565b509495945050505050565b828152604060208201526000611a4960408301846119ec565b949350505050565b60006020808385031215611a6457600080fd5b825167ffffffffffffffff80821115611a7c57600080fd5b818501915085601f830112611a9057600080fd5b815181811115611aa257611aa26119c0565b8060051b604051601f19603f83011681018181108582111715611ac757611ac76119c0565b604052918252848201925083810185019188831115611ae557600080fd5b938501935b82851015611b0357845184529385019392850192611aea565b98975050505050505050565b600060018201611b2157611b21611960565b5060010190565b80820281158282048414176107ce576107ce611960565b600082611b5c57634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156107ce576107ce611960565b85815284602082015260a060408201526000611b9360a08301866119ec565b6001600160a01b0394909416606083015250608001529392505050565b80516001600160701b0381168114611bc757600080fd5b919050565b600080600060608486031215611be157600080fd5b611bea84611bb0565b9250611bf860208501611bb0565b9150604084015163ffffffff81168114611c1157600080fd5b809150509250925092565b600060208284031215611c2e57600080fd5b81516118cf8161181056fea2646970667358221220d0c70db6ca5b32c9f04578db0eb265982835f64edaf6950eb9e4b570f58b644e64736f6c63430008110033
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.