Skip to content

Commit

Permalink
Update production.md
Browse files Browse the repository at this point in the history
kingonly authored Jun 6, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 2b9c136 commit af2e2b6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/guide/production.md
Original file line number Diff line number Diff line change
@@ -85,12 +85,12 @@ Leave the file contents as is, manipulating the file contents will result in tra
## Production checklist
There are some use cases where you need to verify that they are implemented correctly. Here is a checklist you can use to verify that your application is production ready.

- **Closed channels**: Make sure you allow your users to redeem their onchain balance in case their channels were closed. See [Handling channel closures](closed_channels.md)
- **Handle closed channels**: Make sure you allow your users to redeem their onchain balance in case their channels were closed. For more information: [Handling channel closures](closed_channels.md).

- **Pending payments**: Payments always contain a status field that can be used to determine if the payment was completed or not. Make sure you handle the case where the payment is still pending by showing the correct status to the user.
- **Display pending payments**: payments always contain a status field that can be used to determine if the payment was completed or not. Make sure you handle the case where the payment is still pending by showing the correct status to the user.

- **Handle swaps refunds**: Swaps that are the result of [Receiving an On-Chain Transaction](receive_onchain.md) may not be completed and change to `Refundable` state. Make sure you handle this case correctly by allowing the user to retry the [refund](receive_onchain.html#refund-a-swap) with different fees as long as the refund is not confirmed. A confirmed refund changes the swap status from `Refundable` to `Completed`.
- **Enable swaps refunds**: swaps that are the result of [Receiving an On-Chain Transaction](receive_onchain.md) may not be completed and change to `Refundable` state. Make sure you handle this case correctly by allowing the user to retry the [refund](receive_onchain.html#refund-a-swap) with different fees as long as the refund is not confirmed. A confirmed refund changes the swap status from `Refundable` to `Completed`.

- **Swap-in / swap-out fees**: When sending or receiving on-chain, make sure to clearly show the expected fees involved, as well as the send / receive amounts.
- **Expose swap fees**: when sending or receiving on-chain, make sure to clearly show the expected fees involved, as well as the send / receive amounts.

- **Connect**: Create a Lightning node (connect) only when users are interested to receive payments with Lightning (not on the app startup).
- **Connect on-demand**: create a Lightning node (connect) only when users are interested to receive payments with Lightning (not on the app startup).

0 comments on commit af2e2b6

Please sign in to comment.