trezor / trezor-suite

Trezor Suite Monorepo
https://trezor.io/trezor-suite
Other
724 stars 251 forks source link

Dynamic `dust_limit` #11387

Open hynek-jina opened 8 months ago

hynek-jina commented 8 months ago

Dust_limit for bitcoin is hardcoded to value 546. This is not sufficient in case of high fee environment. Can we multiply this value by no priority fee rate so it can react to current market conditions?

This has consequences for prevention of very small UTXO for example by adding another input. And this should disable option to create such a small output.

hynek-jina commented 8 months ago

Related juicy discussion: https://github.com/trezor/trezor-suite/pull/9109

MiroslavProchazka commented 8 months ago

@hynek-jina can you please add priority for this task? We will leave it up to your decision.

hynek-jina commented 8 months ago

It's not straightforward... Currently we already use logic for the input selection algorithm. We could extend it on send dialog for created outputs.. But priority relative low...