Menu

How to create a BEP-20 tax token with marketing and liquidity fees
πŸ“°

How to create a BEP-20 tax token with marketing and liquidity fees

DEV Community: tutorialΒ·d jokerΒ·9 days ago
#HXzcYZ8I
#devtotutorial#devto#dev#token#marketing
Reading 0:00
15s threshold

A tax token's marketing wallet is usually described as a percentage, not a schedule: "2% of every trade goes to marketing." That tells you how much leaves a trade. It does not tell you when the wallet receives anything. The Marketing + liquidity token type on GTokenTool answers the second question in the contract, and that answer is the most interesting part of the design: fees accumulate as tokens inside the contract, and a threshold decides when they move.

This is a field-by-field walkthrough of the deploy form, followed by the swap routine itself β€” because the routine is what separates this type from a token that just advertises a wallet address.

What the type says it is

The chip reads Marketing + liquidity token .…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.