Fix some layout and typo issues

This commit is contained in:
Ross Savage
2023-07-13 22:59:01 +02:00
parent 020c694fe7
commit 4cbe04da8b
4 changed files with 28 additions and 29 deletions

View File

@@ -3,12 +3,13 @@
<custom-tabs category="lang">
<div slot="title">Swift</div>
<section>
Based on the API key provided to the Breez SDK, a default LSP is selected for your node to provide liquidity to it. To get the information about the selected LSP you can do the following:
```swift
do {
let lspId = let lspId = try sdk.lspId()
let lspInfo = try sdk.fetchLspInfo(lspId: lspID!)
let lspId = try sdk.lspId()
let lspInfo = try sdk.fetchLspInfo(lspId: lspId!)
} catch {
// Handle error
}
@@ -18,7 +19,7 @@ When you have selected an LSP you may then connect to it.
```swift
do {
try sdk.connectLsp(lspId: lspID!)
try sdk.connectLsp(lspId: lspId!)
} catch {
// Handle error
}

View File

@@ -26,11 +26,10 @@ try {
}
```
</section>
<div slot="title">python</div>
<div slot="title">Python</div>
<section>
In order to list the availiable fiat currencies.
```python
try:
fiat_currencies = sdk_services.list_fiat_currencies()
@@ -43,7 +42,7 @@ To get the current BTC rate for the currencies.
```python
try:
fiat_rates = sdk_services.sdk_services.fetch_fiat_rates()
fiat_rates = sdk_services.fetch_fiat_rates()
# print your desired rate
except Exception as error:
# Handle error

View File

@@ -127,7 +127,7 @@ try {
// Connect to the Breez SDK make it ready for use
const sdkServices = await connect(config, seed);
} catch (error) {
console.log(error);
console.log(error)
}
```
@@ -139,7 +139,7 @@ try {
const lnBalance = nodeInfo.channelsBalanceMsat;
const onchainBalance = nodeInfo.onchainBalanceMsat;
} catch (error) {
console.log(error);
console.log(error)
}
```
</section>

View File

@@ -97,7 +97,7 @@ do {
```typescript
try {
const swapInfo = await receiveOnchain();
const swapInfo = await receiveOnchain()
// Send your funds to the below bitcoin address
const address = swapInfo.bitcoinAddress;
@@ -364,7 +364,6 @@ func isChannelOpeningFeeNeeded(amountMsats: Int64) -> Bool {
if let inboundLiquidityMsats = nodeInfo?.inboundLiquidityMsats {
return inboundLiquidityMsats <= amountMsats
}
} catch {
// Handle error
}