Fix: Rate tolerance. (#339)

* Fix: Rate tolerance.

* Fix GUI Rate tolerance.

* Fix: json/rate

* Fix: Mismatch

* Fix: Use backend handle calc.

* Cleanup

* Fix: format_amount

* Add test.
This commit is contained in:
Gerlof van Ek
2025-07-28 21:43:06 +02:00
committed by GitHub
parent dc692209ca
commit 02ceb89d14
5 changed files with 165 additions and 33 deletions

View File

@@ -707,6 +707,8 @@ def page_offer(self, url_split, post_string):
"coin_to": ci_to.coin_name(),
"coin_from_ind": int(ci_from.coin_type()),
"coin_to_ind": int(ci_to.coin_type()),
"coin_from_exp": ci_from.exp(),
"coin_to_exp": ci_to.exp(),
"amt_from": ci_from.format_amount(offer.amount_from),
"amt_to": ci_to.format_amount(amount_to),
"amt_bid_min": ci_from.format_amount(offer.min_bid_amount),