Bitcoin–Monero Cross-chain Atomic Swap
Find a file
Mohan 091ba57547
feat(wallet): Use mempool histogram for fee estimation (#358)
* feat(wallet): Use mempool.space as a secondary fee estimation source

* fix: warn if mempool client cannot be instantiated

* make clippy happy

* nitpick: rename clippy_check to clippy in justfile

* rename `estimate_fee_rate_from_mempool` to `estimate_fee_rate_from_histogram` for clarity

* dprint fmt

* make clippy happy

* change teacing level back to debug!

* change log levels

* refactors

* refactor: estimate_fee and min_relay_fee

* serde camel case

Co-authored-by: Byron Hambly <byron@hambly.dev>

* refactors

* Add comments, use Weight struct where possible

* fmt, fix testrs

* dont fallback to bitcoin::MAX, fail instead

* make mempool space optional

* fmt

* refactor: use estimate_fee(...) in max_giveable(...)

* refactor max_giveable(...)

* refactor max_giveeable to return fee as well, remove safety margin for fee

* fix compile

* fmtr

* fix(integration test): Use pre-calculated cancel / punish fees for assert_alice_punished

* fix(integration test): Use real fees for asserts

* sync wallet before transaction_fee call

* split send_to_address into sweep_balance_to_address_dynamic_fee

---------

Co-authored-by: Byron Hambly <byron@hambly.dev>
2025-05-27 15:41:24 +02:00
.cargo feat(asb + cli): Redact logs + unify tracing infrastructure (#1733) (#55) 2024-09-01 18:13:43 +02:00
.github refactor(cli): Remove obsolete RPC server (#346) 2025-05-21 18:43:02 +02:00
.vscode release(gui): 1.0.0 alpha.1 (#125) 2024-10-22 13:22:46 +02:00
dev-docs Update docs for external bitcoin address (#341) 2025-05-21 09:44:08 +02:00
dev_scripts dev: Add code2prompt scripts to extract entire codebase into single file (#285) 2025-04-15 14:59:38 +02:00
docs feat(gui): Feedback quick fixes (#331) 2025-05-27 12:55:20 +02:00
monero-harness chore(monero, monero_harness): bump tracing-subscriber to 0.3 2024-08-28 12:18:58 +02:00
monero-rpc fix: monero wallet refresh (#1596) 2024-06-10 18:53:52 +02:00
monero-wallet chore(monero, monero_harness): bump tracing-subscriber to 0.3 2024-08-28 12:18:58 +02:00
src-gui feat(gui): Feedback quick fixes (#331) 2025-05-27 12:55:20 +02:00
src-tauri feat(gui): Feedback quick fixes (#331) 2025-05-27 12:55:20 +02:00
swap feat(wallet): Use mempool histogram for fee estimation (#358) 2025-05-27 15:41:24 +02:00
utils/gpg_keys fix: Remove .DS_STORE file 2024-07-26 14:44:40 +02:00
.gitignore upgrade(swap): Concurrent syncing, bdk upgrade, refactors (#180) 2025-05-18 22:54:03 +02:00
.gitmodules upgrade(swap): Concurrent syncing, bdk upgrade, refactors (#180) 2025-05-18 22:54:03 +02:00
AGENT.md fix(dprint): Ignore .git folder 2025-05-26 21:05:28 +02:00
Cargo.lock feat(gui): Feedback quick fixes (#331) 2025-05-27 12:55:20 +02:00
Cargo.toml upgrade(swap): Concurrent syncing, bdk upgrade, refactors (#180) 2025-05-18 22:54:03 +02:00
CHANGELOG.md feat(wallet): Use mempool histogram for fee estimation (#358) 2025-05-27 15:41:24 +02:00
CONTRIBUTING.md docs(dev): switch test instructions to nextest (#361) 2025-05-27 11:05:49 +02:00
Dockerfile fix(Dockerfile): Use swarm base debian version for builder and executor 2024-11-15 01:18:14 +01:00
dprint.json feat(wallet): Use mempool histogram for fee estimation (#358) 2025-05-27 15:41:24 +02:00
justfile feat(wallet): Use mempool histogram for fee estimation (#358) 2025-05-27 15:41:24 +02:00
LICENSE Change license to GPLv3 2020-10-12 17:13:25 +11:00
README.md docs(dev): switch test instructions to nextest (#361) 2025-05-27 11:05:49 +02:00
rust-toolchain.toml fix: Issues with 1.1.0-rc (#328) 2025-05-19 12:43:27 +02:00

UnstoppableSwap

This is the monorepo containing the source code for all of our core projects:

  • swap contains the source code for the main swapping binaries, asb and swap
  • gui contains the new tauri based user interface
  • tauri contains the tauri bindings between binaries and user interface
  • and other crates we use in our binaries

If you're just here for the software, head over to the releases tab and grab the binary for your operating system! If you're just looking for documentation, check out our docs page or our github docs.

Join our Matrix room to follow development more closely.

Screenshot 2024-11-21 at 6 19 03 PM

Running tests

This repository uses cargo-nextest to run the test suite.

cargo install cargo-nextest
cargo nextest run