This repository contains a Solidity-based BEP20 token contract designed for the Binance Smart Chain (BSC). The token includes standard BEP20 functionalities along with additional features such as tax fees, automatic liquidity generation, and a marketing wallet.
-
Standard BEP20 Implementation
- Compatible with BEP20 standards.
- Functions like
transfer,approve, andtransferFromare implemented.
-
Custom Fees
- Tax Fee: A percentage of each transaction is redistributed to token holders.
- Liquidity Fee: A percentage of each transaction is used to add liquidity to a liquidity pool.
-
Marketing Wallet
- A portion of each transaction is allocated to a designated marketing wallet to support development and promotion.
-
Automatic Liquidity Addition
- Liquidity is automatically added to a decentralized exchange like PancakeSwap.
-
Ownership Controls
- Owner-exclusive functions to adjust fees, update wallet addresses, and manage tokenomics.
-
Transaction and Wallet Limits
- Maximum transaction amount and wallet token holding limits to prevent abuse.
- Token Name: Your Token Name
- Symbol: YTN
- Decimals: 18
- Total Supply: 100,000,000 YTN
- Tax Fee: 0% (default, adjustable by the owner)
- Liquidity Fee: 2% (default, adjustable by the owner)
- Marketing Wallet: Configurable by the owner
- Modify transaction fees.
- Update marketing wallet address.
- Set transaction and wallet limits.
-
Initial Supply
- The total token supply is minted to the contract deployer's address upon deployment.
-
Transactions
- Each transaction is subject to fees, which are redistributed as follows:
- Tax Fee: Sent to all token holders.
- Liquidity Fee: Used to add liquidity to the pool.
- Each transaction is subject to fees, which are redistributed as follows:
-
Marketing Wallet
- A percentage of tokens is converted to BNB and sent to the marketing wallet.
-
Liquidity Mechanism
- Tokens collected as liquidity fees are swapped for BNB and added to the liquidity pool.
-
Clone this repository:
git clone https://github.com/ramykatour/Token-auto-liquidity.git
-
Install dependencies (if using Truffle or Hardhat).
-
Compile the contract:
truffle compile
-
Deploy the contract to Binance Smart Chain:
truffle migrate --network bsc
- Modify Tokenomics:
Update
_taxFee,_liquidityFee, or other parameters in the contract before deployment. - Marketing Wallet:
Set the marketing wallet address using
setMarketingWallet.
- SafeMath: Ensures secure arithmetic operations to prevent overflow/underflow errors.
- Exclusions: Certain wallets can be excluded from fees and rewards.
- Swap Lock: Prevents reentrancy during liquidity swaps.
- Governance features for community-driven decision-making.
- Integration with multi-signature wallets for enhanced security.
This project is licensed under the MIT License. See the LICENSE file for details.
Feel free to submit issues or pull requests to improve this project. Contributions are welcome!
For further information or support, please contact:
- Telegramm **: https://t.me/Ramykatour