feat: Update min mint amount to .5
All checks were successful
Build Docker / BuildImage (push) Successful in 34s

This commit is contained in:
Nathan Woodburn 2024-12-05 19:38:28 +11:00
parent 8f9a78fb4f
commit 2008c2cfc4
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -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 = []