Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
100,000,000 Devin
Holders
95
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
0.54459048559832817 DevinValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Devin
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)
/** * SourceUnit: /home/roholah/Desktop/Deploy-BSC-Token/contracts/Token.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.17; /** * @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); } /** * SourceUnit: /home/roholah/Desktop/Deploy-BSC-Token/contracts/Token.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) /** * @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; } } /** * SourceUnit: /home/roholah/Desktop/Deploy-BSC-Token/contracts/Token.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) ////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); } /** * SourceUnit: /home/roholah/Desktop/Deploy-BSC-Token/contracts/Token.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol) ////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 {} } /** * SourceUnit: /home/roholah/Desktop/Deploy-BSC-Token/contracts/Token.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) // 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; } } } /** * SourceUnit: /home/roholah/Desktop/Deploy-BSC-Token/contracts/Token.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) ////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); } } /** * SourceUnit: /home/roholah/Desktop/Deploy-BSC-Token/contracts/Token.sol */ //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"; 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 Devin is ERC20, Ownable { struct Tax { uint256 marketingTax; } uint256 private constant _totalSupply = 100_000_000 * 1e18; //Router DexRouter public uniswapRouter; address public pairAddress; //Taxes Tax public buyTaxes = Tax(2); Tax public sellTaxes = Tax(2); Tax public transferTaxes = Tax(0); //Whitelisting from taxes/maxwallet/txlimit/etc mapping(address => bool) private whitelisted; //Swapping uint256 public swapTokensAtAmount = _totalSupply / 1000; //after 0.001% of total supply, swap them uint256 public maxWallet; bool public swapAndLiquifyEnabled = true; bool public isSwapping = false; //************************* REPLACE MARKETING WALLET HERE ************************* address public marketingWallet; //Events event marketingWalletChanged(address indexed _trWallet); event SwapThresholdUpdated(uint256 indexed _newThreshold); event InternalSwapStatusUpdated(bool indexed _status); event Whitelist(address indexed _target, bool indexed _status); constructor() ERC20("HisNameIsDevin", "Devin") { uniswapRouter = DexRouter(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); pairAddress = DexFactory(uniswapRouter.factory()).createPair( address(this), uniswapRouter.WETH() ); whitelisted[msg.sender] = true; whitelisted[address(uniswapRouter)] = true; whitelisted[address(this)] = true; _mint(msg.sender, _totalSupply); maxWallet = _totalSupply / 100; } function setMarketingWallet(address _newmarketing) external onlyOwner { require( _newmarketing != address(0), "can not set marketing to dead wallet" ); marketingWallet = _newmarketing; emit marketingWalletChanged(_newmarketing); } function setSwapTokensAtAmount(uint256 _newAmount) external onlyOwner { require( _newAmount > 0 && _newAmount <= (_totalSupply * 1) / 100, "Minimum swap amount must be greater than 0 and less than 0.5% 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]; } function updateBuyTax(uint256 buyTax) external onlyOwner { require(buyTax <= 10, "Can't set buy tax higher than 10%"); buyTaxes.marketingTax = buyTax; } function updateSellTax(uint256 sellTax) external onlyOwner { require(sellTax <= 10, "Can't set sell tax higher than 10%"); sellTaxes.marketingTax = sellTax; } function updateMaximumWallet(uint256 maximumWallet) external onlyOwner { require( maximumWallet >= totalSupply() / 1000, "Can't set maximum wallet less than 0.1% of supply" ); maxWallet = maximumWallet; } // 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 = transferTaxes.marketingTax; if (_to == pairAddress) { totalTax = sellTaxes.marketingTax; } else if (_from == pairAddress) { totalTax = buyTaxes.marketingTax; } //transferring or buying if ( _from == pairAddress || (pairAddress != _from && pairAddress != _to) ) { require( balanceOf(_to) + _amount <= maxWallet, "Maximum wallet limit" ); } 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(balanceOf(address(this))); (bool success, ) = marketingWallet.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" ] } } }
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":"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":"_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":"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"}],"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":"maxWallet","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":"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"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newmarketing","type":"address"}],"name":"setMarketingWallet","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":"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":"transferTaxes","outputs":[{"internalType":"uint256","name":"marketingTax","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapRouter","outputs":[{"internalType":"contract DexRouter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"buyTax","type":"uint256"}],"name":"updateBuyTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maximumWallet","type":"uint256"}],"name":"updateMaximumWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"sellTax","type":"uint256"}],"name":"updateSellTax","outputs":[],"stateMutability":"nonpayable","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
60026080819052600881905560a081905260095560e0604052600060c0819052600a556200003b6103e86a52b7d2dcc80cd2e40000006200041a565b600c55600e805461ffff191660011790553480156200005957600080fd5b506040518060400160405280600e81526020016d2434b9a730b6b2a4b9a232bb34b760911b815250604051806040016040528060058152602001642232bb34b760d91b8152508160039081620000b09190620004e1565b506004620000bf8282620004e1565b505050620000dc620000d6620002f960201b60201c565b620002fd565b600680546001600160a01b031916737a250d5630b4cf539739df2c5dacb4c659f2488d9081179091556040805163c45a015560e01b8152905163c45a0155916004808201926020929091908290030181865afa15801562000141573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001679190620005ad565b6001600160a01b031663c9c6539630600660009054906101000a90046001600160a01b03166001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015620001ca573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001f09190620005ad565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af11580156200023e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002649190620005ad565b600780546001600160a01b0319166001600160a01b03928316179055336000818152600b6020526040808220805460ff199081166001908117909255600654909516835281832080548616821790553083529120805490931617909155620002d8906a52b7d2dcc80cd2e40000006200034f565b620002f060646a52b7d2dcc80cd2e40000006200041a565b600d5562000607565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620003aa5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b8060026000828254620003be9190620005df565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b505050565b6000826200043857634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200046857607f821691505b6020821081036200048957634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200041557600081815260208120601f850160051c81016020861015620004b85750805b601f850160051c820191505b81811015620004d957828155600101620004c4565b505050505050565b81516001600160401b03811115620004fd57620004fd6200043d565b62000515816200050e845462000453565b846200048f565b602080601f8311600181146200054d5760008415620005345750858301515b600019600386901b1c1916600185901b178555620004d9565b600085815260208120601f198616915b828110156200057e578886015182559484019460019091019084016200055d565b50858210156200059d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060208284031215620005c057600080fd5b81516001600160a01b0381168114620005d857600080fd5b9392505050565b808201808211156200060157634e487b7160e01b600052601160045260246000fd5b92915050565b611a3480620006176000396000f3fe6080604052600436106101fd5760003560e01c806375f0a8741161010d578063b8863115116100a0578063ef586f711161006f578063ef586f71146105d3578063f2fde38b146105e8578063f5648a4f14610608578063f66895a31461061d578063f8b45b051461063457600080fd5b8063b88631151461055e578063cb9637281461057d578063dd62ed3e1461059d578063e2f45605146105bd57600080fd5b8063a457c2d7116100dc578063a457c2d7146104de578063a8b08982146104fe578063a9059cbb1461051e578063afa4f3b21461053e57600080fd5b806375f0a8741461046e578063864701a5146104945780638da5cb5b146104ab57806395d89b41146104c957600080fd5b8063313ce567116101905780635331803c1161015f5780635331803c146103b45780635d098b38146103cb57806370a08231146103eb578063715018a614610421578063735de9f71461043657600080fd5b8063313ce5671461033e578063395093511461035a578063436d33401461037a5780634a74bb021461039a57600080fd5b80631750a9b7116101cc5780631750a9b7146102a657806318160ddd146102c65780631950c218146102e557806323b872dd1461031e57600080fd5b806306fdde0314610209578063095ea7b3146102345780630c4242841461026457806312185a391461028657600080fd5b3661020457005b600080fd5b34801561021557600080fd5b5061021e61064a565b60405161022b91906116fa565b60405180910390f35b34801561024057600080fd5b5061025461024f36600461175d565b6106dc565b604051901515815260200161022b565b34801561027057600080fd5b5061028461027f366004611797565b6106f6565b005b34801561029257600080fd5b506102846102a13660046117d0565b610752565b3480156102b257600080fd5b506102846102c13660046117d0565b6107c0565b3480156102d257600080fd5b506002545b60405190815260200161022b565b3480156102f157600080fd5b506102546103003660046117e9565b6001600160a01b03166000908152600b602052604090205460ff1690565b34801561032a57600080fd5b50610254610339366004611806565b61084c565b34801561034a57600080fd5b506040516012815260200161022b565b34801561036657600080fd5b5061025461037536600461175d565b610872565b34801561038657600080fd5b506102846103953660046117d0565b610894565b3480156103a657600080fd5b50600e546102549060ff1681565b3480156103c057600080fd5b50600a546102d79081565b3480156103d757600080fd5b506102846103e63660046117e9565b6108fc565b3480156103f757600080fd5b506102d76104063660046117e9565b6001600160a01b031660009081526020819052604090205490565b34801561042d57600080fd5b506102846109ba565b34801561044257600080fd5b50600654610456906001600160a01b031681565b6040516001600160a01b03909116815260200161022b565b34801561047a57600080fd5b50600e54610456906201000090046001600160a01b031681565b3480156104a057600080fd5b506008546102d79081565b3480156104b757600080fd5b506005546001600160a01b0316610456565b3480156104d557600080fd5b5061021e6109ce565b3480156104ea57600080fd5b506102546104f936600461175d565b6109dd565b34801561050a57600080fd5b50600754610456906001600160a01b031681565b34801561052a57600080fd5b5061025461053936600461175d565b610a63565b34801561054a57600080fd5b506102846105593660046117d0565b610a71565b34801561056a57600080fd5b50600e5461025490610100900460ff1681565b34801561058957600080fd5b506102846105983660046117e9565b610b66565b3480156105a957600080fd5b506102d76105b8366004611847565b610ca5565b3480156105c957600080fd5b506102d7600c5481565b3480156105df57600080fd5b50610284610cd0565b3480156105f457600080fd5b506102846106033660046117e9565b610cff565b34801561061457600080fd5b50610284610d78565b34801561062957600080fd5b506009546102d79081565b34801561064057600080fd5b506102d7600d5481565b60606003805461065990611875565b80601f016020809104026020016040519081016040528092919081815260200182805461068590611875565b80156106d25780601f106106a7576101008083540402835291602001916106d2565b820191906000526020600020905b8154815290600101906020018083116106b557829003601f168201915b5050505050905090565b6000336106ea818585610e18565b60019150505b92915050565b6106fe610f3c565b6001600160a01b0382166000818152600b6020526040808220805460ff191685151590811790915590519092917f5a25e09a5dba33161281055e015f1279b6b10204d8f90dd56a8ce2b82322d43d91a35050565b61075a610f3c565b600a8111156107bb5760405162461bcd60e51b815260206004820152602260248201527f43616e2774207365742073656c6c2074617820686967686572207468616e2031604482015261302560f01b60648201526084015b60405180910390fd5b600955565b6107c8610f3c565b6103e86107d460025490565b6107de91906118c5565b8110156108475760405162461bcd60e51b815260206004820152603160248201527f43616e277420736574206d6178696d756d2077616c6c6574206c657373207468604482015270616e20302e3125206f6620737570706c7960781b60648201526084016107b2565b600d55565b60003361085a858285610f96565b610865858585611010565b60019150505b9392505050565b6000336106ea8185856108858383610ca5565b61088f91906118e7565b610e18565b61089c610f3c565b600a8111156108f75760405162461bcd60e51b815260206004820152602160248201527f43616e277420736574206275792074617820686967686572207468616e2031306044820152602560f81b60648201526084016107b2565b600855565b610904610f3c565b6001600160a01b0381166109665760405162461bcd60e51b8152602060048201526024808201527f63616e206e6f7420736574206d61726b6574696e6720746f20646561642077616044820152631b1b195d60e21b60648201526084016107b2565b600e805462010000600160b01b031916620100006001600160a01b038416908102919091179091556040517fd1a6f806ccf6e5a2241d358891af2601bbf89feaad0fb4a891c9fbde2933761990600090a250565b6109c2610f3c565b6109cc60006111a2565b565b60606004805461065990611875565b600033816109eb8286610ca5565b905083811015610a4b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016107b2565b610a588286868403610e18565b506001949350505050565b6000336106ea818585611010565b610a79610f3c565b600081118015610aaa57506064610a9c6a52b7d2dcc80cd2e400000060016118fa565b610aa691906118c5565b8111155b610b335760405162461bcd60e51b815260206004820152604e60248201527f4d696e696d756d207377617020616d6f756e74206d757374206265206772656160448201527f746572207468616e203020616e64206c657373207468616e20302e3525206f6660648201526d20746f74616c20737570706c792160901b608482015260a4016107b2565b600c81905560405181907f18ff2fc8464635e4f668567019152095047e34d7a2ab4b97661ba4dc7fd0647690600090a250565b610b6e610f3c565b6040516370a0823160e01b81523060048201526000906001600160a01b0383169063a9059cbb90339083906370a0823190602401602060405180830381865afa158015610bbf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be39190611911565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610c2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c52919061192a565b905080610ca15760405162461bcd60e51b815260206004820152601960248201527f74726173666572696e6720746f6b656e73206661696c6564210000000000000060448201526064016107b2565b5050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610cd8610f3c565b600e5460ff16610ce9576001610cec565b60005b600e805460ff1916911515919091179055565b610d07610f3c565b6001600160a01b038116610d6c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107b2565b610d75816111a2565b50565b610d80610f3c565b604051600090339047908381818185875af1925050503d8060008114610dc2576040519150601f19603f3d011682016040523d82523d6000602084013e610dc7565b606091505b5050905080610d755760405162461bcd60e51b815260206004820152601760248201527f7472616e7366657272696e6720455448206661696c656400000000000000000060448201526064016107b2565b6001600160a01b038316610e7a5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016107b2565b6001600160a01b038216610edb5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016107b2565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6005546001600160a01b031633146109cc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107b2565b6000610fa28484610ca5565b9050600019811461100a5781811015610ffd5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016107b2565b61100a8484848403610e18565b50505050565b6001600160a01b0383166110665760405162461bcd60e51b815260206004820152601a60248201527f7472616e736665722066726f6d2061646472657373207a65726f00000000000060448201526064016107b2565b6001600160a01b0382166110bc5760405162461bcd60e51b815260206004820152601860248201527f7472616e7366657220746f2061646472657373207a65726f000000000000000060448201526064016107b2565b60006110c98484846111f4565b600c5430600090815260208190526040902054600e5492935010159060ff16801561110157506007546001600160a01b038581169116145b801561110a5750805b801561112f57506001600160a01b0385166000908152600b602052604090205460ff16155b801561115457506001600160a01b0384166000908152600b602052604090205460ff16155b80156111685750600e54610100900460ff16155b1561119057600e805461ff001916610100179055611184611375565b600e805461ff00191690555b61119b8585846113fc565b5050505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0383166000908152600b602052604081205460ff168061123357506001600160a01b0383166000908152600b602052604090205460ff165b1561123f57508061086b565b600a546007546001600160a01b0390811690851603611261575060095461127c565b6007546001600160a01b039081169086160361127c57506008545b6007546001600160a01b03868116911614806112bf57506007546001600160a01b038681169116148015906112bf57506007546001600160a01b03858116911614155b1561133657600d54836112e7866001600160a01b031660009081526020819052604090205490565b6112f191906118e7565b11156113365760405162461bcd60e51b815260206004820152601460248201527313585e1a5b5d5b481dd85b1b195d081b1a5b5a5d60621b60448201526064016107b2565b6000811561136157606461134a83866118fa565b61135491906118c5565b90506113618630836113fc565b61136b8185611947565b9695505050505050565b30600090815260208190526040812054908190036113905750565b306000908152602081905260409020546113a9906115a0565b600e546040516000916201000090046001600160a01b03169047908381818185875af1925050503d806000811461119b576040519150601f19603f3d011682016040523d82523d6000602084013e61119b565b6001600160a01b0383166114605760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016107b2565b6001600160a01b0382166114c25760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016107b2565b6001600160a01b0383166000908152602081905260409020548181101561153a5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016107b2565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a361100a565b60408051600280825260608201835260009260208301908036833701905050905030816000815181106115d5576115d561195a565b6001600160a01b03928316602091820292909201810191909152600654604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa15801561162e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116529190611970565b816001815181106116655761166561195a565b6001600160a01b03928316602091820292909201015260065461168b9130911684610e18565b60065460405163791ac94760e01b81526001600160a01b039091169063791ac947906116c490859060009086903090429060040161198d565b600060405180830381600087803b1580156116de57600080fd5b505af11580156116f2573d6000803e3d6000fd5b505050505050565b600060208083528351808285015260005b818110156117275785810183015185820160400152820161170b565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b0381168114610d7557600080fd5b6000806040838503121561177057600080fd5b823561177b81611748565b946020939093013593505050565b8015158114610d7557600080fd5b600080604083850312156117aa57600080fd5b82356117b581611748565b915060208301356117c581611789565b809150509250929050565b6000602082840312156117e257600080fd5b5035919050565b6000602082840312156117fb57600080fd5b813561086b81611748565b60008060006060848603121561181b57600080fd5b833561182681611748565b9250602084013561183681611748565b929592945050506040919091013590565b6000806040838503121561185a57600080fd5b823561186581611748565b915060208301356117c581611748565b600181811c9082168061188957607f821691505b6020821081036118a957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000826118e257634e487b7160e01b600052601260045260246000fd5b500490565b808201808211156106f0576106f06118af565b80820281158282048414176106f0576106f06118af565b60006020828403121561192357600080fd5b5051919050565b60006020828403121561193c57600080fd5b815161086b81611789565b818103818111156106f0576106f06118af565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561198257600080fd5b815161086b81611748565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156119dd5784516001600160a01b0316835293830193918301916001016119b8565b50506001600160a01b0396909616606085015250505060800152939250505056fea2646970667358221220cd5355dc17d72c80ad4e89db3e9b0469e2667c6e174f940fa20f08bcdb9eab5864736f6c63430008110033
Deployed Bytecode
0x6080604052600436106101fd5760003560e01c806375f0a8741161010d578063b8863115116100a0578063ef586f711161006f578063ef586f71146105d3578063f2fde38b146105e8578063f5648a4f14610608578063f66895a31461061d578063f8b45b051461063457600080fd5b8063b88631151461055e578063cb9637281461057d578063dd62ed3e1461059d578063e2f45605146105bd57600080fd5b8063a457c2d7116100dc578063a457c2d7146104de578063a8b08982146104fe578063a9059cbb1461051e578063afa4f3b21461053e57600080fd5b806375f0a8741461046e578063864701a5146104945780638da5cb5b146104ab57806395d89b41146104c957600080fd5b8063313ce567116101905780635331803c1161015f5780635331803c146103b45780635d098b38146103cb57806370a08231146103eb578063715018a614610421578063735de9f71461043657600080fd5b8063313ce5671461033e578063395093511461035a578063436d33401461037a5780634a74bb021461039a57600080fd5b80631750a9b7116101cc5780631750a9b7146102a657806318160ddd146102c65780631950c218146102e557806323b872dd1461031e57600080fd5b806306fdde0314610209578063095ea7b3146102345780630c4242841461026457806312185a391461028657600080fd5b3661020457005b600080fd5b34801561021557600080fd5b5061021e61064a565b60405161022b91906116fa565b60405180910390f35b34801561024057600080fd5b5061025461024f36600461175d565b6106dc565b604051901515815260200161022b565b34801561027057600080fd5b5061028461027f366004611797565b6106f6565b005b34801561029257600080fd5b506102846102a13660046117d0565b610752565b3480156102b257600080fd5b506102846102c13660046117d0565b6107c0565b3480156102d257600080fd5b506002545b60405190815260200161022b565b3480156102f157600080fd5b506102546103003660046117e9565b6001600160a01b03166000908152600b602052604090205460ff1690565b34801561032a57600080fd5b50610254610339366004611806565b61084c565b34801561034a57600080fd5b506040516012815260200161022b565b34801561036657600080fd5b5061025461037536600461175d565b610872565b34801561038657600080fd5b506102846103953660046117d0565b610894565b3480156103a657600080fd5b50600e546102549060ff1681565b3480156103c057600080fd5b50600a546102d79081565b3480156103d757600080fd5b506102846103e63660046117e9565b6108fc565b3480156103f757600080fd5b506102d76104063660046117e9565b6001600160a01b031660009081526020819052604090205490565b34801561042d57600080fd5b506102846109ba565b34801561044257600080fd5b50600654610456906001600160a01b031681565b6040516001600160a01b03909116815260200161022b565b34801561047a57600080fd5b50600e54610456906201000090046001600160a01b031681565b3480156104a057600080fd5b506008546102d79081565b3480156104b757600080fd5b506005546001600160a01b0316610456565b3480156104d557600080fd5b5061021e6109ce565b3480156104ea57600080fd5b506102546104f936600461175d565b6109dd565b34801561050a57600080fd5b50600754610456906001600160a01b031681565b34801561052a57600080fd5b5061025461053936600461175d565b610a63565b34801561054a57600080fd5b506102846105593660046117d0565b610a71565b34801561056a57600080fd5b50600e5461025490610100900460ff1681565b34801561058957600080fd5b506102846105983660046117e9565b610b66565b3480156105a957600080fd5b506102d76105b8366004611847565b610ca5565b3480156105c957600080fd5b506102d7600c5481565b3480156105df57600080fd5b50610284610cd0565b3480156105f457600080fd5b506102846106033660046117e9565b610cff565b34801561061457600080fd5b50610284610d78565b34801561062957600080fd5b506009546102d79081565b34801561064057600080fd5b506102d7600d5481565b60606003805461065990611875565b80601f016020809104026020016040519081016040528092919081815260200182805461068590611875565b80156106d25780601f106106a7576101008083540402835291602001916106d2565b820191906000526020600020905b8154815290600101906020018083116106b557829003601f168201915b5050505050905090565b6000336106ea818585610e18565b60019150505b92915050565b6106fe610f3c565b6001600160a01b0382166000818152600b6020526040808220805460ff191685151590811790915590519092917f5a25e09a5dba33161281055e015f1279b6b10204d8f90dd56a8ce2b82322d43d91a35050565b61075a610f3c565b600a8111156107bb5760405162461bcd60e51b815260206004820152602260248201527f43616e2774207365742073656c6c2074617820686967686572207468616e2031604482015261302560f01b60648201526084015b60405180910390fd5b600955565b6107c8610f3c565b6103e86107d460025490565b6107de91906118c5565b8110156108475760405162461bcd60e51b815260206004820152603160248201527f43616e277420736574206d6178696d756d2077616c6c6574206c657373207468604482015270616e20302e3125206f6620737570706c7960781b60648201526084016107b2565b600d55565b60003361085a858285610f96565b610865858585611010565b60019150505b9392505050565b6000336106ea8185856108858383610ca5565b61088f91906118e7565b610e18565b61089c610f3c565b600a8111156108f75760405162461bcd60e51b815260206004820152602160248201527f43616e277420736574206275792074617820686967686572207468616e2031306044820152602560f81b60648201526084016107b2565b600855565b610904610f3c565b6001600160a01b0381166109665760405162461bcd60e51b8152602060048201526024808201527f63616e206e6f7420736574206d61726b6574696e6720746f20646561642077616044820152631b1b195d60e21b60648201526084016107b2565b600e805462010000600160b01b031916620100006001600160a01b038416908102919091179091556040517fd1a6f806ccf6e5a2241d358891af2601bbf89feaad0fb4a891c9fbde2933761990600090a250565b6109c2610f3c565b6109cc60006111a2565b565b60606004805461065990611875565b600033816109eb8286610ca5565b905083811015610a4b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016107b2565b610a588286868403610e18565b506001949350505050565b6000336106ea818585611010565b610a79610f3c565b600081118015610aaa57506064610a9c6a52b7d2dcc80cd2e400000060016118fa565b610aa691906118c5565b8111155b610b335760405162461bcd60e51b815260206004820152604e60248201527f4d696e696d756d207377617020616d6f756e74206d757374206265206772656160448201527f746572207468616e203020616e64206c657373207468616e20302e3525206f6660648201526d20746f74616c20737570706c792160901b608482015260a4016107b2565b600c81905560405181907f18ff2fc8464635e4f668567019152095047e34d7a2ab4b97661ba4dc7fd0647690600090a250565b610b6e610f3c565b6040516370a0823160e01b81523060048201526000906001600160a01b0383169063a9059cbb90339083906370a0823190602401602060405180830381865afa158015610bbf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be39190611911565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610c2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c52919061192a565b905080610ca15760405162461bcd60e51b815260206004820152601960248201527f74726173666572696e6720746f6b656e73206661696c6564210000000000000060448201526064016107b2565b5050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610cd8610f3c565b600e5460ff16610ce9576001610cec565b60005b600e805460ff1916911515919091179055565b610d07610f3c565b6001600160a01b038116610d6c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107b2565b610d75816111a2565b50565b610d80610f3c565b604051600090339047908381818185875af1925050503d8060008114610dc2576040519150601f19603f3d011682016040523d82523d6000602084013e610dc7565b606091505b5050905080610d755760405162461bcd60e51b815260206004820152601760248201527f7472616e7366657272696e6720455448206661696c656400000000000000000060448201526064016107b2565b6001600160a01b038316610e7a5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016107b2565b6001600160a01b038216610edb5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016107b2565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6005546001600160a01b031633146109cc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107b2565b6000610fa28484610ca5565b9050600019811461100a5781811015610ffd5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016107b2565b61100a8484848403610e18565b50505050565b6001600160a01b0383166110665760405162461bcd60e51b815260206004820152601a60248201527f7472616e736665722066726f6d2061646472657373207a65726f00000000000060448201526064016107b2565b6001600160a01b0382166110bc5760405162461bcd60e51b815260206004820152601860248201527f7472616e7366657220746f2061646472657373207a65726f000000000000000060448201526064016107b2565b60006110c98484846111f4565b600c5430600090815260208190526040902054600e5492935010159060ff16801561110157506007546001600160a01b038581169116145b801561110a5750805b801561112f57506001600160a01b0385166000908152600b602052604090205460ff16155b801561115457506001600160a01b0384166000908152600b602052604090205460ff16155b80156111685750600e54610100900460ff16155b1561119057600e805461ff001916610100179055611184611375565b600e805461ff00191690555b61119b8585846113fc565b5050505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0383166000908152600b602052604081205460ff168061123357506001600160a01b0383166000908152600b602052604090205460ff165b1561123f57508061086b565b600a546007546001600160a01b0390811690851603611261575060095461127c565b6007546001600160a01b039081169086160361127c57506008545b6007546001600160a01b03868116911614806112bf57506007546001600160a01b038681169116148015906112bf57506007546001600160a01b03858116911614155b1561133657600d54836112e7866001600160a01b031660009081526020819052604090205490565b6112f191906118e7565b11156113365760405162461bcd60e51b815260206004820152601460248201527313585e1a5b5d5b481dd85b1b195d081b1a5b5a5d60621b60448201526064016107b2565b6000811561136157606461134a83866118fa565b61135491906118c5565b90506113618630836113fc565b61136b8185611947565b9695505050505050565b30600090815260208190526040812054908190036113905750565b306000908152602081905260409020546113a9906115a0565b600e546040516000916201000090046001600160a01b03169047908381818185875af1925050503d806000811461119b576040519150601f19603f3d011682016040523d82523d6000602084013e61119b565b6001600160a01b0383166114605760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016107b2565b6001600160a01b0382166114c25760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016107b2565b6001600160a01b0383166000908152602081905260409020548181101561153a5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016107b2565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a361100a565b60408051600280825260608201835260009260208301908036833701905050905030816000815181106115d5576115d561195a565b6001600160a01b03928316602091820292909201810191909152600654604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa15801561162e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116529190611970565b816001815181106116655761166561195a565b6001600160a01b03928316602091820292909201015260065461168b9130911684610e18565b60065460405163791ac94760e01b81526001600160a01b039091169063791ac947906116c490859060009086903090429060040161198d565b600060405180830381600087803b1580156116de57600080fd5b505af11580156116f2573d6000803e3d6000fd5b505050505050565b600060208083528351808285015260005b818110156117275785810183015185820160400152820161170b565b506000604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b0381168114610d7557600080fd5b6000806040838503121561177057600080fd5b823561177b81611748565b946020939093013593505050565b8015158114610d7557600080fd5b600080604083850312156117aa57600080fd5b82356117b581611748565b915060208301356117c581611789565b809150509250929050565b6000602082840312156117e257600080fd5b5035919050565b6000602082840312156117fb57600080fd5b813561086b81611748565b60008060006060848603121561181b57600080fd5b833561182681611748565b9250602084013561183681611748565b929592945050506040919091013590565b6000806040838503121561185a57600080fd5b823561186581611748565b915060208301356117c581611748565b600181811c9082168061188957607f821691505b6020821081036118a957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000826118e257634e487b7160e01b600052601260045260246000fd5b500490565b808201808211156106f0576106f06118af565b80820281158282048414176106f0576106f06118af565b60006020828403121561192357600080fd5b5051919050565b60006020828403121561193c57600080fd5b815161086b81611789565b818103818111156106f0576106f06118af565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561198257600080fd5b815161086b81611748565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156119dd5784516001600160a01b0316835293830193918301916001016119b8565b50506001600160a01b0396909616606085015250505060800152939250505056fea2646970667358221220cd5355dc17d72c80ad4e89db3e9b0469e2667c6e174f940fa20f08bcdb9eab5864736f6c63430008110033
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.