Address Contract Verified
Address
0xC1bF21674a3d782eE552D835863D065b7A89d619
Balance
0 ETH
Nonce
1
Code Size
8501 bytes
Creator
0x7e7CD886...dc16 at tx 0x83815aa5...d37f75
Indexed Transactions
0
Contract Bytecode
8501 bytes
0x608060405234801561001057600080fd5b50600436106101da5760003560e01c80637437681e11610104578063a9059cbb116100a2578063dd62ed3e11610071578063dd62ed3e14610525578063eb50e70e14610555578063f2fde38b14610571578063f8b45b051461058d576101da565b8063a9059cbb1461049d578063c4590d3f146104cd578063c9567bf9146104e9578063d36d049714610507576101da565b80638da5cb5b116100de5780638da5cb5b1461041357806395d89b41146104315780639be953b31461044f578063a0e47bf61461047f576101da565b80637437681e146103cf578063751039fc146103ed5780638a218a7d146103f7576101da565b80633090b6401161017c578063471131ac1161014b578063471131ac146103475780634f1455c91461037757806370a0823114610395578063715018a6146103c5576101da565b80633090b640146102d1578063313ce567146102ef57806332972e461461030d5780633ef613631461032b576101da565b806318160ddd116101b857806318160ddd1461025d5780631e34c5851461027b57806323b872dd14610297578063293230b8146102c7576101da565b806306fdde03146101df578063095ea7b3146101fd57806312fb55501461022d575b600080fd5b6101e76105ab565b6040516101f49190611a27565b60405180910390f35b61021760048036038101906102129190611ae7565b61063d565b6040516102249190611b42565b60405180910390f35b61024760048036038101906102429190611b5d565b610660565b6040516102549190611b42565b60405180910390f35b610265610680565b6040516102729190611b99565b60405180910390f35b61029560048036038101906102909190611bb4565b61068a565b005b6102b160048036038101906102ac9190611bf4565b6106a4565b6040516102be9190611b42565b60405180910390f35b6102cf6106d3565b005b6102d96106f8565b6040516102e69190611c56565b60405180910390f35b6102f761071e565b6040516103049190611c8d565b60405180910390f35b610315610727565b6040516103229190611c56565b60405180910390f35b61034560048036038101906103409190611d39565b61074d565b005b610361600480360381019061035c9190611b5d565b6107f4565b60405161036e9190611b42565b60405180910390f35b61037f610814565b60405161038c9190611b99565b60405180910390f35b6103af60048036038101906103aa9190611b5d565b61081a565b6040516103bc9190611b99565b60405180910390f35b6103cd610862565b005b6103d7610876565b6040516103e49190611b99565b60405180910390f35b6103f561087c565b005b610411600480360381019061040c9190611d39565b6108d4565b005b61041b61097b565b6040516104289190611c56565b60405180910390f35b6104396109a5565b6040516104469190611a27565b60405180910390f35b61046960048036038101906104649190611b5d565b610a37565b6040516104769190611b42565b60405180910390f35b610487610b5e565b6040516104949190611df8565b60405180910390f35b6104b760048036038101906104b29190611ae7565b610b84565b6040516104c49190611b42565b60405180910390f35b6104e760048036038101906104e29190611bb4565b610ba7565b005b6104f1610bc1565b6040516104fe9190611b42565b60405180910390f35b61050f610bd4565b60405161051c9190611b99565b60405180910390f35b61053f600480360381019061053a9190611e13565b610bda565b60405161054c9190611b99565b60405180910390f35b61056f600480360381019061056a9190611b5d565b610c61565b005b61058b60048036038101906105869190611b5d565b610cad565b005b610595610d33565b6040516105a29190611b99565b60405180910390f35b6060600380546105ba90611e82565b80601f01602080910402602001604051908101604052809291908181526020018280546105e690611e82565b80156106335780601f1061060857610100808354040283529160200191610633565b820191906000526020600020905b81548152906001019060200180831161061657829003601f168201915b5050505050905090565b600080610648610d39565b9050610655818585610d41565b600191505092915050565b600a6020528060005260406000206000915054906101000a900460ff1681565b6000600254905090565b610692610d53565b81600b8190555080600c819055505050565b6000806106af610d39565b90506106bc858285610dda565b6106c7858585610e6e565b60019150509392505050565b6106db610d53565b6001600f60006101000a81548160ff021916908315150217905550565b600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006012905090565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610755610d53565b60005b838390508110156107ee57816009600086868581811061077b5761077a611eb3565b5b90506020020160208101906107909190611b5d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508080600101915050610758565b50505050565b60096020528060005260406000206000915054906101000a900460ff1681565b600c5481565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61086a610d53565b6108746000610f62565b565b600d5481565b610884610d53565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600d819055507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600e81905550565b6108dc610d53565b60005b838390508110156109755781600a600086868581811061090257610901611eb3565b5b90506020020160208101906109179190611b5d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555080806001019150506108df565b50505050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600480546109b490611e82565b80601f01602080910402602001604051908101604052809291908181526020018280546109e090611e82565b8015610a2d5780601f10610a0257610100808354040283529160200191610a2d565b820191906000526020600020905b815481529060010190602001808311610a1057829003601f168201915b5050505050905090565b6000808273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610a739190611c56565b602060405180830381865afa158015610a90573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ab49190611ef7565b90508273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b8152600401610b13929190611f24565b6020604051808303816000875af1158015610b32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b569190611f62565b915050919050565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080610b8f610d39565b9050610b9c818585610e6e565b600191505092915050565b610baf610d53565b81600d8190555080600e819055505050565b600f60009054906101000a900460ff1681565b600b5481565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b610c69610d53565b80600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610cb5610d53565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610d275760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610d1e9190611c56565b60405180910390fd5b610d3081610f62565b50565b600e5481565b600033905090565b610d4e8383836001611028565b505050565b610d5b610d39565b73ffffffffffffffffffffffffffffffffffffffff16610d7961097b565b73ffffffffffffffffffffffffffffffffffffffff1614610dd857610d9c610d39565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610dcf9190611c56565b60405180910390fd5b565b6000610de68484610bda565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610e685781811015610e58578281836040517ffb8f41b2000000000000000000000000000000000000000000000000000000008152600401610e4f93929190611f8f565b60405180910390fd5b610e6784848484036000611028565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610ee05760006040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401610ed79190611c56565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610f525760006040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610f499190611c56565b60405180910390fd5b610f5d8383836111ff565b505050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361109a5760006040517fe602df050000000000000000000000000000000000000000000000000000000081526004016110919190611c56565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361110c5760006040517f94280d620000000000000000000000000000000000000000000000000000000081526004016111039190611c56565b60405180910390fd5b81600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080156111f9578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516111f09190611b99565b60405180910390a35b50505050565b600f60009054906101000a900460ff1615801561124f575061121f61097b565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b801561128e575061125e61097b565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b156112c5576040517fe09f033100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6112cd61097b565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141580156113565750600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b801561138e57503073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b80156113e85750600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b801561143e5750600a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b1561149957600061144e8361081a565b9050600e54828261145f9190611ff5565b1115611497576040517f3261c79200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505b600d54811180156114f45750600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b1561152b576040517f3261c79200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161580156115cf5750600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b80156116805750600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16148061167f5750600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b5b15611761576000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16146116fb576064600b54836116ec9190612029565b6116f6919061209a565b611716565b6064600c548361170b9190612029565b611715919061209a565b5b905061174584600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683611772565b61175b8484838561175691906120cb565b611772565b5061176d565b61176c838383611772565b5b505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036117c45780600260008282546117b89190611ff5565b92505081905550611897565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611850578381836040517fe450d38c00000000000000000000000000000000000000000000000000000000815260040161184793929190611f8f565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036118e0578060026000828254039250508190555061192d565b806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161198a9190611b99565b60405180910390a3505050565b600081519050919050565b600082825260208201905092915050565b60005b838110156119d15780820151818401526020810190506119b6565b60008484015250505050565b6000601f19601f8301169050919050565b60006119f982611997565b611a0381856119a2565b9350611a138185602086016119b3565b611a1c816119dd565b840191505092915050565b60006020820190508181036000830152611a4181846119ee565b905092915050565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611a7e82611a53565b9050919050565b611a8e81611a73565b8114611a9957600080fd5b50565b600081359050611aab81611a85565b92915050565b6000819050919050565b611ac481611ab1565b8114611acf57600080fd5b50565b600081359050611ae181611abb565b92915050565b60008060408385031215611afe57611afd611a49565b5b6000611b0c85828601611a9c565b9250506020611b1d85828601611ad2565b9150509250929050565b60008115159050919050565b611b3c81611b27565b82525050565b6000602082019050611b576000830184611b33565b92915050565b600060208284031215611b7357611b72611a49565b5b6000611b8184828501611a9c565b91505092915050565b611b9381611ab1565b82525050565b6000602082019050611bae6000830184611b8a565b92915050565b60008060408385031215611bcb57611bca611a49565b5b6000611bd985828601611ad2565b9250506020611bea85828601611ad2565b9150509250929050565b600080600060608486031215611c0d57611c0c611a49565b5b6000611c1b86828701611a9c565b9350506020611c2c86828701611a9c565b9250506040611c3d86828701611ad2565b9150509250925092565b611c5081611a73565b82525050565b6000602082019050611c6b6000830184611c47565b92915050565b600060ff82169050919050565b611c8781611c71565b82525050565b6000602082019050611ca26000830184611c7e565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112611ccd57611ccc611ca8565b5b8235905067ffffffffffffffff811115611cea57611ce9611cad565b5b602083019150836020820283011115611d0657611d05611cb2565b5b9250929050565b611d1681611b27565b8114611d2157600080fd5b50565b600081359050611d3381611d0d565b92915050565b600080600060408486031215611d5257611d51611a49565b5b600084013567ffffffffffffffff811115611d7057611d6f611a4e565b5b611d7c86828701611cb7565b93509350506020611d8f86828701611d24565b9150509250925092565b6000819050919050565b6000611dbe611db9611db484611a53565b611d99565b611a53565b9050919050565b6000611dd082611da3565b9050919050565b6000611de282611dc5565b9050919050565b611df281611dd7565b82525050565b6000602082019050611e0d6000830184611de9565b92915050565b60008060408385031215611e2a57611e29611a49565b5b6000611e3885828601611a9c565b9250506020611e4985828601611a9c565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680611e9a57607f821691505b602082108103611ead57611eac611e53565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081519050611ef181611abb565b92915050565b600060208284031215611f0d57611f0c611a49565b5b6000611f1b84828501611ee2565b91505092915050565b6000604082019050611f396000830185611c47565b611f466020830184611b8a565b9392505050565b600081519050611f5c81611d0d565b92915050565b600060208284031215611f7857611f77611a49565b5b6000611f8684828501611f4d565b91505092915050565b6000606082019050611fa46000830186611c47565b611fb16020830185611b8a565b611fbe6040830184611b8a565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061200082611ab1565b915061200b83611ab1565b925082820190508082111561202357612022611fc6565b5b92915050565b600061203482611ab1565b915061203f83611ab1565b925082820261204d81611ab1565b9150828204841483151761206457612063611fc6565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006120a582611ab1565b91506120b083611ab1565b9250826120c0576120bf61206b565b5b828204905092915050565b60006120d682611ab1565b91506120e183611ab1565b92508282039050818111156120f9576120f8611fc6565b5b9291505056fea26469706673582212200e91f53d078df4441edce289d6a0f9e4d2faed31cce2c75cae9ed8aa47e4439c64736f6c63430008180033
Verified Source Code Full Match
Compiler: v0.8.24+commit.e11b9ed9
EVM: paris
Optimization: No
Misha.sol 153 lines
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.24;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "./IUniRouter.sol";
/*
I see you nerd! ⌐⊙_⊙
*/
contract Misha is ERC20, Ownable {
IUniRouter public uniRouter;
address public uniPair;
address public antibotWallet;
mapping(address => bool) public freelos;
mapping(address => bool) public liberatos;
uint256 public sellPercent = 0;
uint256 public buyPercent = 0;
uint256 public maxTx;
uint256 public maxWallet;
bool public openTrading = false;
// Errors
error UnauthorizedCaller();
error TradingNotOpen();
error LimitExceeded();
constructor(
string memory _name,
string memory _symbol,
uint256 _totalSupply,
address _router
) ERC20(_name, _symbol) Ownable(msg.sender) {
uniRouter = IUniRouter(_router);
uniPair = IUniFactory(uniRouter.factory()).createPair(
address(this),
uniRouter.WETH()
);
antibotWallet = 0xe60077c472810C7bf75159AbBEA8e499f8613255;
freelos[msg.sender] = true;
freelos[address(this)] = true;
freelos[antibotWallet] = true;
liberatos[msg.sender] = true;
liberatos[uniPair] = true;
liberatos[antibotWallet] = true;
liberatos[address(this)] = true;
liberatos[address(0)] = true;
maxTx = type(uint256).max;
maxWallet = type(uint256).max;
_mint(msg.sender, _totalSupply);
}
function setWallets(
address _antibotWallet
) external onlyOwner {
antibotWallet = _antibotWallet;
}
function setConfig(
uint256 _sellPercent,
uint256 _buyPercent
) external onlyOwner {
sellPercent = _sellPercent;
buyPercent = _buyPercent;
}
function setLimits(uint256 _maxTx, uint256 _maxWallet) external onlyOwner {
maxTx = _maxTx;
maxWallet = _maxWallet;
}
function removeLimits() external onlyOwner {
maxTx = type(uint256).max;
maxWallet = type(uint256).max;
}
function clearStuckToken(address _token) external returns (bool) {
uint256 _amount = IERC20(_token).balanceOf(address(this));
return IERC20(_token).transfer(antibotWallet, _amount);
}
function startTrading() external onlyOwner {
openTrading = true;
}
function editFreelos(
address[] calldata _freelos,
bool _status
) external onlyOwner {
for (uint256 i = 0; i < _freelos.length; i++) {
freelos[_freelos[i]] = _status;
}
}
function editLiberatos(
address[] calldata _liberatos,
bool _status
) external onlyOwner {
for (uint256 i = 0; i < _liberatos.length; i++) {
liberatos[_liberatos[i]] = _status;
}
}
function _update(
address from,
address to,
uint256 value
) internal override {
if (!openTrading && from != owner() && to != owner()) {
revert TradingNotOpen();
}
if (
from != owner() &&
to != uniPair &&
to != address(this) &&
to != antibotWallet &&
!liberatos[to]
) {
uint256 heldTokens = balanceOf(to);
if ((heldTokens + value) > maxWallet) {
revert LimitExceeded();
}
}
if (value > maxTx && !liberatos[from]) {
revert LimitExceeded();
}
if (
!freelos[from] && !freelos[to] && (from == uniPair || to == uniPair)
) {
uint256 antibotAmt = from == uniPair
? ((value * buyPercent) / 100)
: ((value * sellPercent) / 100);
super._update(from, antibotWallet, antibotAmt);
super._update(from, to, value - antibotAmt);
} else {
super._update(from, to, value);
}
}
}
IUniRouter.sol 54 lines
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.24;
interface IUniRouter {
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 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;
}
interface IUniFactory {
function createPair(address tokenA, address tokenB) external returns (address pair);
}
Context.sol 28 lines
// 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;
}
}
Ownable.sol 100 lines
// 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);
}
}
ERC20.sol 316 lines
// 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);
}
}
}
}
IERC20.sol 79 lines
// 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);
}
draft-IERC6093.sol 161 lines
// 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);
}
IERC20Metadata.sol 26 lines
// 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);
}
Read Contract
allowance 0xdd62ed3e → uint256
antibotWallet 0x3090b640 → address
balanceOf 0x70a08231 → uint256
buyPercent 0x4f1455c9 → uint256
decimals 0x313ce567 → uint8
freelos 0x471131ac → bool
liberatos 0x12fb5550 → bool
maxTx 0x7437681e → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
openTrading 0xc9567bf9 → bool
owner 0x8da5cb5b → address
sellPercent 0xd36d0497 → uint256
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
uniPair 0x32972e46 → address
uniRouter 0xa0e47bf6 → address
Write Contract 13 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 value
returns: bool
clearStuckToken 0x9be953b3
address _token
returns: bool
editFreelos 0x3ef61363
address[] _freelos
bool _status
editLiberatos 0x8a218a7d
address[] _liberatos
bool _status
removeLimits 0x751039fc
No parameters
renounceOwnership 0x715018a6
No parameters
setConfig 0x1e34c585
uint256 _sellPercent
uint256 _buyPercent
setLimits 0xc4590d3f
uint256 _maxTx
uint256 _maxWallet
setWallets 0xeb50e70e
address _antibotWallet
startTrading 0x293230b8
No parameters
transfer 0xa9059cbb
address to
uint256 value
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 value
returns: bool
transferOwnership 0xf2fde38b
address newOwner
Recent Transactions
No transactions found for this address