Update docs for external bitcoin address (#341)

* docs: document external address option

* amend: dprint fmt
This commit is contained in:
Mohan 2025-05-21 09:44:08 +02:00 committed by GitHub
parent c2fea91390
commit 7ef8b1c643
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 19 additions and 10 deletions

View file

@ -112,10 +112,14 @@ min_buy_btc = 0.0001
max_buy_btc = 0.0001
ask_spread = 0.02
price_ticker_ws_url = "wss://ws.kraken.com"
external_bitcoin_address = "bc1..."
```
The minimum and maximum amount as well as a spread, that is added on top of the price fetched from a central exchange, can be configured.
`external_bitcoin_address` allows to specify the Bitcoin address that the ASB will use to redeem or punish swaps.
If the option is not set, a new address from the internal wallet is used for every swap.
In order to be able to trade, the ASB must define a price to be able to agree on the amounts to be swapped with a CLI.
The `XMR<>BTC` price is currently determined by the price from the central exchange Kraken.
Upon startup the ASB connects to the Kraken price websocket and listens on the stream for price updates.