Wrap especially important sections in mdbook "warning"

This commit is contained in:
ok300
2024-01-08 20:00:15 +01:00
parent 24c3c2edb0
commit 5a44ce2f97
2 changed files with 11 additions and 1 deletions

View File

@@ -72,7 +72,12 @@ In order to receive funds you first have to be connected to an [LSP](connecting_
</section>
</custom-tabs>
It's important to be aware that the swap information provided includes maximum and minimum limits. Users must be informed of these limits because if the amount transferred to the swap address falls outside this valid range, the funds will not be successfully received via lightning. In such cases, a refund will be necessary.
<div class="warning">
<h4>Developer note</h4>
The `swap_info` above includes maximum and minimum limits. Your application's users must be informed of these limits because if the amount transferred to the swap address falls outside this valid range, the funds will not be successfully received via lightning. In such cases, a refund will be necessary.
</div>
## Get the in-progress Swap

View File

@@ -71,10 +71,15 @@ First, fetch the current reverse swap fees:
</section>
</custom-tabs>
<div class="warning">
<h4>Developer note</h4>
The reverse swap will involve two on-chain transactions, for which the mining fees can only be estimated. They will happen
automatically once the process is started, but the last two values above are these estimates to help you get a picture
of the total costs.
</div>
Fetching the fees also tells you what is the range of amounts the service allows:
<custom-tabs category="lang">