Skip to content

Instantly share code, notes, and snippets.

View coderwithsense's full-sized avatar

Himanshu coderwithsense

View GitHub Profile
@coderwithsense
coderwithsense / cryptoGradTaxToken.sol
Created January 4, 2024 10:53
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.23+commit.f704f362.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
interface IUniswapV2Factory {
function createPair(address tokenA, address tokenB)

We have to input marketing, cex, dev wallet initially when deploying, these wallets are

Max transaction amount is 3% of the supply, maxWalletSize is 2% of th supply, taxSwapTreshold is 0.5% of the supply

To openTrade, send tokens to token address and amount of eth you want to supply for pair on uniswap, use function openTrading()

Tax wallet is the deployer wallet, which will get 90% of the token supply initially