More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 13 from a total of 13 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer | 18525142 | 460 days ago | IN | 0 ETH | 0.00097275 | ||||
Approve | 18525111 | 460 days ago | IN | 0 ETH | 0.00083621 | ||||
Approve | 18082479 | 522 days ago | IN | 0 ETH | 0.00054366 | ||||
Approve | 18031787 | 530 days ago | IN | 0 ETH | 0.00073312 | ||||
Approve | 18031776 | 530 days ago | IN | 0 ETH | 0.00037924 | ||||
Approve | 17944451 | 542 days ago | IN | 0 ETH | 0.00080433 | ||||
Approve | 17933109 | 543 days ago | IN | 0 ETH | 0.00093505 | ||||
Approve | 17932719 | 543 days ago | IN | 0 ETH | 0.00076217 | ||||
Approve | 17932557 | 543 days ago | IN | 0 ETH | 0.00046339 | ||||
Approve | 17932548 | 543 days ago | IN | 0 ETH | 0.0004585 | ||||
Approve | 17932540 | 543 days ago | IN | 0 ETH | 0.00046435 | ||||
Approve | 17932537 | 543 days ago | IN | 0 ETH | 0.00074536 | ||||
Init Liquidity | 17932396 | 543 days ago | IN | 0.555179 ETH | 0.00554683 |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
SwappableERC20
Compiler Version
v0.8.20+commit.a1b79de6
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-08-17 */ // SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/utils/Context.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. 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 { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File: @openzeppelin/contracts/token/ERC20/IERC20.sol // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); } // File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } // File: @openzeppelin/contracts/token/ERC20/ERC20.sol // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * 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. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the 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 override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer(address from, address to, uint256 amount) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 amount) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {} } // File: contracts/token/ERC20/extensions/ERC20AntiWhale.sol pragma solidity ^0.8.0; /** * @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(address => bool) private _isExcludedFromBalanceLimit; /** * @dev Sets the value of the `_balanceLimitRate`. */ 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 { require( balanceLimitPercent_ > 0 && balanceLimitPercent_ <= 100, "ERC20AntiWhale: balanceLimitPercent_ must be between 1 and 100" ); _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 _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override { super._beforeTokenTransfer(from, to, amount); require( _balanceLimitRate == 100 || _isExcludedFromBalanceLimit[to] || ((balanceOf(to) + amount) <= (totalSupply() * _balanceLimitRate) / 100), "ERC20AntiWhale: receiver has exceeded the balance limit" ); } } // File: @uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol 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/IUniswapV2Router02.sol 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: @uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol 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 pragma solidity ^0.8.0; /** * @title ERC20Liquid * @dev Extension of {ERC20} that creates a ETH/TOKEN pair on UniswapV2. */ abstract contract ERC20Liquid is ERC20 { IUniswapV2Router02 private immutable _uniswapV2Router; 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), "ERC20Liquid: 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, "ERC20Liquid: already initialized"); require(initialLiquidity_ > 0, "ERC20Liquid: initial liquidity cannot be zero"); require(initialLiquidity_ <= totalSupply(), "ERC20Liquid: liquidity cannot be greater than supply"); _liquidityInitialized = true; _approve(address(this), address(_uniswapV2Router), initialLiquidity_); _uniswapV2Router.addLiquidityETH{value: msg.value}( address(this), initialLiquidity_, 0, 0, lockLiquidity_ ? address(this) : _msgSender(), block.timestamp ); _transfer(address(this), _msgSender(), balanceOf(address(this))); } } // File: contracts/service/ServicePayer.sol pragma solidity ^0.8.0; interface IPayable { function pay(string memory serviceName, bytes memory signature, address wallet) external payable; } /** * @title ServicePayer * @dev Implementation of the ServicePayer */ 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 pragma solidity ^0.8.0; /** * @title SwappableERC20 * @dev Implementation of the SwappableERC20 */ contract SwappableERC20 is ERC20AntiWhale, ERC20Liquid, Ownable, 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, "SwappableERC20: 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 { _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 { _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 { _initLiquidity(initialLiquidity, lockLiquidity); } /** * @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 _beforeTokenTransfer(address from, address to, uint256 amount) internal override(ERC20, ERC20AntiWhale) { super._beforeTokenTransfer(from, to, amount); } }
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"},{"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":"amount","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":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"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":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapV2Pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60c060405260405162001b9c38038062001b9c83398101604081905262000026916200076e565b60408051808201909152600e81526d0537761707061626c6545524332360941b60208201528190833386888c8c6003620000618382620008cd565b506004620000708282620008cd565b5050506200008481620003a360201b60201c565b620000ad335b6001600160a01b03165f908152600660205260409020805460ff19166001179055565b506001600160a01b038116620001305760405162461bcd60e51b815260206004820152603760248201527f45524332304c69717569643a20756e69737761705632526f757465722063616e60448201527f6e6f7420626520746865207a65726f206164647265737300000000000000000060648201526084015b60405180910390fd5b6001600160a01b03811660808190526040805163c45a015560e01b8152905163c45a0155916004808201926020929091908290030181865afa15801562000179573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906200019f919062000995565b6001600160a01b031663c9c65396306080516001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015620001ed573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019062000213919062000995565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303815f875af11580156200025e573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019062000284919062000995565b6001600160a01b031660a052506200029c3362000444565b60405163346386e160e01b81526001600160a01b0385169063346386e1903490620002d090879087908790600401620009e7565b5f604051808303818588803b158015620002e8575f80fd5b505af1158015620002fb573d5f803e3d5ffd5b5050505050505050505f8511620003635760405162461bcd60e51b815260206004820152602560248201527f537761707061626c6545524332303a20737570706c792063616e6e6f74206265604482015264207a65726f60d81b606482015260840162000127565b305f908152600660205260409020805460ff191660011790556200038a6200008a60a05190565b6200039630866200049d565b5050505050505062000a92565b5f8160ff16118015620003ba575060648160ff1611155b6200042e5760405162461bcd60e51b815260206004820152603e60248201527f4552433230416e74695768616c653a2062616c616e63654c696d69745065726360448201527f656e745f206d757374206265206265747765656e203120616e64203130300000606482015260840162000127565b6005805460ff191660ff92909216919091179055565b600780546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b038216620004f55760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640162000127565b620005025f83836200056b565b8060025f82825462000515919062000a3c565b90915550506001600160a01b0382165f81815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b620005788383836200057d565b505050565b60055460ff1660641480620005a957506001600160a01b0382165f9081526006602052604090205460ff165b806200060a575060055460649060ff16620005c360025490565b620005cf919062000a58565b620005db919062000a72565b81620005fb846001600160a01b03165f9081526020819052604090205490565b62000607919062000a3c565b11155b620005785760405162461bcd60e51b815260206004820152603760248201527f4552433230416e74695768616c653a207265636569766572206861732065786360448201527f6565646564207468652062616c616e6365206c696d6974000000000000000000606482015260840162000127565b634e487b7160e01b5f52604160045260245ffd5b5f5b83811015620006ae57818101518382015260200162000694565b50505f910152565b5f82601f830112620006c6575f80fd5b81516001600160401b0380821115620006e357620006e36200067e565b604051601f8301601f19908116603f011681019082821181831017156200070e576200070e6200067e565b8160405283815286602085880101111562000727575f80fd5b6200073a84602083016020890162000692565b9695505050505050565b6001600160a01b038116811462000759575f80fd5b50565b8051620007698162000744565b919050565b5f805f805f805f60e0888a03121562000785575f80fd5b87516001600160401b03808211156200079c575f80fd5b620007aa8b838c01620006b6565b985060208a0151915080821115620007c0575f80fd5b620007ce8b838c01620006b6565b975060408a0151965060608a0151915060ff82168214620007ed575f80fd5b819550620007fe60808b016200075c565b945060a08a015191508082111562000814575f80fd5b50620008238a828b01620006b6565b9250506200083460c089016200075c565b905092959891949750929550565b600181811c908216806200085757607f821691505b6020821081036200087657634e487b7160e01b5f52602260045260245ffd5b50919050565b601f82111562000578575f81815260208120601f850160051c81016020861015620008a45750805b601f850160051c820191505b81811015620008c557828155600101620008b0565b505050505050565b81516001600160401b03811115620008e957620008e96200067e565b6200090181620008fa845462000842565b846200087c565b602080601f83116001811462000937575f84156200091f5750858301515b5f19600386901b1c1916600185901b178555620008c5565b5f85815260208120601f198616915b82811015620009675788860151825594840194600190910190840162000946565b50858210156200098557878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b5f60208284031215620009a6575f80fd5b8151620009b38162000744565b9392505050565b5f8151808452620009d381602086016020860162000692565b601f01601f19169290920160200192915050565b606081525f620009fb6060830186620009ba565b828103602084015262000a0f8186620009ba565b91505060018060a01b0383166040830152949350505050565b634e487b7160e01b5f52601160045260245ffd5b8082018082111562000a525762000a5262000a28565b92915050565b808202811582820484141762000a525762000a5262000a28565b5f8262000a8d57634e487b7160e01b5f52601260045260245ffd5b500490565b60805160a0516110e162000abb5f395f61025b01525f8181610c430152610c6a01526110e15ff3fe60806040526004361061011b575f3560e01c8063715018a61161009d578063aa7dc13b11610062578063aa7dc13b1461034f578063ab7965df14610366578063b3031a9c14610385578063dd62ed3e14610398578063f2fde38b146103b7575f80fd5b8063715018a6146102c75780638da5cb5b146102db57806395d89b41146102fd578063a457c2d714610311578063a9059cbb14610330575f80fd5b8063250b900d116100e3578063250b900d146101ec578063313ce5671461020d578063395093511461022e57806349bd5a5e1461024d57806370a0823114610293575f80fd5b806306fdde031461011f578063095ea7b31461014957806312d10c4a1461017857806318160ddd146101af57806323b872dd146101cd575b5f80fd5b34801561012a575f80fd5b506101336103d6565b6040516101409190610e5b565b60405180910390f35b348015610154575f80fd5b50610168610163366004610ec1565b610466565b6040519015158152602001610140565b348015610183575f80fd5b50610168610192366004610ee9565b6001600160a01b03165f9081526006602052604090205460ff1690565b3480156101ba575f80fd5b506002545b604051908152602001610140565b3480156101d8575f80fd5b506101686101e7366004610f09565b61047f565b3480156101f7575f80fd5b5061020b610206366004610f51565b6104a2565b005b348015610218575f80fd5b5060125b60405160ff9091168152602001610140565b348015610239575f80fd5b50610168610248366004610ec1565b6104d5565b348015610258575f80fd5b507f00000000000000000000000000000000000000000000000000000000000000005b6040516001600160a01b039091168152602001610140565b34801561029e575f80fd5b506101bf6102ad366004610ee9565b6001600160a01b03165f9081526020819052604090205490565b3480156102d2575f80fd5b5061020b6104f6565b3480156102e6575f80fd5b5060075461010090046001600160a01b031661027b565b348015610308575f80fd5b50610133610509565b34801561031c575f80fd5b5061016861032b366004610ec1565b610518565b34801561033b575f80fd5b5061016861034a366004610ec1565b610597565b34801561035a575f80fd5b5060055460ff1661021c565b348015610371575f80fd5b5061020b610380366004610f82565b6105a4565b61020b610393366004610fa2565b6105b8565b3480156103a3575f80fd5b506101bf6103b2366004610fc3565b6105ca565b3480156103c2575f80fd5b5061020b6103d1366004610ee9565b6105f4565b6060600380546103e590610feb565b80601f016020809104026020016040519081016040528092919081815260200182805461041190610feb565b801561045c5780601f106104335761010080835404028352916020019161045c565b820191905f5260205f20905b81548152906001019060200180831161043f57829003601f168201915b5050505050905090565b5f3361047381858561066a565b60019150505b92915050565b5f3361048c85828561078d565b610497858585610805565b506001949350505050565b6104aa6109b2565b6001600160a01b0382165f908152600660205260409020805460ff19168215151790555050565b5050565b5f336104738185856104e783836105ca565b6104f19190611037565b61066a565b6104fe6109b2565b6105075f610a12565b565b6060600480546103e590610feb565b5f338161052582866105ca565b90508381101561058a5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b610497828686840361066a565b5f33610473818585610805565b6105ac6109b2565b6105b581610a6b565b50565b6105c06109b2565b6104d18282610b09565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b6105fc6109b2565b6001600160a01b0381166106615760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610581565b6105b581610a12565b6001600160a01b0383166106cc5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610581565b6001600160a01b03821661072d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610581565b6001600160a01b038381165f8181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b5f61079884846105ca565b90505f1981146107ff57818110156107f25760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610581565b6107ff848484840361066a565b50505050565b6001600160a01b0383166108695760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610581565b6001600160a01b0382166108cb5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610581565b6108d6838383610d56565b6001600160a01b0383165f908152602081905260409020548181101561094d5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610581565b6001600160a01b038481165f81815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36107ff565b6007546001600160a01b036101009091041633146105075760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610581565b600780546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b5f8160ff16118015610a81575060648160ff1611155b610af35760405162461bcd60e51b815260206004820152603e60248201527f4552433230416e74695768616c653a2062616c616e63654c696d69745065726360448201527f656e745f206d757374206265206265747765656e203120616e642031303000006064820152608401610581565b6005805460ff191660ff92909216919091179055565b60075460ff1615610b5c5760405162461bcd60e51b815260206004820181905260248201527f45524332304c69717569643a20616c726561647920696e697469616c697a65646044820152606401610581565b5f8211610bc15760405162461bcd60e51b815260206004820152602d60248201527f45524332304c69717569643a20696e697469616c206c6971756964697479206360448201526c616e6e6f74206265207a65726f60981b6064820152608401610581565b600254821115610c305760405162461bcd60e51b815260206004820152603460248201527f45524332304c69717569643a206c69717569646974792063616e6e6f742062656044820152732067726561746572207468616e20737570706c7960601b6064820152608401610581565b6007805460ff19166001179055610c68307f00000000000000000000000000000000000000000000000000000000000000008461066a565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f305d7193430855f8087610ca75733610ca9565b305b60405160e088901b6001600160e01b03191681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c40160606040518083038185885af1158015610d0f573d5f803e3d5ffd5b50505050506040513d601f19601f82011682018060405250810190610d34919061104a565b5050506104d130610d423390565b305f90815260208190526040902054610805565b610d61838383610d66565b505050565b60055460ff1660641480610d9157506001600160a01b0382165f9081526006602052604090205460ff165b80610de9575060055460649060ff16610da960025490565b610db39190611075565b610dbd919061108c565b81610ddc846001600160a01b03165f9081526020819052604090205490565b610de69190611037565b11155b610d615760405162461bcd60e51b815260206004820152603760248201527f4552433230416e74695768616c653a207265636569766572206861732065786360448201527f6565646564207468652062616c616e6365206c696d69740000000000000000006064820152608401610581565b5f6020808352835180828501525f5b81811015610e8657858101830151858201604001528201610e6a565b505f604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610ebc575f80fd5b919050565b5f8060408385031215610ed2575f80fd5b610edb83610ea6565b946020939093013593505050565b5f60208284031215610ef9575f80fd5b610f0282610ea6565b9392505050565b5f805f60608486031215610f1b575f80fd5b610f2484610ea6565b9250610f3260208501610ea6565b9150604084013590509250925092565b80358015158114610ebc575f80fd5b5f8060408385031215610f62575f80fd5b610f6b83610ea6565b9150610f7960208401610f42565b90509250929050565b5f60208284031215610f92575f80fd5b813560ff81168114610f02575f80fd5b5f8060408385031215610fb3575f80fd5b82359150610f7960208401610f42565b5f8060408385031215610fd4575f80fd5b610fdd83610ea6565b9150610f7960208401610ea6565b600181811c90821680610fff57607f821691505b60208210810361101d57634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b8082018082111561047957610479611023565b5f805f6060848603121561105c575f80fd5b8351925060208401519150604084015190509250925092565b808202811582820484141761047957610479611023565b5f826110a657634e487b7160e01b5f52601260045260245ffd5b50049056fea26469706673582212209a86f1f71d04ae00fbf0a42fec92fbe82ac0012b5aa59b53d2cb21ce9dab79f564736f6c6343000814003300000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000052b7d2dcc80cd2e4000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000000000000000000000000000000000000000016000000000000000000000000075eee167d2e5cc675f5b07f95d6a93e7088d6c34000000000000000000000000000000000000000000000000000000000000000747435a472d4c5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000447435a4700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004107576ef74bb892aec9bb814c7cbe0e3c707f2b66572d4c07440edfcd91c5146a1b202175e3ca22abdf0f1a7c45330cd1b83957cf53f049e23282fce4af3e11831c00000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x60806040526004361061011b575f3560e01c8063715018a61161009d578063aa7dc13b11610062578063aa7dc13b1461034f578063ab7965df14610366578063b3031a9c14610385578063dd62ed3e14610398578063f2fde38b146103b7575f80fd5b8063715018a6146102c75780638da5cb5b146102db57806395d89b41146102fd578063a457c2d714610311578063a9059cbb14610330575f80fd5b8063250b900d116100e3578063250b900d146101ec578063313ce5671461020d578063395093511461022e57806349bd5a5e1461024d57806370a0823114610293575f80fd5b806306fdde031461011f578063095ea7b31461014957806312d10c4a1461017857806318160ddd146101af57806323b872dd146101cd575b5f80fd5b34801561012a575f80fd5b506101336103d6565b6040516101409190610e5b565b60405180910390f35b348015610154575f80fd5b50610168610163366004610ec1565b610466565b6040519015158152602001610140565b348015610183575f80fd5b50610168610192366004610ee9565b6001600160a01b03165f9081526006602052604090205460ff1690565b3480156101ba575f80fd5b506002545b604051908152602001610140565b3480156101d8575f80fd5b506101686101e7366004610f09565b61047f565b3480156101f7575f80fd5b5061020b610206366004610f51565b6104a2565b005b348015610218575f80fd5b5060125b60405160ff9091168152602001610140565b348015610239575f80fd5b50610168610248366004610ec1565b6104d5565b348015610258575f80fd5b507f00000000000000000000000034bae7cc5fbefcaa1213b39fd66f44e45cf089035b6040516001600160a01b039091168152602001610140565b34801561029e575f80fd5b506101bf6102ad366004610ee9565b6001600160a01b03165f9081526020819052604090205490565b3480156102d2575f80fd5b5061020b6104f6565b3480156102e6575f80fd5b5060075461010090046001600160a01b031661027b565b348015610308575f80fd5b50610133610509565b34801561031c575f80fd5b5061016861032b366004610ec1565b610518565b34801561033b575f80fd5b5061016861034a366004610ec1565b610597565b34801561035a575f80fd5b5060055460ff1661021c565b348015610371575f80fd5b5061020b610380366004610f82565b6105a4565b61020b610393366004610fa2565b6105b8565b3480156103a3575f80fd5b506101bf6103b2366004610fc3565b6105ca565b3480156103c2575f80fd5b5061020b6103d1366004610ee9565b6105f4565b6060600380546103e590610feb565b80601f016020809104026020016040519081016040528092919081815260200182805461041190610feb565b801561045c5780601f106104335761010080835404028352916020019161045c565b820191905f5260205f20905b81548152906001019060200180831161043f57829003601f168201915b5050505050905090565b5f3361047381858561066a565b60019150505b92915050565b5f3361048c85828561078d565b610497858585610805565b506001949350505050565b6104aa6109b2565b6001600160a01b0382165f908152600660205260409020805460ff19168215151790555050565b5050565b5f336104738185856104e783836105ca565b6104f19190611037565b61066a565b6104fe6109b2565b6105075f610a12565b565b6060600480546103e590610feb565b5f338161052582866105ca565b90508381101561058a5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b610497828686840361066a565b5f33610473818585610805565b6105ac6109b2565b6105b581610a6b565b50565b6105c06109b2565b6104d18282610b09565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b6105fc6109b2565b6001600160a01b0381166106615760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610581565b6105b581610a12565b6001600160a01b0383166106cc5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610581565b6001600160a01b03821661072d5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610581565b6001600160a01b038381165f8181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b5f61079884846105ca565b90505f1981146107ff57818110156107f25760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610581565b6107ff848484840361066a565b50505050565b6001600160a01b0383166108695760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610581565b6001600160a01b0382166108cb5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610581565b6108d6838383610d56565b6001600160a01b0383165f908152602081905260409020548181101561094d5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610581565b6001600160a01b038481165f81815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36107ff565b6007546001600160a01b036101009091041633146105075760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610581565b600780546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b5f8160ff16118015610a81575060648160ff1611155b610af35760405162461bcd60e51b815260206004820152603e60248201527f4552433230416e74695768616c653a2062616c616e63654c696d69745065726360448201527f656e745f206d757374206265206265747765656e203120616e642031303000006064820152608401610581565b6005805460ff191660ff92909216919091179055565b60075460ff1615610b5c5760405162461bcd60e51b815260206004820181905260248201527f45524332304c69717569643a20616c726561647920696e697469616c697a65646044820152606401610581565b5f8211610bc15760405162461bcd60e51b815260206004820152602d60248201527f45524332304c69717569643a20696e697469616c206c6971756964697479206360448201526c616e6e6f74206265207a65726f60981b6064820152608401610581565b600254821115610c305760405162461bcd60e51b815260206004820152603460248201527f45524332304c69717569643a206c69717569646974792063616e6e6f742062656044820152732067726561746572207468616e20737570706c7960601b6064820152608401610581565b6007805460ff19166001179055610c68307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d8461066a565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663f305d7193430855f8087610ca75733610ca9565b305b60405160e088901b6001600160e01b03191681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c40160606040518083038185885af1158015610d0f573d5f803e3d5ffd5b50505050506040513d601f19601f82011682018060405250810190610d34919061104a565b5050506104d130610d423390565b305f90815260208190526040902054610805565b610d61838383610d66565b505050565b60055460ff1660641480610d9157506001600160a01b0382165f9081526006602052604090205460ff165b80610de9575060055460649060ff16610da960025490565b610db39190611075565b610dbd919061108c565b81610ddc846001600160a01b03165f9081526020819052604090205490565b610de69190611037565b11155b610d615760405162461bcd60e51b815260206004820152603760248201527f4552433230416e74695768616c653a207265636569766572206861732065786360448201527f6565646564207468652062616c616e6365206c696d69740000000000000000006064820152608401610581565b5f6020808352835180828501525f5b81811015610e8657858101830151858201604001528201610e6a565b505f604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610ebc575f80fd5b919050565b5f8060408385031215610ed2575f80fd5b610edb83610ea6565b946020939093013593505050565b5f60208284031215610ef9575f80fd5b610f0282610ea6565b9392505050565b5f805f60608486031215610f1b575f80fd5b610f2484610ea6565b9250610f3260208501610ea6565b9150604084013590509250925092565b80358015158114610ebc575f80fd5b5f8060408385031215610f62575f80fd5b610f6b83610ea6565b9150610f7960208401610f42565b90509250929050565b5f60208284031215610f92575f80fd5b813560ff81168114610f02575f80fd5b5f8060408385031215610fb3575f80fd5b82359150610f7960208401610f42565b5f8060408385031215610fd4575f80fd5b610fdd83610ea6565b9150610f7960208401610ea6565b600181811c90821680610fff57607f821691505b60208210810361101d57634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b8082018082111561047957610479611023565b5f805f6060848603121561105c575f80fd5b8351925060208401519150604084015190509250925092565b808202811582820484141761047957610479611023565b5f826110a657634e487b7160e01b5f52601260045260245ffd5b50049056fea26469706673582212209a86f1f71d04ae00fbf0a42fec92fbe82ac0012b5aa59b53d2cb21ce9dab79f564736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000052b7d2dcc80cd2e4000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000000000000000000000000000000000000000016000000000000000000000000075eee167d2e5cc675f5b07f95d6a93e7088d6c34000000000000000000000000000000000000000000000000000000000000000747435a472d4c5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000447435a4700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004107576ef74bb892aec9bb814c7cbe0e3c707f2b66572d4c07440edfcd91c5146a1b202175e3ca22abdf0f1a7c45330cd1b83957cf53f049e23282fce4af3e11831c00000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name_ (string): GCZG-LP
Arg [1] : symbol_ (string): GCZG
Arg [2] : initialBalance_ (uint256): 100000000000000000000000000
Arg [3] : balanceLimitRate_ (uint8): 10
Arg [4] : uniswapV2Router_ (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
Arg [5] : signature_ (bytes): 0x07576ef74bb892aec9bb814c7cbe0e3c707f2b66572d4c07440edfcd91c5146a1b202175e3ca22abdf0f1a7c45330cd1b83957cf53f049e23282fce4af3e11831c
Arg [6] : feeReceiver_ (address): 0x75Eee167D2E5cC675f5b07f95d6A93E7088d6c34
-----Encoded View---------------
15 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [2] : 00000000000000000000000000000000000000000052b7d2dcc80cd2e4000000
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [4] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [6] : 00000000000000000000000075eee167d2e5cc675f5b07f95d6a93e7088d6c34
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [8] : 47435a472d4c5000000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [10] : 47435a4700000000000000000000000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000041
Arg [12] : 07576ef74bb892aec9bb814c7cbe0e3c707f2b66572d4c07440edfcd91c5146a
Arg [13] : 1b202175e3ca22abdf0f1a7c45330cd1b83957cf53f049e23282fce4af3e1183
Arg [14] : 1c00000000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.