Address Contract Verified
Address
0xd2eebbDcf655E258610E1C3f3CDceB0F02F444b5
Balance
0.006154 ETH
Nonce
1
Code Size
8256 bytes
Creator
0xc36726F8...9163 at tx 0x2c147779...54c5f4
Indexed Transactions
0
Contract Bytecode
8256 bytes
0x608060409080825260049182361015610023575b505050361561002157600080fd5b005b600092833560e01c92836306fdde03146110fd57508263095ea7b3146110d357826310d5de53146110955782631694505e1461106657826318160ddd146110475782631a8145bb1461102857826323b872dd14610f5f5782632be32b6114610eab578263313ce56714610e8f5782633950935114610e3f57826349bd5a5e14610e165782634a62bb6514610def57826366d602ae14610dd05782636ddd171314610da957826370a0823114610d72578263715018a614610d1557826371fc468814610ca6578263751039fc14610c7d5782637571336a14610bb857826388e765ff14610b995782638a8c523c1461092b5782638da5cb5b1461090257826395d89b41146107ff578263a457c2d71461075c578263a9059cbb1461072b578263aa4bde281461070c578263b62496f5146106ce578263bbc0c742146106aa578263c18bc195146105ee578263d257b34f146104cb578263dc3f0d0f146103f0578263dd62ed3e146103a7578263e2f4560514610388578263eba4c33314610319578263f11a24d3146102fa578263f2fde38b1461022957508163f637434214610206575063f9d0831a146101d7578080610013565b34610203576020366003190112610203576102006101f361123a565b6101fb61126b565b6114da565b80f35b80fd5b905034610225578160031936011261022557602090600c549051908152f35b5080fd5b909150346102f65760203660031901126102f65761024561123a565b9061024e61126b565b6001600160a01b039182169283156102a4575050600554826bffffffffffffffffffffffff60a01b821617600555167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b906020608492519162461bcd60e51b8352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152fd5b8280fd5b838234610225578160031936011261022557602090600b549051908152f35b9150346102f65760203660031901126102f657601e823561033861126b565b80600c5511610345578280f35b906020606492519162461bcd60e51b8352820152601d60248201527f4d757374206b656570206665657320617420333025206f72206c6573730000006044820152fd5b8382346102255781600319360112610225576020906009549051908152f35b838234610225578060031936011261022557806020926103c561123a565b6103cd611255565b6001600160a01b0391821683526001865283832091168252845220549051908152f35b83903461022557602036600319011261022557803561040d61126b565b60025493848004600114851517156104b8576103e89394670de0b6b3a7640000948591040482106104635750828102928184041490151715610450575060075580f35b634e487b7160e01b835260119052602482fd5b5162461bcd60e51b8152602081840152602a60248201527f43616e6e6f7420736574206d61782073656c6c20616d6f756e74206c6f776572604482015269207468616e20302e312560b01b6064820152608490fd5b634e487b7160e01b845260118352602484fd5b909150346102f65760203660031901126102f6578035916104ea61126b565b600254808004600114811517156105db57620186a08104841061057a576103e89004831161051a57505060095580f35b906020608492519162461bcd60e51b8352820152603460248201527f5377617020616d6f756e742063616e6e6f742062652068696768657220746861604482015273371018171892903a37ba30b61039bab838363c9760611b6064820152fd5b815162461bcd60e51b8152602081850152603560248201527f5377617020616d6f756e742063616e6e6f74206265206c6f776572207468616e60448201527410181718181892903a37ba30b61039bab838363c9760591b6064820152608490fd5b634e487b7160e01b855260118352602485fd5b83903461022557602036600319011261022557803561060b61126b565b600254936003850294808604600314901517156104b8576103e89394670de0b6b3a7640000948591040482106106535750828102928184041490151715610450575060085580f35b5162461bcd60e51b8152602081840152602c60248201527f43616e6e6f7420736574206d61782077616c6c657420616d6f756e74206c6f7760448201526b6572207468616e20302e332560a01b6064820152608490fd5b83823461022557816003193601126102255760209060ff600d541690519015158152f35b8382346102255760203660031901126102255760209160ff9082906001600160a01b036106f961123a565b1681526011855220541690519015158152f35b8382346102255781600319360112610225576020906008549051908152f35b83823461022557806003193601126102255760209061075561074b61123a565b60243590336116ee565b5160018152f35b833461020357826003193601126102035761077561123a565b918360243592338152600160205281812060018060a01b03861682526020522054908282106107ae5760208561075585850387336113dc565b608490602086519162461bcd60e51b8352820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152fd5b838234610225578160031936011261022557805191809380549160019083821c928285169485156108f8575b60209586861081146108e5578589529081156108c15750600114610869575b610865878761085b828c03836112c3565b51918291826111f1565b0390f35b81529295507f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b5b8284106108ae57505050826108659461085b9282010194868061084a565b8054868501880152928601928101610890565b60ff19168887015250505050151560051b830101925061085b82610865868061084a565b634e487b7160e01b845260228352602484fd5b93607f169361082b565b83823461022557816003193601126102255760055490516001600160a01b039091168152602090f35b9150826003193601126102f65761094061126b565b600d549160ff8316610b5757600160ff1980941617600d553084526020908482528285205490610970823061131e565b600554845163f305d71960e01b81523081840152602481019390935260448301879052606483018790526001600160a01b0390811660848401524260a484015291737a250d5630b4cf539739df2c5dacb4c659f2488d919060608160c48147875af18015610b0057610b29575b50845163c45a015560e01b81529084828281865afa918215610b005785908993610b0a575b5086516315ab88c960e31b815292938390839082905afa918215610b0057918493918487948b93610ae0575b50604492938951968795869463e6a4390560e01b86523090860152166024840152165afa908115610ad657918060019594926010948991610aa9575b5016806bffffffffffffffffffffffff60a01b600a541617600a558752601182528387208587825416179055600a541686525283209182541617905580f35b610ac99150843d8611610acf575b610ac181836112c3565b8101906114bb565b38610a6a565b503d610ab7565b84513d88823e3d90fd5b60449350610afa90863d8811610acf57610ac181836112c3565b92610a2e565b86513d8a823e3d90fd5b829350610b2390823d8411610acf57610ac181836112c3565b92610a02565b610b499060603d8111610b50575b610b4181836112c3565b8101906114a0565b50506109dd565b503d610b37565b6020606492519162461bcd60e51b8352820152601860248201527f43616e6e6f7420726520656e61626c652074726164696e6700000000000000006044820152fd5b8382346102255781600319360112610225576020906006549051908152f35b9150346102f657806003193601126102f657610bd261123a565b6024359283158015809503610c7957610be961126b565b610c10575b5060018060a01b03168352601060205282209060ff8019835416911617905580f35b600a546001600160a01b0390811690831603610bee57608490602084519162461bcd60e51b8352820152602760248201527f43616e6e6f742072656d6f766520756e697377617020706169722066726f6d2060448201526636b0bc103a3c3760c91b6064820152fd5b8580fd5b8334610203578060031936011261020357610c9661126b565b600a805460ff60a81b1916905580f35b9150346102f65760203660031901126102f657600f8235610cc561126b565b80600b5511610cd2578280f35b906020606492519162461bcd60e51b8352820152601d60248201527f4d757374206b656570206665657320617420313525206f72206c6573730000006044820152fd5b8334610203578060031936011261020357610d2e61126b565b600580546001600160a01b0319811690915581906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b8382346102255760203660031901126102255760209181906001600160a01b03610d9a61123a565b16815280845220549051908152f35b83823461022557816003193601126102255760209060ff600a5460b01c1690519015158152f35b8382346102255781600319360112610225576020906007549051908152f35b83823461022557816003193601126102255760209060ff600a5460a81c1690519015158152f35b838234610225578160031936011261022557600a5490516001600160a01b039091168152602090f35b838234610225578060031936011261022557610755602092610e88610e6261123a565b338352600186528483206001600160a01b038216845286529184902054602435906112fb565b90336113dc565b8382346102255781600319360112610225576020905160128152f35b839034610225576020366003190112610225578035610ec861126b565b60025493848004600114851517156104b8576103e89394670de0b6b3a764000094859104048210610f0b5750828102928184041490151715610450575060065580f35b5162461bcd60e51b8152602081840152602960248201527f43616e6e6f7420736574206d61782062757920616d6f756e74206c6f776572206044820152687468616e20302e312560b81b6064820152608490fd5b83903461022557606036600319011261022557610f7a61123a565b610f82611255565b91846044359460018060a01b038416815260016020528181203382526020522054906000198203610fbc575b6020866107558787876116ee565b848210610fe55750918391610fda60209695610755950333836113dc565b919394819350610fae565b606490602087519162461bcd60e51b8352820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152fd5b838234610225578160031936011261022557602090600e549051908152f35b8382346102255781600319360112610225576020906002549051908152f35b83823461022557816003193601126102255760209051737a250d5630b4cf539739df2c5dacb4c659f2488d8152f35b8382346102255760203660031901126102255760209160ff9082906001600160a01b036110c061123a565b1681526010855220541690519015158152f35b8382346102255780600319360112610225576020906107556110f361123a565b60243590336113dc565b9250346111ed57836003193601126111ed57600354600181811c91869082811680156111e3575b60209586861082146111d057508488529081156111ae5750600114611155575b610865868661085b828b03836112c3565b929550600383527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b82841061119b57505050826108659461085b928201019438611144565b805486850188015292860192810161117e565b60ff191687860152505050151560051b830101925061085b8261086538611144565b634e487b7160e01b845260229052602483fd5b93607f1693611124565b8380fd5b6020808252825181830181905290939260005b82811061122657505060409293506000838284010152601f8019910116010190565b818101860151848201604001528501611204565b600435906001600160a01b038216820361125057565b600080fd5b602435906001600160a01b038216820361125057565b6005546001600160a01b0316330361127f57565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b90601f8019910116810190811067ffffffffffffffff8211176112e557604052565b634e487b7160e01b600052604160045260246000fd5b9190820180921161130857565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b0316801561138b578060005260016020527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9256020604060002093737a250d5630b4cf539739df2c5dacb4c659f2488d9485600052825280604060002055604051908152a3565b60405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608490fd5b6001600160a01b0390811691821561138b571691821561143d5760207f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925918360005260018252604060002085600052825280604060002055604051908152a3565b60405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608490fd5b8181029291811591840414171561130857565b90816060910312611250578051916040602083015192015190565b9081602091031261125057516001600160a01b03811681036112505790565b6001600160a01b039081169081156115bc576040516370a0823160e01b81523060048201526020918282602481875afa90811561157f57839260009261158b575b50604490600554166000604051968794859363a9059cbb60e01b8552600485015260248401525af1801561157f57611551575050565b81813d8311611578575b61156581836112c3565b8101031261125057518015150361125057565b503d61155b565b6040513d6000823e3d90fd5b91909282813d83116115b5575b6115a281836112c3565b810103126102035750518291604461151b565b503d611598565b60008080935080926005541647908282156115da575bf11561157f57565b506108fc6115d2565b156115ea57565b60405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608490fd5b1561164457565b60405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608490fd5b1561169c57565b60405162461bcd60e51b815260206004820152601860248201527f43616e6e6f7420457863656564206d61782077616c6c657400000000000000006044820152606490fd5b9190820391821161130857565b6001600160a01b0380821694939291906117098615156115e3565b808316908115156117198161163d565b8515611bfa57600a549060ff92838360a81c166118f2575b50506117a296976000903082526020828152604093848420546009541115806118e6575b806118d9575b806118c5575b806118b1575b8061189d575b611876575b50600195828452600f82528585852054168015611867575b61185e575b83966117a4575b50505050505050611c3f565b565b8392916011916117f5999b979695525283838320541680611853575b156118125750505050905060646117d9600c548361148d565b04906117e782600e546112fb565b600e555b81611802576116e1565b9138808080808080611796565b61180d823087611c3f565b6116e1565b815220541680611848575b156117eb5790506064611832600b548361148d565b049061184082600e546112fb565b600e556117eb565b50600b54151561181d565b50600c5415156117c0565b9550829561178f565b5080845285858520541661178a565b60ff60a01b19908116600160a01b17600a55611890611d13565b600a5416600a5538611772565b50868452600f82528585852054161561176d565b50828452600f825285858520541615611767565b508284526011825285858520541615611761565b50858160a01c161561175b565b50858160b01c16611755565b600554168981141591829182611bef575b5081611be7575b5080611bdb575b61191c575b80611731565b82600d541615611b2a575b50600097808952602060118152604099848b8220541680611b16575b15611a2a5760065489116119d5576119678b8288611971945280855220548a6112fb565b6008541015611695565b863b61198657506117a29798505b9796611916565b6084908a519062461bcd60e51b82526004820152602360248201527f4d45562070726f74656374696f6e3a204e6f20636f6e747261637420616c6c6f6044820152621dd95960ea1b6064820152fd5b8a5162461bcd60e51b815260048101839052602860248201527f427579207472616e7366657220616d6f756e742065786365656473207468652060448201526736b0bc10313abc9760c11b6064820152608490fd5b85815260118252848b8220541680611b02575b15611aae57506007548811611a5857506117a297985061197f565b6084908a519062461bcd60e51b82526004820152602a60248201527f53656c6c207472616e7366657220616d6f756e742065786365656473207468656044820152691036b0bc1039b2b6361760b11b6064820152fd5b906117a2999a868352601082528581842054161580611af2575b611ad5575b50505061197f565b82806119679389611aea9652522054896112fb565b388080611acd565b5083835285818420541615611ac8565b5082815260108252848b8220541615611a3d565b5085815260108252848b8220541615611943565b88600052601060205282604060002054168015611bc9575b15611b8b57611b515738611927565b60405162461bcd60e51b8152602060048201526012602482015271151c98591a5b99c81a5cc8195b98589b195960721b6044820152606490fd5b60405162461bcd60e51b81526020600482015260166024820152752a3930b234b7339034b9903737ba1030b1ba34bb329760511b6044820152606490fd5b50836000528260406000205416611b42565b5061dead841415611911565b90503861190a565b861415915038611903565b60405162461bcd60e51b815260206004820152601d60248201527f616d6f756e74206d7573742062652067726561746572207468616e20300000006044820152606490fd5b6001600160a01b0390811691611c568315156115e3565b1691611c6383151561163d565b600082815280602052604081205491808310611cbf57604082827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef958760209652828652038282205586815220818154019055604051908152a3565b60405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608490fd5b60003081526020908082526040908181205490600e5482158015612002575b611e8957600954600a810290808204600a1490151715611fee57808411611fe6575b50611d5f818461148d565b908015611fd257611d779060019204821c80946116e1565b84519167ffffffffffffffff91906060840183811185821017611fbe578752600284528784019187368437845115611faa5730835287516315ab88c960e31b8152737a250d5630b4cf539739df2c5dacb4c659f2488d999081816004818e5afa908115611fa0578891611f83575b508651841015611f6f576001600160a01b03908116878b0152611e08833061131e565b8a3b15611f6b57939095919287938a5197889463791ac94760e01b865260a4860192600487015286602487015260a060448701525180925260c48501939686905b838210611f4e575050505050819293503060648301524260848301520381838a5af18015611f4457611f21575b505090479381151580611f18575b611e90575b5050505050565b60c482611e9f6060943061131e565b8551968793849263f305d71960e01b84523060048501526024840152600060448401526000606484015261dead60848401524260a48401525af1918215611f0e575050611ef0575b80808080611e89565b611f079060603d8111610b5057610b4181836112c3565b5050611ee7565b51903d90823e3d90fd5b50841515611e84565b8111611f305783523880611e76565b634e487b7160e01b82526041600452602482fd5b85513d85823e3d90fd5b885181168652978201978b97508a96509482019490840190611e49565b8780fd5b634e487b7160e01b88526032600452602488fd5b611f9a9150823d8411610acf57610ac181836112c3565b38611de5565b8a513d8a823e3d90fd5b634e487b7160e01b86526032600452602486fd5b634e487b7160e01b86526041600452602486fd5b634e487b7160e01b83526012600452602483fd5b925038611d54565b634e487b7160e01b83526011600452602483fd5b508015611d3256fea2646970667358221220a99fa290a1a377226d7b3d9857785595cda6c52db1fd420ccff4efa7b86aa8f164736f6c63430008150033
Verified Source Code Full Match
Compiler: v0.8.21+commit.d9974bed
EVM: paris
Optimization: Yes (200 runs)
DND.sol 347 lines
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.21;
/**
*
* DollaAndADream
*
* Telegram: https://t.me/DNDerc20
* Twitter: https://twitter.com/DNDERC20
*/
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "contracts/Uniswap/IUniswapV2Router02.sol";
import "contracts/Uniswap/IUniswapV2Factory.sol";
contract DollaAndADream is ERC20("DollaAndADream", "DND"), Ownable {
uint256 public maxBuyAmount;
uint256 public maxSellAmount;
uint256 public maxWalletAmount;
uint256 public swapTokensAtAmount;
IUniswapV2Router02 public constant uniswapV2Router =
IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
address public uniswapV2Pair;
bool private swapping;
bool public limitsInEffect = true;
bool public swapEnabled = true;
uint256 public buyLiquidityFee = 1;
uint256 public sellLiquidityFee = 2;
bool public tradingActive;
uint256 public tokensForLiquidity;
// exlcude from fees and max transaction amount
mapping(address => bool) private _isExcludedFromFees;
mapping(address => bool) public _isExcludedMaxTransactionAmount;
// store addresses that a automatic market maker pairs. Any transfer *to* these addresses
// could be subject to a maximum transfer amount
mapping(address => bool) public automatedMarketMakerPairs;
// prettier-ignore
constructor() {
_mint(address(this), 1_000_000_000 ether); // 1 billion tokens
maxBuyAmount = (totalSupply() * 25) / 10_000; // 0.25% of total supply
maxSellAmount = (totalSupply() * 25) / 10_000; // 0.25% of total supply
maxWalletAmount = (totalSupply() * 25) / 10_000; // 0.25% of total supply
swapTokensAtAmount = (totalSupply() * 25) / 10_000; // 0.25% of total supply
_isExcludedFromFees[msg.sender] = true;
_isExcludedFromFees[address(this)] = true;
_isExcludedFromFees[address(0xdead)] = true;
_isExcludedMaxTransactionAmount[msg.sender] = true;
_isExcludedMaxTransactionAmount[address(this)] = true;
_isExcludedMaxTransactionAmount[address(0xdead)] = true;
_isExcludedMaxTransactionAmount[address(uniswapV2Router)] = true;
}
receive() external payable {}
function updateMaxBuyAmount(uint256 newNum) external onlyOwner {
require(
newNum >= ((totalSupply() * 1) / 1000) / 1e18,
"Cannot set max buy amount lower than 0.1%"
);
maxBuyAmount = newNum * (10 ** 18);
}
function updateMaxSellAmount(uint256 newNum) external onlyOwner {
require(
newNum >= ((totalSupply() * 1) / 1000) / 1e18,
"Cannot set max sell amount lower than 0.1%"
);
maxSellAmount = newNum * (10 ** 18);
}
// remove limits after token is stable
function removeLimits() external onlyOwner {
limitsInEffect = false;
}
function excludeFromMaxTransaction(
address updAds,
bool isEx
) external onlyOwner {
if (!isEx) {
require(
updAds != uniswapV2Pair,
"Cannot remove uniswap pair from max txn"
);
}
_isExcludedMaxTransactionAmount[updAds] = isEx;
}
function updateMaxWalletAmount(uint256 newNum) external onlyOwner {
require(
newNum >= ((totalSupply() * 3) / 1000) / 1e18,
"Cannot set max wallet amount lower than 0.3%"
);
maxWalletAmount = newNum * (10 ** 18);
}
// change the minimum amount of tokens to sell from fees
function updateSwapTokensAtAmount(uint256 newAmount) external onlyOwner {
require(
newAmount >= (totalSupply() * 1) / 100000,
"Swap amount cannot be lower than 0.001% total supply."
);
require(
newAmount <= (totalSupply() * 1) / 1000,
"Swap amount cannot be higher than 0.1% total supply."
);
swapTokensAtAmount = newAmount;
}
function updateBuyFees(uint256 _liquidityFee) external onlyOwner {
buyLiquidityFee = _liquidityFee;
require(buyLiquidityFee <= 15, "Must keep fees at 15% or less");
}
function updateSellFees(uint256 _liquidityFee) external onlyOwner {
sellLiquidityFee = _liquidityFee;
require(sellLiquidityFee <= 30, "Must keep fees at 30% or less");
}
// once enabled, can never be turned off
function enableTrading() external payable onlyOwner {
require(!tradingActive, "Cannot re enable trading");
tradingActive = true;
uint256 tokenBalance = balanceOf(address(this));
// approve token transfer to cover all possible scenarios
_approve(address(this), address(uniswapV2Router), tokenBalance);
uniswapV2Router.addLiquidityETH{value: address(this).balance}(
address(this),
tokenBalance,
0,
0,
address(owner()),
block.timestamp
);
uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).getPair(
address(this),
uniswapV2Router.WETH()
);
automatedMarketMakerPairs[uniswapV2Pair] = true;
_isExcludedMaxTransactionAmount[uniswapV2Pair] = true;
}
function claimStuckTokens(address _token) external onlyOwner {
if (_token == address(0x0)) {
payable(owner()).transfer(address(this).balance);
return;
}
IERC20 erc20token = IERC20(_token);
uint256 balance = erc20token.balanceOf(address(this));
erc20token.transfer(owner(), balance);
}
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");
require(amount > 0, "amount must be greater than 0");
if (limitsInEffect) {
if (
from != owner() &&
to != owner() &&
to != address(0) &&
to != address(0xdead)
) {
if (!tradingActive) {
require(
_isExcludedMaxTransactionAmount[from] ||
_isExcludedMaxTransactionAmount[to],
"Trading is not active."
);
require(from == owner(), "Trading is enabled");
}
//when buy
if (
automatedMarketMakerPairs[from] &&
!_isExcludedMaxTransactionAmount[to]
) {
require(
amount <= maxBuyAmount,
"Buy transfer amount exceeds the max buy."
);
require(
amount + balanceOf(to) <= maxWalletAmount,
"Cannot Exceed max wallet"
);
require(
!_isContract(to),
"MEV protection: No contract allowed"
);
}
//when sell
else if (
automatedMarketMakerPairs[to] &&
!_isExcludedMaxTransactionAmount[from]
) {
require(
amount <= maxSellAmount,
"Sell transfer amount exceeds the max sell."
);
} else if (
!_isExcludedMaxTransactionAmount[to] &&
!_isExcludedMaxTransactionAmount[from]
) {
require(
amount + balanceOf(to) <= maxWalletAmount,
"Cannot Exceed max wallet"
);
}
}
}
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 = true;
// if any account belongs to _isExcludedFromFee account then remove the fee
if (_isExcludedFromFees[from] || _isExcludedFromFees[to]) {
takeFee = false;
}
uint256 fees = 0;
// only take fees on Trades, not on wallet transfers
if (takeFee) {
// on sell
if (automatedMarketMakerPairs[to] && sellLiquidityFee > 0) {
fees = (amount * sellLiquidityFee) / 100;
tokensForLiquidity += fees;
}
// on buy
else if (automatedMarketMakerPairs[from] && buyLiquidityFee > 0) {
fees = (amount * buyLiquidityFee) / 100;
tokensForLiquidity += fees;
}
if (fees > 0) {
super._transfer(from, address(this), fees);
}
amount -= fees;
}
super._transfer(from, to, amount);
}
function addLiquidity(uint256 tokenAmount, uint256 ethAmount) private {
// approve token transfer to cover all possible scenarios
_approve(address(this), address(uniswapV2Router), tokenAmount);
// add the liquidity
uniswapV2Router.addLiquidityETH{value: ethAmount}(
address(this),
tokenAmount,
0,
0,
address(0xdead),
block.timestamp
);
}
function swapBack() private {
uint256 contractBalance = balanceOf(address(this));
uint256 totalTokensToSwap = tokensForLiquidity;
if (contractBalance == 0 || totalTokensToSwap == 0) {
return;
}
if (contractBalance > swapTokensAtAmount * 10) {
contractBalance = swapTokensAtAmount * 10;
}
// Halve the amount of liquidity tokens
uint256 liquidityTokens = (contractBalance * tokensForLiquidity) /
totalTokensToSwap /
2;
swapTokensForEth(contractBalance - liquidityTokens);
uint256 ethBalance = address(this).balance;
uint256 ethForLiquidity = ethBalance;
if (liquidityTokens > 0 && ethForLiquidity > 0) {
addLiquidity(liquidityTokens, ethForLiquidity);
}
}
function swapTokensForEth(uint256 tokenAmount) private {
// generate the uniswap pair path of token -> weth
address[] memory path = new address[](2);
path[0] = address(this);
path[1] = uniswapV2Router.WETH();
_approve(address(this), address(uniswapV2Router), tokenAmount);
// make the swap
uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
tokenAmount,
0, // accept any amount of ETH
path,
address(this),
block.timestamp
);
}
function _isContract(address account) internal view returns (bool) {
return account.code.length > 0;
}
}
IUniswapV2Factory.sol 25 lines
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.21;
interface IUniswapV2Factory {
event PairCreated(
address indexed token0,
address indexed token1,
address pair,
uint256 n
);
function getPair(
address tokenA,
address tokenB
) external view returns (address pair);
function allPairs(uint256 n) external view returns (address pair);
function allPairsLength() external view returns (uint256 n);
function createPair(
address tokenA,
address tokenB
) external returns (address pair);
}
IUniswapV2Router02.sol 198 lines
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.21;
interface IUniswapV2Router01 {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidity(
address tokenA,
address tokenB,
uint amountADesired,
uint amountBDesired,
uint amountAMin,
uint amountBMin,
address to,
uint deadline
) external returns (uint amountA, uint amountB, uint liquidity);
function addLiquidityETH(
address token,
uint amountTokenDesired,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
)
external
payable
returns (uint amountToken, uint amountETH, uint liquidity);
function removeLiquidity(
address tokenA,
address tokenB,
uint liquidity,
uint amountAMin,
uint amountBMin,
address to,
uint deadline
) external returns (uint amountA, uint amountB);
function removeLiquidityETH(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external returns (uint amountToken, uint amountETH);
function removeLiquidityWithPermit(
address tokenA,
address tokenB,
uint liquidity,
uint amountAMin,
uint amountBMin,
address to,
uint deadline,
bool approveMax,
uint8 v,
bytes32 r,
bytes32 s
) external returns (uint amountA, uint amountB);
function removeLiquidityETHWithPermit(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline,
bool approveMax,
uint8 v,
bytes32 r,
bytes32 s
) external returns (uint amountToken, uint amountETH);
function swapExactTokensForTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function swapTokensForExactTokens(
uint amountOut,
uint amountInMax,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function swapExactETHForTokens(
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external payable returns (uint[] memory amounts);
function swapTokensForExactETH(
uint amountOut,
uint amountInMax,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function swapExactTokensForETH(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function swapETHForExactTokens(
uint amountOut,
address[] calldata path,
address to,
uint deadline
) external payable returns (uint[] memory amounts);
function quote(
uint amountA,
uint reserveA,
uint reserveB
) external pure returns (uint amountB);
function getAmountOut(
uint amountIn,
uint reserveIn,
uint reserveOut
) external pure returns (uint amountOut);
function getAmountIn(
uint amountOut,
uint reserveIn,
uint reserveOut
) external pure returns (uint amountIn);
function getAmountsOut(
uint amountIn,
address[] calldata path
) external view returns (uint[] memory amounts);
function getAmountsIn(
uint amountOut,
address[] calldata path
) external view returns (uint[] memory amounts);
}
interface IUniswapV2Router02 is IUniswapV2Router01 {
function removeLiquidityETHSupportingFeeOnTransferTokens(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external returns (uint amountETH);
function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline,
bool approveMax,
uint8 v,
bytes32 r,
bytes32 s
) external returns (uint amountETH);
function swapExactTokensForTokensSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
function swapExactETHForTokensSupportingFeeOnTransferTokens(
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external payable;
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
}
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;
}
}
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 {}
}
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);
}
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);
}
Read Contract
_isExcludedMaxTransactionAmount 0x10d5de53 → bool
allowance 0xdd62ed3e → uint256
automatedMarketMakerPairs 0xb62496f5 → bool
balanceOf 0x70a08231 → uint256
buyLiquidityFee 0xf11a24d3 → uint256
decimals 0x313ce567 → uint8
limitsInEffect 0x4a62bb65 → bool
maxBuyAmount 0x88e765ff → uint256
maxSellAmount 0x66d602ae → uint256
maxWalletAmount 0xaa4bde28 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellLiquidityFee 0xf6374342 → uint256
swapEnabled 0x6ddd1713 → bool
swapTokensAtAmount 0xe2f45605 → uint256
symbol 0x95d89b41 → string
tokensForLiquidity 0x1a8145bb → uint256
totalSupply 0x18160ddd → uint256
tradingActive 0xbbc0c742 → bool
uniswapV2Pair 0x49bd5a5e → address
uniswapV2Router 0x1694505e → address
Write Contract 17 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address spender
uint256 amount
returns: bool
claimStuckTokens 0xf9d0831a
address _token
decreaseAllowance 0xa457c2d7
address spender
uint256 subtractedValue
returns: bool
enableTrading 0x8a8c523c
No parameters
excludeFromMaxTransaction 0x7571336a
address updAds
bool isEx
increaseAllowance 0x39509351
address spender
uint256 addedValue
returns: bool
removeLimits 0x751039fc
No parameters
renounceOwnership 0x715018a6
No parameters
transfer 0xa9059cbb
address to
uint256 amount
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 amount
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateBuyFees 0x71fc4688
uint256 _liquidityFee
updateMaxBuyAmount 0x2be32b61
uint256 newNum
updateMaxSellAmount 0xdc3f0d0f
uint256 newNum
updateMaxWalletAmount 0xc18bc195
uint256 newNum
updateSellFees 0xeba4c333
uint256 _liquidityFee
updateSwapTokensAtAmount 0xd257b34f
uint256 newAmount
Recent Transactions
No transactions found for this address