Skip to content

remove unused minTokens parameter from buy()#2

Open
exglos wants to merge 4 commits into
StashBitcoin-coder:masterfrom
exglos:master
Open

remove unused minTokens parameter from buy()#2
exglos wants to merge 4 commits into
StashBitcoin-coder:masterfrom
exglos:master

Conversation

@exglos

@exglos exglos commented Jun 11, 2026

Copy link
Copy Markdown

This PR removes the unused minTokens parameter from the buy function and related logic. minTokens appears intended as slippage protection, but output is deterministic (output = input - 0.07 fee), so the parameter cannot protect against price moves or front‑running/MEV and only adds confusion. Removing it simplifies the API and clarifies contract semantics.

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