ERC-20
Overview
Max Total Supply
1,000,000,000,000 FitP
Holders
2
Total Transfers
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
FitPepe
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// 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.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 v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.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 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // 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 import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; pragma solidity ^0.8.17; interface DexFactory { function createPair(address tokenA, address tokenB) external returns (address pair); } interface DexRouter { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidityETH( address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external payable returns (uint256 amountToken, uint256 amountETH, uint256 liquidity); function swapExactTokensForETHSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, address[] calldata path, address to, uint256 deadline ) external; } contract FitPepe is ERC20, Ownable { struct Tax { uint256 marketingTax; uint256 buybackTax; } uint256 private constant _totalSupply = 1_000_000_000_000 * 1e18; //Router DexRouter public immutable uniswapRouter; address public immutable pairAddress; //Taxes Tax public buyTaxes = Tax(3, 0); Tax public sellTaxes = Tax(2, 1); uint256 public totalBuyFees = 3; uint256 public totalSellFees = 3; //Whitelisting from taxes/maxwallet/txlimit/etc mapping(address => bool) private whitelisted; //Swapping uint256 public swapTokensAtAmount = _totalSupply / 10000; //after 0.001% of total supply, swap them bool public swapAndLiquifyEnabled = true; bool public isSwapping = false; //Wallets address public marketingWallet = 0x7bA6E2fF8888BF229E7A70C1DC519BeE5612d0Fb; address public buybackWallet = 0x0d32047C93116ad5684B8Dae76cdaA89b97831A8; //Events event marketingWalletChanged(address indexed _trWallet); event BuyFeesUpdated(uint256 indexed _trFee); event SellFeesUpdated(uint256 indexed _trFee); event TransferFeesUpdated(uint256 indexed _trFee); event SwapThresholdUpdated(uint256 indexed _newThreshold); event InternalSwapStatusUpdated(bool indexed _status); event Whitelist(address indexed _target, bool indexed _status); constructor() ERC20("FitPepe", "FitP") { address newOwner = 0x567E9B6Ced720D40d5b1A771740542c7A3b347c8; uniswapRouter = DexRouter(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); pairAddress = DexFactory(uniswapRouter.factory()).createPair(address(this), uniswapRouter.WETH()); whitelisted[msg.sender] = true; whitelisted[address(uniswapRouter)] = true; whitelisted[address(this)] = true; whitelisted[newOwner] = true; _mint(newOwner, _totalSupply); transferOwnership(newOwner); } function setMrketingWallet(address _newMarketing) external onlyOwner { require(_newMarketing != address(0), "can not set marketing to dead wallet"); marketingWallet = _newMarketing; } function setBuyBackWallet(address _newBuyBack) external onlyOwner { require(_newBuyBack != address(0), "can not set buyback to dead wallet"); buybackWallet = _newBuyBack; } function setBuyTaxes(uint256 _marketingTax, uint256 _buybackTax) external onlyOwner { buyTaxes.marketingTax = _marketingTax; buyTaxes.buybackTax = _buybackTax; totalBuyFees = _marketingTax + _buybackTax; require(_marketingTax + _buybackTax <= 6, "Can not set buy fees higher than 6"); } function setSellTaxes(uint256 _marketingTax, uint256 _buybackTax) external onlyOwner { sellTaxes.marketingTax = _marketingTax; sellTaxes.buybackTax = _buybackTax; totalSellFees = _marketingTax + _buybackTax; require(_marketingTax + _buybackTax <= 8, "Can not set buy fees higher than 6%"); } function setSwapTokensAtAmount(uint256 _newAmount) external onlyOwner { require( _newAmount > 0 && _newAmount <= (_totalSupply * 1) / 100, "Minimum swap amount must be greater than 0 and less than 1% of total supply!" ); swapTokensAtAmount = _newAmount; emit SwapThresholdUpdated(swapTokensAtAmount); } function toggleSwapping() external onlyOwner { swapAndLiquifyEnabled = (swapAndLiquifyEnabled) ? false : true; } function setWhitelistStatus(address _wallet, bool _status) external onlyOwner { whitelisted[_wallet] = _status; emit Whitelist(_wallet, _status); } function checkWhitelist(address _wallet) external view returns (bool) { return whitelisted[_wallet]; } // this function is reponsible for managing tax, if _from or _to is whitelisted, we simply return _amount and skip all the limitations function _takeTax(address _from, address _to, uint256 _amount) internal returns (uint256) { if (whitelisted[_from] || whitelisted[_to]) { return _amount; } uint256 totalTax = 0; if (_to == pairAddress) { totalTax = totalSellFees; } else if (_from == pairAddress) { totalTax = totalBuyFees; } uint256 tax = 0; if (totalTax > 0) { tax = (_amount * totalTax) / 100; super._transfer(_from, address(this), tax); } return (_amount - tax); } function _transfer(address _from, address _to, uint256 _amount) internal virtual override { require(_from != address(0), "transfer from address zero"); require(_to != address(0), "transfer to address zero"); uint256 toTransfer = _takeTax(_from, _to, _amount); bool canSwap = balanceOf(address(this)) >= swapTokensAtAmount; if ( swapAndLiquifyEnabled && pairAddress == _to && canSwap && !whitelisted[_from] && !whitelisted[_to] && !isSwapping ) { isSwapping = true; internalSwap(); isSwapping = false; } super._transfer(_from, _to, toTransfer); } function internalSwap() internal { uint256 taxAmount = balanceOf(address(this)); if (taxAmount == 0) { return; } swapToETH(taxAmount); uint256 received = address(this).balance; uint256 totalShares = totalBuyFees + totalSellFees; if (totalShares == 0 || received == 0) return; uint256 totalMarketingFee = buyTaxes.marketingTax + sellTaxes.marketingTax; uint256 totalBuybackFee = buyTaxes.buybackTax + sellTaxes.buybackTax; if (totalMarketingFee > 0) { //ignoring success, we dont need it, if an error happened we dont want an external contract to affect our trades (bool success,) = marketingWallet.call{value: (totalMarketingFee * received) / totalShares}(""); } if (totalBuybackFee > 0) { //ignoring success, we dont need it, if an error happened we dont want an external contract to affect our trades (bool success,) = buybackWallet.call{value: address(this).balance}(""); } } function swapToETH(uint256 _amount) internal { address[] memory path = new address[](2); path[0] = address(this); path[1] = uniswapRouter.WETH(); _approve(address(this), address(uniswapRouter), _amount); uniswapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens( _amount, 0, path, address(this), block.timestamp ); } function withdrawStuckETH() external onlyOwner { (bool success,) = address(msg.sender).call{value: address(this).balance}(""); require(success, "transferring ETH failed"); } function withdrawStuckTokens(address BEP20_token) external onlyOwner { bool success = IERC20(BEP20_token).transfer(msg.sender, IERC20(BEP20_token).balanceOf(address(this))); require(success, "trasfering tokens failed!"); } receive() external payable {} }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
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":"uint256","name":"_trFee","type":"uint256"}],"name":"BuyFeesUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bool","name":"_status","type":"bool"}],"name":"InternalSwapStatusUpdated","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":"uint256","name":"_trFee","type":"uint256"}],"name":"SellFeesUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_newThreshold","type":"uint256"}],"name":"SwapThresholdUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_trFee","type":"uint256"}],"name":"TransferFeesUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_target","type":"address"},{"indexed":true,"internalType":"bool","name":"_status","type":"bool"}],"name":"Whitelist","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_trWallet","type":"address"}],"name":"marketingWalletChanged","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":[],"name":"buyTaxes","outputs":[{"internalType":"uint256","name":"marketingTax","type":"uint256"},{"internalType":"uint256","name":"buybackTax","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buybackWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"}],"name":"checkWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"isSwapping","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marketingWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"pairAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sellTaxes","outputs":[{"internalType":"uint256","name":"marketingTax","type":"uint256"},{"internalType":"uint256","name":"buybackTax","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newBuyBack","type":"address"}],"name":"setBuyBackWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_marketingTax","type":"uint256"},{"internalType":"uint256","name":"_buybackTax","type":"uint256"}],"name":"setBuyTaxes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newMarketing","type":"address"}],"name":"setMrketingWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_marketingTax","type":"uint256"},{"internalType":"uint256","name":"_buybackTax","type":"uint256"}],"name":"setSellTaxes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newAmount","type":"uint256"}],"name":"setSwapTokensAtAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"},{"internalType":"bool","name":"_status","type":"bool"}],"name":"setWhitelistStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapAndLiquifyEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"toggleSwapping","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalBuyFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSellFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"uniswapRouter","outputs":[{"internalType":"contract DexRouter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawStuckETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"BEP20_token","type":"address"}],"name":"withdrawStuckTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
600360c0819052600060e0819052600682905560075561014060405260026101008190526001610120819052600891909155600955600a819055600b55620000576127106c0c9f2c9cd04674edea4000000062000534565b600d55600e8054757ba6e2ff8888bf229e7a70c1dc519bee5612d0fb00016001600160b01b0319909116179055600f80546001600160a01b031916730d32047c93116ad5684b8dae76cdaa89b97831a8179055348015620000b757600080fd5b50604051806040016040528060078152602001664669745065706560c81b815250604051806040016040528060048152602001630466974560e41b8152508160039081620001069190620005fb565b506004620001158282620005fb565b505050620001326200012c6200033560201b60201c565b62000339565b737a250d5630b4cf539739df2c5dacb4c659f2488d60808190526040805163c45a015560e01b8152905173567e9b6ced720d40d5b1a771740542c7a3b347c8929163c45a01559160048083019260209291908290030181865afa1580156200019e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001c49190620006c7565b6001600160a01b031663c9c65396306080516001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000214573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200023a9190620006c7565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af115801562000288573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002ae9190620006c7565b6001600160a01b0390811660a052336000908152600c60205260408082208054600160ff199182168117909255608051851684528284208054821683179055308452828420805482168317905593851683529120805490921617905562000323816c0c9f2c9cd04674edea400000006200038b565b6200032e8162000452565b5062000721565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620003e75760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064015b60405180910390fd5b8060026000828254620003fb9190620006f9565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6200045c620004d6565b6001600160a01b038116620004c35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401620003de565b620004ce8162000339565b50565b505050565b6005546001600160a01b03163314620005325760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401620003de565b565b6000826200055257634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200058257607f821691505b602082108103620005a357634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620004d157600081815260208120601f850160051c81016020861015620005d25750805b601f850160051c820191505b81811015620005f357828155600101620005de565b505050505050565b81516001600160401b0381111562000617576200061762000557565b6200062f816200062884546200056d565b84620005a9565b602080601f8311600181146200066757600084156200064e5750858301515b600019600386901b1c1916600185901b178555620005f3565b600085815260208120601f198616915b82811015620006985788860151825594840194600190910190840162000677565b5085821015620006b75787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060208284031215620006da57600080fd5b81516001600160a01b0381168114620006f257600080fd5b9392505050565b808201808211156200071b57634e487b7160e01b600052601160045260246000fd5b92915050565b60805160a051611bb3620007716000396000818161051101528181611177015281816112e301526113250152600081816103bc015281816116ee015281816117a701526117e30152611bb36000f3fe6080604052600436106102085760003560e01c8063a457c2d711610118578063cb963728116100a0578063e2f456051161006f578063e2f456051461063e578063ef586f7114610654578063f2fde38b14610669578063f5648a4f14610689578063f66895a31461069e57600080fd5b8063cb963728146105c8578063d0a39814146105e8578063dd62ed3e146105fe578063deab8aea1461061e57600080fd5b8063a9059cbb116100e7578063a9059cbb14610533578063aa35822c14610553578063afa4f3b214610573578063b886311514610593578063b9e93700146105b257600080fd5b8063a457c2d71461049f578063a4640b82146104bf578063a52782b4146104df578063a8b08982146104ff57600080fd5b80634a74bb021161019b57806375f0a8741161016a57806375f0a874146103f6578063864701a51461041c5780638da5cb5b1461044c57806395d89b411461046a578063a11a16821461047f57600080fd5b80634a74bb021461034557806370a082311461035f578063715018a614610395578063735de9f7146103aa57600080fd5b80631950c218116101d75780631950c218146102b057806323b872dd146102e9578063313ce56714610309578063395093511461032557600080fd5b806306fdde0314610214578063095ea7b31461023f5780630c4242841461026f57806318160ddd1461029157600080fd5b3661020f57005b600080fd5b34801561022057600080fd5b506102296106b9565b6040516102369190611857565b60405180910390f35b34801561024b57600080fd5b5061025f61025a3660046118ba565b61074b565b6040519015158152602001610236565b34801561027b57600080fd5b5061028f61028a3660046118f4565b610765565b005b34801561029d57600080fd5b506002545b604051908152602001610236565b3480156102bc57600080fd5b5061025f6102cb36600461192d565b6001600160a01b03166000908152600c602052604090205460ff1690565b3480156102f557600080fd5b5061025f61030436600461194a565b6107c1565b34801561031557600080fd5b5060405160128152602001610236565b34801561033157600080fd5b5061025f6103403660046118ba565b6107e7565b34801561035157600080fd5b50600e5461025f9060ff1681565b34801561036b57600080fd5b506102a261037a36600461192d565b6001600160a01b031660009081526020819052604090205490565b3480156103a157600080fd5b5061028f610809565b3480156103b657600080fd5b506103de7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610236565b34801561040257600080fd5b50600e546103de906201000090046001600160a01b031681565b34801561042857600080fd5b50600654600754610437919082565b60408051928352602083019190915201610236565b34801561045857600080fd5b506005546001600160a01b03166103de565b34801561047657600080fd5b5061022961081d565b34801561048b57600080fd5b5061028f61049a36600461198b565b61082c565b3480156104ab57600080fd5b5061025f6104ba3660046118ba565b6108ba565b3480156104cb57600080fd5b5061028f6104da36600461192d565b610940565b3480156104eb57600080fd5b5061028f6104fa36600461192d565b6109cb565b34801561050b57600080fd5b506103de7f000000000000000000000000000000000000000000000000000000000000000081565b34801561053f57600080fd5b5061025f61054e3660046118ba565b610a5f565b34801561055f57600080fd5b5061028f61056e36600461198b565b610a6d565b34801561057f57600080fd5b5061028f61058e3660046119ad565b610af1565b34801561059f57600080fd5b50600e5461025f90610100900460ff1681565b3480156105be57600080fd5b506102a2600a5481565b3480156105d457600080fd5b5061028f6105e336600461192d565b610be6565b3480156105f457600080fd5b506102a2600b5481565b34801561060a57600080fd5b506102a26106193660046119c6565b610d21565b34801561062a57600080fd5b50600f546103de906001600160a01b031681565b34801561064a57600080fd5b506102a2600d5481565b34801561066057600080fd5b5061028f610d4c565b34801561067557600080fd5b5061028f61068436600461192d565b610d7b565b34801561069557600080fd5b5061028f610df4565b3480156106aa57600080fd5b50600854600954610437919082565b6060600380546106c8906119f4565b80601f01602080910402602001604051908101604052809291908181526020018280546106f4906119f4565b80156107415780601f1061071657610100808354040283529160200191610741565b820191906000526020600020905b81548152906001019060200180831161072457829003601f168201915b5050505050905090565b600033610759818585610e94565b60019150505b92915050565b61076d610fb8565b6001600160a01b0382166000818152600c6020526040808220805460ff191685151590811790915590519092917f5a25e09a5dba33161281055e015f1279b6b10204d8f90dd56a8ce2b82322d43d91a35050565b6000336107cf858285611012565b6107da85858561108c565b60019150505b9392505050565b6000336107598185856107fa8383610d21565b6108049190611a44565b610e94565b610811610fb8565b61081b6000611242565b565b6060600480546106c8906119f4565b610834610fb8565b600882905560098190556108488183611a44565b600b5560086108578284611a44565b11156108b65760405162461bcd60e51b815260206004820152602360248201527f43616e206e6f742073657420627579206665657320686967686572207468616e60448201526220362560e81b60648201526084015b60405180910390fd5b5050565b600033816108c88286610d21565b9050838110156109285760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016108ad565b6109358286868403610e94565b506001949350505050565b610948610fb8565b6001600160a01b0381166109a95760405162461bcd60e51b815260206004820152602260248201527f63616e206e6f7420736574206275796261636b20746f20646561642077616c6c604482015261195d60f21b60648201526084016108ad565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b6109d3610fb8565b6001600160a01b038116610a355760405162461bcd60e51b8152602060048201526024808201527f63616e206e6f7420736574206d61726b6574696e6720746f20646561642077616044820152631b1b195d60e21b60648201526084016108ad565b600e80546001600160a01b03909216620100000262010000600160b01b0319909216919091179055565b60003361075981858561108c565b610a75610fb8565b60068290556007819055610a898183611a44565b600a556006610a988284611a44565b11156108b65760405162461bcd60e51b815260206004820152602260248201527f43616e206e6f742073657420627579206665657320686967686572207468616e604482015261101b60f11b60648201526084016108ad565b610af9610fb8565b600081118015610b2c57506064610b1e6c0c9f2c9cd04674edea400000006001611a57565b610b289190611a6e565b8111155b610bb35760405162461bcd60e51b815260206004820152604c60248201527f4d696e696d756d207377617020616d6f756e74206d757374206265206772656160448201527f746572207468616e203020616e64206c657373207468616e203125206f66207460648201526b6f74616c20737570706c792160a01b608482015260a4016108ad565b600d81905560405181907f18ff2fc8464635e4f668567019152095047e34d7a2ab4b97661ba4dc7fd0647690600090a250565b610bee610fb8565b6040516370a0823160e01b81523060048201526000906001600160a01b0383169063a9059cbb90339083906370a0823190602401602060405180830381865afa158015610c3f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c639190611a90565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610cae573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cd29190611aa9565b9050806108b65760405162461bcd60e51b815260206004820152601960248201527f74726173666572696e6720746f6b656e73206661696c6564210000000000000060448201526064016108ad565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610d54610fb8565b600e5460ff16610d65576001610d68565b60005b600e805460ff1916911515919091179055565b610d83610fb8565b6001600160a01b038116610de85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108ad565b610df181611242565b50565b610dfc610fb8565b604051600090339047908381818185875af1925050503d8060008114610e3e576040519150601f19603f3d011682016040523d82523d6000602084013e610e43565b606091505b5050905080610df15760405162461bcd60e51b815260206004820152601760248201527f7472616e7366657272696e6720455448206661696c656400000000000000000060448201526064016108ad565b6001600160a01b038316610ef65760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016108ad565b6001600160a01b038216610f575760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016108ad565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6005546001600160a01b0316331461081b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108ad565b600061101e8484610d21565b9050600019811461108657818110156110795760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016108ad565b6110868484848403610e94565b50505050565b6001600160a01b0383166110e25760405162461bcd60e51b815260206004820152601a60248201527f7472616e736665722066726f6d2061646472657373207a65726f00000000000060448201526064016108ad565b6001600160a01b0382166111385760405162461bcd60e51b815260206004820152601860248201527f7472616e7366657220746f2061646472657373207a65726f000000000000000060448201526064016108ad565b6000611145848484611294565b600d5430600090815260208190526040902054600e5492935010159060ff1680156111a15750836001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316145b80156111aa5750805b80156111cf57506001600160a01b0385166000908152600c602052604090205460ff16155b80156111f457506001600160a01b0384166000908152600c602052604090205460ff16155b80156112085750600e54610100900460ff16155b1561123057600e805461ff0019166101001790556112246113a0565b600e805461ff00191690555b61123b8585846114f3565b5050505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0383166000908152600c602052604081205460ff16806112d357506001600160a01b0383166000908152600c602052604090205460ff165b156112df5750806107e0565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316846001600160a01b0316036113235750600b54611361565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316856001600160a01b0316036113615750600a545b6000811561138c5760646113758386611a57565b61137f9190611a6e565b905061138c8630836114f3565b6113968185611ac6565b9695505050505050565b30600090815260208190526040812054908190036113bb5750565b6113c481611697565b600b54600a5447916000916113d99190611a44565b90508015806113e6575081155b156113f057505050565b60085460065460009161140291611a44565b6009546007549192506000916114189190611a44565b9050811561149057600e546000906201000090046001600160a01b0316846114408786611a57565b61144a9190611a6e565b604051600081818185875af1925050503d8060008114611486576040519150601f19603f3d011682016040523d82523d6000602084013e61148b565b606091505b505050505b801561123b57600f546040516000916001600160a01b03169047908381818185875af1925050503d80600081146114e3576040519150601f19603f3d011682016040523d82523d6000602084013e6114e8565b606091505b505050505050505050565b6001600160a01b0383166115575760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016108ad565b6001600160a01b0382166115b95760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016108ad565b6001600160a01b038316600090815260208190526040902054818110156116315760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016108ad565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3611086565b60408051600280825260608201835260009260208301908036833701905050905030816000815181106116cc576116cc611ad9565b60200260200101906001600160a01b031690816001600160a01b0316815250507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561174a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061176e9190611aef565b8160018151811061178157611781611ad9565b60200260200101906001600160a01b031690816001600160a01b0316815250506117cc307f000000000000000000000000000000000000000000000000000000000000000084610e94565b60405163791ac94760e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063791ac94790611821908590600090869030904290600401611b0c565b600060405180830381600087803b15801561183b57600080fd5b505af115801561184f573d6000803e3d6000fd5b505050505050565b600060208083528351808285015260005b8181101561188457858101830151858201604001528201611868565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b0381168114610df157600080fd5b600080604083850312156118cd57600080fd5b82356118d8816118a5565b946020939093013593505050565b8015158114610df157600080fd5b6000806040838503121561190757600080fd5b8235611912816118a5565b91506020830135611922816118e6565b809150509250929050565b60006020828403121561193f57600080fd5b81356107e0816118a5565b60008060006060848603121561195f57600080fd5b833561196a816118a5565b9250602084013561197a816118a5565b929592945050506040919091013590565b6000806040838503121561199e57600080fd5b50508035926020909101359150565b6000602082840312156119bf57600080fd5b5035919050565b600080604083850312156119d957600080fd5b82356119e4816118a5565b91506020830135611922816118a5565b600181811c90821680611a0857607f821691505b602082108103611a2857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561075f5761075f611a2e565b808202811582820484141761075f5761075f611a2e565b600082611a8b57634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215611aa257600080fd5b5051919050565b600060208284031215611abb57600080fd5b81516107e0816118e6565b8181038181111561075f5761075f611a2e565b634e487b7160e01b600052603260045260246000fd5b600060208284031215611b0157600080fd5b81516107e0816118a5565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015611b5c5784516001600160a01b031683529383019391830191600101611b37565b50506001600160a01b0396909616606085015250505060800152939250505056fea2646970667358221220a367ccf622b9fc50918cda685391d14328adceb7bad1e7e16c64ba679375921b64736f6c63430008110033
Deployed Bytecode
0x6080604052600436106102085760003560e01c8063a457c2d711610118578063cb963728116100a0578063e2f456051161006f578063e2f456051461063e578063ef586f7114610654578063f2fde38b14610669578063f5648a4f14610689578063f66895a31461069e57600080fd5b8063cb963728146105c8578063d0a39814146105e8578063dd62ed3e146105fe578063deab8aea1461061e57600080fd5b8063a9059cbb116100e7578063a9059cbb14610533578063aa35822c14610553578063afa4f3b214610573578063b886311514610593578063b9e93700146105b257600080fd5b8063a457c2d71461049f578063a4640b82146104bf578063a52782b4146104df578063a8b08982146104ff57600080fd5b80634a74bb021161019b57806375f0a8741161016a57806375f0a874146103f6578063864701a51461041c5780638da5cb5b1461044c57806395d89b411461046a578063a11a16821461047f57600080fd5b80634a74bb021461034557806370a082311461035f578063715018a614610395578063735de9f7146103aa57600080fd5b80631950c218116101d75780631950c218146102b057806323b872dd146102e9578063313ce56714610309578063395093511461032557600080fd5b806306fdde0314610214578063095ea7b31461023f5780630c4242841461026f57806318160ddd1461029157600080fd5b3661020f57005b600080fd5b34801561022057600080fd5b506102296106b9565b6040516102369190611857565b60405180910390f35b34801561024b57600080fd5b5061025f61025a3660046118ba565b61074b565b6040519015158152602001610236565b34801561027b57600080fd5b5061028f61028a3660046118f4565b610765565b005b34801561029d57600080fd5b506002545b604051908152602001610236565b3480156102bc57600080fd5b5061025f6102cb36600461192d565b6001600160a01b03166000908152600c602052604090205460ff1690565b3480156102f557600080fd5b5061025f61030436600461194a565b6107c1565b34801561031557600080fd5b5060405160128152602001610236565b34801561033157600080fd5b5061025f6103403660046118ba565b6107e7565b34801561035157600080fd5b50600e5461025f9060ff1681565b34801561036b57600080fd5b506102a261037a36600461192d565b6001600160a01b031660009081526020819052604090205490565b3480156103a157600080fd5b5061028f610809565b3480156103b657600080fd5b506103de7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b6040516001600160a01b039091168152602001610236565b34801561040257600080fd5b50600e546103de906201000090046001600160a01b031681565b34801561042857600080fd5b50600654600754610437919082565b60408051928352602083019190915201610236565b34801561045857600080fd5b506005546001600160a01b03166103de565b34801561047657600080fd5b5061022961081d565b34801561048b57600080fd5b5061028f61049a36600461198b565b61082c565b3480156104ab57600080fd5b5061025f6104ba3660046118ba565b6108ba565b3480156104cb57600080fd5b5061028f6104da36600461192d565b610940565b3480156104eb57600080fd5b5061028f6104fa36600461192d565b6109cb565b34801561050b57600080fd5b506103de7f000000000000000000000000e6a6236a5311c290b9f946f098e8cf5dfefbfd4881565b34801561053f57600080fd5b5061025f61054e3660046118ba565b610a5f565b34801561055f57600080fd5b5061028f61056e36600461198b565b610a6d565b34801561057f57600080fd5b5061028f61058e3660046119ad565b610af1565b34801561059f57600080fd5b50600e5461025f90610100900460ff1681565b3480156105be57600080fd5b506102a2600a5481565b3480156105d457600080fd5b5061028f6105e336600461192d565b610be6565b3480156105f457600080fd5b506102a2600b5481565b34801561060a57600080fd5b506102a26106193660046119c6565b610d21565b34801561062a57600080fd5b50600f546103de906001600160a01b031681565b34801561064a57600080fd5b506102a2600d5481565b34801561066057600080fd5b5061028f610d4c565b34801561067557600080fd5b5061028f61068436600461192d565b610d7b565b34801561069557600080fd5b5061028f610df4565b3480156106aa57600080fd5b50600854600954610437919082565b6060600380546106c8906119f4565b80601f01602080910402602001604051908101604052809291908181526020018280546106f4906119f4565b80156107415780601f1061071657610100808354040283529160200191610741565b820191906000526020600020905b81548152906001019060200180831161072457829003601f168201915b5050505050905090565b600033610759818585610e94565b60019150505b92915050565b61076d610fb8565b6001600160a01b0382166000818152600c6020526040808220805460ff191685151590811790915590519092917f5a25e09a5dba33161281055e015f1279b6b10204d8f90dd56a8ce2b82322d43d91a35050565b6000336107cf858285611012565b6107da85858561108c565b60019150505b9392505050565b6000336107598185856107fa8383610d21565b6108049190611a44565b610e94565b610811610fb8565b61081b6000611242565b565b6060600480546106c8906119f4565b610834610fb8565b600882905560098190556108488183611a44565b600b5560086108578284611a44565b11156108b65760405162461bcd60e51b815260206004820152602360248201527f43616e206e6f742073657420627579206665657320686967686572207468616e60448201526220362560e81b60648201526084015b60405180910390fd5b5050565b600033816108c88286610d21565b9050838110156109285760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016108ad565b6109358286868403610e94565b506001949350505050565b610948610fb8565b6001600160a01b0381166109a95760405162461bcd60e51b815260206004820152602260248201527f63616e206e6f7420736574206275796261636b20746f20646561642077616c6c604482015261195d60f21b60648201526084016108ad565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b6109d3610fb8565b6001600160a01b038116610a355760405162461bcd60e51b8152602060048201526024808201527f63616e206e6f7420736574206d61726b6574696e6720746f20646561642077616044820152631b1b195d60e21b60648201526084016108ad565b600e80546001600160a01b03909216620100000262010000600160b01b0319909216919091179055565b60003361075981858561108c565b610a75610fb8565b60068290556007819055610a898183611a44565b600a556006610a988284611a44565b11156108b65760405162461bcd60e51b815260206004820152602260248201527f43616e206e6f742073657420627579206665657320686967686572207468616e604482015261101b60f11b60648201526084016108ad565b610af9610fb8565b600081118015610b2c57506064610b1e6c0c9f2c9cd04674edea400000006001611a57565b610b289190611a6e565b8111155b610bb35760405162461bcd60e51b815260206004820152604c60248201527f4d696e696d756d207377617020616d6f756e74206d757374206265206772656160448201527f746572207468616e203020616e64206c657373207468616e203125206f66207460648201526b6f74616c20737570706c792160a01b608482015260a4016108ad565b600d81905560405181907f18ff2fc8464635e4f668567019152095047e34d7a2ab4b97661ba4dc7fd0647690600090a250565b610bee610fb8565b6040516370a0823160e01b81523060048201526000906001600160a01b0383169063a9059cbb90339083906370a0823190602401602060405180830381865afa158015610c3f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c639190611a90565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610cae573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cd29190611aa9565b9050806108b65760405162461bcd60e51b815260206004820152601960248201527f74726173666572696e6720746f6b656e73206661696c6564210000000000000060448201526064016108ad565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610d54610fb8565b600e5460ff16610d65576001610d68565b60005b600e805460ff1916911515919091179055565b610d83610fb8565b6001600160a01b038116610de85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108ad565b610df181611242565b50565b610dfc610fb8565b604051600090339047908381818185875af1925050503d8060008114610e3e576040519150601f19603f3d011682016040523d82523d6000602084013e610e43565b606091505b5050905080610df15760405162461bcd60e51b815260206004820152601760248201527f7472616e7366657272696e6720455448206661696c656400000000000000000060448201526064016108ad565b6001600160a01b038316610ef65760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016108ad565b6001600160a01b038216610f575760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016108ad565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6005546001600160a01b0316331461081b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108ad565b600061101e8484610d21565b9050600019811461108657818110156110795760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016108ad565b6110868484848403610e94565b50505050565b6001600160a01b0383166110e25760405162461bcd60e51b815260206004820152601a60248201527f7472616e736665722066726f6d2061646472657373207a65726f00000000000060448201526064016108ad565b6001600160a01b0382166111385760405162461bcd60e51b815260206004820152601860248201527f7472616e7366657220746f2061646472657373207a65726f000000000000000060448201526064016108ad565b6000611145848484611294565b600d5430600090815260208190526040902054600e5492935010159060ff1680156111a15750836001600160a01b03167f000000000000000000000000e6a6236a5311c290b9f946f098e8cf5dfefbfd486001600160a01b0316145b80156111aa5750805b80156111cf57506001600160a01b0385166000908152600c602052604090205460ff16155b80156111f457506001600160a01b0384166000908152600c602052604090205460ff16155b80156112085750600e54610100900460ff16155b1561123057600e805461ff0019166101001790556112246113a0565b600e805461ff00191690555b61123b8585846114f3565b5050505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0383166000908152600c602052604081205460ff16806112d357506001600160a01b0383166000908152600c602052604090205460ff165b156112df5750806107e0565b60007f000000000000000000000000e6a6236a5311c290b9f946f098e8cf5dfefbfd486001600160a01b0316846001600160a01b0316036113235750600b54611361565b7f000000000000000000000000e6a6236a5311c290b9f946f098e8cf5dfefbfd486001600160a01b0316856001600160a01b0316036113615750600a545b6000811561138c5760646113758386611a57565b61137f9190611a6e565b905061138c8630836114f3565b6113968185611ac6565b9695505050505050565b30600090815260208190526040812054908190036113bb5750565b6113c481611697565b600b54600a5447916000916113d99190611a44565b90508015806113e6575081155b156113f057505050565b60085460065460009161140291611a44565b6009546007549192506000916114189190611a44565b9050811561149057600e546000906201000090046001600160a01b0316846114408786611a57565b61144a9190611a6e565b604051600081818185875af1925050503d8060008114611486576040519150601f19603f3d011682016040523d82523d6000602084013e61148b565b606091505b505050505b801561123b57600f546040516000916001600160a01b03169047908381818185875af1925050503d80600081146114e3576040519150601f19603f3d011682016040523d82523d6000602084013e6114e8565b606091505b505050505050505050565b6001600160a01b0383166115575760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016108ad565b6001600160a01b0382166115b95760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016108ad565b6001600160a01b038316600090815260208190526040902054818110156116315760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016108ad565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3611086565b60408051600280825260608201835260009260208301908036833701905050905030816000815181106116cc576116cc611ad9565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801561174a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061176e9190611aef565b8160018151811061178157611781611ad9565b60200260200101906001600160a01b031690816001600160a01b0316815250506117cc307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84610e94565b60405163791ac94760e01b81526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d169063791ac94790611821908590600090869030904290600401611b0c565b600060405180830381600087803b15801561183b57600080fd5b505af115801561184f573d6000803e3d6000fd5b505050505050565b600060208083528351808285015260005b8181101561188457858101830151858201604001528201611868565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b0381168114610df157600080fd5b600080604083850312156118cd57600080fd5b82356118d8816118a5565b946020939093013593505050565b8015158114610df157600080fd5b6000806040838503121561190757600080fd5b8235611912816118a5565b91506020830135611922816118e6565b809150509250929050565b60006020828403121561193f57600080fd5b81356107e0816118a5565b60008060006060848603121561195f57600080fd5b833561196a816118a5565b9250602084013561197a816118a5565b929592945050506040919091013590565b6000806040838503121561199e57600080fd5b50508035926020909101359150565b6000602082840312156119bf57600080fd5b5035919050565b600080604083850312156119d957600080fd5b82356119e4816118a5565b91506020830135611922816118a5565b600181811c90821680611a0857607f821691505b602082108103611a2857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561075f5761075f611a2e565b808202811582820484141761075f5761075f611a2e565b600082611a8b57634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215611aa257600080fd5b5051919050565b600060208284031215611abb57600080fd5b81516107e0816118e6565b8181038181111561075f5761075f611a2e565b634e487b7160e01b600052603260045260246000fd5b600060208284031215611b0157600080fd5b81516107e0816118a5565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b81811015611b5c5784516001600160a01b031683529383019391830191600101611b37565b50506001600160a01b0396909616606085015250505060800152939250505056fea2646970667358221220a367ccf622b9fc50918cda685391d14328adceb7bad1e7e16c64ba679375921b64736f6c63430008110033
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.