1
0

announce actual available liquidity as swap provider

This commit is contained in:
f321x
2025-03-18 16:56:17 +01:00
parent f76218ea83
commit 17a9a91e1f
5 changed files with 114 additions and 44 deletions

View File

@@ -66,7 +66,9 @@ class HttpSwapServer(Logger, EventListener):
"BTC/BTC": {
"rate": 1,
"limits": {
"maximal": sm._max_amount,
"maximal": min(sm._max_forward, sm._max_reverse), # legacy
"max_forward_amount": sm._max_forward, # new version, uses 2 separate limits
"max_reverse_amount": sm._max_reverse,
"minimal": sm._min_amount,
},
"fees": {