ERC-20
Overview
Max Total Supply
1,000,000,000 PRG
Holders
118
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
67,859 PRGValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
ParagonToken
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // Compatible with OpenZeppelin Contracts ^5.0.0 pragma solidity 0.8.20; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract ParagonToken is ERC20, ERC20Burnable, Ownable { mapping(address => bool) private _isExcludedFromFee; uint256 public transferFee = 500; // 5% uint256 public holdersFee = 200; // 2% uint256 public maxTxAmount = 300000000 ether; uint256 public minHolding = 100000 ether; struct Holds { uint256 since; bool active; } mapping(address => Holds) public holders; /** * @notice TransferFeeChanged event * @dev Log transfer fee changes onto the blockchain */ event TransferFeeChanged(uint256 value); /** * @notice HoldersFeeChanged event * @dev Log holders fee changes onto the blockchain */ event HoldersFeeChanged(uint256 value); /** * @notice Constructor * @param initialOwner: address of the multisig wallet */ constructor( address initialOwner ) ERC20("Paragon", "PRG") Ownable(initialOwner) { initWallets(); } /** * @notice isExcludedFromFee * @param account: account to exlude from fee * @dev Only callable by multisig wallet. */ function excludeFromFee(address account) public onlyOwner { _isExcludedFromFee[account] = true; } /** * @notice isExcludedFromFee * @param account: account to include in fee * @dev Only callable by multisig wallet. */ function includeInFee(address account) public onlyOwner { _isExcludedFromFee[account] = false; } /** * @notice isExcludedFromFee * @param account: account to check * @dev Only callable by multisig wallet. */ function isExcludedFromFee(address account) public view returns (bool) { return _isExcludedFromFee[account]; } /** * @notice setTransferFeePercent * @param value: value in base points * @dev Only callable by multisig wallet. */ function setTransferFeePercent(uint256 value) external onlyOwner { require( transferFee != value, "nothing will be changed!" ); require( value <= 500, "Not allowed value." ); transferFee = value; emit TransferFeeChanged(value); } /** * @notice setHoldersFeePercent * @param value: value in base points * @dev Only callable by multisig wallet. */ function setHoldersFeePercent(uint256 value) external onlyOwner { require( holdersFee != value, "nothing will be changed!" ); require( value <= 500, "Not allowed value." ); holdersFee = value; emit HoldersFeeChanged(value); } /** * @notice setMaxTxAmount * @param amount: amount of tokens to set as maximum for tx * @dev Only callable by multisig wallet. */ function setMaxTxAmount(uint256 amount) external onlyOwner { require( amount >= 300000000 ether, "Not allowed amount." ); maxTxAmount = amount; } /** * @notice setMinHolding * @param amount: amount of tokens to set as minimum for holders * @dev Only callable by multisig wallet. */ function setMinHolding(uint256 amount) external onlyOwner { minHolding = amount; } /** * @notice It allows the admins to get tokens sent to the contract * @param to: the address of the account to withdraw to * @param tokenAddress: the address of the token to withdraw * @dev Only callable by multisig wallet. */ function getTokens(address to, address tokenAddress) external onlyOwner { require( tokenAddress != address(0), "tokenAddress can not be zero address!" ); uint256 balance = IERC20(tokenAddress).balanceOf(address(this)); if (balance > 0) { require( IERC20(tokenAddress).transfer(to, balance), "Token transfer failed" ); } } function transfer( address to, uint256 value ) public override returns (bool) { require( value <= maxTxAmount, "Transfer amount exceeds the maxTxAmount." ); address owner = _msgSender(); uint256 fee = calculateFee(owner, to, value); if (fee > 0) { _transfer(owner, address(this), fee); value -= fee; } _transfer(owner, to, value); updateHolders(owner); updateHolders(to); return true; } function transferFrom( address from, address to, uint256 value ) public override returns (bool) { require( value <= maxTxAmount, "Transfer amount exceeds the maxTxAmount." ); address spender = _msgSender(); _spendAllowance(from, spender, value); uint256 fee = calculateFee(from, to, value); if (fee > 0) { _transfer(from, address(this), fee); value -= fee; } _transfer(from, to, value); updateHolders(from); updateHolders(to); return true; } /** * @notice calculate fee for transaction **/ function calculateFee( address from, address to, uint256 value ) internal view returns (uint256) { uint256 fee = 0; if ( !_isExcludedFromFee[from] && !_isExcludedFromFee[to] && transferFee > 0 ) { if (checkIsHolder(to)) { fee = (value * holdersFee) / 10 ** 4; } else { fee = (value * transferFee) / 10 ** 4; } } return fee; } /** * @notice Checks if account is holder * @param account: the address of the account to check */ function checkIsHolder(address account) public view returns (bool) { bool isActive = holders[account].active; uint256 since = holders[account].since; if (isActive && block.timestamp >= since + 180 days) { return true; } return false; } /** * @notice Set account as holder or no * @param account: the address of the account to set */ function updateHolders(address account) internal { if (balanceOf(account) >= minHolding) { if (!holders[account].active) { holders[account] = Holds({ since: block.timestamp, active: true }); } } else { if (holders[account].active) { holders[account] = Holds({ since: block.timestamp, active: false }); } } } /** * @notice Initial tokens mint and exlude accounts from tax */ function initWallets() private { _isExcludedFromFee[owner()] = true; _isExcludedFromFee[address(this)] = true; _isExcludedFromFee[0x3466EB008EDD8d5052446293D1a7D212cb65C646] = true; // Hedgey BatchPlanner _isExcludedFromFee[0x2CDE9919e81b20B4B33DD562a48a84b54C48F00C] = true; // Hedgey Token Vesting Plans _isExcludedFromFee[0xFe84eF236c60018690E576E601dE020170F42212] = true; // Team Wallet _isExcludedFromFee[0x09DDeA3c558d40eEAD672C0B5DF57C5eDf290764] = true; // Advisors Wallet _isExcludedFromFee[0xf1ae36028eCa0aDC5c2127f34F8E9A9Dc2A93678] = true; // COG Rebate Wallet _isExcludedFromFee[0x13ebA9e24b797DF3fC9C030a2446009aB3e7e0fF] = true; // Pre-Sale Wallet _isExcludedFromFee[0x297A7EAafe8F530BC611959992ae2dd29bBd8faA] = true; // Public Sale Wallet _isExcludedFromFee[0xd825bAD66Dfd55A48d13cEc36f6C391c08ac802e] = true; // Community Incentives Wallet _isExcludedFromFee[0xAF03c7DE1a83dE35AD0505aa907B9e33a3552052] = true; // Liquidity Wallet _isExcludedFromFee[0xfE130cdB18336575Cda0b048788ACe6a14C540c7] = true; // Treasury Wallet _isExcludedFromFee[0x5A81034911FfEC8467e19a86594fD3611537e651] = true; // Marketing Wallet _isExcludedFromFee[0xf7221F9b47e2afa1D115b796fEDc6594c32b52DD] = true; // Ecosystem Development Wallet _mint(0xFe84eF236c60018690E576E601dE020170F42212, 170000000 ether); // Team Wallet _mint(0x09DDeA3c558d40eEAD672C0B5DF57C5eDf290764, 20000000 ether); // Advisors Wallet _mint(0xf1ae36028eCa0aDC5c2127f34F8E9A9Dc2A93678, 3750000 ether); // COG Rebate Wallet _mint(0x13ebA9e24b797DF3fC9C030a2446009aB3e7e0fF, 50000000 ether); // Pre-Sale Wallet _mint(0x297A7EAafe8F530BC611959992ae2dd29bBd8faA, 86250000 ether); // Public Sale Wallet _mint(0xd825bAD66Dfd55A48d13cEc36f6C391c08ac802e, 150000000 ether); // Community Incentives Wallet _mint(0xAF03c7DE1a83dE35AD0505aa907B9e33a3552052, 70000000 ether); // Liquidity Wallet _mint(0xfE130cdB18336575Cda0b048788ACe6a14C540c7, 300000000 ether); // Treasury Wallet _mint(0x5A81034911FfEC8467e19a86594fD3611537e651, 50000000 ether); // Marketing Wallet _mint(0xf7221F9b47e2afa1D115b796fEDc6594c32b52DD, 100000000 ether); // Ecosystem Development Wallet } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface AggregatorV3Interface { function decimals() external view returns (uint8); function description() external view returns (string memory); function version() external view returns (uint256); function getRoundData( uint80 _roundId ) external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound); function latestRoundData() external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound); }
// 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) (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); }
// 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); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/ERC20Burnable.sol) pragma solidity ^0.8.20; import {ERC20} from "../ERC20.sol"; import {Context} from "../../../utils/Context.sol"; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys a `value` amount of tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 value) public virtual { _burn(_msgSender(), value); } /** * @dev Destroys a `value` amount of tokens from `account`, deducting from * the caller's allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `value`. */ function burnFrom(address account, uint256 value) public virtual { _spendAllowance(account, _msgSender(), value); _burn(account, value); } }
// 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) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. * * ==== Security Considerations * * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be * considered as an intention to spend the allowance in any specific way. The second is that because permits have * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be * generally recommended is: * * ```solidity * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public { * try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {} * doThing(..., value); * } * * function doThing(..., uint256 value) public { * token.safeTransferFrom(msg.sender, address(this), value); * ... * } * ``` * * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also * {SafeERC20-safeTransferFrom}). * * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so * contracts should have entry points that don't rely on permit. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. * * CAUTION: See Security Considerations above. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// 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/utils/SafeERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; import {IERC20Permit} from "../extensions/IERC20Permit.sol"; import {Address} from "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; /** * @dev An operation with an ERC20 token failed. */ error SafeERC20FailedOperation(address token); /** * @dev Indicates a failed `decreaseAllowance` request. */ error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease); /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value))); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value))); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); forceApprove(token, spender, oldAllowance + value); } /** * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no * value, non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal { unchecked { uint256 currentAllowance = token.allowance(address(this), spender); if (currentAllowance < requestedDecrease) { revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease); } forceApprove(token, spender, currentAllowance - requestedDecrease); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval * to be set to zero before setting it to a non-zero value, such as USDT. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value)); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0))); _callOptionalReturn(token, approvalCall); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data); if (returndata.length != 0 && !abi.decode(returndata, (bool))) { revert SafeERC20FailedOperation(address(token)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol) pragma solidity ^0.8.20; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev The ETH balance of the account is not enough to perform the operation. */ error AddressInsufficientBalance(address account); /** * @dev There's no code at `target` (it is not a contract). */ error AddressEmptyCode(address target); /** * @dev A call to an address target failed. The target may have reverted. */ error FailedInnerCall(); /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { if (address(this).balance < amount) { revert AddressInsufficientBalance(address(this)); } (bool success, ) = recipient.call{value: amount}(""); if (!success) { revert FailedInnerCall(); } } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason or custom error, it is bubbled * up by this function (like regular Solidity function calls). However, if * the call reverted with no returned reason, this function reverts with a * {FailedInnerCall} error. * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { if (address(this).balance < value) { revert AddressInsufficientBalance(address(this)); } (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an * unsuccessful call. */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata ) internal view returns (bytes memory) { if (!success) { _revert(returndata); } else { // only check if target is a contract if the call was successful and the return data is empty // otherwise we already know that it was a contract if (returndata.length == 0 && target.code.length == 0) { revert AddressEmptyCode(target); } return returndata; } } /** * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the * revert reason or with a default {FailedInnerCall} error. */ function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) { if (!success) { _revert(returndata); } else { return returndata; } } /** * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}. */ function _revert(bytes memory returndata) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert FailedInnerCall(); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (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; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.20; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.sol"; /** @title TokenSale. * @notice It is a contract to sale tokens */ contract TokenSale { using SafeERC20 for IERC20; IERC20 public immutable token; address public immutable multisig; bool public isSaleActive; uint256 public tokensSold; AggregatorV3Interface internal priceFeed; modifier onlyMultisig() { require( msg.sender == multisig, "Only multisig wallet can perfrom this action" ); _; } /** * @notice SoldTokens event * @dev Log tokens bought onto the blockchain */ event SoldTokens(address indexed to, uint256 value); /** * @notice StatusChanged event * @dev Log sale status changes onto the blockchain */ event StatusChanged(bool isActive); /** * @notice Constructor * @param tokenAddr: address of the Token * @param wallet: address of the multisig wallet */ constructor(address tokenAddr, address wallet) { require(tokenAddr != address(0), "tokenAddr can not be zero address!"); require(wallet != address(0), "wallet can not be zero address!"); token = IERC20(tokenAddr); multisig = wallet; isSaleActive = true; priceFeed = AggregatorV3Interface( 0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419 ); } /** * @dev Receive function if ETH is sent to address insted of buyTokens function **/ receive() external payable { buyTokens(); } /** * @notice buyTokens * @dev function that sells available tokens **/ function buyTokens() public payable { require(isSaleActive, "token sale is not active!"); uint256 tokens = calcTokensQty(msg.value); require( token.balanceOf(address(this)) >= tokens, "not enough tokens to sell!" ); token.safeTransfer(msg.sender, tokens); tokensSold += tokens; emit SoldTokens(msg.sender, tokens); } function calcTokensQty(uint256 amountETH) public view returns (uint256) { uint256 ethUsd = getLatestPrice(); uint256 amountUSD = (amountETH * ethUsd) / 1000000000000000000; uint256 tokenPrice = getRate(); uint256 amountToken = amountUSD * 10 ** 13 / tokenPrice; return amountToken; } /** * @notice getRate * @dev function returns rate **/ function getRate() public view returns (uint256) { if (tokensSold > 48600000 ether) { return 39; } else if ( tokensSold > 43200000 ether ) { return 38; } else if ( tokensSold > 37800000 ether ) { return 37; } else if ( tokensSold > 32400000 ether ) { return 36; } else if ( tokensSold > 27000000 ether ) { return 35; } else if ( tokensSold > 21600000 ether ) { return 34; } else if ( tokensSold > 16200000 ether ) { return 33; } else if ( tokensSold > 10800000 ether ) { return 32; } else if ( tokensSold > 5400000 ether ) { return 31; } else { return 30; } } function getLatestPrice() public view returns (uint256) { (, int price, , , ) = priceFeed.latestRoundData(); return uint256(price); } /** * @notice tokensAvailable * @dev returns the number of tokens allocated to this contract **/ function tokensAvailable() external view returns (uint256) { return token.balanceOf(address(this)); } /** * @notice Allow to change salling status * @dev Only callable by multisig wallet. */ function changeActiveStatus(bool isActive) external onlyMultisig { require( isSaleActive != isActive, "nothing will be changed!" ); isSaleActive = isActive; emit StatusChanged(isActive); } /** * @notice It allows the admins to get collected ETH * @dev Only callable by multisig wallet. */ function withdraw() external onlyMultisig { require(payable(msg.sender).send(address(this).balance)); } /** * @notice It allows the admins to get tokens sent to the contract * @param tokenAddress: the address of the token to withdraw * @param tokenAmount: the number of token amount to withdraw * @dev Only callable by multisig wallet. */ function recoverTokens( address tokenAddress, uint256 tokenAmount ) external onlyMultisig { require( tokenAddress != address(0), "tokenAddress can not be zero address!" ); IERC20(tokenAddress).safeTransfer(address(msg.sender), tokenAmount); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"initialOwner","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":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","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":"uint256","name":"value","type":"uint256"}],"name":"HoldersFeeChanged","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferFeeChanged","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":"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":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"checkIsHolder","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":"account","type":"address"}],"name":"excludeFromFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"getTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"holders","outputs":[{"internalType":"uint256","name":"since","type":"uint256"},{"internalType":"bool","name":"active","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"holdersFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"includeInFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTxAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minHolding","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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setHoldersFeePercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMaxTxAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMinHolding","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setTransferFeePercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"transferFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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"}]
Contract Creation Code
60806040526101f460075560c86008556af8277896582678ac00000060095569152d02c7e14af6800000600a553480156200003957600080fd5b5060405162001b6c38038062001b6c8339810160408190526200005c91620006db565b80604051806040016040528060078152602001662830b930b3b7b760c91b8152506040518060400160405280600381526020016250524760e81b8152508160039081620000aa9190620007b2565b506004620000b98282620007b2565b5050506001600160a01b038116620000ec57604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b620000f78162000109565b50620001026200015b565b50620008a6565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600160066000620001746005546001600160a01b031690565b6001600160a01b0316815260208082019290925260409081016000908120805494151560ff19958616179055308152600690925281208054831660019081179091557f6b1cc358be128b465d2846eac2a748cdd16ba02228060a61dabe2177c2c0143d80548416821790557f295705eb6831cee3713aa34375fcaef025421ea25c134f0a3b0246f5b782922880548416821790557f0be550fd6ebad8a6952c0cbd51fb4a7cc92d9dcbb99f5015daf4beed5836c6cc80548416821790557ffe158e64a312db07c10df9a5e981e6b2c2e6731fc99e88dae22dbf5000eb3cc780548416821790557f51b75c68609ac74d9f1df6729c24bd0da9b96b7559329127aa7ca74c8c73ffd980548416821790557f2a4a876c0508ab58596bc60970b3cfb18d3114b6ccdf5ed552c1a581aa27a22d80548416821790557fb758ab22fa166fcca7b48cf532a63c631d0639790143002c69fbd5493e64563280548416821790557fe43fe46a6c663cb00b6d213d11322801bd3ef6d346022396a7d8f126b83677a880548416821790557fefdefd3d914ccd30b8571dda6ce45345e9bcd886db84300a2deb79e56528d14c80548416821790557f1b6431ea2ab3aaeda0dacc11db2889d3079c2a06fd8367f0a7011b76095d212d80548416821790557f2145c9549ea03d0f3b872e76c6d8e7e547587b09cea8826e19034258ee328660805484168217905573f7221f9b47e2afa1d115b796fedc6594c32b52dd9091527f15baad524090fd0f7b6e36bb6d816276cd7a3c3f083a3c4c956514f3247245de8054909216179055620003e573fe84ef236c60018690e576e601de020170f422126a8c9ee6775415ccea0000006200056a565b620004107309ddea3c558d40eead672c0b5df57c5edf2907646a108b2a2c280290940000006200056a565b6200043b73f1ae36028eca0adc5c2127f34f8e9a9dc2a936786a031a17e847807b1bc000006200056a565b620004667313eba9e24b797df3fc9c030a2446009ab3e7e0ff6a295be96e640669720000006200056a565b6200049173297a7eaafe8f530bc611959992ae2dd29bbd8faa6a475825de6c8b0f7e4000006200056a565b620004bc73d825bad66dfd55a48d13cec36f6c391c08ac802e6a7c13bc4b2c133c560000006200056a565b620004e773af03c7de1a83de35ad0505aa907b9e33a35520526a39e7139a8c08fa060000006200056a565b6200051273fe130cdb18336575cda0b048788ace6a14c540c76af8277896582678ac0000006200056a565b6200053d735a81034911ffec8467e19a86594fd3611537e6516a295be96e640669720000006200056a565b6200056873f7221f9b47e2afa1d115b796fedc6594c32b52dd6a52b7d2dcc80cd2e40000006200056a565b565b6001600160a01b038216620005965760405163ec442f0560e01b815260006004820152602401620000e3565b620005a460008383620005a8565b5050565b6001600160a01b038316620005d7578060026000828254620005cb91906200087e565b909155506200064b9050565b6001600160a01b038316600090815260208190526040902054818110156200062c5760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401620000e3565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b038216620006695760028054829003905562000688565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051620006ce91815260200190565b60405180910390a3505050565b600060208284031215620006ee57600080fd5b81516001600160a01b03811681146200070657600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200073857607f821691505b6020821081036200075957634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620007ad57600081815260208120601f850160051c81016020861015620007885750805b601f850160051c820191505b81811015620007a95782815560010162000794565b5050505b505050565b81516001600160401b03811115620007ce57620007ce6200070d565b620007e681620007df845462000723565b846200075f565b602080601f8311600181146200081e5760008415620008055750858301515b600019600386901b1c1916600185901b178555620007a9565b600085815260208120601f198616915b828110156200084f578886015182559484019460019091019084016200082e565b50858210156200086e5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b80820180821115620008a057634e487b7160e01b600052601160045260246000fd5b92915050565b6112b680620008b66000396000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c8063715018a6116100f9578063a9059cbb11610097578063dd62ed3e11610071578063dd62ed3e146103ce578063ea2f0b3714610407578063ec28438a1461041a578063f2fde38b1461042d57600080fd5b8063a9059cbb146103a9578063acb2ad6f146103bc578063bbed0e84146103c557600080fd5b80638c0b5e22116100d35780638c0b5e221461036a5780638d0e8e1d146103735780638da5cb5b1461038657806395d89b41146103a157600080fd5b8063715018a61461033c57806379cc67901461034457806388d2e2571461035757600080fd5b8063313ce5671161016657806346870d2b1161014057806346870d2b146102cb5780634e45feb2146102d45780635342acb4146102e757806370a082311461031357600080fd5b8063313ce5671461029657806342966c68146102a5578063437823ec146102b857600080fd5b806318160ddd116101a257806318160ddd1461021d57806318a5bbdc1461022f5780631f36d9251461026e57806323b872dd1461028357600080fd5b806306fdde03146101c9578063095ea7b3146101e7578063114c49de1461020a575b600080fd5b6101d1610440565b6040516101de9190611010565b60405180910390f35b6101fa6101f536600461107a565b6104d2565b60405190151581526020016101de565b6101fa6102183660046110a4565b6104ec565b6002545b6040519081526020016101de565b61025961023d3660046110a4565b600b602052600090815260409020805460019091015460ff1682565b604080519283529015156020830152016101de565b61028161027c3660046110c6565b610543565b005b6101fa6102913660046110df565b61061f565b604051601281526020016101de565b6102816102b33660046110c6565b6106a5565b6102816102c63660046110a4565b6106b2565b61022160085481565b6102816102e23660046110c6565b6106de565b6101fa6102f53660046110a4565b6001600160a01b031660009081526006602052604090205460ff1690565b6102216103213660046110a4565b6001600160a01b031660009081526020819052604090205490565b6102816106eb565b61028161035236600461107a565b6106ff565b6102816103653660046110c6565b610718565b61022160095481565b61028161038136600461111b565b6107e8565b6005546040516001600160a01b0390911681526020016101de565b6101d1610983565b6101fa6103b736600461107a565b610992565b61022160075481565b610221600a5481565b6102216103dc36600461111b565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6102816104153660046110a4565b610a0c565b6102816104283660046110c6565b610a35565b61028161043b3660046110a4565b610a93565b60606003805461044f9061114e565b80601f016020809104026020016040519081016040528092919081815260200182805461047b9061114e565b80156104c85780601f1061049d576101008083540402835291602001916104c8565b820191906000526020600020905b8154815290600101906020018083116104ab57829003601f168201915b5050505050905090565b6000336104e0818585610ace565b60019150505b92915050565b6001600160a01b0381166000908152600b602052604081206001810154905460ff9091169081801561052a57506105268162ed4e0061119e565b4210155b15610539575060019392505050565b5060009392505050565b61054b610adb565b806007540361059c5760405162461bcd60e51b81526020600482015260186024820152776e6f7468696e672077696c6c206265206368616e6765642160401b60448201526064015b60405180910390fd5b6101f48111156105e35760405162461bcd60e51b81526020600482015260126024820152712737ba1030b63637bbb2b2103b30b63ab29760711b6044820152606401610593565b60078190556040518181527f0496ed1e61eb69727f9659a8e859288db4758ffb1f744d1c1424634f90a257f4906020015b60405180910390a150565b60006009548211156106435760405162461bcd60e51b8152600401610593906111b1565b3361064f858285610b08565b600061065c868686610b86565b9050801561067c5761066f863083610c33565b61067981856111f9565b93505b610687868686610c33565b61069086610c92565b61069985610c92565b50600195945050505050565b6106af3382610d89565b50565b6106ba610adb565b6001600160a01b03166000908152600660205260409020805460ff19166001179055565b6106e6610adb565b600a55565b6106f3610adb565b6106fd6000610dbf565b565b61070a823383610b08565b6107148282610d89565b5050565b610720610adb565b806008540361076c5760405162461bcd60e51b81526020600482015260186024820152776e6f7468696e672077696c6c206265206368616e6765642160401b6044820152606401610593565b6101f48111156107b35760405162461bcd60e51b81526020600482015260126024820152712737ba1030b63637bbb2b2103b30b63ab29760711b6044820152606401610593565b60088190556040518181527f314d54a44a51d3687a204679f09d7b82b90176ee7de1e521190acc4bbb4eec0c90602001610614565b6107f0610adb565b6001600160a01b0381166108545760405162461bcd60e51b815260206004820152602560248201527f746f6b656e416464726573732063616e206e6f74206265207a65726f20616464604482015264726573732160d81b6064820152608401610593565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa15801561089b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108bf919061120c565b9050801561097e5760405163a9059cbb60e01b81526001600160a01b0384811660048301526024820183905283169063a9059cbb906044016020604051808303816000875af1158015610916573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061093a9190611225565b61097e5760405162461bcd60e51b8152602060048201526015602482015274151bdad95b881d1c985b9cd9995c8819985a5b1959605a1b6044820152606401610593565b505050565b60606004805461044f9061114e565b60006009548211156109b65760405162461bcd60e51b8152600401610593906111b1565b3360006109c4828686610b86565b905080156109e4576109d7823083610c33565b6109e181856111f9565b93505b6109ef828686610c33565b6109f882610c92565b610a0185610c92565b506001949350505050565b610a14610adb565b6001600160a01b03166000908152600660205260409020805460ff19169055565b610a3d610adb565b6af8277896582678ac000000811015610a8e5760405162461bcd60e51b81526020600482015260136024820152722737ba1030b63637bbb2b21030b6b7bab73a1760691b6044820152606401610593565b600955565b610a9b610adb565b6001600160a01b038116610ac557604051631e4fbdf760e01b815260006004820152602401610593565b6106af81610dbf565b61097e8383836001610e11565b6005546001600160a01b031633146106fd5760405163118cdaa760e01b8152336004820152602401610593565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610b805781811015610b7157604051637dc7a0d960e11b81526001600160a01b03841660048201526024810182905260448101839052606401610593565b610b8084848484036000610e11565b50505050565b6001600160a01b038316600090815260066020526040812054819060ff16158015610bca57506001600160a01b03841660009081526006602052604090205460ff16155b8015610bd857506000600754115b15610c2b57610be6846104ec565b15610c0d5761271060085484610bfc9190611247565b610c06919061125e565b9050610c2b565b61271060075484610c1e9190611247565b610c28919061125e565b90505b949350505050565b6001600160a01b038316610c5d57604051634b637e8f60e11b815260006004820152602401610593565b6001600160a01b038216610c875760405163ec442f0560e01b815260006004820152602401610593565b61097e838383610ee6565b600a546001600160a01b03821660009081526020819052604090205410610d1d576001600160a01b0381166000908152600b602052604090206001015460ff166106af57604080518082018252428152600160208083018281526001600160a01b0386166000908152600b9092529390209151825591519101805460ff191691151591909117905550565b6001600160a01b0381166000908152600b602052604090206001015460ff16156106af57604080518082018252428152600060208083018281526001600160a01b03959095168252600b9052919091209051815590516001909101805460ff1916911515919091179055565b6001600160a01b038216610db357604051634b637e8f60e11b815260006004820152602401610593565b61071482600083610ee6565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038416610e3b5760405163e602df0560e01b815260006004820152602401610593565b6001600160a01b038316610e6557604051634a1406b160e11b815260006004820152602401610593565b6001600160a01b0380851660009081526001602090815260408083209387168352929052208290558015610b8057826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610ed891815260200190565b60405180910390a350505050565b6001600160a01b038316610f11578060026000828254610f06919061119e565b90915550610f839050565b6001600160a01b03831660009081526020819052604090205481811015610f645760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610593565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b038216610f9f57600280548290039055610fbe565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161100391815260200190565b60405180910390a3505050565b600060208083528351808285015260005b8181101561103d57858101830151858201604001528201611021565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461107557600080fd5b919050565b6000806040838503121561108d57600080fd5b6110968361105e565b946020939093013593505050565b6000602082840312156110b657600080fd5b6110bf8261105e565b9392505050565b6000602082840312156110d857600080fd5b5035919050565b6000806000606084860312156110f457600080fd5b6110fd8461105e565b925061110b6020850161105e565b9150604084013590509250925092565b6000806040838503121561112e57600080fd5b6111378361105e565b91506111456020840161105e565b90509250929050565b600181811c9082168061116257607f821691505b60208210810361118257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156104e6576104e6611188565b60208082526028908201527f5472616e7366657220616d6f756e74206578636565647320746865206d6178546040820152673c20b6b7bab73a1760c11b606082015260800190565b818103818111156104e6576104e6611188565b60006020828403121561121e57600080fd5b5051919050565b60006020828403121561123757600080fd5b815180151581146110bf57600080fd5b80820281158282048414176104e6576104e6611188565b60008261127b57634e487b7160e01b600052601260045260246000fd5b50049056fea26469706673582212205ff80d9cb0b11518bd34d10acef75bbe3665f773271875f82e96566e515cca0e64736f6c63430008140033000000000000000000000000fe84ef236c60018690e576e601de020170f42212
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101c45760003560e01c8063715018a6116100f9578063a9059cbb11610097578063dd62ed3e11610071578063dd62ed3e146103ce578063ea2f0b3714610407578063ec28438a1461041a578063f2fde38b1461042d57600080fd5b8063a9059cbb146103a9578063acb2ad6f146103bc578063bbed0e84146103c557600080fd5b80638c0b5e22116100d35780638c0b5e221461036a5780638d0e8e1d146103735780638da5cb5b1461038657806395d89b41146103a157600080fd5b8063715018a61461033c57806379cc67901461034457806388d2e2571461035757600080fd5b8063313ce5671161016657806346870d2b1161014057806346870d2b146102cb5780634e45feb2146102d45780635342acb4146102e757806370a082311461031357600080fd5b8063313ce5671461029657806342966c68146102a5578063437823ec146102b857600080fd5b806318160ddd116101a257806318160ddd1461021d57806318a5bbdc1461022f5780631f36d9251461026e57806323b872dd1461028357600080fd5b806306fdde03146101c9578063095ea7b3146101e7578063114c49de1461020a575b600080fd5b6101d1610440565b6040516101de9190611010565b60405180910390f35b6101fa6101f536600461107a565b6104d2565b60405190151581526020016101de565b6101fa6102183660046110a4565b6104ec565b6002545b6040519081526020016101de565b61025961023d3660046110a4565b600b602052600090815260409020805460019091015460ff1682565b604080519283529015156020830152016101de565b61028161027c3660046110c6565b610543565b005b6101fa6102913660046110df565b61061f565b604051601281526020016101de565b6102816102b33660046110c6565b6106a5565b6102816102c63660046110a4565b6106b2565b61022160085481565b6102816102e23660046110c6565b6106de565b6101fa6102f53660046110a4565b6001600160a01b031660009081526006602052604090205460ff1690565b6102216103213660046110a4565b6001600160a01b031660009081526020819052604090205490565b6102816106eb565b61028161035236600461107a565b6106ff565b6102816103653660046110c6565b610718565b61022160095481565b61028161038136600461111b565b6107e8565b6005546040516001600160a01b0390911681526020016101de565b6101d1610983565b6101fa6103b736600461107a565b610992565b61022160075481565b610221600a5481565b6102216103dc36600461111b565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6102816104153660046110a4565b610a0c565b6102816104283660046110c6565b610a35565b61028161043b3660046110a4565b610a93565b60606003805461044f9061114e565b80601f016020809104026020016040519081016040528092919081815260200182805461047b9061114e565b80156104c85780601f1061049d576101008083540402835291602001916104c8565b820191906000526020600020905b8154815290600101906020018083116104ab57829003601f168201915b5050505050905090565b6000336104e0818585610ace565b60019150505b92915050565b6001600160a01b0381166000908152600b602052604081206001810154905460ff9091169081801561052a57506105268162ed4e0061119e565b4210155b15610539575060019392505050565b5060009392505050565b61054b610adb565b806007540361059c5760405162461bcd60e51b81526020600482015260186024820152776e6f7468696e672077696c6c206265206368616e6765642160401b60448201526064015b60405180910390fd5b6101f48111156105e35760405162461bcd60e51b81526020600482015260126024820152712737ba1030b63637bbb2b2103b30b63ab29760711b6044820152606401610593565b60078190556040518181527f0496ed1e61eb69727f9659a8e859288db4758ffb1f744d1c1424634f90a257f4906020015b60405180910390a150565b60006009548211156106435760405162461bcd60e51b8152600401610593906111b1565b3361064f858285610b08565b600061065c868686610b86565b9050801561067c5761066f863083610c33565b61067981856111f9565b93505b610687868686610c33565b61069086610c92565b61069985610c92565b50600195945050505050565b6106af3382610d89565b50565b6106ba610adb565b6001600160a01b03166000908152600660205260409020805460ff19166001179055565b6106e6610adb565b600a55565b6106f3610adb565b6106fd6000610dbf565b565b61070a823383610b08565b6107148282610d89565b5050565b610720610adb565b806008540361076c5760405162461bcd60e51b81526020600482015260186024820152776e6f7468696e672077696c6c206265206368616e6765642160401b6044820152606401610593565b6101f48111156107b35760405162461bcd60e51b81526020600482015260126024820152712737ba1030b63637bbb2b2103b30b63ab29760711b6044820152606401610593565b60088190556040518181527f314d54a44a51d3687a204679f09d7b82b90176ee7de1e521190acc4bbb4eec0c90602001610614565b6107f0610adb565b6001600160a01b0381166108545760405162461bcd60e51b815260206004820152602560248201527f746f6b656e416464726573732063616e206e6f74206265207a65726f20616464604482015264726573732160d81b6064820152608401610593565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa15801561089b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108bf919061120c565b9050801561097e5760405163a9059cbb60e01b81526001600160a01b0384811660048301526024820183905283169063a9059cbb906044016020604051808303816000875af1158015610916573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061093a9190611225565b61097e5760405162461bcd60e51b8152602060048201526015602482015274151bdad95b881d1c985b9cd9995c8819985a5b1959605a1b6044820152606401610593565b505050565b60606004805461044f9061114e565b60006009548211156109b65760405162461bcd60e51b8152600401610593906111b1565b3360006109c4828686610b86565b905080156109e4576109d7823083610c33565b6109e181856111f9565b93505b6109ef828686610c33565b6109f882610c92565b610a0185610c92565b506001949350505050565b610a14610adb565b6001600160a01b03166000908152600660205260409020805460ff19169055565b610a3d610adb565b6af8277896582678ac000000811015610a8e5760405162461bcd60e51b81526020600482015260136024820152722737ba1030b63637bbb2b21030b6b7bab73a1760691b6044820152606401610593565b600955565b610a9b610adb565b6001600160a01b038116610ac557604051631e4fbdf760e01b815260006004820152602401610593565b6106af81610dbf565b61097e8383836001610e11565b6005546001600160a01b031633146106fd5760405163118cdaa760e01b8152336004820152602401610593565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610b805781811015610b7157604051637dc7a0d960e11b81526001600160a01b03841660048201526024810182905260448101839052606401610593565b610b8084848484036000610e11565b50505050565b6001600160a01b038316600090815260066020526040812054819060ff16158015610bca57506001600160a01b03841660009081526006602052604090205460ff16155b8015610bd857506000600754115b15610c2b57610be6846104ec565b15610c0d5761271060085484610bfc9190611247565b610c06919061125e565b9050610c2b565b61271060075484610c1e9190611247565b610c28919061125e565b90505b949350505050565b6001600160a01b038316610c5d57604051634b637e8f60e11b815260006004820152602401610593565b6001600160a01b038216610c875760405163ec442f0560e01b815260006004820152602401610593565b61097e838383610ee6565b600a546001600160a01b03821660009081526020819052604090205410610d1d576001600160a01b0381166000908152600b602052604090206001015460ff166106af57604080518082018252428152600160208083018281526001600160a01b0386166000908152600b9092529390209151825591519101805460ff191691151591909117905550565b6001600160a01b0381166000908152600b602052604090206001015460ff16156106af57604080518082018252428152600060208083018281526001600160a01b03959095168252600b9052919091209051815590516001909101805460ff1916911515919091179055565b6001600160a01b038216610db357604051634b637e8f60e11b815260006004820152602401610593565b61071482600083610ee6565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038416610e3b5760405163e602df0560e01b815260006004820152602401610593565b6001600160a01b038316610e6557604051634a1406b160e11b815260006004820152602401610593565b6001600160a01b0380851660009081526001602090815260408083209387168352929052208290558015610b8057826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610ed891815260200190565b60405180910390a350505050565b6001600160a01b038316610f11578060026000828254610f06919061119e565b90915550610f839050565b6001600160a01b03831660009081526020819052604090205481811015610f645760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610593565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b038216610f9f57600280548290039055610fbe565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161100391815260200190565b60405180910390a3505050565b600060208083528351808285015260005b8181101561103d57858101830151858201604001528201611021565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461107557600080fd5b919050565b6000806040838503121561108d57600080fd5b6110968361105e565b946020939093013593505050565b6000602082840312156110b657600080fd5b6110bf8261105e565b9392505050565b6000602082840312156110d857600080fd5b5035919050565b6000806000606084860312156110f457600080fd5b6110fd8461105e565b925061110b6020850161105e565b9150604084013590509250925092565b6000806040838503121561112e57600080fd5b6111378361105e565b91506111456020840161105e565b90509250929050565b600181811c9082168061116257607f821691505b60208210810361118257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156104e6576104e6611188565b60208082526028908201527f5472616e7366657220616d6f756e74206578636565647320746865206d6178546040820152673c20b6b7bab73a1760c11b606082015260800190565b818103818111156104e6576104e6611188565b60006020828403121561121e57600080fd5b5051919050565b60006020828403121561123757600080fd5b815180151581146110bf57600080fd5b80820281158282048414176104e6576104e6611188565b60008261127b57634e487b7160e01b600052601260045260246000fd5b50049056fea26469706673582212205ff80d9cb0b11518bd34d10acef75bbe3665f773271875f82e96566e515cca0e64736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000fe84ef236c60018690e576e601de020170f42212
-----Decoded View---------------
Arg [0] : initialOwner (address): 0xFe84eF236c60018690E576E601dE020170F42212
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000fe84ef236c60018690e576e601de020170f42212
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.