AMM: use_balance_bidding + (USD) price fix + Various fixes. (#314)

* AMM: use_balance_bidding + BCH (USD) price fix + Various fixes.

* AMM: Fixed NMC, DOGE, DCR (USD) price.
This commit is contained in:
Gerlof van Ek
2025-06-13 12:10:49 +02:00
committed by GitHub
parent 4055b7d6c8
commit b3c946d056
4 changed files with 112 additions and 8 deletions

View File

@@ -1138,6 +1138,9 @@ def page_amm(self, _, post_string):
except ValueError:
pass
if form_data.get("bid_use_balance_bidding", [""])[0]:
new_bid["use_balance_bidding"] = True
if "bids" not in current_config:
current_config["bids"] = []
@@ -1243,6 +1246,7 @@ def page_amm(self, _, post_string):
# "max_coin_from_balance": 100.0, # Won't send bids if wallet amount would be above this
"address": "auto", # Address bid is sent from (auto = generate new address per bid)
"min_swap_amount": 0.001, # Minimum swap amount
# "use_balance_bidding": False, # Calculate bid amount as (wallet_balance - offer_min_amount) instead of using template amount
}
]