Feature Tip: Add private address tag to any address under My Name Tag !
Source Code
More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 885 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Approve | 21836037 | 388 days ago | IN | 0 ETH | 0.00003282 | ||||
| Approve | 21741527 | 401 days ago | IN | 0 ETH | 0.00004628 | ||||
| Approve | 21272749 | 466 days ago | IN | 0 ETH | 0.00047726 | ||||
| Transfer | 21196759 | 477 days ago | IN | 0 ETH | 0.00088272 | ||||
| Approve | 21134770 | 486 days ago | IN | 0 ETH | 0.00051356 | ||||
| Approve | 20952423 | 511 days ago | IN | 0 ETH | 0.00020829 | ||||
| Approve | 20843079 | 526 days ago | IN | 0 ETH | 0.00055143 | ||||
| Approve | 20744880 | 540 days ago | IN | 0 ETH | 0.00023191 | ||||
| Approve | 20735208 | 541 days ago | IN | 0 ETH | 0.00053215 | ||||
| Approve | 20619537 | 557 days ago | IN | 0 ETH | 0.00012224 | ||||
| Approve | 20614839 | 558 days ago | IN | 0 ETH | 0.00010182 | ||||
| Transfer | 20614798 | 558 days ago | IN | 0 ETH | 0.00016515 | ||||
| Approve | 20614785 | 558 days ago | IN | 0 ETH | 0.00011077 | ||||
| Approve | 20608154 | 559 days ago | IN | 0 ETH | 0.00008114 | ||||
| Approve | 20604981 | 559 days ago | IN | 0 ETH | 0.00004339 | ||||
| Approve | 20554926 | 566 days ago | IN | 0 ETH | 0.00004669 | ||||
| Approve | 20538421 | 569 days ago | IN | 0 ETH | 0.00007245 | ||||
| Approve | 20442049 | 582 days ago | IN | 0 ETH | 0.00061065 | ||||
| Approve | 20357821 | 594 days ago | IN | 0 ETH | 0.00052399 | ||||
| Approve | 20254173 | 608 days ago | IN | 0 ETH | 0.00009782 | ||||
| Approve | 20231086 | 612 days ago | IN | 0 ETH | 0.00018242 | ||||
| Approve | 20170652 | 620 days ago | IN | 0 ETH | 0.00034628 | ||||
| Approve | 20170633 | 620 days ago | IN | 0 ETH | 0.00038276 | ||||
| Approve | 20155395 | 622 days ago | IN | 0 ETH | 0.00018186 | ||||
| Transfer | 20148673 | 623 days ago | IN | 0 ETH | 0.00039714 |
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| Transfer | 20735209 | 541 days ago | 0.00550962 ETH | ||||
| Transfer | 20735209 | 541 days ago | 0.00550962 ETH | ||||
| Transfer | 20619542 | 557 days ago | 0.00562012 ETH | ||||
| Transfer | 20619542 | 557 days ago | 0.00562012 ETH | ||||
| Transfer | 20614843 | 558 days ago | 0.00562012 ETH | ||||
| Transfer | 20614843 | 558 days ago | 0.00562012 ETH | ||||
| Transfer | 20432142 | 584 days ago | 0.00588572 ETH | ||||
| Transfer | 20432142 | 584 days ago | 0.00588572 ETH | ||||
| Transfer | 20144342 | 624 days ago | 0.00601424 ETH | ||||
| Transfer | 20144342 | 624 days ago | 0.00601424 ETH | ||||
| Transfer | 19936725 | 653 days ago | 0.00629199 ETH | ||||
| Transfer | 19936725 | 653 days ago | 0.00629199 ETH | ||||
| Transfer | 19785610 | 674 days ago | 0.00651825 ETH | ||||
| Transfer | 19785610 | 674 days ago | 0.00651825 ETH | ||||
| Transfer | 19742129 | 680 days ago | 0.00673135 ETH | ||||
| Transfer | 19742129 | 680 days ago | 0.00673135 ETH | ||||
| Transfer | 19645194 | 694 days ago | 0.0069741 ETH | ||||
| Transfer | 19645194 | 694 days ago | 0.0069741 ETH | ||||
| Transfer | 19581470 | 703 days ago | 0.00705338 ETH | ||||
| Transfer | 19581470 | 703 days ago | 0.00705338 ETH | ||||
| Transfer | 19518820 | 711 days ago | 0.00746458 ETH | ||||
| Transfer | 19518820 | 711 days ago | 0.00746458 ETH | ||||
| Transfer | 19500638 | 714 days ago | 0.0077342 ETH | ||||
| Transfer | 19500638 | 714 days ago | 0.0077342 ETH | ||||
| Transfer | 19496096 | 715 days ago | 0.00800807 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
FacTAO
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// Website: https://www.factao.io/
// X: https://x.com/FacTAO_io
// Telegram: https://t.me/factao
// Medium: https://medium.com/@factao
// Docs: https://docs.factao.io/
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/interfaces/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./interfaces/IUniswapRouter.sol";
contract FacTAO is ERC20, Ownable {
uint256 constant TIME_LIMIT = 120; // 2 minutes
IUniswapRouter public router;
address public pair;
address public feeWallet;
bool private swapping;
bool public tradingEnabled;
uint256 swapTokensAtAmount;
uint256 maxHold;
uint256 limitTimeStamp;
uint256 tax = 5; //To be shared to stakers
mapping(address => bool) private _isExcludedFromFees;
event ExcludeFromFees(address indexed account, bool isExcluded);
constructor(
address _routerAddress,
address _feeWallet
) ERC20("FacTAO", "FAO") {
feeWallet = _feeWallet;
IUniswapRouter _router = IUniswapRouter(_routerAddress);
address _pair = IFactory(_router.factory()).createPair(
address(this),
_router.WETH()
);
router = _router;
pair = _pair;
excludeFromFees(owner(), true);
excludeFromFees(_feeWallet, true);
excludeFromFees(address(this), true);
setSwapTokensAtAmount(2_500);
maxHold = 100_000 * (10 ** 18);
_mint(owner(), 5_000_000 * (10 ** 18));
}
function setSwapTokensAtAmount(uint256 amount) public onlyOwner {
swapTokensAtAmount = amount * 10 ** 18;
}
function excludeFromFees(address account, bool excluded) public onlyOwner {
require(
_isExcludedFromFees[account] != excluded,
"Account is already excluded"
);
_isExcludedFromFees[account] = excluded;
emit ExcludeFromFees(account, excluded);
}
function isExcludedFromFees(address account) public view returns (bool) {
return _isExcludedFromFees[account];
}
function setFeeWallet(address _feeWallet) public onlyOwner {
feeWallet = _feeWallet;
}
function activateTrading() external onlyOwner {
require(!tradingEnabled, "Trading already enabled");
tradingEnabled = true;
limitTimeStamp = block.timestamp + TIME_LIMIT;
}
function _transfer(
address from,
address to,
uint256 amount
) internal override {
require(from != address(0), "ERC20: Transfer from the zero address");
require(to != address(0), "ERC20: Transfer to the zero address");
address _pair = pair;
if (
!_isExcludedFromFees[from] && !_isExcludedFromFees[to] && !swapping
) {
require(tradingEnabled, "Trading not active");
if (limitTimeStamp > block.timestamp && to != _pair) {
require(
amount + balanceOf(to) <= maxHold,
"Unable to exceed Max Wallet"
);
}
}
if (amount == 0) {
super._transfer(from, to, 0);
return;
}
uint256 contractTokenBalance = balanceOf(address(this));
bool canSwap = contractTokenBalance >= swapTokensAtAmount;
if (
canSwap &&
!swapping &&
to == _pair &&
!_isExcludedFromFees[from] &&
!_isExcludedFromFees[to]
) {
swapping = true;
swapAndSendReward(swapTokensAtAmount);
swapping = false;
}
bool takeFee = !swapping;
if (_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
takeFee = false;
}
if (_pair != to && _pair != from) {
takeFee = false;
}
if (takeFee) {
uint256 feeAmt;
feeAmt = (amount * tax) / 100;
amount = amount - feeAmt;
super._transfer(from, address(this), feeAmt);
}
super._transfer(from, to, amount);
}
function swapAndSendReward(uint256 tokens) private {
swapTokensForETH(tokens);
uint256 currentbalance = address(this).balance;
if (currentbalance > 0) {
(bool success, ) = payable(feeWallet).call{
value: currentbalance
}("");
require(success, "Send error");
}
}
function swapTokensForETH(uint256 tokenAmount) private {
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = router.WETH();
_approve(address(this), address(router), tokenAmount);
router.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
0,
path,
address(this),
block.timestamp
);
}
receive() external payable {}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. 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);
}
}// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol) pragma solidity ^0.8.0; import "../token/ERC20/IERC20.sol";
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* 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 {}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}// SPDX-License-Identifier: MIT
// 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);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (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;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}pragma solidity ^0.8.0;
interface IPair {
function getReserves()
external
view
returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
function token0() external view returns (address);
}
interface IFactory {
function createPair(
address tokenA,
address tokenB
) external returns (address pair);
function getPair(
address tokenA,
address tokenB
) external view returns (address pair);
}
interface IUniswapRouter {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidityETH(
address token,
uint amountTokenDesired,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
)
external
payable
returns (uint amountToken, uint amountETH, uint liquidity);
function swapExactTokensForTokensSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
function swapExactETHForTokens(
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external payable returns (uint[] memory amounts);
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_routerAddress","type":"address"},{"internalType":"address","name":"_feeWallet","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"isExcluded","type":"bool"}],"name":"ExcludeFromFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"activateTrading","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":"account","type":"address"},{"internalType":"bool","name":"excluded","type":"bool"}],"name":"excludeFromFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"address","name":"account","type":"address"}],"name":"isExcludedFromFees","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":"pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"contract IUniswapRouter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_feeWallet","type":"address"}],"name":"setFeeWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setSwapTokensAtAmount","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":[],"name":"tradingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
60806040526005600c553480156200001657600080fd5b5060405162001c5e38038062001c5e833981016040819052620000399162000621565b6040518060400160405280600681526020016546616354414f60d01b8152506040518060400160405280600381526020016246414f60e81b81525081600390805190602001906200008c9291906200055e565b508051620000a29060049060208401906200055e565b505050620000bf620000b9620002e460201b60201c565b620002e8565b80600860006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060008290506000816001600160a01b031663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200012c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000152919062000659565b6001600160a01b031663c9c6539630846001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015620001a0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001c6919062000659565b6040516001600160e01b031960e085901b1681526001600160a01b039283166004820152911660248201526044016020604051808303816000875af115801562000214573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200023a919062000659565b600680546001600160a01b038581166001600160a01b0319928316179092556007805484841692169190911790556005549192506200027c911660016200033a565b620002898360016200033a565b620002963060016200033a565b620002a36109c462000419565b69152d02c7e14af6800000600a55620002da620002c86005546001600160a01b031690565b6a0422ca8b0a00a4250000006200043d565b505050506200070d565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6200034462000500565b6001600160a01b0382166000908152600d602052604090205481151560ff909116151503620003ba5760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c75646564000000000060448201526064015b60405180910390fd5b6001600160a01b0382166000818152600d6020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6200042362000500565b6200043781670de0b6b3a764000062000694565b60095550565b6001600160a01b038216620004955760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401620003b1565b8060026000828254620004a99190620006b6565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6005546001600160a01b031633146200055c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401620003b1565b565b8280546200056c90620006d1565b90600052602060002090601f016020900481019282620005905760008555620005db565b82601f10620005ab57805160ff1916838001178555620005db565b82800160010185558215620005db579182015b82811115620005db578251825591602001919060010190620005be565b50620005e9929150620005ed565b5090565b5b80821115620005e95760008155600101620005ee565b80516001600160a01b03811681146200061c57600080fd5b919050565b600080604083850312156200063557600080fd5b620006408362000604565b9150620006506020840162000604565b90509250929050565b6000602082840312156200066c57600080fd5b620006778262000604565b9392505050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615620006b157620006b16200067e565b500290565b60008219821115620006cc57620006cc6200067e565b500190565b600181811c90821680620006e657607f821691505b6020821081036200070757634e487b7160e01b600052602260045260246000fd5b50919050565b611541806200071d6000396000f3fe6080604052600436106101445760003560e01c80638da5cb5b116100b6578063afa4f3b21161006f578063afa4f3b2146103a9578063c0246668146103c9578063dd62ed3e146103e9578063f25f4b5614610409578063f2fde38b14610429578063f887ea401461044957600080fd5b80638da5cb5b146102e257806390d49b9d1461031457806395d89b4114610334578063a457c2d714610349578063a8aa1b3114610369578063a9059cbb1461038957600080fd5b8063313ce56711610108578063313ce56714610201578063395093511461021d5780634ada218b1461023d5780634fbee1931461025e57806370a0823114610297578063715018a6146102cd57600080fd5b806306fdde0314610150578063095ea7b31461017b5780630bd05b69146101ab57806318160ddd146101c257806323b872dd146101e157600080fd5b3661014b57005b600080fd5b34801561015c57600080fd5b50610165610469565b6040516101729190611227565b60405180910390f35b34801561018757600080fd5b5061019b610196366004611291565b6104fb565b6040519015158152602001610172565b3480156101b757600080fd5b506101c0610513565b005b3480156101ce57600080fd5b506002545b604051908152602001610172565b3480156101ed57600080fd5b5061019b6101fc3660046112bd565b61059d565b34801561020d57600080fd5b5060405160128152602001610172565b34801561022957600080fd5b5061019b610238366004611291565b6105c1565b34801561024957600080fd5b5060085461019b90600160a81b900460ff1681565b34801561026a57600080fd5b5061019b6102793660046112fe565b6001600160a01b03166000908152600d602052604090205460ff1690565b3480156102a357600080fd5b506101d36102b23660046112fe565b6001600160a01b031660009081526020819052604090205490565b3480156102d957600080fd5b506101c06105e3565b3480156102ee57600080fd5b506005546001600160a01b03165b6040516001600160a01b039091168152602001610172565b34801561032057600080fd5b506101c061032f3660046112fe565b6105f7565b34801561034057600080fd5b50610165610621565b34801561035557600080fd5b5061019b610364366004611291565b610630565b34801561037557600080fd5b506007546102fc906001600160a01b031681565b34801561039557600080fd5b5061019b6103a4366004611291565b6106ab565b3480156103b557600080fd5b506101c06103c4366004611322565b6106b9565b3480156103d557600080fd5b506101c06103e436600461133b565b6106d9565b3480156103f557600080fd5b506101d3610404366004611379565b6107b0565b34801561041557600080fd5b506008546102fc906001600160a01b031681565b34801561043557600080fd5b506101c06104443660046112fe565b6107db565b34801561045557600080fd5b506006546102fc906001600160a01b031681565b606060038054610478906113a7565b80601f01602080910402602001604051908101604052809291908181526020018280546104a4906113a7565b80156104f15780601f106104c6576101008083540402835291602001916104f1565b820191906000526020600020905b8154815290600101906020018083116104d457829003601f168201915b5050505050905090565b600033610509818585610854565b5060019392505050565b61051b610978565b600854600160a81b900460ff161561057a5760405162461bcd60e51b815260206004820152601760248201527f54726164696e6720616c726561647920656e61626c656400000000000000000060448201526064015b60405180910390fd5b6008805460ff60a81b1916600160a81b1790556105986078426113f7565b600b55565b6000336105ab8582856109d2565b6105b6858585610a4c565b506001949350505050565b6000336105098185856105d483836107b0565b6105de91906113f7565b610854565b6105eb610978565b6105f56000610e20565b565b6105ff610978565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b606060048054610478906113a7565b6000338161063e82866107b0565b90508381101561069e5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610571565b6105b68286868403610854565b600033610509818585610a4c565b6106c1610978565b6106d381670de0b6b3a764000061140f565b60095550565b6106e1610978565b6001600160a01b0382166000908152600d602052604090205481151560ff9091161515036107515760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c7564656400000000006044820152606401610571565b6001600160a01b0382166000818152600d6020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6107e3610978565b6001600160a01b0381166108485760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610571565b61085181610e20565b50565b6001600160a01b0383166108b65760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610571565b6001600160a01b0382166109175760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610571565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6005546001600160a01b031633146105f55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610571565b60006109de84846107b0565b90506000198114610a465781811015610a395760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610571565b610a468484848403610854565b50505050565b6001600160a01b038316610ab05760405162461bcd60e51b815260206004820152602560248201527f45524332303a205472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610571565b6001600160a01b038216610b125760405162461bcd60e51b815260206004820152602360248201527f45524332303a205472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610571565b6007546001600160a01b038481166000908152600d602052604090205491169060ff16158015610b5b57506001600160a01b0383166000908152600d602052604090205460ff16155b8015610b715750600854600160a01b900460ff16155b15610c6057600854600160a81b900460ff16610bc45760405162461bcd60e51b815260206004820152601260248201527154726164696e67206e6f742061637469766560701b6044820152606401610571565b42600b54118015610be75750806001600160a01b0316836001600160a01b031614155b15610c6057600a546001600160a01b038416600090815260208190526040902054610c1290846113f7565b1115610c605760405162461bcd60e51b815260206004820152601b60248201527f556e61626c6520746f20657863656564204d61782057616c6c657400000000006044820152606401610571565b81600003610c7457610a4684846000610e72565b3060009081526020819052604090205460095481108015908190610ca25750600854600160a01b900460ff16155b8015610cbf5750826001600160a01b0316856001600160a01b0316145b8015610ce457506001600160a01b0386166000908152600d602052604090205460ff16155b8015610d0957506001600160a01b0385166000908152600d602052604090205460ff16155b15610d3b576008805460ff60a01b1916600160a01b179055600954610d2d90611027565b6008805460ff60a01b191690555b6008546001600160a01b0387166000908152600d602052604090205460ff600160a01b909204821615911680610d8957506001600160a01b0386166000908152600d602052604090205460ff165b15610d92575060005b856001600160a01b0316846001600160a01b031614158015610dc65750866001600160a01b0316846001600160a01b031614155b15610dcf575060005b8015610e0c5760006064600c5487610de7919061140f565b610df1919061142e565b9050610dfd8187611450565b9550610e0a883083610e72565b505b610e17878787610e72565b50505050505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038316610ed65760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610571565b6001600160a01b038216610f385760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610571565b610f438383836110c7565b6001600160a01b03831660009081526020819052604090205481811015610fbb5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610571565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610a468484846110c7565b611030816110cd565b4780156110c9576008546040516000916001600160a01b03169083908381818185875af1925050503d8060008114611084576040519150601f19603f3d011682016040523d82523d6000602084013e611089565b606091505b50509050806110c75760405162461bcd60e51b815260206004820152600a60248201526929b2b7321032b93937b960b11b6044820152606401610571565b505b5050565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061110257611102611467565b6001600160a01b03928316602091820292909201810191909152600654604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa15801561115b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061117f919061147d565b8160018151811061119257611192611467565b6001600160a01b0392831660209182029290920101526006546111b89130911684610854565b60065460405163791ac94760e01b81526001600160a01b039091169063791ac947906111f190859060009086903090429060040161149a565b600060405180830381600087803b15801561120b57600080fd5b505af115801561121f573d6000803e3d6000fd5b505050505050565b600060208083528351808285015260005b8181101561125457858101830151858201604001528201611238565b81811115611266576000604083870101525b50601f01601f1916929092016040019392505050565b6001600160a01b038116811461085157600080fd5b600080604083850312156112a457600080fd5b82356112af8161127c565b946020939093013593505050565b6000806000606084860312156112d257600080fd5b83356112dd8161127c565b925060208401356112ed8161127c565b929592945050506040919091013590565b60006020828403121561131057600080fd5b813561131b8161127c565b9392505050565b60006020828403121561133457600080fd5b5035919050565b6000806040838503121561134e57600080fd5b82356113598161127c565b91506020830135801515811461136e57600080fd5b809150509250929050565b6000806040838503121561138c57600080fd5b82356113978161127c565b9150602083013561136e8161127c565b600181811c908216806113bb57607f821691505b6020821081036113db57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000821982111561140a5761140a6113e1565b500190565b6000816000190483118215151615611429576114296113e1565b500290565b60008261144b57634e487b7160e01b600052601260045260246000fd5b500490565b600082821015611462576114626113e1565b500390565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561148f57600080fd5b815161131b8161127c565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156114ea5784516001600160a01b0316835293830193918301916001016114c5565b50506001600160a01b0396909616606085015250505060800152939250505056fea2646970667358221220ef6dcd9a6420c63cd0655d5f71bbe6660e3ef3fb800fbbfd68c6671dac228e1664736f6c634300080d00330000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000afa247243df5d55eacd8cea6b3544b60a9724ee3
Deployed Bytecode
0x6080604052600436106101445760003560e01c80638da5cb5b116100b6578063afa4f3b21161006f578063afa4f3b2146103a9578063c0246668146103c9578063dd62ed3e146103e9578063f25f4b5614610409578063f2fde38b14610429578063f887ea401461044957600080fd5b80638da5cb5b146102e257806390d49b9d1461031457806395d89b4114610334578063a457c2d714610349578063a8aa1b3114610369578063a9059cbb1461038957600080fd5b8063313ce56711610108578063313ce56714610201578063395093511461021d5780634ada218b1461023d5780634fbee1931461025e57806370a0823114610297578063715018a6146102cd57600080fd5b806306fdde0314610150578063095ea7b31461017b5780630bd05b69146101ab57806318160ddd146101c257806323b872dd146101e157600080fd5b3661014b57005b600080fd5b34801561015c57600080fd5b50610165610469565b6040516101729190611227565b60405180910390f35b34801561018757600080fd5b5061019b610196366004611291565b6104fb565b6040519015158152602001610172565b3480156101b757600080fd5b506101c0610513565b005b3480156101ce57600080fd5b506002545b604051908152602001610172565b3480156101ed57600080fd5b5061019b6101fc3660046112bd565b61059d565b34801561020d57600080fd5b5060405160128152602001610172565b34801561022957600080fd5b5061019b610238366004611291565b6105c1565b34801561024957600080fd5b5060085461019b90600160a81b900460ff1681565b34801561026a57600080fd5b5061019b6102793660046112fe565b6001600160a01b03166000908152600d602052604090205460ff1690565b3480156102a357600080fd5b506101d36102b23660046112fe565b6001600160a01b031660009081526020819052604090205490565b3480156102d957600080fd5b506101c06105e3565b3480156102ee57600080fd5b506005546001600160a01b03165b6040516001600160a01b039091168152602001610172565b34801561032057600080fd5b506101c061032f3660046112fe565b6105f7565b34801561034057600080fd5b50610165610621565b34801561035557600080fd5b5061019b610364366004611291565b610630565b34801561037557600080fd5b506007546102fc906001600160a01b031681565b34801561039557600080fd5b5061019b6103a4366004611291565b6106ab565b3480156103b557600080fd5b506101c06103c4366004611322565b6106b9565b3480156103d557600080fd5b506101c06103e436600461133b565b6106d9565b3480156103f557600080fd5b506101d3610404366004611379565b6107b0565b34801561041557600080fd5b506008546102fc906001600160a01b031681565b34801561043557600080fd5b506101c06104443660046112fe565b6107db565b34801561045557600080fd5b506006546102fc906001600160a01b031681565b606060038054610478906113a7565b80601f01602080910402602001604051908101604052809291908181526020018280546104a4906113a7565b80156104f15780601f106104c6576101008083540402835291602001916104f1565b820191906000526020600020905b8154815290600101906020018083116104d457829003601f168201915b5050505050905090565b600033610509818585610854565b5060019392505050565b61051b610978565b600854600160a81b900460ff161561057a5760405162461bcd60e51b815260206004820152601760248201527f54726164696e6720616c726561647920656e61626c656400000000000000000060448201526064015b60405180910390fd5b6008805460ff60a81b1916600160a81b1790556105986078426113f7565b600b55565b6000336105ab8582856109d2565b6105b6858585610a4c565b506001949350505050565b6000336105098185856105d483836107b0565b6105de91906113f7565b610854565b6105eb610978565b6105f56000610e20565b565b6105ff610978565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b606060048054610478906113a7565b6000338161063e82866107b0565b90508381101561069e5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610571565b6105b68286868403610854565b600033610509818585610a4c565b6106c1610978565b6106d381670de0b6b3a764000061140f565b60095550565b6106e1610978565b6001600160a01b0382166000908152600d602052604090205481151560ff9091161515036107515760405162461bcd60e51b815260206004820152601b60248201527f4163636f756e7420697320616c7265616479206578636c7564656400000000006044820152606401610571565b6001600160a01b0382166000818152600d6020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6107e3610978565b6001600160a01b0381166108485760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610571565b61085181610e20565b50565b6001600160a01b0383166108b65760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610571565b6001600160a01b0382166109175760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610571565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6005546001600160a01b031633146105f55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610571565b60006109de84846107b0565b90506000198114610a465781811015610a395760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610571565b610a468484848403610854565b50505050565b6001600160a01b038316610ab05760405162461bcd60e51b815260206004820152602560248201527f45524332303a205472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610571565b6001600160a01b038216610b125760405162461bcd60e51b815260206004820152602360248201527f45524332303a205472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610571565b6007546001600160a01b038481166000908152600d602052604090205491169060ff16158015610b5b57506001600160a01b0383166000908152600d602052604090205460ff16155b8015610b715750600854600160a01b900460ff16155b15610c6057600854600160a81b900460ff16610bc45760405162461bcd60e51b815260206004820152601260248201527154726164696e67206e6f742061637469766560701b6044820152606401610571565b42600b54118015610be75750806001600160a01b0316836001600160a01b031614155b15610c6057600a546001600160a01b038416600090815260208190526040902054610c1290846113f7565b1115610c605760405162461bcd60e51b815260206004820152601b60248201527f556e61626c6520746f20657863656564204d61782057616c6c657400000000006044820152606401610571565b81600003610c7457610a4684846000610e72565b3060009081526020819052604090205460095481108015908190610ca25750600854600160a01b900460ff16155b8015610cbf5750826001600160a01b0316856001600160a01b0316145b8015610ce457506001600160a01b0386166000908152600d602052604090205460ff16155b8015610d0957506001600160a01b0385166000908152600d602052604090205460ff16155b15610d3b576008805460ff60a01b1916600160a01b179055600954610d2d90611027565b6008805460ff60a01b191690555b6008546001600160a01b0387166000908152600d602052604090205460ff600160a01b909204821615911680610d8957506001600160a01b0386166000908152600d602052604090205460ff165b15610d92575060005b856001600160a01b0316846001600160a01b031614158015610dc65750866001600160a01b0316846001600160a01b031614155b15610dcf575060005b8015610e0c5760006064600c5487610de7919061140f565b610df1919061142e565b9050610dfd8187611450565b9550610e0a883083610e72565b505b610e17878787610e72565b50505050505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038316610ed65760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610571565b6001600160a01b038216610f385760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610571565b610f438383836110c7565b6001600160a01b03831660009081526020819052604090205481811015610fbb5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610571565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610a468484846110c7565b611030816110cd565b4780156110c9576008546040516000916001600160a01b03169083908381818185875af1925050503d8060008114611084576040519150601f19603f3d011682016040523d82523d6000602084013e611089565b606091505b50509050806110c75760405162461bcd60e51b815260206004820152600a60248201526929b2b7321032b93937b960b11b6044820152606401610571565b505b5050565b604080516002808252606082018352600092602083019080368337019050509050308160008151811061110257611102611467565b6001600160a01b03928316602091820292909201810191909152600654604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa15801561115b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061117f919061147d565b8160018151811061119257611192611467565b6001600160a01b0392831660209182029290920101526006546111b89130911684610854565b60065460405163791ac94760e01b81526001600160a01b039091169063791ac947906111f190859060009086903090429060040161149a565b600060405180830381600087803b15801561120b57600080fd5b505af115801561121f573d6000803e3d6000fd5b505050505050565b600060208083528351808285015260005b8181101561125457858101830151858201604001528201611238565b81811115611266576000604083870101525b50601f01601f1916929092016040019392505050565b6001600160a01b038116811461085157600080fd5b600080604083850312156112a457600080fd5b82356112af8161127c565b946020939093013593505050565b6000806000606084860312156112d257600080fd5b83356112dd8161127c565b925060208401356112ed8161127c565b929592945050506040919091013590565b60006020828403121561131057600080fd5b813561131b8161127c565b9392505050565b60006020828403121561133457600080fd5b5035919050565b6000806040838503121561134e57600080fd5b82356113598161127c565b91506020830135801515811461136e57600080fd5b809150509250929050565b6000806040838503121561138c57600080fd5b82356113978161127c565b9150602083013561136e8161127c565b600181811c908216806113bb57607f821691505b6020821081036113db57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000821982111561140a5761140a6113e1565b500190565b6000816000190483118215151615611429576114296113e1565b500290565b60008261144b57634e487b7160e01b600052601260045260246000fd5b500490565b600082821015611462576114626113e1565b500390565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561148f57600080fd5b815161131b8161127c565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156114ea5784516001600160a01b0316835293830193918301916001016114c5565b50506001600160a01b0396909616606085015250505060800152939250505056fea2646970667358221220ef6dcd9a6420c63cd0655d5f71bbe6660e3ef3fb800fbbfd68c6671dac228e1664736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000afa247243df5d55eacd8cea6b3544b60a9724ee3
-----Decoded View---------------
Arg [0] : _routerAddress (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
Arg [1] : _feeWallet (address): 0xAfa247243dF5d55eaCd8CeA6b3544b60a9724EE3
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Arg [1] : 000000000000000000000000afa247243df5d55eacd8cea6b3544b60a9724ee3
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
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.