feat: Add small minting fee to pay for token account creations
All checks were successful
Build Docker / BuildImage (push) Successful in 34s

This commit is contained in:
Nathan Woodburn 2024-12-09 13:07:11 +11:00
parent fa0ef77fb1
commit 24cff2a523
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1
15 changed files with 19 additions and 14 deletions

View File

@ -1 +1 @@
{"timestamp": 1733465874.1379163, "result": 3903.27} {"timestamp": 1733709841.1727908, "result": 3951.21}

View File

@ -1 +1 @@
{"timestamp": 1733465936.7649121, "result": 1.19} {"timestamp": 1733709904.048873, "result": 1.17}

View File

@ -1 +1 @@
{"timestamp": 1733465934.9081368, "result": 4.18} {"timestamp": 1733709837.4863276, "result": 4.19}

View File

@ -1 +1 @@
{"timestamp": 1733465873.396875, "result": 253.41} {"timestamp": 1733709838.508297, "result": 246.79}

View File

@ -1 +1 @@
{"timestamp": 1733465935.473603, "result": 4.29} {"timestamp": 1733709902.6437316, "result": 4.22}

View File

@ -1 +1 @@
{"timestamp": 1733465868.6108558, "result": 238.91} {"timestamp": 1733709835.4421465, "result": 232.42}

View File

@ -1 +1 @@
{"timestamp": 1733465935.8754933, "result": 4.44} {"timestamp": 1733709903.0252566, "result": 4.38}

View File

@ -1 +1 @@
{"timestamp": 1733465866.4457877, "result": 220.385447719} {"timestamp": 1733709833.6583126, "result": 303.899783283}

View File

@ -1 +1 @@
{"timestamp": 1733465868.2397482, "result": 0.00927176} {"timestamp": 1733709835.0307581, "result": 0.009281764}

View File

@ -1 +1 @@
{"timestamp": 1733465870.028333, "result": 1.0} {"timestamp": 1733709839.3296363, "result": 0.99943}

View File

@ -1 +1 @@
{"timestamp": 1733465871.5495713, "result": 97776} {"timestamp": 1733709841.9973485, "result": 99348}

View File

@ -1 +1 @@
{"timestamp": 1733465935.8780353, "result": [{"mint": "3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh", "balance": 0.00011819, "price": 97776, "value": 11.55614544, "name": "Wrapped BTC (Wormhole)", "symbol": "wbtc"}, {"mint": "jupSoLaHXQiZZTSfEWMTRRgpnyFm8f6sZdosWBjx93v", "balance": 0.039815492, "price": 253.41, "value": 10.08964382772, "name": "Jupiter Staked SOL", "symbol": "jupsol"}, {"mint": "7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs", "balance": 0.00255735, "price": 3903.27, "value": 9.9820275345, "name": "Ethereum (Wormhole)", "symbol": "eth"}, {"mint": "27G8MtK7VtTcCHkpASjSDdkWWYfoqT6ggEuKidVJidD4", "balance": 10.355235, "price": 4.18, "value": 43.2848823, "name": "Jupiter Perpetuals Liquidity Provider Token", "symbol": "jlp"}, {"mint": "0x2::sui::SUI", "balance": 0.902850107, "price": 4.29, "value": 3.87322695903, "name": "Sui", "symbol": "sui"}, {"mint": "0x549e8b69270defbfafd4f94e17ec44cdbdd99820b33bda2278dea3b9a32d3f55::cert::CERT", "balance": 9.658874002, "price": 4.44, "value": 42.88540056888, "name": "Volo Staked SUI", "symbol": "vsui"}]} {"timestamp": 1733709903.03487, "result": [{"mint": "27G8MtK7VtTcCHkpASjSDdkWWYfoqT6ggEuKidVJidD4", "balance": 24.661756, "price": 4.19, "value": 103.33275764000001, "name": "Jupiter Perpetuals Liquidity Provider Token", "symbol": "jlp"}, {"mint": "jupSoLaHXQiZZTSfEWMTRRgpnyFm8f6sZdosWBjx93v", "balance": 0.039815492, "price": 246.79, "value": 9.82606527068, "name": "Jupiter Staked SOL", "symbol": "jupsol"}, {"mint": "7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs", "balance": 0.00255735, "price": 3951.21, "value": 10.104626893499999, "name": "Ethereum (Wormhole)", "symbol": "eth"}, {"mint": "3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh", "balance": 0.00035766, "price": 99348, "value": 35.532805679999996, "name": "Wrapped BTC (Wormhole)", "symbol": "wbtc"}, {"mint": "0x2::sui::SUI", "balance": 0.902850107, "price": 4.22, "value": 3.81002745154, "name": "Sui", "symbol": "sui"}, {"mint": "0x549e8b69270defbfafd4f94e17ec44cdbdd99820b33bda2278dea3b9a32d3f55::cert::CERT", "balance": 9.658874002, "price": 4.38, "value": 42.30586812876, "name": "Volo Staked SUI", "symbol": "vsui"}]}

View File

@ -1 +1 @@
{"timestamp": 1733465935.8775811, "result": [{"mint": "0x2::sui::SUI", "balance": 0.902850107, "price": 4.29, "value": 3.87322695903, "name": "Sui", "symbol": "sui"}, {"mint": "0x549e8b69270defbfafd4f94e17ec44cdbdd99820b33bda2278dea3b9a32d3f55::cert::CERT", "balance": 9.658874002, "price": 4.44, "value": 42.88540056888, "name": "Volo Staked SUI", "symbol": "vsui"}]} {"timestamp": 1733709903.0345013, "result": [{"mint": "0x2::sui::SUI", "balance": 0.902850107, "price": 4.22, "value": 3.81002745154, "name": "Sui", "symbol": "sui"}, {"mint": "0x549e8b69270defbfafd4f94e17ec44cdbdd99820b33bda2278dea3b9a32d3f55::cert::CERT", "balance": 9.658874002, "price": 4.38, "value": 42.30586812876, "name": "Volo Staked SUI", "symbol": "vsui"}]}

View File

@ -1 +1 @@
{"timestamp": 1733465936.4269736, "result": 82.815227} {"timestamp": 1733709903.5823874, "result": 82.815227}

View File

@ -541,6 +541,11 @@ def mint_stWDBRN(amount, to_user_account):
if amount < 0.5: if amount < 0.5:
print(f"Skipping minting of {amount} stWDBRN to {to_user_account} as it is less than 0.5", flush=True) print(f"Skipping minting of {amount} stWDBRN to {to_user_account} as it is less than 0.5", flush=True)
return return
# Small fee for minting
if amount > 10:
amount = amount - 0.05
print(f"Minting {amount} stWDBRN to {to_user_account}", flush=True) 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")