Skip to content

fix: lower default transaction fee to 0.01 STX#244

Open
JackBinswitch-btc wants to merge 1 commit intoaibtcdev:mainfrom
JackBinswitch-btc:fix/lower-default-fee
Open

fix: lower default transaction fee to 0.01 STX#244
JackBinswitch-btc wants to merge 1 commit intoaibtcdev:mainfrom
JackBinswitch-btc:fix/lower-default-fee

Conversation

@JackBinswitch-btc
Copy link

Summary

  • Lowers AIBTC_DEFAULT_FEE from 100,000 uSTX (0.1 STX) to 10,000 uSTX (0.01 STX)
  • Updates .env.example comment to match

Motivation

The previous default of 0.1 STX per transaction was unnecessarily high. Standard Stacks transactions typically require 0.001-0.01 STX. This reduces unnecessary fee overpayment while still providing enough margin for most operations.

The fee remains configurable via the AIBTC_DEFAULT_FEE environment variable for users who need higher fees (e.g., during network congestion or for contract deployments).

Notes

  • Several files still have their own hardcoded fee values for specific use cases (contract deployment, swaps, etc.) — those are intentionally untouched as they may need different fee levels
  • A future enhancement could add dynamic fee estimation using the Stacks /v2/fees/transaction endpoint

Closes #135

🤖 Generated with Claude Code

The previous default of 100,000 uSTX (0.1 STX) was unnecessarily high for
standard transactions. Lowered to 10,000 uSTX (0.01 STX) which is closer
to typical Stacks transaction fees.

Closes aibtcdev#135
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.

Use lower default fee

1 participant