mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-17 22:04:21 +01:00
Add max_reverse_swap_amount docs
This commit is contained in:
@@ -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.."
|
||||
|
||||
Reference in New Issue
Block a user