Skip to content

Commit

Permalink
Merge branch 'Polygant:master' into dev/force-kyc
Browse files Browse the repository at this point in the history
  • Loading branch information
joequant authored Jun 6, 2023
2 parents f0134c9 + 482fb76 commit 6771bd5
Show file tree
Hide file tree
Showing 72 changed files with 5,817 additions and 3,071 deletions.
6 changes: 3 additions & 3 deletions admin_panel/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
from core.consts.currencies import CURRENCIES_LIST
from core.currency import Currency
from core.pairs import PAIRS_LIST
from cryptocoins.tasks.eth import ethereum_manager
from cryptocoins.tasks.trx import tron_manager
from cryptocoins.tasks.bnb import bnb_manager
from cryptocoins.coins.eth.ethereum import ethereum_manager
from cryptocoins.coins.trx.tron import tron_manager
from cryptocoins.coins.bnb.bnb import bnb_manager
from lib.cipher import AESCoderDecoder

CryptoBitcoin = Bitcoin()
Expand Down
11 changes: 4 additions & 7 deletions admin_panel/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@
from cryptocoins.coins.btc.service import BTCCoinService
from cryptocoins.coins.eth import ETH_CURRENCY
from cryptocoins.coins.trx import TRX_CURRENCY
from cryptocoins.coins.usdt import USDT_CURRENCY
from cryptocoins.tasks.eth import process_payouts as eth_process_payouts
from cryptocoins.tasks.trx import process_payouts as trx_process_payouts
from cryptocoins.tasks.bnb import process_payouts as bnb_process_payouts
from cryptocoins.tasks.evm import process_payouts_task


@staff_member_required
Expand Down Expand Up @@ -90,7 +87,7 @@ def admin_eth_withdrawal_request_approve(request):
try:
if form.is_valid():
password = form.cleaned_data.get('key')
eth_process_payouts.apply_async([password,])
process_payouts_task.apply_async(['ETH', password,], queue='eth_payouts')
messages.success(request, 'Withdrawals in processing')
return redirect('admin_withdrawal_request_approve_eth') # need for clear post data
except Exception as e: # all messages and errors to admin message
Expand Down Expand Up @@ -122,7 +119,7 @@ def admin_trx_withdrawal_request_approve(request):
try:
if form.is_valid():
password = form.cleaned_data.get('key')
trx_process_payouts.apply_async([password, ])
process_payouts_task.apply_async(['TRX', password, ], queue='trx_payouts')
messages.success(request, 'Withdrawals in processing')
return redirect('admin_withdrawal_request_approve_trx') # need for clear post data
except Exception as e: # all messages and errors to admin message
Expand Down Expand Up @@ -154,7 +151,7 @@ def admin_bnb_withdrawal_request_approve(request):
try:
if form.is_valid():
password = form.cleaned_data.get('key')
bnb_process_payouts.apply_async([password, ])
process_payouts_task.apply_async(['BNB', password, ], queue='bnb_payouts')
messages.success(request, 'Withdrawals in processing')
return redirect('admin_withdrawal_request_approve_bnb') # need for clear post data
except Exception as e: # all messages and errors to admin message
Expand Down
1 change: 1 addition & 0 deletions admin_rest/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
default_app_config = 'admin_rest.apps.AdminRestConfig'
Loading

0 comments on commit 6771bd5

Please sign in to comment.