mirror of
https://github.com/lnbits/lnbits.git
synced 2025-10-08 19:50:10 +02:00
add boltz fee dynamically
This commit is contained in:
@@ -39,8 +39,9 @@
|
|||||||
<b>Fee Information</b>
|
<b>Fee Information</b>
|
||||||
</h3>
|
</h3>
|
||||||
<span>
|
<span>
|
||||||
Every swap consists of 2 onchain transactions, lockup and claim / refund,
|
{% raw %} Every swap consists of 2 onchain transactions, lockup and claim
|
||||||
routing fees and a Boltz fee of <b>0.5%</b>.
|
/ refund, routing fees and a Boltz fee of
|
||||||
|
<b>{{ boltzConfig.fee_percentage }}%</b>. {% endraw %}
|
||||||
</span>
|
</span>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
<q-expansion-item
|
<q-expansion-item
|
||||||
|
@@ -325,4 +325,8 @@ async def api_swap_status(swap_id: str):
|
|||||||
)
|
)
|
||||||
async def api_boltz_config():
|
async def api_boltz_config():
|
||||||
client = create_boltz_client()
|
client = create_boltz_client()
|
||||||
return {"minimal": client.limit_minimal, "maximal": client.limit_maximal}
|
return {
|
||||||
|
"minimal": client.limit_minimal,
|
||||||
|
"maximal": client.limit_maximal,
|
||||||
|
"fee_percentage": client.fee_percentage,
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user