Calculate the OTP code each time

This commit is contained in:
Mark Veidemanis 2023-05-20 14:31:54 +01:00
parent 7bc92dcef9
commit c776278f04
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 1 additions and 2 deletions

View File

@ -103,7 +103,6 @@ async def withdrawal_job(group=None):
platform = group.platforms.first() platform = group.platforms.first()
run = await AgoraClient(platform) run = await AgoraClient(platform)
otp_code = TOTP(platform.otp_token).now()
for wallet, pay_list_iter in pay_list.items(): for wallet, pay_list_iter in pay_list.items():
print("WALLET ITER", wallet) print("WALLET ITER", wallet)
@ -127,7 +126,7 @@ async def withdrawal_job(group=None):
"address": wallet.address, "address": wallet.address,
"amount": amount_rounded, "amount": amount_rounded,
"password": platform.password, "password": platform.password,
"otp": otp_code, "otp": TOTP(platform.otp_token).now(),
} }
print("CAST ADDRESS", cast["address"]) print("CAST ADDRESS", cast["address"])