diff options
| author | stuppie | 2026-11-02 12:50:25 -0600 |
|---|---|---|
| committer | stuppie | 2026-11-02 12:50:25 -0600 |
| commit | 98e2ae983d4ae23dba3209fa7eaaccce59ddb4df (patch) | |
| tree | 7fc652936dc22106f4cac66e0559d51444cd7c31 | |
| parent | 2883cc70e9d882280398bacfcb1f1a192dffcc13 (diff) | |
| download | generalresearch-98e2ae983d4ae23dba3209fa7eaaccce59ddb4df.tar.gz generalresearch-98e2ae983d4ae23dba3209fa7eaaccce59ddb4df.zip | |
not an issue now, but could be in future cashout methods. todo: need a tango-agnistic currency conversion source
| -rw-r--r-- | generalresearch/managers/thl/cashout_method.py | 2 |
1 files changed, 2 insertions, 0 deletions
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)) |
