Skip to content

feat: add 8 min buy tax#177

Open
twx-virtuals wants to merge 3 commits into
mainfrom
feat/add-8min-anti-sniper
Open

feat: add 8 min buy tax#177
twx-virtuals wants to merge 3 commits into
mainfrom
feat/add-8min-anti-sniper

Conversation

@twx-virtuals

@twx-virtuals twx-virtuals commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

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.

BondingConfig is updated so type 5 is accepted in isValidAntiSniperType, treated as buy-side in appliesAntiSniperOnBuy (sells unchanged), and returns 480 from getAntiSniperDuration. NatSpec for the anti-sniper helpers documents the new variant.

Callers such as FRouterV3 that 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.

koo-virtuals
koo-virtuals previously approved these changes Jul 13, 2026
koo-virtuals
koo-virtuals previously approved these changes Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants