mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-29 21:32:38 +02:00
add boltz fee dynamically
This commit is contained in:
@@ -39,8 +39,9 @@
|
||||
<b>Fee Information</b>
|
||||
</h3>
|
||||
<span>
|
||||
Every swap consists of 2 onchain transactions, lockup and claim / refund,
|
||||
routing fees and a Boltz fee of <b>0.5%</b>.
|
||||
{% raw %} Every swap consists of 2 onchain transactions, lockup and claim
|
||||
/ refund, routing fees and a Boltz fee of
|
||||
<b>{{ boltzConfig.fee_percentage }}%</b>. {% endraw %}
|
||||
</span>
|
||||
</q-card-section>
|
||||
<q-expansion-item
|
||||
|
@@ -325,4 +325,8 @@ async def api_swap_status(swap_id: str):
|
||||
)
|
||||
async def api_boltz_config():
|
||||
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