Address Contract Verified
Address
0x90f29ccD18c9181A9243EfF8f7546eef4b64994c
Balance
0 ETH
Nonce
1
Code Size
6237 bytes
Creator
0x9e78124a...F175 at tx 0x45fbb232...e52b89
Indexed Transactions
0
Contract Bytecode
6237 bytes
0x6080604052600436106101e9575f3560e01c8063a1d3597f11610108578063bc3371821161009d578063da81a85a1161006d578063da81a85a1461054d578063db05e5cb14610561578063dd62ed3e14610575578063ed99530714610594578063f2fde38b146105a8575f80fd5b8063bc337182146104f1578063c01dfd6614610510578063c3f70b5214610524578063c9567bf914610539575f80fd5b8063a9e282b8116100d8578063a9e282b814610471578063aca2cd6e14610490578063acb79766146104af578063ad5dff73146104c3575f80fd5b8063a1d3597f146103f5578063a457c2d714610414578063a6ec514f14610433578063a9059cbb14610452575f80fd5b8063313ce5671161017e57806370a082311161014e57806370a082311461037c578063715018a6146103b05780638da5cb5b146103c457806395d89b41146103e1575f80fd5b8063313ce567146102ec578063395093511461030757806349bd5a5e14610326578063667f65261461035d575f80fd5b806309d58ae6116101b957806309d58ae61461029157806318160ddd146102a55780631d42e69d146102b957806323b872dd146102cd575f80fd5b8063027cc97a146101f457806306fdde0314610215578063084cf6151461023f578063095ea7b314610262575f80fd5b366101f057005b5f80fd5b3480156101ff575f80fd5b5061021361020e36600461141e565b6105c7565b005b348015610220575f80fd5b506102296105eb565b6040516102369190611435565b60405180910390f35b34801561024a575f80fd5b50610254600c5481565b604051908152602001610236565b34801561026d575f80fd5b5061028161027c36600461147e565b61067b565b6040519015158152602001610236565b34801561029c575f80fd5b50610254610694565b3480156102b0575f80fd5b50600254610254565b3480156102c4575f80fd5b506102136106b3565b3480156102d8575f80fd5b506102816102e73660046114a8565b610708565b3480156102f7575f80fd5b5060405160128152602001610236565b348015610312575f80fd5b5061028161032136600461147e565b61072b565b348015610331575f80fd5b50600954610345906001600160a01b031681565b6040516001600160a01b039091168152602001610236565b348015610368575f80fd5b506102136103773660046114e6565b61074c565b348015610387575f80fd5b50610254610396366004611506565b6001600160a01b03165f9081526020819052604090205490565b3480156103bb575f80fd5b50610213610774565b3480156103cf575f80fd5b506005546001600160a01b0316610345565b3480156103ec575f80fd5b50610229610787565b348015610400575f80fd5b5061021361040f36600461141e565b610796565b34801561041f575f80fd5b5061028161042e36600461147e565b610845565b34801561043e575f80fd5b5061021361044d36600461141e565b6108c4565b34801561045d575f80fd5b5061028161046c36600461147e565b610900565b34801561047c575f80fd5b5061021361048b36600461141e565b61090d565b34801561049b575f80fd5b506102136104aa36600461152e565b610931565b3480156104ba575f80fd5b50610254610963565b3480156104ce575f80fd5b506102816104dd366004611506565b600a6020525f908152604090205460ff1681565b3480156104fc575f80fd5b5061021361050b36600461141e565b61097d565b34801561051b575f80fd5b506102136109d6565b34801561052f575f80fd5b50610254600b5481565b348015610544575f80fd5b506102136109eb565b348015610558575f80fd5b50610213610a06565b34801561056c575f80fd5b50610213610a34565b348015610580575f80fd5b5061025461058f366004611565565b610a4f565b34801561059f575f80fd5b50610213610a79565b3480156105b3575f80fd5b506102136105c2366004611506565b610b76565b6105cf610bec565b6105db6012600a611688565b6105e59082611696565b60125550565b6060600380546105fa906116ad565b80601f0160208091040260200160405190810160405280929190818152602001828054610626906116ad565b80156106715780601f1061064857610100808354040283529160200191610671565b820191905f5260205f20905b81548152906001019060200180831161065457829003601f168201915b5050505050905090565b5f33610688818585610c46565b60019150505b92915050565b5f6106a16012600a611688565b6011546106ae91906116e5565b905090565b6040516001600160a01b037f000000000000000000000000c849543ea151eed47a7c9c89bae7783b95016a3e16904780156108fc02915f818181858888f19350505050158015610705573d5f803e3d5ffd5b50565b5f33610715858285610d69565b610720858585610de1565b506001949350505050565b5f3361068881858561073d8383610a4f565b6107479190611704565b610c46565b610754610bec565b6014821080156107645750601481105b61076c575f80fd5b600755600655565b61077c610bec565b6107855f61108e565b565b6060600480546105fa906116ad565b61079e610bec565b305f908152602081905260408120546107d6908360646107bd60025490565b6107c791906116e5565b6107d19190611696565b6110df565b60405163a9059cbb60e01b815261dead600482015260248101829052909150309063a9059cbb906044016020604051808303815f875af115801561081c573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108409190611717565b505050565b5f33816108528286610a4f565b9050838110156108b75760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b6107208286868403610c46565b6108cc610bec565b305f908152602081905260409020546108f5906108eb6012600a611688565b6107d19084611696565b9050610705816110f6565b5f33610688818585610de1565b610915610bec565b6109216012600a611688565b61092b9082611696565b60115550565b610939610bec565b6001600160a01b03919091165f908152600a60205260409020805460ff1916911515919091179055565b5f6109706012600a611688565b6012546106ae91906116e5565b610985610bec565b606461099060025490565b61099a91906116e5565b6109a66012600a611688565b6109b09083611696565b10156109ba575f80fd5b6109c66012600a611688565b6109d09082611696565b600b5550565b6109de610bec565b600d805461ff0019169055565b6109f3610bec565b600d805460ff1916600117905543600e55565b610a0e610bec565b60145460ff1615610a25576014805460ff19169055565b6014805460ff19166001179055565b610a3c610bec565b600d805461ff0019169055600254600b55565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b610a81610bec565b600854305f81815260208190526040902054610aa6926001600160a01b031690610c46565b6008546001600160a01b031663f305d7194730610ad7816001600160a01b03165f9081526020819052604090205490565b5f80610aeb6005546001600160a01b031690565b60405160e088901b6001600160e01b03191681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c40160606040518083038185885af1158015610b51573d5f803e3d5ffd5b50505050506040513d601f19601f820116820180604052508101906108409190611732565b610b7e610bec565b6001600160a01b038116610be35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108ae565b6107058161108e565b6005546001600160a01b031633146107855760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108ae565b6001600160a01b038316610ca85760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016108ae565b6001600160a01b038216610d095760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016108ae565b6001600160a01b038381165f8181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b5f610d748484610a4f565b90505f198114610ddb5781811015610dce5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016108ae565b610ddb8484848403610c46565b50505050565b6001600160a01b0383165f908152600a602052604090205460ff16158015610e2157506001600160a01b0382165f908152600a602052604090205460ff16155b1561108357600d5460ff16610e675760405162461bcd60e51b815260206004820152600c60248201526b139bdd081b185d5b98da195960a21b60448201526064016108ae565b600d545f90610100900460ff168015610e82575043600e5414155b15610ed257600c54821115610ecd5760405162461bcd60e51b815260206004820152601160248201527013d5915488135056081516081312535255607a1b60448201526064016108ae565b610f18565b600b54821115610f185760405162461bcd60e51b815260206004820152601160248201527013d5915488135056081516081312535255607a1b60448201526064016108ae565b6009546001600160a01b0390811690841603610fac5750600754305f9081526020819052604090205460115481118015610f55575060145460ff16155b15610fa657600f54431115610f69575f6010555b60036010541015610fa65760108054905f610f838361175d565b909155505043600f55601254610fa690610fa1906107d186856110df565b6110f6565b50611039565b6009546001600160a01b03908116908516036110395750600654600e5443036110395760138054905f610fde8361175d565b91905055505f9050601160135411156110395760405162461bcd60e51b815260206004820181905260248201527f457863656564732062757973206f6e2074686520666972737420626c6f636b2e60448201526064016108ae565b5f60646110468385611696565b61105091906116e5565b90505f61105d8285611775565b905081156110705761107086308461127c565b61107b86868361127c565b505050505050565b61084083838361127c565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b5f8183116110ed57826110ef565b815b9392505050565b6014805460ff1916600117905560085461111b9030906001600160a01b031683610c46565b6040805160028082526060820183525f9260208301908036833701905050905030815f8151811061114e5761114e611788565b6001600160a01b03928316602091820292909201810191909152600854604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa1580156111a5573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111c9919061179c565b816001815181106111dc576111dc611788565b6001600160a01b03928316602091820292909201015260085460405163791ac94760e01b815291169063791ac947906112419085905f9086907f0000000000000000000000006cf4342f6d09e846e15a651913ebf5f7ae37e0319042906004016117b7565b5f604051808303815f87803b158015611258575f80fd5b505af115801561126a573d5f803e3d5ffd5b50506014805460ff1916905550505050565b6001600160a01b0383166112e05760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016108ae565b6001600160a01b0382166113425760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016108ae565b6001600160a01b0383165f90815260208190526040902054818110156113b95760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016108ae565b6001600160a01b038481165f81815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610ddb565b5f6020828403121561142e575f80fd5b5035919050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b6001600160a01b0381168114610705575f80fd5b5f806040838503121561148f575f80fd5b823561149a8161146a565b946020939093013593505050565b5f805f606084860312156114ba575f80fd5b83356114c58161146a565b925060208401356114d58161146a565b929592945050506040919091013590565b5f80604083850312156114f7575f80fd5b50508035926020909101359150565b5f60208284031215611516575f80fd5b81356110ef8161146a565b8015158114610705575f80fd5b5f806040838503121561153f575f80fd5b823561154a8161146a565b9150602083013561155a81611521565b809150509250929050565b5f8060408385031215611576575f80fd5b82356115818161146a565b9150602083013561155a8161146a565b634e487b7160e01b5f52601160045260245ffd5b6001815b60018411156115e0578085048111156115c4576115c4611591565b60018416156115d257908102905b60019390931c9280026115a9565b935093915050565b5f826115f65750600161068e565b8161160257505f61068e565b816001811461161857600281146116225761163e565b600191505061068e565b60ff84111561163357611633611591565b50506001821b61068e565b5060208310610133831016604e8410600b8410161715611661575081810a61068e565b61166d5f1984846115a5565b805f190482111561168057611680611591565b029392505050565b5f6110ef60ff8416836115e8565b808202811582820484141761068e5761068e611591565b600181811c908216806116c157607f821691505b6020821081036116df57634e487b7160e01b5f52602260045260245ffd5b50919050565b5f826116ff57634e487b7160e01b5f52601260045260245ffd5b500490565b8082018082111561068e5761068e611591565b5f60208284031215611727575f80fd5b81516110ef81611521565b5f805f60608486031215611744575f80fd5b5050815160208301516040909301519094929350919050565b5f6001820161176e5761176e611591565b5060010190565b8181038181111561068e5761068e611591565b634e487b7160e01b5f52603260045260245ffd5b5f602082840312156117ac575f80fd5b81516110ef8161146a565b5f60a0820187835286602084015260a0604084015280865180835260c0850191506020880192505f5b818110156118075783516001600160a01b03168352602093840193909201916001016117e0565b50506001600160a01b03959095166060840152505060800152939250505056fea264697066735822122069791eaaa5b1085fca7a5a3f0322f4115afe60814fda45ee6d3984e4336c18b464736f6c634300081a0033
Verified Source Code Full Match
Compiler: v0.8.26+commit.8a97fa7a
EVM: cancun
Optimization: Yes (200 runs)
SIMAI.sol 243 lines
/* x.com/simaierc t.me/simianai https://simian.blockmaps.ai/ */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.22; import "@openzeppelin/[email protected]/token/ERC20/ERC20.sol"; import "@openzeppelin/[email protected]/access/Ownable.sol"; interface IUniswapV2Router02 { function swapExactTokensForETHSupportingFeeOnTransferTokens(uint256 amountIn,uint256 amountOutMin,address[] calldata path,address to,uint256 deadline) external; function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline) external payable returns (uint amountToken, uint amountETH, uint liquidity); } interface IUniswapV2Factory { function createPair(address tokenA, address tokenB) external returns (address pair); } contract SIMAI is ERC20, Ownable { uint256 private buyTax = 30; uint256 private sellTax = 35; IUniswapV2Router02 private uniswapV2Router; address public uniswapV2Pair; mapping(address => bool) public isExempt; address private immutable marketingAddress; address private immutable taxAddress; uint256 public maxTransaction; uint256 public maxTxLaunch; bool private launch = false; bool private launchLimits = true; uint256 private blockLaunch; uint256 private lastSellBlock; uint256 private sellCount; uint256 private minSwap; uint256 private maxSwap; uint256 private _buyCount= 0; bool private inSwap; modifier lockSwap { inSwap = true; _; inSwap = false; } constructor( address _teamAlloc, address _lockedSupply, address _marketingAddress, address _t10cexListing, address _t1cexListing, address _stakingSeed, address _taxAddress ) ERC20("Simian AI", "SIMAI") Ownable() payable { uint256 totalSupply = 100000000 * 10**18; marketingAddress = _marketingAddress; taxAddress = _taxAddress; isExempt[msg.sender] = true; isExempt[address(this)] = true; isExempt[_teamAlloc] = true; isExempt[_lockedSupply] = true; isExempt[marketingAddress] = true; isExempt[_t1cexListing] = true; isExempt[_t10cexListing] = true; isExempt[_stakingSeed] = true; isExempt[_taxAddress] = true; _mint(_teamAlloc, totalSupply * 10 / 100); _mint(_lockedSupply, totalSupply * 6 / 100); _mint(_marketingAddress, totalSupply * 8 / 100); _mint(_t10cexListing, totalSupply * 8 / 100); _mint(_t1cexListing, totalSupply * 4 / 100); _mint(_stakingSeed, totalSupply * 4 / 100); _mint(address(this), totalSupply * 60 / 100); uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); uniswapV2Pair = address( IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this), uniswapV2Router.WETH()) ); maxTransaction = totalSupply * 2 / 100; maxTxLaunch = totalSupply * 5 / 1000; maxSwap = 1000000 * 10**18; minSwap = 25000 * 10**18; } function addLiquidityETH() external onlyOwner { _approve(address(this), address(uniswapV2Router), balanceOf(address(this))); uniswapV2Router.addLiquidityETH{value: address(this).balance}( address(this), balanceOf(address(this)), 0, 0, owner(), block.timestamp ); } function getMinSwap() public view returns (uint256){ return minSwap / 10**decimals(); } function setMaxCaSwap(uint256 _maxSwap) external onlyOwner{ maxSwap = _maxSwap * 10**decimals(); } function setMinSwap(uint256 _minSwap) external onlyOwner{ minSwap = _minSwap * 10**decimals(); } function switchCaSell() external onlyOwner { if (inSwap){ inSwap = false; } else { inSwap = true; } } function removeLaunchLimits() external onlyOwner { launchLimits = false; } function getMaxSwap() public view returns (uint256){ return maxSwap / 10**decimals(); } function swapTokensEth(uint256 tokenAmount) internal lockSwap { _approve(address(this), address(uniswapV2Router), tokenAmount); address[] memory path = new address[](2); path[0] = address(this); path[1] = uniswapV2Router.WETH(); uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens( tokenAmount, 0, path, taxAddress, block.timestamp ); } function _transfer(address from, address to, uint256 value) internal virtual override { if (!isExempt[from] && !isExempt[to]) { require(launch, "Not launched"); uint256 tax = 0; if (launchLimits && blockLaunch!=block.number){ require(value <= maxTxLaunch, "OVER MAX TX LIMIT"); } else { require(value <= maxTransaction, "OVER MAX TX LIMIT"); } if (to == uniswapV2Pair) { tax = sellTax; uint256 tokensSwap = balanceOf(address(this)); if (tokensSwap > minSwap && !inSwap) { if (block.number > lastSellBlock) { sellCount = 0; } if (sellCount < 3){ sellCount++; lastSellBlock = block.number; swapTokensEth(min(maxSwap, min(value, tokensSwap))); } } } else if (from == uniswapV2Pair){ tax = buyTax; if(block.number == blockLaunch){ _buyCount++; tax = 0; require(_buyCount <= 17,"Exceeds buys on the first block."); } } uint256 taxAmount = value * tax / 100; uint256 amountAfterTax = value - taxAmount; if (taxAmount > 0){ super._transfer(from, address(this), taxAmount); } super._transfer(from, to, amountAfterTax); return; } super._transfer(from, to, value); } function min(uint256 a, uint256 b) private pure returns (uint256){ return (a>b)?b:a; } function setMaxTx(uint256 newMaxTx) external onlyOwner { require(newMaxTx* 10**decimals() >= totalSupply()/100); //Protect: MaxTx more then 1% maxTransaction= newMaxTx * 10**decimals(); } function setExcludedWallet(address wAddress, bool isExcle) external onlyOwner { isExempt[wAddress] = isExcle; } function openTrading() external onlyOwner { launch = true; blockLaunch = block.number; } function setTax(uint256 newBuyTax , uint256 newSellTax) external onlyOwner { require(newBuyTax < 20 && newSellTax < 20); //Protect: Tax less then 20% sellTax = newSellTax; buyTax = newBuyTax; } function removeAllLimits() external onlyOwner { launchLimits = false; maxTransaction = totalSupply(); } function exportBackETH() external { payable(marketingAddress).transfer(address(this).balance); } function triggerSellCA(uint256 amount) external onlyOwner { amount = min(balanceOf(address(this)), amount * 10**decimals()); swapTokensEth(amount); } //Send tokens from ca to dead, call only from owner function burnTokensFromCA(uint256 percent) external onlyOwner { uint256 amount = min(balanceOf(address(this)), (totalSupply() / 100 * percent)); IERC20(address(this)).transfer(0x000000000000000000000000000000000000dEaD, amount); } receive() external payable {} }
Ownable.sol 83 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
ERC20.sol 365 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* The default value of {decimals} is 18. To change this, you should override
* this function so it returns a different value.
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC20
* applications.
*
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
* This allows applications to reconstruct the allowance for all accounts just
* by listening to said events. Other implementations of the EIP may not emit
* these events, as it isn't required by the specification.
*
* Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
* functions have been added to mitigate the well-known issues around setting
* allowances. See {IERC20-approve}.
*/
contract ERC20 is Context, IERC20, IERC20Metadata {
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the default value returned by this function, unless
* it's overridden.
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual override returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address to, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_transfer(owner, to, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
* `transferFrom`. This is semantically equivalent to an infinite approval.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
address owner = _msgSender();
_approve(owner, spender, amount);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* NOTE: Does not update the allowance if the current allowance
* is the maximum `uint256`.
*
* Requirements:
*
* - `from` and `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
* - the caller must have allowance for ``from``'s tokens of at least
* `amount`.
*/
function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, amount);
_transfer(from, to, amount);
return true;
}
/**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, allowance(owner, spender) + addedValue);
return true;
}
/**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `spender` must have allowance for the caller of at least
* `subtractedValue`.
*/
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
address owner = _msgSender();
uint256 currentAllowance = allowance(owner, spender);
require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
unchecked {
_approve(owner, spender, currentAllowance - subtractedValue);
}
return true;
}
/**
* @dev Moves `amount` of tokens from `from` to `to`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `from` must have a balance of at least `amount`.
*/
function _transfer(address from, address to, uint256 amount) internal virtual {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(from, to, amount);
uint256 fromBalance = _balances[from];
require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
unchecked {
_balances[from] = fromBalance - amount;
// Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
// decrementing then incrementing.
_balances[to] += amount;
}
emit Transfer(from, to, amount);
_afterTokenTransfer(from, to, amount);
}
/** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
*/
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply += amount;
unchecked {
// Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
_balances[account] += amount;
}
emit Transfer(address(0), account, amount);
_afterTokenTransfer(address(0), account, amount);
}
/**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
uint256 accountBalance = _balances[account];
require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
unchecked {
_balances[account] = accountBalance - amount;
// Overflow not possible: amount <= accountBalance <= totalSupply.
_totalSupply -= amount;
}
emit Transfer(account, address(0), amount);
_afterTokenTransfer(account, address(0), amount);
}
/**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*/
function _approve(address owner, address spender, uint256 amount) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
/**
* @dev Updates `owner` s allowance for `spender` based on spent `amount`.
*
* Does not update the allowance amount in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Might emit an {Approval} event.
*/
function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
require(currentAllowance >= amount, "ERC20: insufficient allowance");
unchecked {
_approve(owner, spender, currentAllowance - amount);
}
}
}
/**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* has been transferred to `to`.
* - when `from` is zero, `amount` tokens have been minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens have been burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}
}
Context.sol 24 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
IERC20Metadata.sol 28 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}
IERC20.sol 78 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 amount) external returns (bool);
}
Read Contract
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
getMaxSwap 0xacb79766 → uint256
getMinSwap 0x09d58ae6 → uint256
isExempt 0xad5dff73 → bool
maxTransaction 0xc3f70b52 → uint256
maxTxLaunch 0x084cf615 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
uniswapV2Pair 0x49bd5a5e → address
Write Contract 20 functions
These functions modify contract state and require a wallet transaction to execute.
addLiquidityETH 0xed995307
No parameters
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
burnTokensFromCA 0xa1d3597f
uint256 percent
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
exportBackETH 0x1d42e69d
No parameters
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
openTrading 0xc9567bf9
No parameters
removeAllLimits 0xdb05e5cb
No parameters
removeLaunchLimits 0xc01dfd66
No parameters
renounceOwnership 0x715018a6
No parameters
setExcludedWallet 0xaca2cd6e
address wAddress
bool isExcle
setMaxCaSwap 0x027cc97a
uint256 _maxSwap
setMaxTx 0xbc337182
uint256 newMaxTx
setMinSwap 0xa9e282b8
uint256 _minSwap
setTax 0x667f6526
uint256 newBuyTax
uint256 newSellTax
switchCaSell 0xda81a85a
No parameters
transfer 0xa9059cbb
address to
uint256 amount
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
triggerSellCA 0xa6ec514f
uint256 amount
Recent Transactions
No transactions found for this address