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

@@ -25,6 +25,14 @@ func ListCurrentFees(currentFees breez_sdk.ReverseSwapPairInfo) {
// ANCHOR_END: get-current-reverse-swap-min-max
}
func MaxReverseSwapAmount() {
// ANCHOR: max-reverse-swap-amount
if maxAmount, err := sdk.MaxReverseSwapAmount(); err == nil {
log.Printf("Max reverse swap amount: %v", maxAmount.TotalSat)
}
// ANCHOR_END: max-reverse-swap-amount
}
func StartReverseSwap() {
// ANCHOR: start-reverse-swap
destinationAddress := "bc1.."