Calculate the OTP code each time
This commit is contained in:
@@ -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"])
|
||||||
|
|||||||
Reference in New Issue
Block a user