Skip to content

This contract collect fees when holders buy, sell or transfer and send all the tax to the marketing wallet in BNB

Notifications You must be signed in to change notification settings

ramykatour/Token-auto-liquidity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

BEP20 Token Contract

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.


Features

  1. Standard BEP20 Implementation

    • Compatible with BEP20 standards.
    • Functions like transfer, approve, and transferFrom are implemented.
  2. 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.
  3. Marketing Wallet

    • A portion of each transaction is allocated to a designated marketing wallet to support development and promotion.
  4. Automatic Liquidity Addition

    • Liquidity is automatically added to a decentralized exchange like PancakeSwap.
  5. Ownership Controls

    • Owner-exclusive functions to adjust fees, update wallet addresses, and manage tokenomics.
  6. Transaction and Wallet Limits

    • Maximum transaction amount and wallet token holding limits to prevent abuse.

Contract Details

Token Specifications

  • Token Name: Your Token Name
  • Symbol: YTN
  • Decimals: 18
  • Total Supply: 100,000,000 YTN

Fees and Wallets

  • Tax Fee: 0% (default, adjustable by the owner)
  • Liquidity Fee: 2% (default, adjustable by the owner)
  • Marketing Wallet: Configurable by the owner

Ownership Privileges

  • Modify transaction fees.
  • Update marketing wallet address.
  • Set transaction and wallet limits.

How It Works

  1. Initial Supply

    • The total token supply is minted to the contract deployer's address upon deployment.
  2. 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.
  3. Marketing Wallet

    • A percentage of tokens is converted to BNB and sent to the marketing wallet.
  4. Liquidity Mechanism

    • Tokens collected as liquidity fees are swapped for BNB and added to the liquidity pool.

Deployment

  1. Clone this repository:

    git clone https://github.com/ramykatour/Token-auto-liquidity.git
  2. Install dependencies (if using Truffle or Hardhat).

  3. Compile the contract:

    truffle compile
  4. Deploy the contract to Binance Smart Chain:

    truffle migrate --network bsc

Customization

  • Modify Tokenomics: Update _taxFee, _liquidityFee, or other parameters in the contract before deployment.
  • Marketing Wallet: Set the marketing wallet address using setMarketingWallet.

Security Features

  1. SafeMath: Ensures secure arithmetic operations to prevent overflow/underflow errors.
  2. Exclusions: Certain wallets can be excluded from fees and rewards.
  3. Swap Lock: Prevents reentrancy during liquidity swaps.

Future Improvements

  • Governance features for community-driven decision-making.
  • Integration with multi-signature wallets for enhanced security.

License

This project is licensed under the MIT License. See the LICENSE file for details.


Contributing

Feel free to submit issues or pull requests to improve this project. Contributions are welcome!


Contact

For further information or support, please contact:

About

This contract collect fees when holders buy, sell or transfer and send all the tax to the marketing wallet in BNB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published