From 98e2ae983d4ae23dba3209fa7eaaccce59ddb4df Mon Sep 17 00:00:00 2001 From: stuppie Date: Mon, 2 Nov 2026 12:50:25 -0600 Subject: not an issue now, but could be in future cashout methods. todo: need a tango-agnistic currency conversion source --- generalresearch/managers/thl/cashout_method.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/generalresearch/managers/thl/cashout_method.py b/generalresearch/managers/thl/cashout_method.py index 58a0585..32bda88 100644 --- a/generalresearch/managers/thl/cashout_method.py +++ b/generalresearch/managers/thl/cashout_method.py @@ -317,6 +317,8 @@ class CashoutMethodManager(PostgresManager): if cashout_method.original_currency in {None, Currency.USD}: exchange_rate = 1.0 else: + if cashout_method.original_currency not in usd_exchange_rate: + return None exchange_rate = usd_exchange_rate[cashout_method.original_currency] method_min_value_usd = USDCent(round(cashout_method.min_value * exchange_rate)) -- cgit v1.2.3