feat: add 8 min buy tax#177
Open
twx-virtuals wants to merge 3 commits into
Open
Conversation
koo-virtuals
previously approved these changes
Jul 13, 2026
koo-virtuals
previously approved these changes
Jul 13, 2026
koo-virtuals
approved these changes
Jul 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
Medium Risk
Changes bonding launch tax behavior for tokens that select the new type; impact is localized to config helpers but affects live swap tax calculation via the router.
Overview
Adds a new launch anti-sniper option
ANTI_SNIPER_8M(type 5): buy-only protection for 480 seconds (8 minutes), with tax ramping from 99% down to 0% like the existing buy-side modes.BondingConfigis updated so type 5 is accepted inisValidAntiSniperType, treated as buy-side inappliesAntiSniperOnBuy(sells unchanged), and returns 480 fromgetAntiSniperDuration. NatSpec for the anti-sniper helpers documents the new variant.Callers such as
FRouterV3that already read duration and buy/sell flags from config will pick up the new type without further contract changes in this diff.Reviewed by Cursor Bugbot for commit 7ad3626. Configure here.