From 7d77fd6c9afca4289efc20cb019cdb7cdd3857cb Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 1 Nov 2023 01:45:12 +0300 Subject: [PATCH] add more crypto options --- files/routes/admin.py | 2 +- files/templates/admin/insert_transaction.html | 2 ++ files/templates/donate.html | 17 +++++++++++++---- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index f4741192b..1f6dd8672 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -2064,7 +2064,7 @@ def insert_transaction_post(v): amount = request.values.get("amount", "").strip() username = request.values.get("username", "").strip() - if type not in {'BTC', 'ETH'}: + if type not in {'BTC', 'ETH', 'USDT', 'USDC'}: abort(400, "Invalid transaction currency!") if not id: diff --git a/files/templates/admin/insert_transaction.html b/files/templates/admin/insert_transaction.html index 30d5d4d9c..5518483c7 100644 --- a/files/templates/admin/insert_transaction.html +++ b/files/templates/admin/insert_transaction.html @@ -18,6 +18,8 @@ + + diff --git a/files/templates/donate.html b/files/templates/donate.html index 8c5252ea5..31251057e 100644 --- a/files/templates/donate.html +++ b/files/templates/donate.html @@ -17,14 +17,23 @@ https://buymeacoffee.com/rdrama.net/membership {% endif %} - - Ethereum/Brave Attention Token (ETH/BAT) - 0xBBf1043A60C6894Db17b3118CA960FFDF84c9eea - Bitcoin (BTC) bc1qs5hamvytnkllgml89flzhcyt3l4a3u4gs8lvvp + + Ethereum (ETH) + 0xBBf1043A60C6894Db17b3118CA960FFDF84c9eea + + + Tether (USDT) + 0xBBf1043A60C6894Db17b3118CA960FFDF84c9eea + + + USD Coin (USDC) + 0xBBf1043A60C6894Db17b3118CA960FFDF84c9eea + + Monero (XMR) 44hdEpAYXkB2VwkWz6LR9zZhcaG8zrUzn21aPy1HSdcsjT51fPdpMV8hkf5QQdHKs9VsAs3so5Vq5easdBbzmcifGcqfxfw