diff --git a/core/management/commands/scheduling.py b/core/management/commands/scheduling.py index b8f5a5c..fa5dbaf 100644 --- a/core/management/commands/scheduling.py +++ b/core/management/commands/scheduling.py @@ -103,7 +103,6 @@ async def withdrawal_job(group=None): platform = group.platforms.first() run = await AgoraClient(platform) - otp_code = TOTP(platform.otp_token).now() for wallet, pay_list_iter in pay_list.items(): print("WALLET ITER", wallet) @@ -127,7 +126,7 @@ async def withdrawal_job(group=None): "address": wallet.address, "amount": amount_rounded, "password": platform.password, - "otp": otp_code, + "otp": TOTP(platform.otp_token).now(), } print("CAST ADDRESS", cast["address"])