ERC-20
Overview
Max Total Supply
10,000,000,000,000 FINU
Holders
29
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
51,359,627,528.333185883466796038 FINUValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
SwappableERC20
Compiler Version
v0.8.24+commit.e11b9ed9
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2024-02-29 */ // SPDX-License-Identifier: MIT // Sources flattened with hardhat v2.19.5 https://hardhat.org // File @openzeppelin/contracts/utils/[email protected] // Original license: 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; } } // File @openzeppelin/contracts/access/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; /** * @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); } } // File @openzeppelin/contracts/interfaces/[email protected] // Original license: 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); } // File @openzeppelin/contracts/token/ERC20/[email protected] // Original license: 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); } // File @openzeppelin/contracts/token/ERC20/extensions/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.20; /** * @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); } // File @openzeppelin/contracts/token/ERC20/[email protected] // Original license: SPDX_License_Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.20; /** * @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); } } } } // File @uniswap/v2-periphery/contracts/interfaces/[email protected] pragma solidity >=0.6.2; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); } // File @uniswap/v2-periphery/contracts/interfaces/[email protected] pragma solidity >=0.6.2; interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; } // File contracts/access/TokenOwner.sol // Original license: SPDX_License_Identifier: MIT pragma solidity ^0.8.20; /** * @title TokenOwner * @dev Ownable contract with deployer set as initial owner. */ abstract contract TokenOwner is Ownable { /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() Ownable(_msgSender()) {} } // File contracts/token/ERC20/extensions/ERC20AntiWhale.sol // Original license: SPDX_License_Identifier: MIT pragma solidity ^0.8.20; /** * @title ERC20AntiWhale * @dev Extension of ERC20 that adds limit at users balance. */ abstract contract ERC20AntiWhale is ERC20 { // the percent rate for balance limit uint8 private _balanceLimitRate; // mapping of exclusion status for each address mapping(address => bool) private _isExcludedFromBalanceLimit; /** * @dev Indicates an error setting the balance limit. * @param balanceLimitRate New balance limit that is wanted to set. */ error ERC20AntiWhaleInvalidBalanceLimit(uint8 balanceLimitRate); /** * @dev Indicates an error setting the balance limit. * @param receiver Address to which tokens are being transferred. * @param newBalance New balance for the interacting account. * @param maxAllowedBalance Maximum amount allowed to perform a transfer. */ error ERC20AntiWhaleExceededBalanceLimit(address receiver, uint256 newBalance, uint256 maxAllowedBalance); /** * @dev Sets the value of the `_balanceLimitRate` and exclude the deployer. */ constructor(uint8 balanceLimitRate_) { _setBalanceLimit(balanceLimitRate_); _setExclusionFromBalanceLimit(_msgSender(), true); } /** * @dev Returns the percent rate of the balance limit. */ function balanceLimitPercent() external view returns (uint8) { return _balanceLimitRate; } /** * @dev Returns the status of exclusion from balance limit for a given account. */ function isExcludedFromBalanceLimit(address account) external view returns (bool) { return _isExcludedFromBalanceLimit[account]; } /** * @dev Sets the amount of balance limit percent. * * WARNING: it allows everyone to set the limit. Access controls MUST be defined in derived contracts. * * @param balanceLimitPercent_ The amount of balance limit percent. */ function _setBalanceLimit(uint8 balanceLimitPercent_) internal virtual { if (!(balanceLimitPercent_ > 0 && balanceLimitPercent_ <= 100)) { revert ERC20AntiWhaleInvalidBalanceLimit(balanceLimitPercent_); } _balanceLimitRate = balanceLimitPercent_; } /** * @dev Sets the exclusion status from balance limit (receiving only). * * WARNING: it allows everyone to set the status. Access controls MUST be defined in derived contracts. * * @param account_ The address that will be excluded or not. * @param status_ The status of exclusion. */ function _setExclusionFromBalanceLimit(address account_, bool status_) internal virtual { _isExcludedFromBalanceLimit[account_] = status_; } /** * @dev Requires that recipient's token balance do not exceeded the limit or that recipient is excluded from that control. * Otherwise revert a transfer. */ function _update(address from, address to, uint256 value) internal virtual override { if (_balanceLimitRate != 100 && !_isExcludedFromBalanceLimit[to]) { uint256 newBalance = balanceOf(to) + value; uint256 maxAllowedBalance = (totalSupply() * _balanceLimitRate) / 100; if (newBalance > maxAllowedBalance) { revert ERC20AntiWhaleExceededBalanceLimit(to, newBalance, maxAllowedBalance); } } super._update(from, to, value); } } // File @uniswap/v2-core/contracts/interfaces/[email protected] pragma solidity >=0.5.0; interface IUniswapV2Factory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; } // File contracts/token/ERC20/extensions/ERC20Liquid.sol // Original license: SPDX_License_Identifier: MIT pragma solidity ^0.8.20; /** * @title ERC20Liquid * @dev Extension of ERC20 that creates a ETH/TOKEN pair on UniswapV2 Protocol. */ abstract contract ERC20Liquid is ERC20 { // the address of the Uniswap V2 Router IUniswapV2Router02 private immutable _uniswapV2Router; // the address of the ETH/TOKEN pair on UniswapV2 Protocol. address private immutable _uniswapV2Pair; // indicates if liquidity is initialized bool private _liquidityInitialized; /** * @dev Sets the value of the `_uniswapV2Router`. * Creates the UniswapV2 Pair for current token with WETH. */ constructor(address uniswapV2Router_) { require(uniswapV2Router_ != address(0), "uniswapV2Router cannot be the zero address"); _uniswapV2Router = IUniswapV2Router02(uniswapV2Router_); _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair( address(this), _uniswapV2Router.WETH() ); } /** * @dev Returns the UniswapV2 Pair address for current token with WETH. */ function uniswapV2Pair() public view returns (address) { return _uniswapV2Pair; } /** * @dev Add the initial liquidity to the UniswapV2 Pair and transfer remaining balance to `msg.sender`. * Can only be called once. * * WARNING: it allows everyone to initialize the liquidity. Access controls MUST be defined in derived contracts. * * @param initialLiquidity_ The amount of tokens to be put in initial liquidity. * @param lockLiquidity_ A boolean indicating if LP tokens will be locked in contract or sent to contract owner. */ function _initLiquidity(uint256 initialLiquidity_, bool lockLiquidity_) internal { require(!_liquidityInitialized, "Already initialized"); require(initialLiquidity_ > 0, "Initial liquidity cannot be zero"); require(initialLiquidity_ <= totalSupply(), "Liquidity cannot be greater than supply"); _liquidityInitialized = true; super._transfer(address(this), _msgSender(), (totalSupply() - initialLiquidity_)); super._approve(address(this), address(_uniswapV2Router), initialLiquidity_); _uniswapV2Router.addLiquidityETH{value: msg.value}( address(this), initialLiquidity_, 0, 0, lockLiquidity_ ? address(this) : _msgSender(), block.timestamp ); } } // File contracts/service/ServicePayer.sol // Original license: SPDX_License_Identifier: MIT pragma solidity ^0.8.20; /** * @title IPayable */ interface IPayable { function pay(string calldata serviceName, bytes calldata signature, address wallet) external payable; } /** * @title ServicePayer * @dev Utility contract to pay the deployment fee. Used only during construction. */ abstract contract ServicePayer { constructor(address payable receiver, string memory serviceName, bytes memory signature, address wallet) payable { IPayable(receiver).pay{value: msg.value}(serviceName, signature, wallet); } } // File contracts/token/ERC20/SwappableERC20.sol // Original license: SPDX_License_Identifier: MIT pragma solidity ^0.8.20; /** * @title SwappableERC20 * @dev Implementation of the SwappableERC20. */ contract SwappableERC20 is ERC20AntiWhale, ERC20Liquid, TokenOwner, ServicePayer { constructor( string memory name_, string memory symbol_, uint256 initialBalance_, uint8 balanceLimitRate_, address uniswapV2Router_, bytes memory signature_, address payable feeReceiver_ ) payable ERC20(name_, symbol_) ERC20AntiWhale(balanceLimitRate_) ERC20Liquid(uniswapV2Router_) ServicePayer(feeReceiver_, "SwappableERC20", signature_, _msgSender()) { require(initialBalance_ > 0, "Initial supply cannot be zero"); _setExclusionFromBalanceLimit(address(this), true); _setExclusionFromBalanceLimit(uniswapV2Pair(), true); _mint(address(this), initialBalance_); } /** * @dev Sets the amount of balance limit percent. * * NOTE: restricting access to owner only. See `ERC20AntiWhale::_setBalanceLimit`. * * @param balanceLimitPercent The amount of balance limit percent. */ function setBalanceLimitPercent(uint8 balanceLimitPercent) external onlyOwner { super._setBalanceLimit(balanceLimitPercent); } /** * @dev Sets the exclusion status from balance limit (receiving only). * * NOTE: restricting access to owner only. See `ERC20AntiWhale::_setExclusionFromBalanceLimit`. * * @param account The address that will be excluded or not. * @param status The status of exclusion. */ function setExclusionFromBalanceLimit(address account, bool status) external onlyOwner { super._setExclusionFromBalanceLimit(account, status); } /** * @dev Add the initial liquidity to the UniswapV2 Pair and transfer remaining balance to `msg.sender`. * Can only be called once. * * NOTE: restricting access to owner only. See `ERC20Liquid::_initLiquidity`. * * @param initialLiquidity The amount of tokens to be put in initial liquidity. * @param lockLiquidity A boolean indicating if LP tokens will be locked in contract or sent to contract owner. */ function initLiquidity(uint256 initialLiquidity, bool lockLiquidity) external payable onlyOwner { super._initLiquidity(initialLiquidity, lockLiquidity); } /** * @inheritdoc ERC20AntiWhale */ function _update(address from, address to, uint256 value) internal override(ERC20, ERC20AntiWhale) { super._update(from, to, value); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"uint256","name":"initialBalance_","type":"uint256"},{"internalType":"uint8","name":"balanceLimitRate_","type":"uint8"},{"internalType":"address","name":"uniswapV2Router_","type":"address"},{"internalType":"bytes","name":"signature_","type":"bytes"},{"internalType":"address payable","name":"feeReceiver_","type":"address"}],"stateMutability":"payable","type":"constructor"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"newBalance","type":"uint256"},{"internalType":"uint256","name":"maxAllowedBalance","type":"uint256"}],"name":"ERC20AntiWhaleExceededBalanceLimit","type":"error"},{"inputs":[{"internalType":"uint8","name":"balanceLimitRate","type":"uint8"}],"name":"ERC20AntiWhaleInvalidBalanceLimit","type":"error"},{"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":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"balanceLimitPercent","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","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":[{"internalType":"uint256","name":"initialLiquidity","type":"uint256"},{"internalType":"bool","name":"lockLiquidity","type":"bool"}],"name":"initLiquidity","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcludedFromBalanceLimit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"uint8","name":"balanceLimitPercent","type":"uint8"}],"name":"setBalanceLimitPercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"status","type":"bool"}],"name":"setExclusionFromBalanceLimit","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":[{"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":"uniswapV2Pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60c06040526040516200196738038062001967833981016040819052620000269162000793565b60408051808201909152600e81526d0537761707061626c6545524332360941b6020820152819083333387898d8d6003620000628382620008f0565b506004620000718282620008f0565b5050506200008581620003aa60201b60201c565b620000ae335b6001600160a01b03165f908152600660205260409020805460ff19166001179055565b506001600160a01b0381166200011e5760405162461bcd60e51b815260206004820152602a60248201527f756e69737761705632526f757465722063616e6e6f7420626520746865207a65604482015269726f206164647265737360b01b60648201526084015b60405180910390fd5b6001600160a01b03811660808190526040805163c45a015560e01b8152905163c45a0155916004808201926020929091908290030181865afa15801562000167573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906200018d9190620009bc565b6001600160a01b031663c9c65396306080516001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015620001db573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190620002019190620009bc565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303815f875af11580156200024c573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190620002729190620009bc565b6001600160a01b0390811660a05282169050620002a557604051631e4fbdf760e01b81525f600482015260240162000115565b620002b081620003fb565b5060405163346386e160e01b81526001600160a01b0385169063346386e1903490620002e59087908790879060040162000a0e565b5f604051808303818588803b158015620002fd575f80fd5b505af115801562000310573d5f803e3d5ffd5b5050505050505050505f85116200036a5760405162461bcd60e51b815260206004820152601d60248201527f496e697469616c20737570706c792063616e6e6f74206265207a65726f000000604482015260640162000115565b305f908152600660205260409020805460ff19166001179055620003916200008b60a05190565b6200039d308662000454565b5050505050505062000ab9565b5f8160ff16118015620003c1575060648160ff1611155b620003e557604051637736e91160e01b815260ff8216600482015260240162000115565b6005805460ff191660ff92909216919091179055565b600780546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b0382166200047f5760405163ec442f0560e01b81525f600482015260240162000115565b6200048c5f838362000490565b5050565b6200049d838383620004a2565b505050565b60055460ff16606414801590620004d157506001600160a01b0382165f9081526006602052604090205460ff16155b156200056d576001600160a01b0382165f90815260208190526040812054620004fc90839062000a63565b6005549091505f9060649060ff166200051460025490565b62000520919062000a7f565b6200052c919062000a99565b9050808211156200056a5760405163dfdfd90160e01b81526001600160a01b0385166004820152602481018390526044810182905260640162000115565b50505b6200049d8383836001600160a01b038316620005a2578060025f82825462000596919062000a63565b90915550620006149050565b6001600160a01b0383165f9081526020819052604090205481811015620005f65760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640162000115565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b038216620006325760028054829003905562000650565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516200069691815260200190565b60405180910390a3505050565b634e487b7160e01b5f52604160045260245ffd5b5f5b83811015620006d3578181015183820152602001620006b9565b50505f910152565b5f82601f830112620006eb575f80fd5b81516001600160401b0380821115620007085762000708620006a3565b604051601f8301601f19908116603f01168101908282118183101715620007335762000733620006a3565b816040528381528660208588010111156200074c575f80fd5b6200075f846020830160208901620006b7565b9695505050505050565b6001600160a01b03811681146200077e575f80fd5b50565b80516200078e8162000769565b919050565b5f805f805f805f60e0888a031215620007aa575f80fd5b87516001600160401b0380821115620007c1575f80fd5b620007cf8b838c01620006db565b985060208a0151915080821115620007e5575f80fd5b620007f38b838c01620006db565b975060408a0151965060608a0151915060ff8216821462000812575f80fd5b8195506200082360808b0162000781565b945060a08a015191508082111562000839575f80fd5b50620008488a828b01620006db565b9250506200085960c0890162000781565b905092959891949750929550565b600181811c908216806200087c57607f821691505b6020821081036200089b57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156200049d57805f5260205f20601f840160051c81016020851015620008c85750805b601f840160051c820191505b81811015620008e9575f8155600101620008d4565b5050505050565b81516001600160401b038111156200090c576200090c620006a3565b62000924816200091d845462000867565b84620008a1565b602080601f8311600181146200095a575f8415620009425750858301515b5f19600386901b1c1916600185901b178555620009b4565b5f85815260208120601f198616915b828110156200098a5788860151825594840194600190910190840162000969565b5085821015620009a857878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b5f60208284031215620009cd575f80fd5b8151620009da8162000769565b9392505050565b5f8151808452620009fa816020860160208601620006b7565b601f01601f19169290920160200192915050565b606081525f62000a226060830186620009e1565b828103602084015262000a368186620009e1565b91505060018060a01b0383166040830152949350505050565b634e487b7160e01b5f52601160045260245ffd5b8082018082111562000a795762000a7962000a4f565b92915050565b808202811582820484141762000a795762000a7962000a4f565b5f8262000ab457634e487b7160e01b5f52601260045260245ffd5b500490565b60805160a051610e8562000ae25f395f61022601525f818161082f01526108560152610e855ff3fe608060405260043610610105575f3560e01c8063715018a611610092578063aa7dc13b11610062578063aa7dc13b146102fb578063ab7965df14610312578063b3031a9c14610331578063dd62ed3e14610344578063f2fde38b14610388575f80fd5b8063715018a6146102925780638da5cb5b146102a657806395d89b41146102c8578063a9059cbb146102dc575f80fd5b806323b872dd116100d857806323b872dd146101b7578063250b900d146101d6578063313ce567146101f757806349bd5a5e1461021857806370a082311461025e575f80fd5b806306fdde0314610109578063095ea7b31461013357806312d10c4a1461016257806318160ddd14610199575b5f80fd5b348015610114575f80fd5b5061011d6103a7565b60405161012a9190610beb565b60405180910390f35b34801561013e575f80fd5b5061015261014d366004610c52565b610437565b604051901515815260200161012a565b34801561016d575f80fd5b5061015261017c366004610c7a565b6001600160a01b03165f9081526006602052604090205460ff1690565b3480156101a4575f80fd5b506002545b60405190815260200161012a565b3480156101c2575f80fd5b506101526101d1366004610c9a565b610450565b3480156101e1575f80fd5b506101f56101f0366004610ce2565b610473565b005b348015610202575f80fd5b5060125b60405160ff909116815260200161012a565b348015610223575f80fd5b507f00000000000000000000000000000000000000000000000000000000000000005b6040516001600160a01b03909116815260200161012a565b348015610269575f80fd5b506101a9610278366004610c7a565b6001600160a01b03165f9081526020819052604090205490565b34801561029d575f80fd5b506101f56104a6565b3480156102b1575f80fd5b5060075461010090046001600160a01b0316610246565b3480156102d3575f80fd5b5061011d6104b9565b3480156102e7575f80fd5b506101526102f6366004610c52565b6104c8565b348015610306575f80fd5b5060055460ff16610206565b34801561031d575f80fd5b506101f561032c366004610d13565b6104d5565b6101f561033f366004610d33565b6104e9565b34801561034f575f80fd5b506101a961035e366004610d54565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b348015610393575f80fd5b506101f56103a2366004610c7a565b6104fb565b6060600380546103b690610d7c565b80601f01602080910402602001604051908101604052809291908181526020018280546103e290610d7c565b801561042d5780601f106104045761010080835404028352916020019161042d565b820191905f5260205f20905b81548152906001019060200180831161041057829003601f168201915b5050505050905090565b5f3361044481858561053a565b60019150505b92915050565b5f3361045d85828561054c565b6104688585856105c7565b506001949350505050565b61047b610624565b6001600160a01b0382165f908152600660205260409020805460ff19168215151790555050565b5050565b6104ae610624565b6104b75f610657565b565b6060600480546103b690610d7c565b5f336104448185856105c7565b6104dd610624565b6104e6816106b0565b50565b6104f1610624565b6104a282826106fe565b610503610624565b6001600160a01b03811661053157604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6104e681610657565b6105478383836001610927565b505050565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f1981146105c157818110156105b357604051637dc7a0d960e11b81526001600160a01b03841660048201526024810182905260448101839052606401610528565b6105c184848484035f610927565b50505050565b6001600160a01b0383166105f057604051634b637e8f60e11b81525f6004820152602401610528565b6001600160a01b0382166106195760405163ec442f0560e01b81525f6004820152602401610528565b6105478383836109f9565b6007546001600160a01b036101009091041633146104b75760405163118cdaa760e01b8152336004820152602401610528565b600780546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b5f8160ff161180156106c6575060648160ff1611155b6106e857604051637736e91160e01b815260ff82166004820152602401610528565b6005805460ff191660ff92909216919091179055565b60075460ff16156107475760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481a5b9a5d1a585b1a5e9959606a1b6044820152606401610528565b5f82116107965760405162461bcd60e51b815260206004820181905260248201527f496e697469616c206c69717569646974792063616e6e6f74206265207a65726f6044820152606401610528565b6002548211156107f85760405162461bcd60e51b815260206004820152602760248201527f4c69717569646974792063616e6e6f742062652067726561746572207468616e60448201526620737570706c7960c81b6064820152608401610528565b6007805460ff19166001179055610829306108103390565b8461081a60025490565b6108249190610dc8565b6105c7565b610854307f00000000000000000000000000000000000000000000000000000000000000008461053a565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f305d7193430855f80876108935733610895565b305b60405160e088901b6001600160e01b03191681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c40160606040518083038185885af11580156108fb573d5f803e3d5ffd5b50505050506040513d601f19601f820116820180604052508101906109209190610ddb565b5050505050565b6001600160a01b0384166109505760405163e602df0560e01b81525f6004820152602401610528565b6001600160a01b03831661097957604051634a1406b160e11b81525f6004820152602401610528565b6001600160a01b038085165f90815260016020908152604080832093871683529290522082905580156105c157826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516109eb91815260200190565b60405180910390a350505050565b61054783838360055460ff16606414801590610a2d57506001600160a01b0382165f9081526006602052604090205460ff16155b15610abf576001600160a01b0382165f90815260208190526040812054610a55908390610e06565b6005549091505f9060649060ff16610a6c60025490565b610a769190610e19565b610a809190610e30565b905080821115610abc5760405163dfdfd90160e01b81526001600160a01b03851660048201526024810183905260448101829052606401610528565b50505b6105478383836001600160a01b038316610aef578060025f828254610ae49190610e06565b90915550610b5f9050565b6001600160a01b0383165f9081526020819052604090205481811015610b415760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610528565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b038216610b7b57600280548290039055610b99565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610bde91815260200190565b60405180910390a3505050565b5f602080835283518060208501525f5b81811015610c1757858101830151858201604001528201610bfb565b505f604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610c4d575f80fd5b919050565b5f8060408385031215610c63575f80fd5b610c6c83610c37565b946020939093013593505050565b5f60208284031215610c8a575f80fd5b610c9382610c37565b9392505050565b5f805f60608486031215610cac575f80fd5b610cb584610c37565b9250610cc360208501610c37565b9150604084013590509250925092565b80358015158114610c4d575f80fd5b5f8060408385031215610cf3575f80fd5b610cfc83610c37565b9150610d0a60208401610cd3565b90509250929050565b5f60208284031215610d23575f80fd5b813560ff81168114610c93575f80fd5b5f8060408385031215610d44575f80fd5b82359150610d0a60208401610cd3565b5f8060408385031215610d65575f80fd5b610d6e83610c37565b9150610d0a60208401610c37565b600181811c90821680610d9057607f821691505b602082108103610dae57634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b8181038181111561044a5761044a610db4565b5f805f60608486031215610ded575f80fd5b8351925060208401519150604084015190509250925092565b8082018082111561044a5761044a610db4565b808202811582820484141761044a5761044a610db4565b5f82610e4a57634e487b7160e01b5f52601260045260245ffd5b50049056fea2646970667358221220c4bc444335e64c856901cdf10cabb04be25a5240711eacba5a985a093960788064736f6c6343000818003300000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000007e37be2022c0914b2680000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000000000000000000000000000000000000000016000000000000000000000000075eee167d2e5cc675f5b07f95d6a93e7088d6c34000000000000000000000000000000000000000000000000000000000000000a466c6f70706120496e7500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000446494e550000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000418d4b375762df4d37401b0189439585d5bca88419079592b465d0fe15f8e5fd8e4684fe8f16cb134adf54c67138642b90bbae506033ec608544e9d4c2853d80fe1c00000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405260043610610105575f3560e01c8063715018a611610092578063aa7dc13b11610062578063aa7dc13b146102fb578063ab7965df14610312578063b3031a9c14610331578063dd62ed3e14610344578063f2fde38b14610388575f80fd5b8063715018a6146102925780638da5cb5b146102a657806395d89b41146102c8578063a9059cbb146102dc575f80fd5b806323b872dd116100d857806323b872dd146101b7578063250b900d146101d6578063313ce567146101f757806349bd5a5e1461021857806370a082311461025e575f80fd5b806306fdde0314610109578063095ea7b31461013357806312d10c4a1461016257806318160ddd14610199575b5f80fd5b348015610114575f80fd5b5061011d6103a7565b60405161012a9190610beb565b60405180910390f35b34801561013e575f80fd5b5061015261014d366004610c52565b610437565b604051901515815260200161012a565b34801561016d575f80fd5b5061015261017c366004610c7a565b6001600160a01b03165f9081526006602052604090205460ff1690565b3480156101a4575f80fd5b506002545b60405190815260200161012a565b3480156101c2575f80fd5b506101526101d1366004610c9a565b610450565b3480156101e1575f80fd5b506101f56101f0366004610ce2565b610473565b005b348015610202575f80fd5b5060125b60405160ff909116815260200161012a565b348015610223575f80fd5b507f0000000000000000000000000a97fde60778c4faa2c0d232e4107d944b02add15b6040516001600160a01b03909116815260200161012a565b348015610269575f80fd5b506101a9610278366004610c7a565b6001600160a01b03165f9081526020819052604090205490565b34801561029d575f80fd5b506101f56104a6565b3480156102b1575f80fd5b5060075461010090046001600160a01b0316610246565b3480156102d3575f80fd5b5061011d6104b9565b3480156102e7575f80fd5b506101526102f6366004610c52565b6104c8565b348015610306575f80fd5b5060055460ff16610206565b34801561031d575f80fd5b506101f561032c366004610d13565b6104d5565b6101f561033f366004610d33565b6104e9565b34801561034f575f80fd5b506101a961035e366004610d54565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b348015610393575f80fd5b506101f56103a2366004610c7a565b6104fb565b6060600380546103b690610d7c565b80601f01602080910402602001604051908101604052809291908181526020018280546103e290610d7c565b801561042d5780601f106104045761010080835404028352916020019161042d565b820191905f5260205f20905b81548152906001019060200180831161041057829003601f168201915b5050505050905090565b5f3361044481858561053a565b60019150505b92915050565b5f3361045d85828561054c565b6104688585856105c7565b506001949350505050565b61047b610624565b6001600160a01b0382165f908152600660205260409020805460ff19168215151790555050565b5050565b6104ae610624565b6104b75f610657565b565b6060600480546103b690610d7c565b5f336104448185856105c7565b6104dd610624565b6104e6816106b0565b50565b6104f1610624565b6104a282826106fe565b610503610624565b6001600160a01b03811661053157604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6104e681610657565b6105478383836001610927565b505050565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f1981146105c157818110156105b357604051637dc7a0d960e11b81526001600160a01b03841660048201526024810182905260448101839052606401610528565b6105c184848484035f610927565b50505050565b6001600160a01b0383166105f057604051634b637e8f60e11b81525f6004820152602401610528565b6001600160a01b0382166106195760405163ec442f0560e01b81525f6004820152602401610528565b6105478383836109f9565b6007546001600160a01b036101009091041633146104b75760405163118cdaa760e01b8152336004820152602401610528565b600780546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b5f8160ff161180156106c6575060648160ff1611155b6106e857604051637736e91160e01b815260ff82166004820152602401610528565b6005805460ff191660ff92909216919091179055565b60075460ff16156107475760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481a5b9a5d1a585b1a5e9959606a1b6044820152606401610528565b5f82116107965760405162461bcd60e51b815260206004820181905260248201527f496e697469616c206c69717569646974792063616e6e6f74206265207a65726f6044820152606401610528565b6002548211156107f85760405162461bcd60e51b815260206004820152602760248201527f4c69717569646974792063616e6e6f742062652067726561746572207468616e60448201526620737570706c7960c81b6064820152608401610528565b6007805460ff19166001179055610829306108103390565b8461081a60025490565b6108249190610dc8565b6105c7565b610854307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d8461053a565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663f305d7193430855f80876108935733610895565b305b60405160e088901b6001600160e01b03191681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c40160606040518083038185885af11580156108fb573d5f803e3d5ffd5b50505050506040513d601f19601f820116820180604052508101906109209190610ddb565b5050505050565b6001600160a01b0384166109505760405163e602df0560e01b81525f6004820152602401610528565b6001600160a01b03831661097957604051634a1406b160e11b81525f6004820152602401610528565b6001600160a01b038085165f90815260016020908152604080832093871683529290522082905580156105c157826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516109eb91815260200190565b60405180910390a350505050565b61054783838360055460ff16606414801590610a2d57506001600160a01b0382165f9081526006602052604090205460ff16155b15610abf576001600160a01b0382165f90815260208190526040812054610a55908390610e06565b6005549091505f9060649060ff16610a6c60025490565b610a769190610e19565b610a809190610e30565b905080821115610abc5760405163dfdfd90160e01b81526001600160a01b03851660048201526024810183905260448101829052606401610528565b50505b6105478383836001600160a01b038316610aef578060025f828254610ae49190610e06565b90915550610b5f9050565b6001600160a01b0383165f9081526020819052604090205481811015610b415760405163391434e360e21b81526001600160a01b03851660048201526024810182905260448101839052606401610528565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b038216610b7b57600280548290039055610b99565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610bde91815260200190565b60405180910390a3505050565b5f602080835283518060208501525f5b81811015610c1757858101830151858201604001528201610bfb565b505f604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610c4d575f80fd5b919050565b5f8060408385031215610c63575f80fd5b610c6c83610c37565b946020939093013593505050565b5f60208284031215610c8a575f80fd5b610c9382610c37565b9392505050565b5f805f60608486031215610cac575f80fd5b610cb584610c37565b9250610cc360208501610c37565b9150604084013590509250925092565b80358015158114610c4d575f80fd5b5f8060408385031215610cf3575f80fd5b610cfc83610c37565b9150610d0a60208401610cd3565b90509250929050565b5f60208284031215610d23575f80fd5b813560ff81168114610c93575f80fd5b5f8060408385031215610d44575f80fd5b82359150610d0a60208401610cd3565b5f8060408385031215610d65575f80fd5b610d6e83610c37565b9150610d0a60208401610c37565b600181811c90821680610d9057607f821691505b602082108103610dae57634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b8181038181111561044a5761044a610db4565b5f805f60608486031215610ded575f80fd5b8351925060208401519150604084015190509250925092565b8082018082111561044a5761044a610db4565b808202811582820484141761044a5761044a610db4565b5f82610e4a57634e487b7160e01b5f52601260045260245ffd5b50049056fea2646970667358221220c4bc444335e64c856901cdf10cabb04be25a5240711eacba5a985a093960788064736f6c63430008180033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000007e37be2022c0914b2680000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000000000000000000000000000000000000000016000000000000000000000000075eee167d2e5cc675f5b07f95d6a93e7088d6c34000000000000000000000000000000000000000000000000000000000000000a466c6f70706120496e7500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000446494e550000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000418d4b375762df4d37401b0189439585d5bca88419079592b465d0fe15f8e5fd8e4684fe8f16cb134adf54c67138642b90bbae506033ec608544e9d4c2853d80fe1c00000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name_ (string): Floppa Inu
Arg [1] : symbol_ (string): FINU
Arg [2] : initialBalance_ (uint256): 10000000000000000000000000000000
Arg [3] : balanceLimitRate_ (uint8): 10
Arg [4] : uniswapV2Router_ (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
Arg [5] : signature_ (bytes): 0x8d4b375762df4d37401b0189439585d5bca88419079592b465d0fe15f8e5fd8e4684fe8f16cb134adf54c67138642b90bbae506033ec608544e9d4c2853d80fe1c
Arg [6] : feeReceiver_ (address): 0x75Eee167D2E5cC675f5b07f95d6A93E7088d6c34
-----Encoded View---------------
15 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [2] : 000000000000000000000000000000000000007e37be2022c0914b2680000000
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [4] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [6] : 00000000000000000000000075eee167d2e5cc675f5b07f95d6a93e7088d6c34
Arg [7] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [8] : 466c6f70706120496e7500000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [10] : 46494e5500000000000000000000000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000041
Arg [12] : 8d4b375762df4d37401b0189439585d5bca88419079592b465d0fe15f8e5fd8e
Arg [13] : 4684fe8f16cb134adf54c67138642b90bbae506033ec608544e9d4c2853d80fe
Arg [14] : 1c00000000000000000000000000000000000000000000000000000000000000
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.