Latest 25 from a total of 1,572 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Approve | 24324688 | 9 days ago | IN | 0 ETH | 0.00000789 | ||||
| Approve | 24313830 | 11 days ago | IN | 0 ETH | 0.00010348 | ||||
| Approve | 24311500 | 11 days ago | IN | 0 ETH | 0.0000945 | ||||
| Approve | 24308142 | 12 days ago | IN | 0 ETH | 0.00014282 | ||||
| Approve | 24308022 | 12 days ago | IN | 0 ETH | 0.00009436 | ||||
| Approve | 24165655 | 31 days ago | IN | 0 ETH | 0.00001338 | ||||
| Approve | 24154871 | 33 days ago | IN | 0 ETH | 0.0000052 | ||||
| Approve | 24136340 | 35 days ago | IN | 0 ETH | 0.00000154 | ||||
| Approve | 23814866 | 81 days ago | IN | 0 ETH | 0.00001233 | ||||
| Approve | 23740242 | 91 days ago | IN | 0 ETH | 0.00013271 | ||||
| Transfer | 23740237 | 91 days ago | IN | 0 ETH | 0.0001881 | ||||
| Approve | 23693398 | 98 days ago | IN | 0 ETH | 0.00001594 | ||||
| Approve | 23629848 | 106 days ago | IN | 0 ETH | 0.00000838 | ||||
| Approve | 23628910 | 107 days ago | IN | 0 ETH | 0.00000975 | ||||
| Approve | 23547454 | 118 days ago | IN | 0 ETH | 0.00003103 | ||||
| Approve | 23547452 | 118 days ago | IN | 0 ETH | 0.00004922 | ||||
| Approve | 23547434 | 118 days ago | IN | 0 ETH | 0.000057 | ||||
| Approve | 23458760 | 130 days ago | IN | 0 ETH | 0.00001026 | ||||
| Approve | 23415123 | 136 days ago | IN | 0 ETH | 0.00005963 | ||||
| Approve | 23369923 | 143 days ago | IN | 0 ETH | 0.0002129 | ||||
| Approve | 23368698 | 143 days ago | IN | 0 ETH | 0.00013183 | ||||
| Approve | 23282043 | 155 days ago | IN | 0 ETH | 0.00001308 | ||||
| Approve | 23141654 | 175 days ago | IN | 0 ETH | 0.00008767 | ||||
| Approve | 23141646 | 175 days ago | IN | 0 ETH | 0.00008652 | ||||
| Approve | 23141638 | 175 days ago | IN | 0 ETH | 0.00008554 |
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| Transfer | 19891674 | 629 days ago | 0.09375271 ETH | ||||
| Transfer | 19891674 | 629 days ago | 0.06047271 ETH | ||||
| Transfer | 19868102 | 632 days ago | 0.36170707 ETH | ||||
| Transfer | 19868102 | 632 days ago | 0.36170707 ETH | ||||
| Transfer | 19868090 | 632 days ago | 0.35078419 ETH | ||||
| Transfer | 19868090 | 632 days ago | 0.35078419 ETH | ||||
| Transfer | 19868088 | 632 days ago | 0.36785481 ETH | ||||
| Transfer | 19868088 | 632 days ago | 0.36785481 ETH | ||||
| Transfer | 19868080 | 632 days ago | 0.33391232 ETH | ||||
| Transfer | 19868080 | 632 days ago | 0.33391232 ETH | ||||
| Transfer | 19868080 | 632 days ago | 0.36849675 ETH | ||||
| Transfer | 19868080 | 632 days ago | 0.36849675 ETH | ||||
| Transfer | 19868078 | 632 days ago | 0.36146723 ETH | ||||
| Transfer | 19868078 | 632 days ago | 0.36146723 ETH | ||||
| Transfer | 19868074 | 632 days ago | 0.35944801 ETH | ||||
| Transfer | 19868074 | 632 days ago | 0.35944801 ETH | ||||
| Transfer | 19868074 | 632 days ago | 0.38997682 ETH | ||||
| Transfer | 19868074 | 632 days ago | 0.38997682 ETH | ||||
| Transfer | 19868056 | 632 days ago | 0.39382266 ETH | ||||
| Transfer | 19868056 | 632 days ago | 0.39382266 ETH | ||||
| Transfer | 19868056 | 632 days ago | 0.39015376 ETH | ||||
| Transfer | 19868056 | 632 days ago | 0.39015376 ETH | ||||
| Transfer | 19868056 | 632 days ago | 0.43661054 ETH | ||||
| Transfer | 19868056 | 632 days ago | 0.43661054 ETH | ||||
| Transfer | 19868051 | 632 days ago | 0.44513286 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
Ketamine
Compiler Version
v0.8.25+commit.b61c2a91
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
/*
K K EEEEEEEE TTTTTTTTT AAAAAAAA M M IIIIIIII N N EEEEEEEE
K K E T A A MM MM II N N N E
K K E T A A M M M M II N N N E
K K E T A A M M M M II N N N E
K K EEEEEEEE T AAAAAAAAAAAAA M M M II N N N EEEEEEEE
K K E T A A M M II N N N E
K K E T A A M M II N NN E
K K E T A A M M II N N E
K K E T A A M M II N N E
K K EEEEEEEE T A A M M IIIIIIII N N EEEEEEEE
Socials:
https://t.me/KetamineCoin
https://x.com/KetamineCoin
https://ketamine.icu/
*/
// SPDX-License-Identifier: MIT
pragma solidity 0.8.25;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol";
import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol";
import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol";
import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol";
contract Ketamine is Context, ERC20, Ownable {
using SafeERC20 for IERC20;
using Address for address;
IUniswapV2Router02 public uniswapV2Router;
address public uniswapV2Pair;
uint256 public buyTaxes;
uint256 public sellTaxes;
mapping(address => bool) public pair;
mapping (address => bool) public _isExcludedFromFees;
uint256 private start;
uint256 private end;
uint256 public swapTokensAtAmount;
uint256 public initialDeploymentTime;
bool public swapping;
bool public taxDisabled;
uint256 private maxWalletTimer;
uint256 private started;
uint256 private maxWallet;
uint256 private _supply;
address payable teamWallet;
event TaxesSent(
address taxWallet,
uint256 ETHAmount
);
event TaxesReduce(
uint256 oldBuyTax,
uint256 oldSellTax,
uint256 newBuyTax,
uint256 newSellTax
);
event TradingPairAdded(
address indexed newPair
);
constructor(address payable _teamWallet, uint256 _maxWalletTimer, uint256 _buyTaxes, uint256 _sellTaxes) ERC20("Ketamine", "Ketamine") Ownable(msg.sender) {
uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); // Router address for Uniswap Mainnet
uniswapV2Pair = address(0);
teamWallet = _teamWallet;
_supply = 1 * 10 ** 9 * 10 ** decimals();
buyTaxes = _buyTaxes;
sellTaxes = _sellTaxes;
maxWallet = ((_supply * 93) / 10000); // Max wallet of 0.93% of total supply
maxWalletTimer = _maxWalletTimer;
swapTokensAtAmount = ((_supply * 25) / 10000); // Swap 0.25% of total supply
_isExcludedFromFees[address(this)] = true;
_isExcludedFromFees[owner()] = true;
_mint(owner(), _supply);
}
receive() external payable {
}
function addPair(address toPair) public onlyOwner {
uniswapV2Pair = toPair;
start = block.number;
initialDeploymentTime = block.timestamp;
pair[toPair] = true;
emit TradingPairAdded(toPair);
}
function taxCheck() private {
uint256 swapTime = block.timestamp;
uint256 _buyTaxes = buyTaxes;
uint256 _sellTaxes = sellTaxes;
if(swapTime > initialDeploymentTime + 30 minutes) {
buyTaxes = 0;
sellTaxes = 0;
taxDisabled = true;
emit TaxesReduce(_buyTaxes, _sellTaxes, buyTaxes, sellTaxes);
} else if(swapTime > initialDeploymentTime + 20 minutes) {
buyTaxes = 10;
sellTaxes = 10;
emit TaxesReduce(_buyTaxes, _sellTaxes, buyTaxes, sellTaxes);
}
}
function _update(
address from,
address to,
uint256 amount
) internal override {
if(uniswapV2Pair != address(0) && !taxDisabled && to != owner()) {
taxCheck();
}
if(uniswapV2Pair == address(0) && from != owner() && to != owner()) {
revert("Trading is not yet active");
}
if((block.timestamp < (initialDeploymentTime + maxWalletTimer)) && to != address(0) && to != uniswapV2Pair && !_isExcludedFromFees[to] && !_isExcludedFromFees[from]) {
uint256 balance = balanceOf(to);
require(balance + amount <= maxWallet, "Transfer amount exceeds maximum wallet");
}
uint256 contractTokenBalance = (balanceOf(address(this)));
bool canSwap = contractTokenBalance >= swapTokensAtAmount;
if(taxDisabled && contractTokenBalance > 0) {
canSwap = true;
}
if(canSwap && !swapping && pair[to] && from != address(uniswapV2Router) && from != owner() && to != owner() && !_isExcludedFromFees[to] && !_isExcludedFromFees[from]) {
contractTokenBalance = contractTokenBalance > swapTokensAtAmount ? swapTokensAtAmount : contractTokenBalance;
swapping = true;
swapTokensForEth(contractTokenBalance);
uint256 taxAmount = address(this).balance;
(bool success, ) = address(teamWallet).call{value: taxAmount}("");
require(success, "Failed to send marketing fee");
emit TaxesSent(address(teamWallet), taxAmount);
swapping = false;
}
bool takeFee = !swapping;
// if any account belongs to _isExcludedFromFee account then remove the fee
if(_isExcludedFromFees[from] || _isExcludedFromFees[to] || taxDisabled) {
takeFee = false;
super._update(from, to, amount);
}
else if(!pair[to] && !pair[from] && !_isExcludedFromFees[from] && !_isExcludedFromFees[to]) {
takeFee = false;
super._update(from, to, amount);
}
if(takeFee) {
uint256 BuyFees = ((amount * buyTaxes) / 1000);
uint256 SellFees = ((amount * sellTaxes) / 1000);
// if sell
if(pair[to] && sellTaxes > 0) {
amount -= SellFees;
super._update(from, address(this), SellFees);
super._update(from, to, amount);
}
// if buy transfer
else if(pair[from] && buyTaxes > 0) {
amount -= BuyFees;
super._update(from, address(this), BuyFees);
super._update(from, to, amount);
}
else {
super._update(from, to, amount);
}
}
}
function swapTokensForEth(uint256 tokenAmount) private {
// generate the uniswap pair path of token -> weth
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = uniswapV2Router.WETH();
_approve(address(this), address(uniswapV2Router), tokenAmount);
// make the swap
uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
0, // accept any amount of ETH
path,
address(this),
block.timestamp
);
}
}pragma solidity >=0.6.2;
import './IUniswapV2Router01.sol';
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;
}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);
}pragma solidity >=0.5.0;
interface IUniswapV2Pair {
event Approval(address indexed owner, address indexed spender, uint value);
event Transfer(address indexed from, address indexed to, uint value);
function name() external pure returns (string memory);
function symbol() external pure returns (string memory);
function decimals() external pure returns (uint8);
function totalSupply() external view returns (uint);
function balanceOf(address owner) external view returns (uint);
function allowance(address owner, address spender) external view returns (uint);
function approve(address spender, uint value) external returns (bool);
function transfer(address to, uint value) external returns (bool);
function transferFrom(address from, address to, uint value) external returns (bool);
function DOMAIN_SEPARATOR() external view returns (bytes32);
function PERMIT_TYPEHASH() external pure returns (bytes32);
function nonces(address owner) external view returns (uint);
function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;
event Mint(address indexed sender, uint amount0, uint amount1);
event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
event Swap(
address indexed sender,
uint amount0In,
uint amount1In,
uint amount0Out,
uint amount1Out,
address indexed to
);
event Sync(uint112 reserve0, uint112 reserve1);
function MINIMUM_LIQUIDITY() external pure returns (uint);
function factory() external view returns (address);
function token0() external view returns (address);
function token1() external view returns (address);
function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
function price0CumulativeLast() external view returns (uint);
function price1CumulativeLast() external view returns (uint);
function kLast() external view returns (uint);
function mint(address to) external returns (uint liquidity);
function burn(address to) external returns (uint amount0, uint amount1);
function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
function skim(address to) external;
function sync() external;
function initialize(address, address) external;
}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;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
pragma solidity ^0.8.20;
import {Context} from "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* The initial owner is set to the address provided by the deployer. This can
* later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
/**
* @dev The caller account is not authorized to perform an operation.
*/
error OwnableUnauthorizedAccount(address account);
/**
* @dev The owner is not a valid owner account. (eg. `address(0)`)
*/
error OwnableInvalidOwner(address owner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the address provided by the deployer as the initial owner.
*/
constructor(address initialOwner) {
if (initialOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(initialOwner);
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
if (owner() != _msgSender()) {
revert OwnableUnauthorizedAccount(_msgSender());
}
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../IERC20.sol";
import {IERC20Permit} from "../extensions/IERC20Permit.sol";
import {Address} from "../../../utils/Address.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
using Address for address;
/**
* @dev An operation with an ERC20 token failed.
*/
error SafeERC20FailedOperation(address token);
/**
* @dev Indicates a failed `decreaseAllowance` request.
*/
error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);
/**
* @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
}
/**
* @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
* calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
*/
function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
}
/**
* @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 oldAllowance = token.allowance(address(this), spender);
forceApprove(token, spender, oldAllowance + value);
}
/**
* @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
* value, non-reverting calls are assumed to be successful.
*/
function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
unchecked {
uint256 currentAllowance = token.allowance(address(this), spender);
if (currentAllowance < requestedDecrease) {
revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
}
forceApprove(token, spender, currentAllowance - requestedDecrease);
}
}
/**
* @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
* to be set to zero before setting it to a non-zero value, such as USDT.
*/
function forceApprove(IERC20 token, address spender, uint256 value) internal {
bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));
if (!_callOptionalReturnBool(token, approvalCall)) {
_callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
_callOptionalReturn(token, approvalCall);
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data);
if (returndata.length != 0 && !abi.decode(returndata, (bool))) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*
* This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
*/
function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
// and not revert is the subcall reverts.
(bool success, bytes memory returndata) = address(token).call(data);
return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)
pragma solidity ^0.8.20;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev The ETH balance of the account is not enough to perform the operation.
*/
error AddressInsufficientBalance(address account);
/**
* @dev There's no code at `target` (it is not a contract).
*/
error AddressEmptyCode(address target);
/**
* @dev A call to an address target failed. The target may have reverted.
*/
error FailedInnerCall();
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
if (address(this).balance < amount) {
revert AddressInsufficientBalance(address(this));
}
(bool success, ) = recipient.call{value: amount}("");
if (!success) {
revert FailedInnerCall();
}
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason or custom error, it is bubbled
* up by this function (like regular Solidity function calls). However, if
* the call reverted with no returned reason, this function reverts with a
* {FailedInnerCall} error.
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
if (address(this).balance < value) {
revert AddressInsufficientBalance(address(this));
}
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
* was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an
* unsuccessful call.
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata
) internal view returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
// only check if target is a contract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
if (returndata.length == 0 && target.code.length == 0) {
revert AddressEmptyCode(target);
}
return returndata;
}
}
/**
* @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
* revert reason or with a default {FailedInnerCall} error.
*/
function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
return returndata;
}
}
/**
* @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.
*/
function _revert(bytes memory returndata) private pure {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert FailedInnerCall();
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "./IERC20.sol";
import {IERC20Metadata} from "./extensions/IERC20Metadata.sol";
import {Context} from "../../utils/Context.sol";
import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol";
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
*
* TIP: For a detailed writeup see our guide
* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* The default value of {decimals} is 18. To change this, you should override
* this function so it returns a different value.
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC20
* applications.
*
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
* This allows applications to reconstruct the allowance for all accounts just
* by listening to said events. Other implementations of the EIP may not emit
* these events, as it isn't required by the specification.
*/
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
mapping(address account => uint256) private _balances;
mapping(address account => mapping(address spender => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the default value returned by this function, unless
* it's overridden.
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - the caller must have a balance of at least `value`.
*/
function transfer(address to, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_transfer(owner, to, value);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* NOTE: If `value` is the maximum `uint256`, the allowance is not updated on
* `transferFrom`. This is semantically equivalent to an infinite approval.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, value);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* NOTE: Does not update the allowance if the current allowance
* is the maximum `uint256`.
*
* Requirements:
*
* - `from` and `to` cannot be the zero address.
* - `from` must have a balance of at least `value`.
* - the caller must have allowance for ``from``'s tokens of at least
* `value`.
*/
function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, value);
_transfer(from, to, value);
return true;
}
/**
* @dev Moves a `value` amount of tokens from `from` to `to`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _transfer(address from, address to, uint256 value) internal {
if (from == address(0)) {
revert ERC20InvalidSender(address(0));
}
if (to == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(from, to, value);
}
/**
* @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
* (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
* this function.
*
* Emits a {Transfer} event.
*/
function _update(address from, address to, uint256 value) internal virtual {
if (from == address(0)) {
// Overflow check required: The rest of the code assumes that totalSupply never overflows
_totalSupply += value;
} else {
uint256 fromBalance = _balances[from];
if (fromBalance < value) {
revert ERC20InsufficientBalance(from, fromBalance, value);
}
unchecked {
// Overflow not possible: value <= fromBalance <= totalSupply.
_balances[from] = fromBalance - value;
}
}
if (to == address(0)) {
unchecked {
// Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
_totalSupply -= value;
}
} else {
unchecked {
// Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
_balances[to] += value;
}
}
emit Transfer(from, to, value);
}
/**
* @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
* Relies on the `_update` mechanism
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _mint(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(address(0), account, value);
}
/**
* @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
* Relies on the `_update` mechanism.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead
*/
function _burn(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidSender(address(0));
}
_update(account, address(0), value);
}
/**
* @dev Sets `value` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*
* Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
*/
function _approve(address owner, address spender, uint256 value) internal {
_approve(owner, spender, value, true);
}
/**
* @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
*
* By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
* `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any
* `Approval` event during `transferFrom` operations.
*
* Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
* true using the following override:
* ```
* function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
* super._approve(owner, spender, value, true);
* }
* ```
*
* Requirements are the same as {_approve}.
*/
function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
if (owner == address(0)) {
revert ERC20InvalidApprover(address(0));
}
if (spender == address(0)) {
revert ERC20InvalidSpender(address(0));
}
_allowances[owner][spender] = value;
if (emitEvent) {
emit Approval(owner, spender, value);
}
}
/**
* @dev Updates `owner` s allowance for `spender` based on spent `value`.
*
* Does not update the allowance value in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Does not emit an {Approval} event.
*/
function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
if (currentAllowance < value) {
revert ERC20InsufficientAllowance(spender, currentAllowance, value);
}
unchecked {
_approve(owner, spender, currentAllowance - value, false);
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../IERC20.sol";
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 value) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 value) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
* https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
*
* Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
* presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
* need to send a transaction, and thus is not required to hold Ether at all.
*
* ==== Security Considerations
*
* There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
* expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
* considered as an intention to spend the allowance in any specific way. The second is that because permits have
* built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
* take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
* generally recommended is:
*
* ```solidity
* function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
* try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
* doThing(..., value);
* }
*
* function doThing(..., uint256 value) public {
* token.safeTransferFrom(msg.sender, address(this), value);
* ...
* }
* ```
*
* Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
* `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
* {SafeERC20-safeTransferFrom}).
*
* Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
* contracts should have entry points that don't rely on permit.
*/
interface IERC20Permit {
/**
* @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
* given ``owner``'s signed approval.
*
* IMPORTANT: The same issues {IERC20-approve} has related to transaction
* ordering also apply here.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `deadline` must be a timestamp in the future.
* - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
* over the EIP712-formatted function arguments.
* - the signature must use ``owner``'s current nonce (see {nonces}).
*
* For more information on the signature format, see the
* https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
* section].
*
* CAUTION: See Security Considerations above.
*/
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
/**
* @dev Returns the current nonce for `owner`. This value must be
* included whenever a signature is generated for {permit}.
*
* Every successful call to {permit} increases ``owner``'s nonce by one. This
* prevents a signature from being used multiple times.
*/
function nonces(address owner) external view returns (uint256);
/**
* @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
*/
// solhint-disable-next-line func-name-mixedcase
function DOMAIN_SEPARATOR() external view returns (bytes32);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;
/**
* @dev Standard ERC20 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens.
*/
interface IERC20Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC20InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC20InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
* @param spender Address that may be allowed to operate on tokens without being their owner.
* @param allowance Amount of tokens a `spender` is allowed to operate with.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC20InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `spender` to be approved. Used in approvals.
* @param spender Address that may be allowed to operate on tokens without being their owner.
*/
error ERC20InvalidSpender(address spender);
}
/**
* @dev Standard ERC721 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
*/
interface IERC721Errors {
/**
* @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.
* Used in balance queries.
* @param owner Address of the current owner of a token.
*/
error ERC721InvalidOwner(address owner);
/**
* @dev Indicates a `tokenId` whose `owner` is the zero address.
* @param tokenId Identifier number of a token.
*/
error ERC721NonexistentToken(uint256 tokenId);
/**
* @dev Indicates an error related to the ownership over a particular token. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param tokenId Identifier number of a token.
* @param owner Address of the current owner of a token.
*/
error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC721InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC721InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param tokenId Identifier number of a token.
*/
error ERC721InsufficientApproval(address operator, uint256 tokenId);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC721InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC721InvalidOperator(address operator);
}
/**
* @dev Standard ERC1155 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens.
*/
interface IERC1155Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
* @param tokenId Identifier number of a token.
*/
error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC1155InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC1155InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param owner Address of the current owner of a token.
*/
error ERC1155MissingApprovalForAll(address operator, address owner);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC1155InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC1155InvalidOperator(address operator);
/**
* @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
* Used in batch transfers.
* @param idsLength Length of the array of token identifiers
* @param valuesLength Length of the array of token amounts
*/
error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
pragma solidity ^0.8.20;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address payable","name":"_teamWallet","type":"address"},{"internalType":"uint256","name":"_maxWalletTimer","type":"uint256"},{"internalType":"uint256","name":"_buyTaxes","type":"uint256"},{"internalType":"uint256","name":"_sellTaxes","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldBuyTax","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"oldSellTax","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newBuyTax","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newSellTax","type":"uint256"}],"name":"TaxesReduce","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"taxWallet","type":"address"},{"indexed":false,"internalType":"uint256","name":"ETHAmount","type":"uint256"}],"name":"TaxesSent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newPair","type":"address"}],"name":"TradingPairAdded","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":"","type":"address"}],"name":"_isExcludedFromFees","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"toPair","type":"address"}],"name":"addPair","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":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buyTaxes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialDeploymentTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"pair","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sellTaxes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapTokensAtAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapping","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"taxDisabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapV2Pair","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
608060405234801561000f575f80fd5b5060405161249338038061249383398101604081905261002e91610ca9565b6040805180820182526008808252674b6574616d696e6560c01b60208084018290528451808601909552918452908301523391600361006d8382610d7c565b50600461007a8282610d7c565b5050506001600160a01b0381166100ab57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6100b4816101e8565b5060068054737a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b0319918216179091556007805482169055601580549091166001600160a01b038616179055610102601290565b61010d90600a610f2d565b61011b90633b9aca00610f42565b6014819055600883905560098290556127109061013990605d610f42565b6101439190610f59565b60135560118390556014546127109061015d906019610f42565b6101679190610f59565b600e55305f908152600b602081905260408220805460ff191660019081179091559161019b6005546001600160a01b031690565b6001600160a01b0316815260208101919091526040015f20805460ff19169115159190911790556101df6101d76005546001600160a01b031690565b601454610239565b5050505061103e565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b0382166102625760405163ec442f0560e01b81525f60048201526024016100a2565b61026d5f8383610271565b5050565b6007546001600160a01b0316158015906102935750601054610100900460ff16155b80156102ad57506005546001600160a01b03838116911614155b156102ba576102ba610878565b6007546001600160a01b03161580156102e157506005546001600160a01b03848116911614155b80156102fb57506005546001600160a01b03838116911614155b156103485760405162461bcd60e51b815260206004820152601960248201527f54726164696e67206973206e6f7420796574206163746976650000000000000060448201526064016100a2565b601154600f546103589190610f78565b4210801561036e57506001600160a01b03821615155b801561038857506007546001600160a01b03838116911614155b80156103ac57506001600160a01b0382165f908152600b602052604090205460ff16155b80156103d057506001600160a01b0383165f908152600b602052604090205460ff16155b15610459576001600160a01b0382165f908152602081905260409020546013546103fa8383610f78565b11156104575760405162461bcd60e51b815260206004820152602660248201527f5472616e7366657220616d6f756e742065786365656473206d6178696d756d206044820152651dd85b1b195d60d21b60648201526084016100a2565b505b305f90815260208190526040902054600e546010549082101590610100900460ff16801561048657505f82115b1561048f575060015b80801561049f575060105460ff16155b80156104c257506001600160a01b0384165f908152600a602052604090205460ff165b80156104dc57506006546001600160a01b03868116911614155b80156104f657506005546001600160a01b03868116911614155b801561051057506005546001600160a01b03858116911614155b801561053457506001600160a01b0384165f908152600b602052604090205460ff16155b801561055857506001600160a01b0385165f908152600b602052604090205460ff16155b1561067f57600e54821161056c5781610570565b600e545b6010805460ff19166001179055915061058882610949565b60155460405147915f916001600160a01b039091169083908381818185875af1925050503d805f81146105d6576040519150601f19603f3d011682016040523d82523d5f602084013e6105db565b606091505b505090508061062c5760405162461bcd60e51b815260206004820152601c60248201527f4661696c656420746f2073656e64206d61726b6574696e67206665650000000060448201526064016100a2565b601554604080516001600160a01b039092168252602082018490527ff72b186c56dd49d50d68088bc3e82e03989c98f3ff7ed48033c45e36cb9fa333910160405180910390a150506010805460ff191690555b6010546001600160a01b0386165f908152600b602052604090205460ff918216159116806106c457506001600160a01b0385165f908152600b602052604090205460ff165b806106d65750601054610100900460ff165b156106ed57505f6106e8868686610a91565b610787565b6001600160a01b0385165f908152600a602052604090205460ff1615801561072d57506001600160a01b0386165f908152600a602052604090205460ff16155b801561075157506001600160a01b0386165f908152600b602052604090205460ff16155b801561077557506001600160a01b0385165f908152600b602052604090205460ff16155b1561078757505f610787868686610a91565b8015610870575f6103e86008548661079f9190610f42565b6107a99190610f59565b90505f6103e8600954876107bd9190610f42565b6107c79190610f59565b6001600160a01b0388165f908152600a602052604090205490915060ff1680156107f257505f600954115b1561081e576108018187610f8b565b955061080e883083610a91565b610819888888610a91565b61086d565b6001600160a01b0388165f908152600a602052604090205460ff16801561084657505f600854115b15610862576108558287610f8b565b955061080e883084610a91565b61086d888888610a91565b50505b505050505050565b600854600954600f544292919061089190610708610f78565b8311156108ed575f600881905560098190556010805461ff001916610100179055604080518481526020810184905290810182905260608101919091525f805160206124738339815191529060800160405180910390a1505050565b600f546108fc906104b0610f78565b83111561094457600a6008819055600981905560408051848152602081018490528082018390526060810192909252515f805160206124738339815191529181900360800190a15b505050565b6040805160028082526060820183525f9260208301908036833701905050905030815f8151811061097c5761097c610f9e565b6001600160a01b03928316602091820292909201810191909152600654604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa1580156109d3573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109f79190610fb2565b81600181518110610a0a57610a0a610f9e565b6001600160a01b039283166020918202929092010152600654610a309130911684610bb7565b60065460405163791ac94760e01b81526001600160a01b039091169063791ac94790610a689085905f90869030904290600401610fcd565b5f604051808303815f87803b158015610a7f575f80fd5b505af1158015610870573d5f803e3d5ffd5b6001600160a01b038316610abb578060025f828254610ab09190610f78565b90915550610b2b9050565b6001600160a01b0383165f9081526020819052604090205481811015610b0d5760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016100a2565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b038216610b4757600280548290039055610b65565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610baa91815260200190565b60405180910390a3505050565b61094483838360016001600160a01b038416610be85760405163e602df0560e01b81525f60048201526024016100a2565b6001600160a01b038316610c1157604051634a1406b160e11b81525f60048201526024016100a2565b6001600160a01b038085165f9081526001602090815260408083209387168352929052208290558015610c8c57826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610c8391815260200190565b60405180910390a35b50505050565b6001600160a01b0381168114610ca6575f80fd5b50565b5f805f8060808587031215610cbc575f80fd5b8451610cc781610c92565b60208601516040870151606090970151919890975090945092505050565b634e487b7160e01b5f52604160045260245ffd5b600181811c90821680610d0d57607f821691505b602082108103610d2b57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f82111561094457805f5260205f20601f840160051c81016020851015610d565750805b601f840160051c820191505b81811015610d75575f8155600101610d62565b5050505050565b81516001600160401b03811115610d9557610d95610ce5565b610da981610da38454610cf9565b84610d31565b602080601f831160018114610ddc575f8415610dc55750858301515b5f19600386901b1c1916600185901b178555610870565b5f85815260208120601f198616915b82811015610e0a57888601518255948401946001909101908401610deb565b5085821015610e2757878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b5f52601160045260245ffd5b600181815b80851115610e8557815f1904821115610e6b57610e6b610e37565b80851615610e7857918102915b93841c9390800290610e50565b509250929050565b5f82610e9b57506001610f27565b81610ea757505f610f27565b8160018114610ebd5760028114610ec757610ee3565b6001915050610f27565b60ff841115610ed857610ed8610e37565b50506001821b610f27565b5060208310610133831016604e8410600b8410161715610f06575081810a610f27565b610f108383610e4b565b805f1904821115610f2357610f23610e37565b0290505b92915050565b5f610f3b60ff841683610e8d565b9392505050565b8082028115828204841417610f2757610f27610e37565b5f82610f7357634e487b7160e01b5f52601260045260245ffd5b500490565b80820180821115610f2757610f27610e37565b81810381811115610f2757610f27610e37565b634e487b7160e01b5f52603260045260245ffd5b5f60208284031215610fc2575f80fd5b8151610f3b81610c92565b5f60a08201878352602087602085015260a0604085015281875180845260c0860191506020890193505f5b8181101561101d5784516001600160a01b031683529383019391830191600101610ff8565b50506001600160a01b03969096166060850152505050608001529392505050565b6114288061104b5f395ff3fe60806040526004361061013f575f3560e01c8063864701a5116100b3578063c2b7bbb61161006d578063c2b7bbb61461037a578063dd62ed3e14610399578063e0bf7fd1146103dd578063e2f456051461040b578063f2fde38b14610420578063f66895a31461043f575f80fd5b8063864701a5146102e25780638da5cb5b146102f757806395d89b41146103145780639a07579a14610328578063a9059cbb14610346578063b9eadf3c14610365575f80fd5b806323b872dd1161010457806323b872dd14610211578063313ce5671461023057806349bd5a5e1461024b57806370a082311461026a578063715018a61461029e5780637fb992f7146102b4575f80fd5b806306fdde031461014a578063095ea7b3146101745780631694505e146101a35780631732cded146101da57806318160ddd146101f3575f80fd5b3661014657005b5f80fd5b348015610155575f80fd5b5061015e610454565b60405161016b91906111a0565b60405180910390f35b34801561017f575f80fd5b5061019361018e3660046111e9565b6104e4565b604051901515815260200161016b565b3480156101ae575f80fd5b506006546101c2906001600160a01b031681565b6040516001600160a01b03909116815260200161016b565b3480156101e5575f80fd5b506010546101939060ff1681565b3480156101fe575f80fd5b506002545b60405190815260200161016b565b34801561021c575f80fd5b5061019361022b366004611213565b6104fd565b34801561023b575f80fd5b506040516012815260200161016b565b348015610256575f80fd5b506007546101c2906001600160a01b031681565b348015610275575f80fd5b50610203610284366004611251565b6001600160a01b03165f9081526020819052604090205490565b3480156102a9575f80fd5b506102b2610520565b005b3480156102bf575f80fd5b506101936102ce366004611251565b600a6020525f908152604090205460ff1681565b3480156102ed575f80fd5b5061020360085481565b348015610302575f80fd5b506005546001600160a01b03166101c2565b34801561031f575f80fd5b5061015e610533565b348015610333575f80fd5b5060105461019390610100900460ff1681565b348015610351575f80fd5b506101936103603660046111e9565b610542565b348015610370575f80fd5b50610203600f5481565b348015610385575f80fd5b506102b2610394366004611251565b61054f565b3480156103a4575f80fd5b506102036103b3366004611273565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b3480156103e8575f80fd5b506101936103f7366004611251565b600b6020525f908152604090205460ff1681565b348015610416575f80fd5b50610203600e5481565b34801561042b575f80fd5b506102b261043a366004611251565b6105be565b34801561044a575f80fd5b5061020360095481565b606060038054610463906112aa565b80601f016020809104026020016040519081016040528092919081815260200182805461048f906112aa565b80156104da5780601f106104b1576101008083540402835291602001916104da565b820191905f5260205f20905b8154815290600101906020018083116104bd57829003601f168201915b5050505050905090565b5f336104f1818585610600565b60019150505b92915050565b5f3361050a858285610612565b61051585858561068d565b506001949350505050565b6105286106ea565b6105315f610717565b565b606060048054610463906112aa565b5f336104f181858561068d565b6105576106ea565b600780546001600160a01b0319166001600160a01b03831690811790915543600c5542600f555f818152600a6020526040808220805460ff19166001179055517f8b100428088c24d83fb53c36f9e0d15fbacd418536208a138837b7b90d9ae2e99190a250565b6105c66106ea565b6001600160a01b0381166105f457604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6105fd81610717565b50565b61060d8383836001610768565b505050565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f198114610687578181101561067957604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064016105eb565b61068784848484035f610768565b50505050565b6001600160a01b0383166106b657604051634b637e8f60e11b81525f60048201526024016105eb565b6001600160a01b0382166106df5760405163ec442f0560e01b81525f60048201526024016105eb565b61060d83838361083a565b6005546001600160a01b031633146105315760405163118cdaa760e01b81523360048201526024016105eb565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b0384166107915760405163e602df0560e01b81525f60048201526024016105eb565b6001600160a01b0383166107ba57604051634a1406b160e11b81525f60048201526024016105eb565b6001600160a01b038085165f908152600160209081526040808320938716835292905220829055801561068757826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161082c91815260200190565b60405180910390a350505050565b6007546001600160a01b03161580159061085c5750601054610100900460ff16155b801561087657506005546001600160a01b03838116911614155b1561088357610883610e41565b6007546001600160a01b03161580156108aa57506005546001600160a01b03848116911614155b80156108c457506005546001600160a01b03838116911614155b156109115760405162461bcd60e51b815260206004820152601960248201527f54726164696e67206973206e6f7420796574206163746976650000000000000060448201526064016105eb565b601154600f5461092191906112f6565b4210801561093757506001600160a01b03821615155b801561095157506007546001600160a01b03838116911614155b801561097557506001600160a01b0382165f908152600b602052604090205460ff16155b801561099957506001600160a01b0383165f908152600b602052604090205460ff16155b15610a22576001600160a01b0382165f908152602081905260409020546013546109c383836112f6565b1115610a205760405162461bcd60e51b815260206004820152602660248201527f5472616e7366657220616d6f756e742065786365656473206d6178696d756d206044820152651dd85b1b195d60d21b60648201526084016105eb565b505b305f90815260208190526040902054600e546010549082101590610100900460ff168015610a4f57505f82115b15610a58575060015b808015610a68575060105460ff16155b8015610a8b57506001600160a01b0384165f908152600a602052604090205460ff165b8015610aa557506006546001600160a01b03868116911614155b8015610abf57506005546001600160a01b03868116911614155b8015610ad957506005546001600160a01b03858116911614155b8015610afd57506001600160a01b0384165f908152600b602052604090205460ff16155b8015610b2157506001600160a01b0385165f908152600b602052604090205460ff16155b15610c4857600e548211610b355781610b39565b600e545b6010805460ff191660011790559150610b5182610f32565b60155460405147915f916001600160a01b039091169083908381818185875af1925050503d805f8114610b9f576040519150601f19603f3d011682016040523d82523d5f602084013e610ba4565b606091505b5050905080610bf55760405162461bcd60e51b815260206004820152601c60248201527f4661696c656420746f2073656e64206d61726b6574696e67206665650000000060448201526064016105eb565b601554604080516001600160a01b039092168252602082018490527ff72b186c56dd49d50d68088bc3e82e03989c98f3ff7ed48033c45e36cb9fa333910160405180910390a150506010805460ff191690555b6010546001600160a01b0386165f908152600b602052604090205460ff91821615911680610c8d57506001600160a01b0385165f908152600b602052604090205460ff165b80610c9f5750601054610100900460ff165b15610cb657505f610cb186868661107a565b610d50565b6001600160a01b0385165f908152600a602052604090205460ff16158015610cf657506001600160a01b0386165f908152600a602052604090205460ff16155b8015610d1a57506001600160a01b0386165f908152600b602052604090205460ff16155b8015610d3e57506001600160a01b0385165f908152600b602052604090205460ff16155b15610d5057505f610d5086868661107a565b8015610e39575f6103e860085486610d689190611309565b610d729190611320565b90505f6103e860095487610d869190611309565b610d909190611320565b6001600160a01b0388165f908152600a602052604090205490915060ff168015610dbb57505f600954115b15610de757610dca818761133f565b9550610dd788308361107a565b610de288888861107a565b610e36565b6001600160a01b0388165f908152600a602052604090205460ff168015610e0f57505f600854115b15610e2b57610e1e828761133f565b9550610dd788308461107a565b610e3688888861107a565b50505b505050505050565b600854600954600f5442929190610e5a906107086112f6565b831115610eca575f600881905560098190556010805461ff001916610100179055604080518481526020810184905290810182905260608101919091527fe374103a7ac61db3dfd27c2591e4f40a97f60e6c8ea6e8bd58b72fb5de697242906080015b60405180910390a1505050565b600f54610ed9906104b06112f6565b83111561060d57600a60088190556009819055604080518481526020810184905290810182905260608101919091527fe374103a7ac61db3dfd27c2591e4f40a97f60e6c8ea6e8bd58b72fb5de69724290608001610ebd565b6040805160028082526060820183525f9260208301908036833701905050905030815f81518110610f6557610f65611352565b6001600160a01b03928316602091820292909201810191909152600654604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015610fbc573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610fe09190611366565b81600181518110610ff357610ff3611352565b6001600160a01b0392831660209182029290920101526006546110199130911684610600565b60065460405163791ac94760e01b81526001600160a01b039091169063791ac947906110519085905f90869030904290600401611381565b5f604051808303815f87803b158015611068575f80fd5b505af1158015610e39573d5f803e3d5ffd5b6001600160a01b0383166110a4578060025f82825461109991906112f6565b909155506111149050565b6001600160a01b0383165f90815260208190526040902054818110156110f65760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016105eb565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b0382166111305760028054829003905561114e565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161119391815260200190565b60405180910390a3505050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b6001600160a01b03811681146105fd575f80fd5b5f80604083850312156111fa575f80fd5b8235611205816111d5565b946020939093013593505050565b5f805f60608486031215611225575f80fd5b8335611230816111d5565b92506020840135611240816111d5565b929592945050506040919091013590565b5f60208284031215611261575f80fd5b813561126c816111d5565b9392505050565b5f8060408385031215611284575f80fd5b823561128f816111d5565b9150602083013561129f816111d5565b809150509250929050565b600181811c908216806112be57607f821691505b6020821081036112dc57634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156104f7576104f76112e2565b80820281158282048414176104f7576104f76112e2565b5f8261133a57634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156104f7576104f76112e2565b634e487b7160e01b5f52603260045260245ffd5b5f60208284031215611376575f80fd5b815161126c816111d5565b5f60a08201878352602087602085015260a0604085015281875180845260c0860191506020890193505f5b818110156113d15784516001600160a01b0316835293830193918301916001016113ac565b50506001600160a01b0396909616606085015250505060800152939250505056fea2646970667358221220dd69d7d98d1c29d6d710614a137af24a64c1f1553ad947928210c342e8e84c9764736f6c63430008190033e374103a7ac61db3dfd27c2591e4f40a97f60e6c8ea6e8bd58b72fb5de697242000000000000000000000000f2e83ace8ab6b10742fe469ac31e1949546662dd0000000000000000000000000000000000000000000000000000000000000708000000000000000000000000000000000000000000000000000000000000012c0000000000000000000000000000000000000000000000000000000000000190
Deployed Bytecode
0x60806040526004361061013f575f3560e01c8063864701a5116100b3578063c2b7bbb61161006d578063c2b7bbb61461037a578063dd62ed3e14610399578063e0bf7fd1146103dd578063e2f456051461040b578063f2fde38b14610420578063f66895a31461043f575f80fd5b8063864701a5146102e25780638da5cb5b146102f757806395d89b41146103145780639a07579a14610328578063a9059cbb14610346578063b9eadf3c14610365575f80fd5b806323b872dd1161010457806323b872dd14610211578063313ce5671461023057806349bd5a5e1461024b57806370a082311461026a578063715018a61461029e5780637fb992f7146102b4575f80fd5b806306fdde031461014a578063095ea7b3146101745780631694505e146101a35780631732cded146101da57806318160ddd146101f3575f80fd5b3661014657005b5f80fd5b348015610155575f80fd5b5061015e610454565b60405161016b91906111a0565b60405180910390f35b34801561017f575f80fd5b5061019361018e3660046111e9565b6104e4565b604051901515815260200161016b565b3480156101ae575f80fd5b506006546101c2906001600160a01b031681565b6040516001600160a01b03909116815260200161016b565b3480156101e5575f80fd5b506010546101939060ff1681565b3480156101fe575f80fd5b506002545b60405190815260200161016b565b34801561021c575f80fd5b5061019361022b366004611213565b6104fd565b34801561023b575f80fd5b506040516012815260200161016b565b348015610256575f80fd5b506007546101c2906001600160a01b031681565b348015610275575f80fd5b50610203610284366004611251565b6001600160a01b03165f9081526020819052604090205490565b3480156102a9575f80fd5b506102b2610520565b005b3480156102bf575f80fd5b506101936102ce366004611251565b600a6020525f908152604090205460ff1681565b3480156102ed575f80fd5b5061020360085481565b348015610302575f80fd5b506005546001600160a01b03166101c2565b34801561031f575f80fd5b5061015e610533565b348015610333575f80fd5b5060105461019390610100900460ff1681565b348015610351575f80fd5b506101936103603660046111e9565b610542565b348015610370575f80fd5b50610203600f5481565b348015610385575f80fd5b506102b2610394366004611251565b61054f565b3480156103a4575f80fd5b506102036103b3366004611273565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b3480156103e8575f80fd5b506101936103f7366004611251565b600b6020525f908152604090205460ff1681565b348015610416575f80fd5b50610203600e5481565b34801561042b575f80fd5b506102b261043a366004611251565b6105be565b34801561044a575f80fd5b5061020360095481565b606060038054610463906112aa565b80601f016020809104026020016040519081016040528092919081815260200182805461048f906112aa565b80156104da5780601f106104b1576101008083540402835291602001916104da565b820191905f5260205f20905b8154815290600101906020018083116104bd57829003601f168201915b5050505050905090565b5f336104f1818585610600565b60019150505b92915050565b5f3361050a858285610612565b61051585858561068d565b506001949350505050565b6105286106ea565b6105315f610717565b565b606060048054610463906112aa565b5f336104f181858561068d565b6105576106ea565b600780546001600160a01b0319166001600160a01b03831690811790915543600c5542600f555f818152600a6020526040808220805460ff19166001179055517f8b100428088c24d83fb53c36f9e0d15fbacd418536208a138837b7b90d9ae2e99190a250565b6105c66106ea565b6001600160a01b0381166105f457604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b6105fd81610717565b50565b61060d8383836001610768565b505050565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f198114610687578181101561067957604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064016105eb565b61068784848484035f610768565b50505050565b6001600160a01b0383166106b657604051634b637e8f60e11b81525f60048201526024016105eb565b6001600160a01b0382166106df5760405163ec442f0560e01b81525f60048201526024016105eb565b61060d83838361083a565b6005546001600160a01b031633146105315760405163118cdaa760e01b81523360048201526024016105eb565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b0384166107915760405163e602df0560e01b81525f60048201526024016105eb565b6001600160a01b0383166107ba57604051634a1406b160e11b81525f60048201526024016105eb565b6001600160a01b038085165f908152600160209081526040808320938716835292905220829055801561068757826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161082c91815260200190565b60405180910390a350505050565b6007546001600160a01b03161580159061085c5750601054610100900460ff16155b801561087657506005546001600160a01b03838116911614155b1561088357610883610e41565b6007546001600160a01b03161580156108aa57506005546001600160a01b03848116911614155b80156108c457506005546001600160a01b03838116911614155b156109115760405162461bcd60e51b815260206004820152601960248201527f54726164696e67206973206e6f7420796574206163746976650000000000000060448201526064016105eb565b601154600f5461092191906112f6565b4210801561093757506001600160a01b03821615155b801561095157506007546001600160a01b03838116911614155b801561097557506001600160a01b0382165f908152600b602052604090205460ff16155b801561099957506001600160a01b0383165f908152600b602052604090205460ff16155b15610a22576001600160a01b0382165f908152602081905260409020546013546109c383836112f6565b1115610a205760405162461bcd60e51b815260206004820152602660248201527f5472616e7366657220616d6f756e742065786365656473206d6178696d756d206044820152651dd85b1b195d60d21b60648201526084016105eb565b505b305f90815260208190526040902054600e546010549082101590610100900460ff168015610a4f57505f82115b15610a58575060015b808015610a68575060105460ff16155b8015610a8b57506001600160a01b0384165f908152600a602052604090205460ff165b8015610aa557506006546001600160a01b03868116911614155b8015610abf57506005546001600160a01b03868116911614155b8015610ad957506005546001600160a01b03858116911614155b8015610afd57506001600160a01b0384165f908152600b602052604090205460ff16155b8015610b2157506001600160a01b0385165f908152600b602052604090205460ff16155b15610c4857600e548211610b355781610b39565b600e545b6010805460ff191660011790559150610b5182610f32565b60155460405147915f916001600160a01b039091169083908381818185875af1925050503d805f8114610b9f576040519150601f19603f3d011682016040523d82523d5f602084013e610ba4565b606091505b5050905080610bf55760405162461bcd60e51b815260206004820152601c60248201527f4661696c656420746f2073656e64206d61726b6574696e67206665650000000060448201526064016105eb565b601554604080516001600160a01b039092168252602082018490527ff72b186c56dd49d50d68088bc3e82e03989c98f3ff7ed48033c45e36cb9fa333910160405180910390a150506010805460ff191690555b6010546001600160a01b0386165f908152600b602052604090205460ff91821615911680610c8d57506001600160a01b0385165f908152600b602052604090205460ff165b80610c9f5750601054610100900460ff165b15610cb657505f610cb186868661107a565b610d50565b6001600160a01b0385165f908152600a602052604090205460ff16158015610cf657506001600160a01b0386165f908152600a602052604090205460ff16155b8015610d1a57506001600160a01b0386165f908152600b602052604090205460ff16155b8015610d3e57506001600160a01b0385165f908152600b602052604090205460ff16155b15610d5057505f610d5086868661107a565b8015610e39575f6103e860085486610d689190611309565b610d729190611320565b90505f6103e860095487610d869190611309565b610d909190611320565b6001600160a01b0388165f908152600a602052604090205490915060ff168015610dbb57505f600954115b15610de757610dca818761133f565b9550610dd788308361107a565b610de288888861107a565b610e36565b6001600160a01b0388165f908152600a602052604090205460ff168015610e0f57505f600854115b15610e2b57610e1e828761133f565b9550610dd788308461107a565b610e3688888861107a565b50505b505050505050565b600854600954600f5442929190610e5a906107086112f6565b831115610eca575f600881905560098190556010805461ff001916610100179055604080518481526020810184905290810182905260608101919091527fe374103a7ac61db3dfd27c2591e4f40a97f60e6c8ea6e8bd58b72fb5de697242906080015b60405180910390a1505050565b600f54610ed9906104b06112f6565b83111561060d57600a60088190556009819055604080518481526020810184905290810182905260608101919091527fe374103a7ac61db3dfd27c2591e4f40a97f60e6c8ea6e8bd58b72fb5de69724290608001610ebd565b6040805160028082526060820183525f9260208301908036833701905050905030815f81518110610f6557610f65611352565b6001600160a01b03928316602091820292909201810191909152600654604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015610fbc573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610fe09190611366565b81600181518110610ff357610ff3611352565b6001600160a01b0392831660209182029290920101526006546110199130911684610600565b60065460405163791ac94760e01b81526001600160a01b039091169063791ac947906110519085905f90869030904290600401611381565b5f604051808303815f87803b158015611068575f80fd5b505af1158015610e39573d5f803e3d5ffd5b6001600160a01b0383166110a4578060025f82825461109991906112f6565b909155506111149050565b6001600160a01b0383165f90815260208190526040902054818110156110f65760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016105eb565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b0382166111305760028054829003905561114e565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161119391815260200190565b60405180910390a3505050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b6001600160a01b03811681146105fd575f80fd5b5f80604083850312156111fa575f80fd5b8235611205816111d5565b946020939093013593505050565b5f805f60608486031215611225575f80fd5b8335611230816111d5565b92506020840135611240816111d5565b929592945050506040919091013590565b5f60208284031215611261575f80fd5b813561126c816111d5565b9392505050565b5f8060408385031215611284575f80fd5b823561128f816111d5565b9150602083013561129f816111d5565b809150509250929050565b600181811c908216806112be57607f821691505b6020821081036112dc57634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b808201808211156104f7576104f76112e2565b80820281158282048414176104f7576104f76112e2565b5f8261133a57634e487b7160e01b5f52601260045260245ffd5b500490565b818103818111156104f7576104f76112e2565b634e487b7160e01b5f52603260045260245ffd5b5f60208284031215611376575f80fd5b815161126c816111d5565b5f60a08201878352602087602085015260a0604085015281875180845260c0860191506020890193505f5b818110156113d15784516001600160a01b0316835293830193918301916001016113ac565b50506001600160a01b0396909616606085015250505060800152939250505056fea2646970667358221220dd69d7d98d1c29d6d710614a137af24a64c1f1553ad947928210c342e8e84c9764736f6c63430008190033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000f2e83ace8ab6b10742fe469ac31e1949546662dd0000000000000000000000000000000000000000000000000000000000000708000000000000000000000000000000000000000000000000000000000000012c0000000000000000000000000000000000000000000000000000000000000190
-----Decoded View---------------
Arg [0] : _teamWallet (address): 0xf2E83ACE8Ab6B10742FE469ac31E1949546662dD
Arg [1] : _maxWalletTimer (uint256): 1800
Arg [2] : _buyTaxes (uint256): 300
Arg [3] : _sellTaxes (uint256): 400
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000f2e83ace8ab6b10742fe469ac31e1949546662dd
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000708
Arg [2] : 000000000000000000000000000000000000000000000000000000000000012c
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000190
Loading...
Loading
Loading...
Loading
OVERVIEW
$KETAMINE, where the hustle is secure and the deals are smoother than silk.Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 34 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.