feat: add withdraw
This commit is contained in:
@@ -103,7 +103,7 @@ class Settings(BaseSettings):
|
||||
MOZEN_MERCHANT_ID: str = ''
|
||||
MOZEN_PARK_ID: str = ''
|
||||
MOZEN_PARK_TOKEN: str = ''
|
||||
SBP_WITHDRAWAL_WALLET_ADDRESS: str = ''
|
||||
CRYPTO_USDT_CONTRACT_ADDRESS: str = ''
|
||||
|
||||
CLOUD_KASSIR_PUBLIC_ID: str = ''
|
||||
CLOUD_KASSIR_API_SECRET: str = ''
|
||||
@@ -240,8 +240,13 @@ class Settings(BaseSettings):
|
||||
extgw_set('merchant_id', 'MOZEN_MERCHANT_ID')
|
||||
extgw_set('park_id', 'MOZEN_PARK_ID')
|
||||
extgw_set('park_token', 'MOZEN_PARK_TOKEN')
|
||||
extgw_set('wallet_address', 'SBP_WITHDRAWAL_WALLET_ADDRESS')
|
||||
extgw_set('usdt_wallet_address', 'SBP_WITHDRAWAL_WALLET_ADDRESS')
|
||||
|
||||
crypto = read_secret_optional('crypto')
|
||||
if crypto:
|
||||
crypto_ci = {str(k).lower(): v for k, v in crypto.items()}
|
||||
usdt_contract_address = crypto_ci.get('usdt_contract_address')
|
||||
if usdt_contract_address is not None and str(usdt_contract_address).strip():
|
||||
data['CRYPTO_USDT_CONTRACT_ADDRESS'] = str(usdt_contract_address).strip()
|
||||
|
||||
keydb = read_secret('keydb')
|
||||
k_ci = {str(k).lower(): v for k, v in keydb.items()}
|
||||
|
||||
Reference in New Issue
Block a user