Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions src/components/ChainDataSections.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -354,6 +362,26 @@ function SolanaChainSections({
pre-release
</span>
)}
{!isJito && !isTest && (
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The 'vanilla' chip is currently hidden when isTest is 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.

Suggested change
{!isJito && !isTest && (
{!isJito && (

<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
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The amber color #e8a735 and its RGBA variants are hardcoded here. This same color is also used in the 'Skip Rate' logic (line 335). To improve maintainability and ensure consistency across the UI, consider using a CSS variable (e.g., var(--color-warning)) or defining a shared constant for this color value, especially since the project already leverages CSS variables for other colors.

>
vanilla
</span>
)}
</span>
}
/>
Expand Down
Loading