Add max_reverse_swap_amount docs

This commit is contained in:
Roei Erez
2023-11-26 08:50:52 +02:00
parent 8074a59d1c
commit 790d1784a4
9 changed files with 190 additions and 34 deletions

View File

@@ -20,6 +20,17 @@ class SendOnchain {
// ANCHOR_END: get-current-reverse-swap-min-max
}
fun max_reverse_swap_amount(sdk: BlockingBreezServices) {
// ANCHOR: max-reverse-swap-amount
try {
val maxAmount = sdk.maxReverseSwapAmount()
// Log.v("Breez", "Max reverse swap amount: ${maxAmount.totalSat}")
} catch (e: Exception) {
// handle error
}
// ANCHOR_END: max-reverse-swap-amount
}
fun start_reverse_swap(sdk: BlockingBreezServices, fees: ReverseSwapPairInfo) {
// ANCHOR: start-reverse-swap
val address = "bc1.."