generated from nathanwoodburn/python-webserver-template
feat: Update min mint amount to .5
All checks were successful
Build Docker / BuildImage (push) Successful in 34s
All checks were successful
Build Docker / BuildImage (push) Successful in 34s
This commit is contained in:
parent
8f9a78fb4f
commit
2008c2cfc4
@ -475,10 +475,11 @@ def parseDeposit(data):
|
|||||||
mint_stWDBRN(stWDBRN_amount, transfer['fromUserAccount'])
|
mint_stWDBRN(stWDBRN_amount, transfer['fromUserAccount'])
|
||||||
|
|
||||||
def mint_stWDBRN(amount, to_user_account):
|
def mint_stWDBRN(amount, to_user_account):
|
||||||
print(f"Minting {amount} stWDBRN to {to_user_account}", flush=True)
|
|
||||||
if amount < 0.01:
|
if amount < 0.5:
|
||||||
print(f"Skipping minting of {amount} stWDBRN to {to_user_account} as it is less than 0.01", flush=True)
|
print(f"Skipping minting of {amount} stWDBRN to {to_user_account} as it is less than 0.5", flush=True)
|
||||||
return
|
return
|
||||||
|
print(f"Minting {amount} stWDBRN to {to_user_account}", flush=True)
|
||||||
TOKEN_PROGRAM_ID = Pubkey.from_string("TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb")
|
TOKEN_PROGRAM_ID = Pubkey.from_string("TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb")
|
||||||
WALLET = os.getenv("WALLET")
|
WALLET = os.getenv("WALLET")
|
||||||
walletbytes = []
|
walletbytes = []
|
||||||
|
Loading…
Reference in New Issue
Block a user