ERC-20
Overview
Max Total Supply
100,000,000 FED
Holders
893
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
0.000000000005713712 FEDValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
FEDToken
Compiler Version
v0.8.21+commit.d9974bed
Optimization Enabled:
Yes with 10000 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.8.21; import { Ownable } from "openzeppelin-contracts/access/Ownable.sol"; import { ERC20 } from "openzeppelin-contracts/token/ERC20/ERC20.sol"; import { IUniswapV2Router02 } from "./interfaces/IUniswapV2Router02.sol"; import { IUniswapV2Factory } from "./interfaces/IUniswapV2Factory.sol"; contract FEDToken is ERC20, Ownable { struct TaxDecay { uint256 initialTax; uint256 decay; uint256 lastDecay; } // TOKENOMICS START ==========================================================> string private _name = "BlockRock"; string private _symbol = "FED"; uint8 private _decimals = 18; uint256 private _supply = 1e8 * 10 ** _decimals; uint256 public tax = 500; // 5% uint256 public treasuryPart; uint256 public operationPart; uint256 public taxThreshold; address payable public treasury; address payable public operation; uint256 public maxTxAmount = 1e6 * 10 ** _decimals; bool public tradingEnabled; TaxDecay public taxDecay; uint256 public constant BASE = 10_000; mapping(address => bool) public _isExcludedFromFee; // TOKENOMICS END ============================================================> event ExcludedFromFeeUpdated(address _address, bool _status); address public immutable uniswapPair; IUniswapV2Router02 public immutable uniswapRouter; bool swapAndLiquidity; error TaxTooHigh(); error NotHundredPercent(); error TradingNotEnabled(); error TradingAlreadyEnabled(); error TxExceedsMaxAmount(); modifier lockTheSwap() { swapAndLiquidity = true; _; swapAndLiquidity = false; } /** * @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(address _owner) ERC20(_name, _symbol) Ownable(_owner) { uniswapRouter = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); uniswapPair = IUniswapV2Factory(uniswapRouter.factory()).createPair(address(this), uniswapRouter.WETH()); _mint(_owner, _supply); _isExcludedFromFee[_owner] = true; _isExcludedFromFee[msg.sender] = true; treasuryPart = 7500; operationPart = 2500; taxThreshold = 50_000e18; treasury = payable(0xc6A5Ad039bfa0a36D5364FEC1A62c8199D30ea29); operation = payable(0x607eAcfe35cd2315F0477d257Fe7603A3a528BA5); _isExcludedFromFee[treasury] = true; _isExcludedFromFee[operation] = true; } function _decayTheTax() internal { uint256 currentTax = taxDecay.initialTax; //SSTORE if (currentTax == 0) return; uint256 decayAmount = (block.number - taxDecay.lastDecay) * taxDecay.decay; if (decayAmount >= currentTax) { taxDecay.initialTax = 0; } else { taxDecay.initialTax -= decayAmount; } taxDecay.lastDecay = block.number; } function enableTrading() external onlyOwner { if (tradingEnabled) revert TradingAlreadyEnabled(); taxDecay = TaxDecay(4500, 4500 / 5, block.number); tradingEnabled = true; } function _update(address from, address to, uint256 amount) internal override { _decayTheTax(); if ((from == uniswapPair || to == uniswapPair) && !swapAndLiquidity && tax > 0) { uint256 pendingTax = balanceOf(address(this)); if (pendingTax >= taxThreshold && from != uniswapPair) { _sellTaxAndSend(pendingTax); } uint256 transferAmount; if (_isExcludedFromFee[from] || _isExcludedFromFee[to]) { transferAmount = amount; } else { if (!tradingEnabled) revert TradingNotEnabled(); uint256 totalTax = ((amount * (tax + taxDecay.initialTax)) / BASE); super._update(from, address(this), totalTax); transferAmount = amount - totalTax; if (transferAmount > maxTxAmount) revert TxExceedsMaxAmount(); } super._update(from, to, transferAmount); } else { super._update(from, to, amount); } } function _sellTaxAndSend(uint256 pendingTax) internal { _swapTokensForEth(pendingTax); uint256 ethBalance = address(this).balance; uint256 treasuryAmount = (ethBalance * treasuryPart) / BASE; uint256 operationAmount = ethBalance - treasuryAmount; treasury.transfer(treasuryAmount); operation.transfer(operationAmount); } function _swapTokensForEth(uint256 tokenAmount) private lockTheSwap { address[] memory path = new address[](2); path[0] = address(this); path[1] = uniswapRouter.WETH(); _approve(address(this), address(uniswapRouter), tokenAmount); uniswapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens( tokenAmount, 0, path, address(this), block.timestamp ); } function excludeFromFee(address _address, bool _status) external onlyOwner { _isExcludedFromFee[_address] = _status; emit ExcludedFromFeeUpdated(_address, _status); } function setTreasuryAddress(address payable _treasury) external onlyOwner { treasury = _treasury; } function setOperationAddress(address payable _operation) external onlyOwner { operation = _operation; } function withdrawTax() external onlyOwner { uint256 pendingTax = balanceOf(address(this)); _sellTaxAndSend(pendingTax); } receive() external payable { } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../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. * * The initial owner is set to the address provided by the deployer. 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; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @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 { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _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 v5.0.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "./IERC20.sol"; import {IERC20Metadata} from "./extensions/IERC20Metadata.sol"; import {Context} from "../../utils/Context.sol"; import {IERC20Errors} from "../../interfaces/draft-IERC6093.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}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. */ abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors { mapping(address account => uint256) private _balances; mapping(address account => mapping(address spender => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the default value returned by this function, unless * it's overridden. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual 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 `value`. */ function transfer(address to, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _transfer(owner, to, value); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `value` 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 value) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, value); 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 `value`. * - the caller must have allowance for ``from``'s tokens of at least * `value`. */ function transferFrom(address from, address to, uint256 value) public virtual returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, value); _transfer(from, to, value); return true; } /** * @dev Moves a `value` 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. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _transfer(address from, address to, uint256 value) internal { if (from == address(0)) { revert ERC20InvalidSender(address(0)); } if (to == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(from, to, value); } /** * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from` * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding * this function. * * Emits a {Transfer} event. */ function _update(address from, address to, uint256 value) internal virtual { if (from == address(0)) { // Overflow check required: The rest of the code assumes that totalSupply never overflows _totalSupply += value; } else { uint256 fromBalance = _balances[from]; if (fromBalance < value) { revert ERC20InsufficientBalance(from, fromBalance, value); } unchecked { // Overflow not possible: value <= fromBalance <= totalSupply. _balances[from] = fromBalance - value; } } if (to == address(0)) { unchecked { // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply. _totalSupply -= value; } } else { unchecked { // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256. _balances[to] += value; } } emit Transfer(from, to, value); } /** * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0). * Relies on the `_update` mechanism * * Emits a {Transfer} event with `from` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _mint(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(address(0), account, value); } /** * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply. * Relies on the `_update` mechanism. * * Emits a {Transfer} event with `to` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead */ function _burn(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidSender(address(0)); } _update(account, address(0), value); } /** * @dev Sets `value` 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. * * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument. */ function _approve(address owner, address spender, uint256 value) internal { _approve(owner, spender, value, true); } /** * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event. * * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any * `Approval` event during `transferFrom` operations. * * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to * true using the following override: * ``` * function _approve(address owner, address spender, uint256 value, bool) internal virtual override { * super._approve(owner, spender, value, true); * } * ``` * * Requirements are the same as {_approve}. */ function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual { if (owner == address(0)) { revert ERC20InvalidApprover(address(0)); } if (spender == address(0)) { revert ERC20InvalidSpender(address(0)); } _allowances[owner][spender] = value; if (emitEvent) { emit Approval(owner, spender, value); } } /** * @dev Updates `owner` s allowance for `spender` based on spent `value`. * * Does not update the allowance value in case of infinite allowance. * Revert if not enough allowance is available. * * Does not emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 value) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { if (currentAllowance < value) { revert ERC20InsufficientAllowance(spender, currentAllowance, value); } unchecked { _approve(owner, spender, currentAllowance - value, false); } } } }
pragma solidity ^0.8.10; interface IUniswapV2Router02 { function WETH() external view returns (address); function addLiquidity( address tokenA, address tokenB, uint256 amountADesired, uint256 amountBDesired, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns (uint256 amountA, uint256 amountB, uint256 liquidity); function addLiquidityETH( address token, uint256 amountTokenDesired, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external payable returns (uint256 amountToken, uint256 amountETH, uint256 liquidity); function factory() external view returns (address); function getAmountIn( uint256 amountOut, uint256 reserveIn, uint256 reserveOut ) external pure returns (uint256 amountIn); function getAmountOut( uint256 amountIn, uint256 reserveIn, uint256 reserveOut ) external pure returns (uint256 amountOut); function getAmountsIn(uint256 amountOut, address[] memory path) external view returns (uint256[] memory amounts); function getAmountsOut(uint256 amountIn, address[] memory path) external view returns (uint256[] memory amounts); function quote(uint256 amountA, uint256 reserveA, uint256 reserveB) external pure returns (uint256 amountB); function removeLiquidity( address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline ) external returns (uint256 amountA, uint256 amountB); function removeLiquidityETH( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external returns (uint256 amountToken, uint256 amountETH); function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline ) external returns (uint256 amountETH); function removeLiquidityETHWithPermit( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint256 amountToken, uint256 amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint256 liquidity, uint256 amountTokenMin, uint256 amountETHMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint256 amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint256 liquidity, uint256 amountAMin, uint256 amountBMin, address to, uint256 deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint256 amountA, uint256 amountB); function swapETHForExactTokens( uint256 amountOut, address[] memory path, address to, uint256 deadline ) external payable returns (uint256[] memory amounts); function swapExactETHForTokens( uint256 amountOutMin, address[] memory path, address to, uint256 deadline ) external payable returns (uint256[] memory amounts); function swapExactETHForTokensSupportingFeeOnTransferTokens( uint256 amountOutMin, address[] memory path, address to, uint256 deadline ) external payable; function swapExactTokensForETH( uint256 amountIn, uint256 amountOutMin, address[] memory path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapExactTokensForETHSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, address[] memory path, address to, uint256 deadline ) external; function swapExactTokensForTokens( uint256 amountIn, uint256 amountOutMin, address[] memory path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint256 amountIn, uint256 amountOutMin, address[] memory path, address to, uint256 deadline ) external; function swapTokensForExactETH( uint256 amountOut, uint256 amountInMax, address[] memory path, address to, uint256 deadline ) external returns (uint256[] memory amounts); function swapTokensForExactTokens( uint256 amountOut, uint256 amountInMax, address[] memory path, address to, uint256 deadline ) external returns (uint256[] memory amounts); }
pragma solidity ^0.8.10; interface IUniswapV2Factory { event PairCreated(address indexed token0, address indexed token1, address pair, uint256); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint256) external view returns (address pair); function allPairsLength() external view returns (uint256); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Context.sol) pragma solidity ^0.8.20; /** * @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 v5.0.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @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 value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` 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 value) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. */ 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 v5.0.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens. */ interface IERC20Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC20InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC20InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers. * @param spender Address that may be allowed to operate on tokens without being their owner. * @param allowance Amount of tokens a `spender` is allowed to operate with. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC20InvalidApprover(address approver); /** * @dev Indicates a failure with the `spender` to be approved. Used in approvals. * @param spender Address that may be allowed to operate on tokens without being their owner. */ error ERC20InvalidSpender(address spender); } /** * @dev Standard ERC721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20. * Used in balance queries. * @param owner Address of the current owner of a token. */ error ERC721InvalidOwner(address owner); /** * @dev Indicates a `tokenId` whose `owner` is the zero address. * @param tokenId Identifier number of a token. */ error ERC721NonexistentToken(uint256 tokenId); /** * @dev Indicates an error related to the ownership over a particular token. Used in transfers. * @param sender Address whose tokens are being transferred. * @param tokenId Identifier number of a token. * @param owner Address of the current owner of a token. */ error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC721InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC721InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param tokenId Identifier number of a token. */ error ERC721InsufficientApproval(address operator, uint256 tokenId); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC721InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC721InvalidOperator(address operator); } /** * @dev Standard ERC1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens. */ interface IERC1155Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. * @param tokenId Identifier number of a token. */ error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC1155InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC1155InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param owner Address of the current owner of a token. */ error ERC1155MissingApprovalForAll(address operator, address owner); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC1155InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC1155InvalidOperator(address operator); /** * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. * Used in batch transfers. * @param idsLength Length of the array of token identifiers * @param valuesLength Length of the array of token amounts */ error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); }
{ "remappings": [ "@prb/test/=lib/prb-test/src/", "forge-std/=lib/forge-std/src/", "openzeppelin-contracts/=lib/openzeppelin-contracts/contracts/", "univ2-core/=lib/v2-core/contracts/", "univ2-periphery/=lib/v2-periphery/contracts/", "chainlink/=lib/chainlink/contracts/src/v0.8/", "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/", "ds-test/=lib/forge-std/lib/ds-test/src/", "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/", "prb-test/=lib/prb-test/src/", "solmate/=lib/solmate/src/", "v2-core/=lib/v2-core/contracts/", "v2-periphery/=lib/v2-periphery/contracts/" ], "optimizer": { "enabled": true, "runs": 10000 }, "metadata": { "useLiteralContent": false, "bytecodeHash": "none", "appendCBOR": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "paris", "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[],"name":"NotHundredPercent","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"TaxTooHigh","type":"error"},{"inputs":[],"name":"TradingAlreadyEnabled","type":"error"},{"inputs":[],"name":"TradingNotEnabled","type":"error"},{"inputs":[],"name":"TxExceedsMaxAmount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_address","type":"address"},{"indexed":false,"internalType":"bool","name":"_status","type":"bool"}],"name":"ExcludedFromFeeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"BASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_isExcludedFromFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","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":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"enableTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"_status","type":"bool"}],"name":"excludeFromFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxTxAmount","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":"operation","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operationPart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_operation","type":"address"}],"name":"setOperationAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_treasury","type":"address"}],"name":"setTreasuryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxDecay","outputs":[{"internalType":"uint256","name":"initialTax","type":"uint256"},{"internalType":"uint256","name":"decay","type":"uint256"},{"internalType":"uint256","name":"lastDecay","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tradingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","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":"value","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":"treasury","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasuryPart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapPair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapRouter","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
610100604052600960c090815268426c6f636b526f636b60b81b60e0526006906200002b908262000c9b565b5060408051808201909152600381526211915160ea1b602082015260079062000055908262000c9b565b506008805460ff191660129081179091556200007390600a62000e7c565b62000083906305f5e10062000e94565b6009556101f4600a908155600854620000a29160ff9091169062000e7c565b620000b190620f424062000e94565b601055348015620000c157600080fd5b506040516200260b3803806200260b833981016040819052620000e49162000eae565b8060068054620000f49062000c0d565b80601f0160208091040260200160405190810160405280929190818152602001828054620001229062000c0d565b8015620001735780601f10620001475761010080835404028352916020019162000173565b820191906000526020600020905b8154815290600101906020018083116200015557829003601f168201915b505050505060078054620001879062000c0d565b80601f0160208091040260200160405190810160405280929190818152602001828054620001b59062000c0d565b8015620002065780601f10620001da5761010080835404028352916020019162000206565b820191906000526020600020905b815481529060010190602001808311620001e857829003601f168201915b505050505081600390816200021c919062000c9b565b5060046200022b828262000c9b565b5050506001600160a01b0381166200025e57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b6200026981620004e0565b50737a250d5630b4cf539739df2c5dacb4c659f2488d60a08190526040805163c45a015560e01b8152905163c45a0155916004808201926020929091908290030181865afa158015620002c0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002e6919062000eae565b6001600160a01b031663c9c653963060a0516001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000336573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200035c919062000eae565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af1158015620003aa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003d0919062000eae565b6001600160a01b0316608052600954620003ec90829062000532565b6001600160a01b03166000908152601560205260408082208054600160ff1991821681179092553384529183208054831682179055611d4c600b556109c4600c55690a968163f0a57b400000600d55600e805473c6a5ad039bfa0a36d5364fec1a62c8199d30ea296001600160a01b031991821617909155600f805473607eacfe35cd2315f0477d257fe7603a3a528ba59216821790557f1e73a8ec248702586bee53a447ef0b5bf6c5629b980aa80505cbee9778c60e2380548416831790559092527f05c1f3281e2d51f07110a24d7866198a41c535abafd5957d32138bf6c97606b78054909116909117905562000fb1565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166200055e5760405163ec442f0560e01b81526000600482015260240162000255565b6200056c6000838362000570565b5050565b6200057a6200072a565b6080516001600160a01b0316836001600160a01b03161480620005b057506080516001600160a01b0316826001600160a01b0316145b8015620005c0575060165460ff16155b8015620005cf57506000600a54115b15620007185730600090815260208190526040902054600d5481108015906200060c57506080516001600160a01b0316846001600160a01b031614155b156200061d576200061d8162000796565b6001600160a01b03841660009081526015602052604081205460ff16806200065d57506001600160a01b03841660009081526015602052604090205460ff165b156200066b57508162000704565b60115460ff166200068f576040516312f1f92360e01b815260040160405180910390fd5b6000612710601260000154600a54620006a9919062000ed9565b620006b5908662000e94565b620006c1919062000eef565b9050620006d08630836200084d565b620006dc818562000f12565b9150601054821115620007025760405163072dbe8960e31b815260040160405180910390fd5b505b620007118585836200084d565b5050505050565b620007258383836200084d565b505050565b60125460008190036200073a5750565b6013546014546000919062000750904362000f12565b6200075c919062000e94565b9050818110620007715760006012556200078e565b806012600001600082825462000788919062000f12565b90915550505b505043601455565b620007a18162000980565b600b54479060009061271090620007b9908462000e94565b620007c5919062000eef565b90506000620007d5828462000f12565b600e546040519192506001600160a01b03169083156108fc029084906000818181858888f1935050505015801562000811573d6000803e3d6000fd5b50600f546040516001600160a01b039091169082156108fc029083906000818181858888f1935050505015801562000711573d6000803e3d6000fd5b6001600160a01b0383166200087c57806002600082825462000870919062000ed9565b90915550620008f09050565b6001600160a01b03831660009081526020819052604090205481811015620008d15760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640162000255565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b0382166200090e576002805482900390556200092d565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516200097391815260200190565b60405180910390a3505050565b6016805460ff191660011790556040805160028082526060820183526000926020830190803683370190505090503081600081518110620009c557620009c562000f28565b60200260200101906001600160a01b031690816001600160a01b03168152505060a0516001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000a26573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000a4c919062000eae565b8160018151811062000a625762000a6262000f28565b60200260200101906001600160a01b031690816001600160a01b03168152505062000a973060a0518462000b1260201b60201c565b60a0516001600160a01b031663791ac9478360008430426040518663ffffffff1660e01b815260040162000ad095949392919062000f3e565b600060405180830381600087803b15801562000aeb57600080fd5b505af115801562000b00573d6000803e3d6000fd5b50506016805460ff1916905550505050565b6200072583838360016001600160a01b03841662000b475760405163e602df0560e01b81526000600482015260240162000255565b6001600160a01b03831662000b7357604051634a1406b160e11b81526000600482015260240162000255565b6001600160a01b038085166000908152600160209081526040808320938716835292905220829055801562000bf157826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405162000be891815260200190565b60405180910390a35b50505050565b634e487b7160e01b600052604160045260246000fd5b600181811c9082168062000c2257607f821691505b60208210810362000c4357634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200072557600081815260208120601f850160051c8101602086101562000c725750805b601f850160051c820191505b8181101562000c935782815560010162000c7e565b505050505050565b81516001600160401b0381111562000cb75762000cb762000bf7565b62000ccf8162000cc8845462000c0d565b8462000c49565b602080601f83116001811462000d07576000841562000cee5750858301515b600019600386901b1c1916600185901b17855562000c93565b600085815260208120601f198616915b8281101562000d385788860151825594840194600190910190840162000d17565b508582101562000d575787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b600181815b8085111562000dbe57816000190482111562000da25762000da262000d67565b8085161562000db057918102915b93841c939080029062000d82565b509250929050565b60008262000dd75750600162000e76565b8162000de65750600062000e76565b816001811462000dff576002811462000e0a5762000e2a565b600191505062000e76565b60ff84111562000e1e5762000e1e62000d67565b50506001821b62000e76565b5060208310610133831016604e8410600b841016171562000e4f575081810a62000e76565b62000e5b838362000d7d565b806000190482111562000e725762000e7262000d67565b0290505b92915050565b600062000e8d60ff84168362000dc6565b9392505050565b808202811582820484141762000e765762000e7662000d67565b60006020828403121562000ec157600080fd5b81516001600160a01b038116811462000e8d57600080fd5b8082018082111562000e765762000e7662000d67565b60008262000f0d57634e487b7160e01b600052601260045260246000fd5b500490565b8181038181111562000e765762000e7662000d67565b634e487b7160e01b600052603260045260246000fd5b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b8181101562000f905784516001600160a01b03168352938301939183019160010162000f69565b50506001600160a01b03969096166060850152505050608001529392505050565b60805160a05161160a620010016000396000818161037a01528181610f780152818161103101526110860152600081816104e201528181610ce301528181610d1e0152610d93015261160a6000f3fe6080604052600436106101d15760003560e01c806377d1440d116100f7578063c816841b11610095578063df8408fe11610064578063df8408fe14610580578063dfa20f0a146105a0578063ec342ad0146105b5578063f2fde38b146105cb57600080fd5b8063c816841b146104d0578063cad08b4514610504578063d53ce9561461051a578063dd62ed3e1461053a57600080fd5b80638da5cb5b116100d15780638da5cb5b1461046757806395d89b411461048557806399c8d5561461049a578063a9059cbb146104b057600080fd5b806377d1440d146104265780638a8c523c1461043c5780638c0b5e221461045157600080fd5b806361d027b31161016f578063735de9f71161013e578063735de9f71461036857806373ebc36e1461039c578063768dc710146103d6578063775fc1271461040657600080fd5b806361d027b3146102c35780636605bfda146102fb57806370a082311461031d578063715018a61461035357600080fd5b806323b872dd116101ab57806323b872dd14610257578063313ce5671461027757806337e4bb67146102935780634ada218b146102a957600080fd5b806306fdde03146101dd578063095ea7b31461020857806318160ddd1461023857600080fd5b366101d857005b600080fd5b3480156101e957600080fd5b506101f26105eb565b6040516101ff91906112c8565b60405180910390f35b34801561021457600080fd5b50610228610223366004611349565b61067d565b60405190151581526020016101ff565b34801561024457600080fd5b506002545b6040519081526020016101ff565b34801561026357600080fd5b50610228610272366004611375565b610697565b34801561028357600080fd5b50604051601281526020016101ff565b34801561029f57600080fd5b50610249600c5481565b3480156102b557600080fd5b506011546102289060ff1681565b3480156102cf57600080fd5b50600e546102e3906001600160a01b031681565b6040516001600160a01b0390911681526020016101ff565b34801561030757600080fd5b5061031b6103163660046113b6565b6106bb565b005b34801561032957600080fd5b506102496103383660046113b6565b6001600160a01b031660009081526020819052604090205490565b34801561035f57600080fd5b5061031b6106fd565b34801561037457600080fd5b506102e37f000000000000000000000000000000000000000000000000000000000000000081565b3480156103a857600080fd5b506012546013546014546103bb92919083565b604080519384526020840192909252908201526060016101ff565b3480156103e257600080fd5b506102286103f13660046113b6565b60156020526000908152604090205460ff1681565b34801561041257600080fd5b50600f546102e3906001600160a01b031681565b34801561043257600080fd5b50610249600d5481565b34801561044857600080fd5b5061031b610711565b34801561045d57600080fd5b5061024960105481565b34801561047357600080fd5b506005546001600160a01b03166102e3565b34801561049157600080fd5b506101f26107b1565b3480156104a657600080fd5b50610249600a5481565b3480156104bc57600080fd5b506102286104cb366004611349565b6107c0565b3480156104dc57600080fd5b506102e37f000000000000000000000000000000000000000000000000000000000000000081565b34801561051057600080fd5b50610249600b5481565b34801561052657600080fd5b5061031b6105353660046113b6565b6107ce565b34801561054657600080fd5b506102496105553660046113da565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561058c57600080fd5b5061031b61059b366004611413565b610810565b3480156105ac57600080fd5b5061031b610899565b3480156105c157600080fd5b5061024961271081565b3480156105d757600080fd5b5061031b6105e63660046113b6565b6108bd565b6060600380546105fa90611446565b80601f016020809104026020016040519081016040528092919081815260200182805461062690611446565b80156106735780601f1061064857610100808354040283529160200191610673565b820191906000526020600020905b81548152906001019060200180831161065657829003601f168201915b5050505050905090565b60003361068b818585610916565b60019150505b92915050565b6000336106a5858285610928565b6106b08585856109dd565b506001949350505050565b6106c3610a6e565b600e80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b610705610a6e565b61070f6000610ab4565b565b610719610a6e565b60115460ff1615610756576040517fd723eaba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60408051606081018252611194808252610384602083018190524392909301829052601255601391909155601455601180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b6060600480546105fa90611446565b60003361068b8185856109dd565b6107d6610a6e565b600f80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b610818610a6e565b6001600160a01b03821660008181526015602090815260409182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168515159081179091558251938452908301527f318c131114339c004fff0a22fcdbbc0566bb2a7cd3aa1660e636ec5a66784ff2910160405180910390a15050565b6108a1610a6e565b306000908152602081905260409020546108ba81610b1e565b50565b6108c5610a6e565b6001600160a01b03811661090d576040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600060048201526024015b60405180910390fd5b6108ba81610ab4565b6109238383836001610bd2565b505050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146109d757818110156109c8576040517ffb8f41b20000000000000000000000000000000000000000000000000000000081526001600160a01b03841660048201526024810182905260448101839052606401610904565b6109d784848484036000610bd2565b50505050565b6001600160a01b038316610a20576040517f96c6fd1e00000000000000000000000000000000000000000000000000000000815260006004820152602401610904565b6001600160a01b038216610a63576040517fec442f0500000000000000000000000000000000000000000000000000000000815260006004820152602401610904565b610923838383610cd9565b6005546001600160a01b0316331461070f576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610904565b600580546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610b2781610ef6565b600b54479060009061271090610b3d90846114c8565b610b4791906114df565b90506000610b55828461151a565b600e546040519192506001600160a01b03169083156108fc029084906000818181858888f19350505050158015610b90573d6000803e3d6000fd5b50600f546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015610bcb573d6000803e3d6000fd5b5050505050565b6001600160a01b038416610c15576040517fe602df0500000000000000000000000000000000000000000000000000000000815260006004820152602401610904565b6001600160a01b038316610c58576040517f94280d6200000000000000000000000000000000000000000000000000000000815260006004820152602401610904565b6001600160a01b03808516600090815260016020908152604080832093871683529290522082905580156109d757826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610ccb91815260200190565b60405180910390a350505050565b610ce1611122565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b03161480610d5257507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b0316145b8015610d61575060165460ff16155b8015610d6f57506000600a54115b15610eeb5730600090815260208190526040902054600d548110801590610dc857507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316846001600160a01b031614155b15610dd657610dd681610b1e565b6001600160a01b03841660009081526015602052604081205460ff1680610e1557506001600160a01b03841660009081526015602052604090205460ff165b15610e21575081610ee0565b60115460ff16610e5d576040517f12f1f92300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000612710601260000154600a54610e75919061152d565b610e7f90866114c8565b610e8991906114df565b9050610e96863083611185565b610ea0818561151a565b9150601054821115610ede576040517f396df44800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b610bcb858583611185565b610923838383611185565b601680547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556040805160028082526060820183526000926020830190803683370190505090503081600081518110610f5657610f56611540565b60200260200101906001600160a01b031690816001600160a01b0316815250507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610fd4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ff8919061156f565b8160018151811061100b5761100b611540565b60200260200101906001600160a01b031690816001600160a01b031681525050611056307f000000000000000000000000000000000000000000000000000000000000000084610916565b6040517f791ac9470000000000000000000000000000000000000000000000000000000081526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063791ac947906110c490859060009086903090429060040161158c565b600060405180830381600087803b1580156110de57600080fd5b505af11580156110f2573d6000803e3d6000fd5b5050601680547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905550505050565b60125460008190036111315750565b60135460145460009190611145904361151a565b61114f91906114c8565b905081811061116257600060125561117d565b8060126000016000828254611177919061151a565b90915550505b505043601455565b6001600160a01b0383166111b05780600260008282546111a5919061152d565b9091555061123b9050565b6001600160a01b0383166000908152602081905260409020548181101561121c576040517fe450d38c0000000000000000000000000000000000000000000000000000000081526001600160a01b03851660048201526024810182905260448101839052606401610904565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b03821661125757600280548290039055611276565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516112bb91815260200190565b60405180910390a3505050565b600060208083528351808285015260005b818110156112f5578581018301518582016040015282016112d9565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b6001600160a01b03811681146108ba57600080fd5b6000806040838503121561135c57600080fd5b823561136781611334565b946020939093013593505050565b60008060006060848603121561138a57600080fd5b833561139581611334565b925060208401356113a581611334565b929592945050506040919091013590565b6000602082840312156113c857600080fd5b81356113d381611334565b9392505050565b600080604083850312156113ed57600080fd5b82356113f881611334565b9150602083013561140881611334565b809150509250929050565b6000806040838503121561142657600080fd5b823561143181611334565b91506020830135801515811461140857600080fd5b600181811c9082168061145a57607f821691505b602082108103611493577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b808202811582820484141761069157610691611499565b600082611515577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b8181038181111561069157610691611499565b8082018082111561069157610691611499565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006020828403121561158157600080fd5b81516113d381611334565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156115dc5784516001600160a01b0316835293830193918301916001016115b7565b50506001600160a01b0396909616606085015250505060800152939250505056fea164736f6c6343000815000a00000000000000000000000040dc8a5b1417c69b3cb5043447304190aeeac81a
Deployed Bytecode
0x6080604052600436106101d15760003560e01c806377d1440d116100f7578063c816841b11610095578063df8408fe11610064578063df8408fe14610580578063dfa20f0a146105a0578063ec342ad0146105b5578063f2fde38b146105cb57600080fd5b8063c816841b146104d0578063cad08b4514610504578063d53ce9561461051a578063dd62ed3e1461053a57600080fd5b80638da5cb5b116100d15780638da5cb5b1461046757806395d89b411461048557806399c8d5561461049a578063a9059cbb146104b057600080fd5b806377d1440d146104265780638a8c523c1461043c5780638c0b5e221461045157600080fd5b806361d027b31161016f578063735de9f71161013e578063735de9f71461036857806373ebc36e1461039c578063768dc710146103d6578063775fc1271461040657600080fd5b806361d027b3146102c35780636605bfda146102fb57806370a082311461031d578063715018a61461035357600080fd5b806323b872dd116101ab57806323b872dd14610257578063313ce5671461027757806337e4bb67146102935780634ada218b146102a957600080fd5b806306fdde03146101dd578063095ea7b31461020857806318160ddd1461023857600080fd5b366101d857005b600080fd5b3480156101e957600080fd5b506101f26105eb565b6040516101ff91906112c8565b60405180910390f35b34801561021457600080fd5b50610228610223366004611349565b61067d565b60405190151581526020016101ff565b34801561024457600080fd5b506002545b6040519081526020016101ff565b34801561026357600080fd5b50610228610272366004611375565b610697565b34801561028357600080fd5b50604051601281526020016101ff565b34801561029f57600080fd5b50610249600c5481565b3480156102b557600080fd5b506011546102289060ff1681565b3480156102cf57600080fd5b50600e546102e3906001600160a01b031681565b6040516001600160a01b0390911681526020016101ff565b34801561030757600080fd5b5061031b6103163660046113b6565b6106bb565b005b34801561032957600080fd5b506102496103383660046113b6565b6001600160a01b031660009081526020819052604090205490565b34801561035f57600080fd5b5061031b6106fd565b34801561037457600080fd5b506102e37f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b3480156103a857600080fd5b506012546013546014546103bb92919083565b604080519384526020840192909252908201526060016101ff565b3480156103e257600080fd5b506102286103f13660046113b6565b60156020526000908152604090205460ff1681565b34801561041257600080fd5b50600f546102e3906001600160a01b031681565b34801561043257600080fd5b50610249600d5481565b34801561044857600080fd5b5061031b610711565b34801561045d57600080fd5b5061024960105481565b34801561047357600080fd5b506005546001600160a01b03166102e3565b34801561049157600080fd5b506101f26107b1565b3480156104a657600080fd5b50610249600a5481565b3480156104bc57600080fd5b506102286104cb366004611349565b6107c0565b3480156104dc57600080fd5b506102e37f000000000000000000000000dc1158825141782fe23fc4ea195c3a1c7bb9f77981565b34801561051057600080fd5b50610249600b5481565b34801561052657600080fd5b5061031b6105353660046113b6565b6107ce565b34801561054657600080fd5b506102496105553660046113da565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561058c57600080fd5b5061031b61059b366004611413565b610810565b3480156105ac57600080fd5b5061031b610899565b3480156105c157600080fd5b5061024961271081565b3480156105d757600080fd5b5061031b6105e63660046113b6565b6108bd565b6060600380546105fa90611446565b80601f016020809104026020016040519081016040528092919081815260200182805461062690611446565b80156106735780601f1061064857610100808354040283529160200191610673565b820191906000526020600020905b81548152906001019060200180831161065657829003601f168201915b5050505050905090565b60003361068b818585610916565b60019150505b92915050565b6000336106a5858285610928565b6106b08585856109dd565b506001949350505050565b6106c3610a6e565b600e80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b610705610a6e565b61070f6000610ab4565b565b610719610a6e565b60115460ff1615610756576040517fd723eaba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60408051606081018252611194808252610384602083018190524392909301829052601255601391909155601455601180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b6060600480546105fa90611446565b60003361068b8185856109dd565b6107d6610a6e565b600f80547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b610818610a6e565b6001600160a01b03821660008181526015602090815260409182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168515159081179091558251938452908301527f318c131114339c004fff0a22fcdbbc0566bb2a7cd3aa1660e636ec5a66784ff2910160405180910390a15050565b6108a1610a6e565b306000908152602081905260409020546108ba81610b1e565b50565b6108c5610a6e565b6001600160a01b03811661090d576040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600060048201526024015b60405180910390fd5b6108ba81610ab4565b6109238383836001610bd2565b505050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146109d757818110156109c8576040517ffb8f41b20000000000000000000000000000000000000000000000000000000081526001600160a01b03841660048201526024810182905260448101839052606401610904565b6109d784848484036000610bd2565b50505050565b6001600160a01b038316610a20576040517f96c6fd1e00000000000000000000000000000000000000000000000000000000815260006004820152602401610904565b6001600160a01b038216610a63576040517fec442f0500000000000000000000000000000000000000000000000000000000815260006004820152602401610904565b610923838383610cd9565b6005546001600160a01b0316331461070f576040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152602401610904565b600580546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610b2781610ef6565b600b54479060009061271090610b3d90846114c8565b610b4791906114df565b90506000610b55828461151a565b600e546040519192506001600160a01b03169083156108fc029084906000818181858888f19350505050158015610b90573d6000803e3d6000fd5b50600f546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015610bcb573d6000803e3d6000fd5b5050505050565b6001600160a01b038416610c15576040517fe602df0500000000000000000000000000000000000000000000000000000000815260006004820152602401610904565b6001600160a01b038316610c58576040517f94280d6200000000000000000000000000000000000000000000000000000000815260006004820152602401610904565b6001600160a01b03808516600090815260016020908152604080832093871683529290522082905580156109d757826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610ccb91815260200190565b60405180910390a350505050565b610ce1611122565b7f000000000000000000000000dc1158825141782fe23fc4ea195c3a1c7bb9f7796001600160a01b0316836001600160a01b03161480610d5257507f000000000000000000000000dc1158825141782fe23fc4ea195c3a1c7bb9f7796001600160a01b0316826001600160a01b0316145b8015610d61575060165460ff16155b8015610d6f57506000600a54115b15610eeb5730600090815260208190526040902054600d548110801590610dc857507f000000000000000000000000dc1158825141782fe23fc4ea195c3a1c7bb9f7796001600160a01b0316846001600160a01b031614155b15610dd657610dd681610b1e565b6001600160a01b03841660009081526015602052604081205460ff1680610e1557506001600160a01b03841660009081526015602052604090205460ff165b15610e21575081610ee0565b60115460ff16610e5d576040517f12f1f92300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000612710601260000154600a54610e75919061152d565b610e7f90866114c8565b610e8991906114df565b9050610e96863083611185565b610ea0818561151a565b9150601054821115610ede576040517f396df44800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b610bcb858583611185565b610923838383611185565b601680547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556040805160028082526060820183526000926020830190803683370190505090503081600081518110610f5657610f56611540565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610fd4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ff8919061156f565b8160018151811061100b5761100b611540565b60200260200101906001600160a01b031690816001600160a01b031681525050611056307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84610916565b6040517f791ac9470000000000000000000000000000000000000000000000000000000081526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d169063791ac947906110c490859060009086903090429060040161158c565b600060405180830381600087803b1580156110de57600080fd5b505af11580156110f2573d6000803e3d6000fd5b5050601680547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016905550505050565b60125460008190036111315750565b60135460145460009190611145904361151a565b61114f91906114c8565b905081811061116257600060125561117d565b8060126000016000828254611177919061151a565b90915550505b505043601455565b6001600160a01b0383166111b05780600260008282546111a5919061152d565b9091555061123b9050565b6001600160a01b0383166000908152602081905260409020548181101561121c576040517fe450d38c0000000000000000000000000000000000000000000000000000000081526001600160a01b03851660048201526024810182905260448101839052606401610904565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b03821661125757600280548290039055611276565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516112bb91815260200190565b60405180910390a3505050565b600060208083528351808285015260005b818110156112f5578581018301518582016040015282016112d9565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b6001600160a01b03811681146108ba57600080fd5b6000806040838503121561135c57600080fd5b823561136781611334565b946020939093013593505050565b60008060006060848603121561138a57600080fd5b833561139581611334565b925060208401356113a581611334565b929592945050506040919091013590565b6000602082840312156113c857600080fd5b81356113d381611334565b9392505050565b600080604083850312156113ed57600080fd5b82356113f881611334565b9150602083013561140881611334565b809150509250929050565b6000806040838503121561142657600080fd5b823561143181611334565b91506020830135801515811461140857600080fd5b600181811c9082168061145a57607f821691505b602082108103611493577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b808202811582820484141761069157610691611499565b600082611515577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b8181038181111561069157610691611499565b8082018082111561069157610691611499565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006020828403121561158157600080fd5b81516113d381611334565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156115dc5784516001600160a01b0316835293830193918301916001016115b7565b50506001600160a01b0396909616606085015250505060800152939250505056fea164736f6c6343000815000a
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000040DC8a5b1417c69b3cb5043447304190aEeaC81A
-----Decoded View---------------
Arg [0] : _owner (address): 0x40DC8a5b1417c69b3cb5043447304190aEeaC81A
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000040DC8a5b1417c69b3cb5043447304190aEeaC81A
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.