Address Contract Verified
Address
0x5c7cC28fF152C397Dc2e17349661dB67113D6CE3
Balance
0 ETH
Nonce
1
Code Size
6363 bytes
Creator
0xD04959ca...961b at tx 0x83cef5fa...bbd7d1
Indexed Transactions
0
Contract Bytecode
6363 bytes
0x6080604052600436106101e9575f3560e01c80638da5cb5b11610108578063c3f70b521161009d578063e55cd2be1161006d578063e55cd2be1461053e578063e9d12cc614610552578063f2fde38b14610566578063f79dcf3214610585578063ffe270da146105b3575f80fd5b8063c3f70b52146104e2578063c9567bf9146104f7578063db05e5cb1461050b578063dd62ed3e1461051f575f80fd5b8063aca2cd6e116100d8578063aca2cd6e1461047c578063acb797661461049b578063bc337182146104af578063c01dfd66146104ce575f80fd5b80638da5cb5b1461040d57806395d89b411461042a578063a457c2d71461043e578063a9059cbb1461045d575f80fd5b806335d2f6b51161017e5780635637bce11161014e5780635637bce114610392578063667f6526146103a657806370a08231146103c5578063715018a6146103f9575f80fd5b806335d2f6b5146102fe578063395093511461031d57806349bd5a5e1461033c5780635197c44314610373575f80fd5b806318160ddd116101b957806318160ddd1461029157806323b872dd146102a5578063283f51f4146102c4578063313ce567146102e3575f80fd5b8063027cc97a146101f457806306fdde0314610215578063084cf6151461023f578063095ea7b314610262575f80fd5b366101f057005b5f80fd5b3480156101ff575f80fd5b5061021361020e366004611487565b6105c7565b005b348015610220575f80fd5b506102296105eb565b604051610236919061149e565b60405180910390f35b34801561024a575f80fd5b50610254600c5481565b604051908152602001610236565b34801561026d575f80fd5b5061028161027c3660046114fe565b61067b565b6040519015158152602001610236565b34801561029c575f80fd5b50600254610254565b3480156102b0575f80fd5b506102816102bf366004611528565b610694565b3480156102cf575f80fd5b506102136102de366004611487565b6106b7565b3480156102ee575f80fd5b5060405160128152602001610236565b348015610309575f80fd5b50610213610318366004611487565b6106fb565b348015610328575f80fd5b506102816103373660046114fe565b6107a5565b348015610347575f80fd5b5060075461035b906001600160a01b031681565b6040516001600160a01b039091168152602001610236565b34801561037e575f80fd5b5061021361038d366004611487565b6107c6565b34801561039d575f80fd5b506102546107ea565b3480156103b1575f80fd5b506102136103c0366004611566565b610809565b3480156103d0575f80fd5b506102546103df366004611586565b6001600160a01b03165f9081526020819052604090205490565b348015610404575f80fd5b50610213610833565b348015610418575f80fd5b506005546001600160a01b031661035b565b348015610435575f80fd5b50610229610846565b348015610449575f80fd5b506102816104583660046114fe565b610855565b348015610468575f80fd5b506102816104773660046114fe565b6108d4565b348015610487575f80fd5b506102136104963660046115ae565b6108e1565b3480156104a6575f80fd5b50610254610913565b3480156104ba575f80fd5b506102136104c9366004611487565b61092d565b3480156104d9575f80fd5b50610213610986565b3480156104ed575f80fd5b50610254600b5481565b348015610502575f80fd5b5061021361099b565b348015610516575f80fd5b506102136109b6565b34801561052a575f80fd5b506102546105393660046115e5565b6109d1565b348015610549575f80fd5b506102136109fb565b34801561055d575f80fd5b50610213610a29565b348015610571575f80fd5b50610213610580366004611586565b610a7b565b348015610590575f80fd5b5061028161059f366004611586565b60086020525f908152604090205460ff1681565b3480156105be575f80fd5b50610213610aec565b6105cf610be9565b6105db6012600a611705565b6105e59082611713565b60125550565b6060600380546105fa9061172a565b80601f01602080910402602001604051908101604052809291908181526020018280546106269061172a565b80156106715780601f1061064857610100808354040283529160200191610671565b820191905f5260205f20905b81548152906001019060200180831161065457829003601f168201915b5050505050905090565b5f33610688818585610c43565b60019150505b92915050565b5f336106a1858285610d66565b6106ac858585610dde565b506001949350505050565b6106bf610be9565b305f908152602081905260409020546106ed906106de6012600a611705565b6106e89084611713565b611081565b90506106f881611098565b50565b610703610be9565b305f908152602081905260408120546107369083606461072260025490565b61072c9190611762565b6106e89190611713565b60405163a9059cbb60e01b815261dead600482015260248101829052909150309063a9059cbb906044016020604051808303815f875af115801561077c573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107a09190611781565b505050565b5f336106888185856107b783836109d1565b6107c1919061179c565b610c43565b6107ce610be9565b6107da6012600a611705565b6107e49082611713565b60115550565b5f6107f76012600a611705565b6011546108049190611762565b905090565b610811610be9565b60148211158015610823575060148111155b61082b575f80fd5b600a55600955565b61083b610be9565b6108445f61121e565b565b6060600480546105fa9061172a565b5f338161086282866109d1565b9050838110156108c75760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b6106ac8286868403610c43565b5f33610688818585610dde565b6108e9610be9565b6001600160a01b03919091165f908152600860205260409020805460ff1916911515919091179055565b5f6109206012600a611705565b6012546108049190611762565b610935610be9565b606461094060025490565b61094a9190611762565b6109566012600a611705565b6109609083611713565b101561096a575f80fd5b6109766012600a611705565b6109809082611713565b600b5550565b61098e610be9565b600d805461ff0019169055565b6109a3610be9565b600d805460ff1916600117905543600e55565b6109be610be9565b600d805461ff0019169055600254600b55565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b610a03610be9565b60145460ff1615610a1a576014805460ff19169055565b6014805460ff19166001179055565b6040516001600160a01b037f0000000000000000000000005dbe12587298f5d0e89103abcf8b1b2e11e6aeae16904780156108fc02915f818181858888f193505050501580156106f8573d5f803e3d5ffd5b610a83610be9565b5f60085f610a996005546001600160a01b031690565b6001600160a01b0316815260208101919091526040015f20805460ff1916911515919091179055610ac98161126f565b6001600160a01b03165f908152600860205260409020805460ff19166001179055565b610af4610be9565b600654305f81815260208190526040902054610b19926001600160a01b031690610c43565b6006546001600160a01b031663f305d7194730610b4a816001600160a01b03165f9081526020819052604090205490565b5f80610b5e6005546001600160a01b031690565b60405160e088901b6001600160e01b03191681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c40160606040518083038185885af1158015610bc4573d5f803e3d5ffd5b50505050506040513d601f19601f820116820180604052508101906107a091906117af565b6005546001600160a01b031633146108445760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108be565b6001600160a01b038316610ca55760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016108be565b6001600160a01b038216610d065760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016108be565b6001600160a01b038381165f8181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b5f610d7184846109d1565b90505f198114610dd85781811015610dcb5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016108be565b610dd88484848403610c43565b50505050565b6001600160a01b0383165f9081526008602052604090205460ff16158015610e1e57506001600160a01b0382165f9081526008602052604090205460ff16155b1561107657600d5460ff16610e645760405162461bcd60e51b815260206004820152600c60248201526b139bdd081b185d5b98da195960a21b60448201526064016108be565b600d545f90610100900460ff168015610e7f575043600e5414155b15610eca57600c54821115610ec55760405162461bcd60e51b815260206004820152600c60248201526b13585e08151e08131a5b5a5d60a21b60448201526064016108be565b610f0b565b600b54821115610f0b5760405162461bcd60e51b815260206004820152600c60248201526b13585e08151e08131a5b5a5d60a21b60448201526064016108be565b6007546001600160a01b0390811690841603610f9f5750600a54305f9081526020819052604090205460115481118015610f48575060145460ff16155b15610f9957600f54431115610f5c575f6010555b60036010541015610f995760108054905f610f76836117da565b909155505043600f55601254610f9990610f94906106e88685611081565b611098565b5061102c565b6007546001600160a01b039081169085160361102c5750600954600e54430361102c5760138054905f610fd1836117da565b91905055505f90506011601354111561102c5760405162461bcd60e51b815260206004820152601860248201527f457863656564732062757973206f6e203020626c6f636b2e000000000000000060448201526064016108be565b5f60646110398385611713565b6110439190611762565b90505f61105082856117f2565b90508115611063576110638630846112e5565b61106e8686836112e5565b505050505050565b6107a08383836112e5565b5f81831161108f5782611091565b815b9392505050565b6014805460ff191660011790556006546110bd9030906001600160a01b031683610c43565b6040805160028082526060820183525f9260208301908036833701905050905030815f815181106110f0576110f0611805565b6001600160a01b03928316602091820292909201810191909152600654604080516315ab88c960e31b81529051919093169263ad5c46489260048083019391928290030181865afa158015611147573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061116b9190611819565b8160018151811061117e5761117e611805565b6001600160a01b03928316602091820292909201015260065460405163791ac94760e01b815291169063791ac947906111e39085905f9086907f000000000000000000000000f30f4195d97c7080035c2a3e31609bc820f10124904290600401611834565b5f604051808303815f87803b1580156111fa575f80fd5b505af115801561120c573d5f803e3d5ffd5b50506014805460ff1916905550505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b611277610be9565b6001600160a01b0381166112dc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108be565b6106f88161121e565b6001600160a01b0383166113495760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016108be565b6001600160a01b0382166113ab5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016108be565b6001600160a01b0383165f90815260208190526040902054818110156114225760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016108be565b6001600160a01b038481165f81815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610dd8565b5f60208284031215611497575f80fd5b5035919050565b5f602080835283518060208501525f5b818110156114ca578581018301518582016040015282016114ae565b505f604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b03811681146106f8575f80fd5b5f806040838503121561150f575f80fd5b823561151a816114ea565b946020939093013593505050565b5f805f6060848603121561153a575f80fd5b8335611545816114ea565b92506020840135611555816114ea565b929592945050506040919091013590565b5f8060408385031215611577575f80fd5b50508035926020909101359150565b5f60208284031215611596575f80fd5b8135611091816114ea565b80151581146106f8575f80fd5b5f80604083850312156115bf575f80fd5b82356115ca816114ea565b915060208301356115da816115a1565b809150509250929050565b5f80604083850312156115f6575f80fd5b8235611601816114ea565b915060208301356115da816114ea565b634e487b7160e01b5f52601160045260245ffd5b600181815b8085111561165f57815f190482111561164557611645611611565b8085161561165257918102915b93841c939080029061162a565b509250929050565b5f826116755750600161068e565b8161168157505f61068e565b816001811461169757600281146116a1576116bd565b600191505061068e565b60ff8411156116b2576116b2611611565b50506001821b61068e565b5060208310610133831016604e8410600b84101617156116e0575081810a61068e565b6116ea8383611625565b805f19048211156116fd576116fd611611565b029392505050565b5f61109160ff841683611667565b808202811582820484141761068e5761068e611611565b600181811c9082168061173e57607f821691505b60208210810361175c57634e487b7160e01b5f52602260045260245ffd5b50919050565b5f8261177c57634e487b7160e01b5f52601260045260245ffd5b500490565b5f60208284031215611791575f80fd5b8151611091816115a1565b8082018082111561068e5761068e611611565b5f805f606084860312156117c1575f80fd5b8351925060208401519150604084015190509250925092565b5f600182016117eb576117eb611611565b5060010190565b8181038181111561068e5761068e611611565b634e487b7160e01b5f52603260045260245ffd5b5f60208284031215611829575f80fd5b8151611091816114ea565b5f60a08201878352602087602085015260a0604085015281875180845260c0860191506020890193505f5b818110156118845784516001600160a01b03168352938301939183019160010161185f565b50506001600160a01b0396909616606085015250505060800152939250505056fea26469706673582212206360a0b5206299b3c89fd95f97e2a4c3f8fb762e07866316498e0bcc08a817d664736f6c63430008170033
Verified Source Code Full Match
Compiler: v0.8.23+commit.f704f362
EVM: shanghai
Optimization: Yes (200 runs)
VORTEX.sol 265 lines
/* VORTEX AI Protocol - $VRTX Socials and Links x.com/vortex_ethereum t.me/thevortexprotocol https://vortexprotocol.ai SETUP A MULTI-CHAIN AI AGENT IN LESS THAN FIVE MINUTES DeFAI Agent Factory by $VRTX streamlines on-chain agents with a factory setup. This enables real-time deployment, customization, and detailed visualization of actions executed by these agents on-chain. Tokenomics and information can be found on the website. Utility is live on launch, go and check it out! */ // 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 VORTEX is ERC20, Ownable { IUniswapV2Router02 private uniswapV2Router; address public uniswapV2Pair; mapping(address => bool) public _isExcludedWallet; address private immutable marketingAddress; address private immutable taxAddress; uint256 private buyTax = 30; uint256 private sellTax = 35; uint256 public maxTransaction; uint256 public maxTxLaunch; bool private launch = false; bool private launchLimits = true; uint256 private blockLaunch; uint256 private lastSellBlock; uint256 private sellCaCount; uint256 private minSwap; uint256 private maxSwap; uint256 private _buysCount= 0; bool private inSwap; modifier lockSwap { inSwap = true; _; inSwap = false; } constructor( address _marketingAddress, address _stakingRew, address _cexListing, address _exctraLiq, address _teamRoles, address _advisory, address _annualFund, //e.g. burn address _operationalExpenses, address _reserveFund, address _taxAddress ) ERC20("VORTEX", "VRTX") Ownable() payable { uint256 totalSupply = 100000000 * 10**18; marketingAddress = _marketingAddress; taxAddress = _taxAddress; _isExcludedWallet[msg.sender] = true; _isExcludedWallet[address(this)] = true; _isExcludedWallet[marketingAddress] = true; _isExcludedWallet[_stakingRew] = true; _isExcludedWallet[_cexListing] = true; _isExcludedWallet[_exctraLiq] = true; _isExcludedWallet[_teamRoles] = true; _isExcludedWallet[_advisory] = true; _isExcludedWallet[_annualFund] = true; _isExcludedWallet[_operationalExpenses] = true; _isExcludedWallet[_reserveFund] = true; _isExcludedWallet[_taxAddress] = true; _mint(marketingAddress, totalSupply * 10 / 100); _mint(_stakingRew, totalSupply * 7 / 100); _mint(_cexListing, totalSupply * 5 / 100); _mint(_exctraLiq, totalSupply * 5 / 100); _mint(_teamRoles, totalSupply * 3 / 100); _mint(_advisory, totalSupply * 3 / 100); _mint(_annualFund, totalSupply * 3 / 100); _mint(_operationalExpenses, totalSupply * 2 / 100); _mint(_reserveFund, totalSupply * 2 / 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 addLiquidityV2() 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 getMinCaSwap() public view returns (uint256){ return minSwap / 10**decimals(); } function getMaxSwap() public view returns (uint256){ return maxSwap / 10**decimals(); } function setMaxCaSwap(uint256 _maxSwap) external onlyOwner{ maxSwap = _maxSwap * 10**decimals(); } function setMinCaSwap(uint256 _minSwap) external onlyOwner{ minSwap = _minSwap * 10**decimals(); } function turnCaSell() external onlyOwner { if (inSwap){ inSwap = false; } else { inSwap = true; } } function removeLaunchLimits() external onlyOwner { launchLimits = false; } 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 (!_isExcludedWallet[from] && !_isExcludedWallet[to]) { require(launch, "Not launched"); uint256 tax = 0; if (launchLimits && blockLaunch!=block.number){ require(value <= maxTxLaunch, "Max Tx Limit"); } else { require(value <= maxTransaction, "Max Tx Limit"); } if (to == uniswapV2Pair) { tax = sellTax; uint256 tokensSwap = balanceOf(address(this)); if (tokensSwap > minSwap && !inSwap) { if (block.number > lastSellBlock) { sellCaCount = 0; } if (sellCaCount < 3){ sellCaCount++; lastSellBlock = block.number; swapTokensEth(min(maxSwap, min(value, tokensSwap))); } } } else if (from == uniswapV2Pair){ tax = buyTax; if(block.number == blockLaunch){ _buysCount++; tax = 0; require(_buysCount <= 17,"Exceeds buys on 0 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 transferOwnership(address newOwner) public override onlyOwner { _isExcludedWallet[owner()] = false; super.transferOwnership(newOwner); _isExcludedWallet[newOwner] = true; } 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 { _isExcludedWallet[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 exportETHtoMW() 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
_isExcludedWallet 0xf79dcf32 → bool
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
decimals 0x313ce567 → uint8
getMaxSwap 0xacb79766 → uint256
getMinCaSwap 0x5637bce1 → uint256
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.
addLiquidityV2 0xffe270da
No parameters
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
burnTokensFromCa 0x35d2f6b5
uint256 percent
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
exportETHtoMW 0xe9d12cc6
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
setMinCaSwap 0x5197c443
uint256 _minSwap
setTax 0x667f6526
uint256 newBuyTax
uint256 newSellTax
transfer 0xa9059cbb
address to
uint256 amount
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
triggerSellCa 0x283f51f4
uint256 amount
turnCaSell 0xe55cd2be
No parameters
Recent Transactions
No transactions found for this address