diff --git a/server.py b/server.py index 574c1f3..2667ee0 100644 --- a/server.py +++ b/server.py @@ -475,10 +475,11 @@ def parseDeposit(data): mint_stWDBRN(stWDBRN_amount, transfer['fromUserAccount']) def mint_stWDBRN(amount, to_user_account): - print(f"Minting {amount} stWDBRN to {to_user_account}", flush=True) - if amount < 0.01: - print(f"Skipping minting of {amount} stWDBRN to {to_user_account} as it is less than 0.01", flush=True) + + if amount < 0.5: + print(f"Skipping minting of {amount} stWDBRN to {to_user_account} as it is less than 0.5", flush=True) return + print(f"Minting {amount} stWDBRN to {to_user_account}", flush=True) TOKEN_PROGRAM_ID = Pubkey.from_string("TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb") WALLET = os.getenv("WALLET") walletbytes = []