fix snippets

This commit is contained in:
Roei Erez
2023-11-26 09:08:26 +02:00
parent e134d60ea6
commit 1bfe1d6584
3 changed files with 5 additions and 4 deletions

View File

@@ -2,7 +2,8 @@ import {
type ReverseSwapPairInfo,
fetchReverseSwapFees,
inProgressReverseSwaps,
sendOnchain
sendOnchain,
maxReverseSwapAmount
} from '@breeztech/react-native-breez-sdk'
const exampleFetchReverseSwapFees = async () => {

View File

@@ -38,7 +38,7 @@ async fn max_reverse_swap_amount(sdk: Arc<BreezServices>) -> Result<()> {
info!(
"Max reverse swap amount: {:?}",
max_amount.totalSat
max_amount.total_sat
);
// ANCHOR_END: max-reverse-swap-amount

View File

@@ -24,9 +24,9 @@ func ListCurrentFees(currentFees: ReverseSwapPairInfo) {
// ANCHOR_END: get-current-reverse-swap-min-max
}
func MaxReverseSwapAmount(sdk: BlockingBreezServices) -> MaxReverseSwapAmountResponse? {
func maxReverseSwapAmount(sdk: BlockingBreezServices) -> MaxReverseSwapAmountResponse? {
// ANCHOR: max-reverse-swap-amount
let maxAmount = try? sdk.MaxReverseSwapAmount()
let maxAmount = try? sdk.maxReverseSwapAmount()
print("Max reverse swap amount: \(String(describing: maxAmount?.totalSat))")
// ANCHOR_END: max-reverse-swap-amount
return maxAmount