-
Notifications
You must be signed in to change notification settings - Fork 0
front: vanilla-Solana chip on detail page #24
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -343,6 +343,14 @@ function SolanaChainSections({ | |
| })()} | ||
| {data.software_version && (() => { | ||
| const isTest = /alpha|beta|test/i.test(data.software_version); | ||
| // Mirror of slasher-solana's classify_jito_version: any version | ||
| // containing "jito" (case-insensitive) is Jito-Solana; anything | ||
| // else is vanilla Agave. Vanilla validators forfeit MEV tip | ||
| // revenue that would otherwise flow to delegators — that's the | ||
| // chip's product story. We deliberately do not chip "Jito" as | ||
| // green because being on Jito is the expected state, not an | ||
| // achievement; we only call out the deviation. | ||
| const isJito = /jito/i.test(data.software_version); | ||
| return ( | ||
| <Field | ||
| label="Software" | ||
|
|
@@ -354,6 +362,26 @@ function SolanaChainSections({ | |
| pre-release | ||
| </span> | ||
| )} | ||
| {!isJito && !isTest && ( | ||
| <span | ||
| title="Running stock Agave (vanilla Solana) instead of Jito-Solana — MEV tip revenue that could flow to delegators is forfeited." | ||
| style={{ | ||
| fontSize: 10, | ||
| marginLeft: 8, | ||
| padding: '2px 6px', | ||
| background: 'rgba(232, 167, 53, 0.15)', | ||
| border: '1px solid rgba(232, 167, 53, 0.30)', | ||
| borderRadius: 3, | ||
| color: '#e8a735', | ||
| fontFamily: "'JetBrains Mono', monospace", | ||
| textTransform: 'uppercase', | ||
| letterSpacing: '0.08em', | ||
| cursor: 'help', | ||
| }} | ||
|
Comment on lines
+368
to
+380
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The amber color |
||
| > | ||
| vanilla | ||
| </span> | ||
| )} | ||
| </span> | ||
| } | ||
| /> | ||
|
|
||
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.
The 'vanilla' chip is currently hidden when
isTestis true. This means that vanilla validators running pre-release software (e.g., a beta version of stock Agave) will not display the warning about forfeited MEV rewards. Since the 'vanilla' status (economic impact) and 'pre-release' status (stability risk) are independent attributes, consider showing the 'vanilla' chip even for test versions to ensure delegators are fully informed of the revenue implications.