From 2008c2cfc40a3b25c7ba45c087891698c2b43a08 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Thu, 5 Dec 2024 19:38:28 +1100 Subject: [PATCH] feat: Update min mint amount to .5 --- server.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 = []