xmr-btc-swap/swap
Thomas Eizinger f472070546
Remove --send-btc in favor of swapping the available balance
If the current balance is 0, we wait until the user deposits money
to the given address. After that, we simply swap the full balance.

Not only does this simplify the interface by removing a parameter,
but it also integrates the `deposit` command into the `buy-xmr`
command.

Syncing a wallet that is backed by electrum includes transactions
that are part of the mempool when computing the balance.
As such, waiting for a deposit is a very quick action because it
allows us to build our lock transaction on top of the yet to be
confirmed deposit transactions.

This patch introduces another function to the `bitcoin::Wallet` that
relies on the currently statically encoded fee rate. To make sure
future developers don't forget to adjust both, we extract a function
that "selects" a fee rate and return the constant from there.

Fixes #196.
2021-02-26 14:36:59 +11:00
..
src Remove --send-btc in favor of swapping the available balance 2021-02-26 14:36:59 +11:00
tests Remove traits in favour of public functions 2021-02-25 10:34:22 +11:00
Cargo.toml Download and run monero wallet rpc on swap cli startup 2021-02-25 11:21:41 +11:00