-
Notifications
You must be signed in to change notification settings - Fork 300
feat: add dynamic jito tips #2113
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
2 Skipped Deployments
|
import { LAMPORTS_PER_SOL } from "@solana/web3.js"; | ||
|
||
const HEALTH_CHECK_TIMEOUT_SECONDS = 60; | ||
const MAX_JITO_TIP_LAMPORTS = LAMPORTS_PER_SOL / 100; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I'll make this configurable but didn't have time today
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. A few notes/questions below:
- what is the possibility that we use this and the transaction doesn't land? should we have mechanisms to use other percentiles?
- My worry is that we kind of end up in a worse situation. Maybe it's good to have min(max_fee, max(default_fee, dynamic_fee)) to kind of make sure we are at least never getting worse.
No description provided.