Skip to content

Conversation

@Raunaque97
Copy link
Contributor

@Raunaque97 Raunaque97 commented Jan 26, 2026

closes #356

  • Introduced AdaptiveFeeStrategy to calculate fees based on mempool and last block data.
    • If current mempool size is small, use n-th lowest fee from last block. Else use the n-th highest fee from mempool to increase the chances of inclusion.
  • Added TTLCache for caching fee data with a TTL config.
  • FeeStrategy.getFees now returns a promise

@Raunaque97 Raunaque97 marked this pull request as ready for review January 26, 2026 13:15
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.

Implement adaptive fee strategy

2 participants