Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add priority fees to all commands #4

Merged
merged 2 commits into from
Apr 20, 2024
Merged

Conversation

samuelvanderwaal
Copy link
Collaborator

@samuelvanderwaal samuelvanderwaal commented Apr 20, 2024

Uses the following micro-lamport mappings from "level":

    match priority {
        Priority::None => 1_000,
        Priority::Low => 50_000,
        Priority::Medium => 200_000,
        Priority::High => 1_000_000,
        Priority::Max => 2_000_000,
    }

and defaults to "low". Given the low-compute nature of Nifty Asset instructions, this results in low additional fees approximately less than or equal to an additional signature cost, but which should put the instruction above the priority fee level once that comes back into play on mainnet.

A mint-batch command: https://explorer.solana.com/tx/4ENmVmLh9Eo68SXwin9YsM2qHs3nWhmD2Z44zXaW7UTyu37TnHayWZwqaiaL1v8fv2WCHRwB7eUkZXg6BLbJzoW4

Selection_001

Minting transactions actually go through now, although they are slow due to congestion:

Selection_002

Transfer command: 3ExYzQDVPRVyjbMGDgDqEP7byFLcz33yR6mVNoWanvxs4MRiWFyENPjFfVgmENzTeJV63dT4aHCGa6A1DgDLU6fC

@samuelvanderwaal samuelvanderwaal marked this pull request as ready for review April 20, 2024 19:24
Copy link
Collaborator

@febo febo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great stuff!

@samuelvanderwaal samuelvanderwaal merged commit db840e5 into main Apr 20, 2024
4 checks passed
@samuelvanderwaal samuelvanderwaal deleted the feat/priority-fees branch April 20, 2024 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants