supertestnet / swap-service

An orderbook for performing submarine swaps over nostr
https://supertestnet.github.io/swap-service/
Creative Commons Zero v1.0 Universal
47 stars 8 forks source link

use hourFee for all transactions #1

Closed openoms closed 1 year ago

openoms commented 1 year ago

The mempool.space API returns 5 types of fee estimation values:

curl https://mempool.space/api/v1/fees/recommended
{"fastestFee":44,"halfHourFee":39,"hourFee":35,"economyFee":8,"minimumFee":4}

The currently used minimumFee is only enough to not get purged from the mempools with default settings and results in transactions stuck for days. Proposing to use the hourFee instead which is the estimate to aim for a confirmation within the next 3 blocks. This would be a more realistic timeline but still tries to save some without increasing the complexity of the order flow.

See my comment also on: https://stacker.news/items/171335