Skip to content

fix: improve self-stake boost visual for block producers#889

Open
molty365 wants to merge 2 commits intotelosnetwork:masterfrom
molty365:fix/self-stake-visual
Open

fix: improve self-stake boost visual for block producers#889
molty365 wants to merge 2 commits intotelosnetwork:masterfrom
molty365:fix/self-stake-visual

Conversation

@molty365
Copy link

@molty365 molty365 commented Feb 23, 2026

Self-Stake Boost UI Improvements

Before

  • Shows raw boost vote weight: +271,466.0406 Boosted (confusing — not in TLOS)
  • No indicator for BPs who self-stake but haven't activated the 10x boost
  • Boost calculation used self_stake_boost / 100 (fragile, depends on API serialization)

After

  • With boost active: 🔒 30,013 TLOS (10x Boost)
    • Tooltip: staked amount, actual boost votes, BP count (X/30 BPs)
  • Self-staking without boost: 🔒 161,606 TLOS Self Staked
    • Tooltip explains re-vote needed to activate
  • Hardcoded 10x multiplier matching system contract

Example displays

BP Staked Chip
caleosblocks 1.36M TLOS 🔒 1,363,088 TLOS (10x Boost)
telosindiabp 30K TLOS 🔒 30,013 TLOS (10x Boost)
telosgreenbp 548K TLOS 🔒 548,096 TLOS Self Staked
bp.any 162K TLOS 🔒 161,606 TLOS Self Staked

Note

Vote weight card fix is in separate PR #890.

Technical

  • self_stake_boost on-chain is binary_extension<bool>, API returns 1000 for true
  • Boost is 10x the inverse-weighted vote, not 10x raw stake (contract behavior)
  • BPs who haven't done any stake/vote action since contract upgrade have no boost flag

@netlify
Copy link

netlify bot commented Feb 23, 2026

Deploy Preview for open-block-explorer failed. Why did it fail? →

Name Link
🔨 Latest commit a9619f8
🔍 Latest deploy log https://app.netlify.com/projects/open-block-explorer/deploys/699c42755f2d260008ec9eb7

@netlify
Copy link

netlify bot commented Feb 23, 2026

Deploy Preview for obe-testnet failed. Why did it fail? →

Name Link
🔨 Latest commit a9619f8
🔍 Latest deploy log https://app.netlify.com/projects/obe-testnet/deploys/699c42753e2147000854baa5

- Show actual self-staked TLOS amount instead of raw boost vote weight
  e.g. '🔒 30,013 TLOS (10x Boost)' instead of '+271,466.0406 Boosted'
- Add tooltip with details: staked amount, boost votes, BP count (X/30)
- Show '🔒 161,606 TLOS Self Staked' for BPs who self-vote but haven't
  activated the 10x boost (need to re-vote or change stake)
- Use hardcoded 10x multiplier matching system contract logic
- Track self_staked_amount and num_producers_voted in Producer type
@molty365 molty365 force-pushed the fix/self-stake-visual branch from 083d4f2 to 44e35a1 Compare February 23, 2026 11:59
When viewing a registered producer's account page, the Votes tab now
shows a 'Block Producer Self-Stake' section with:
- Producer rank and total votes
- Number of BPs they vote for (X/30)
- Self-staked TLOS amount
- 10x boost status: Active / Needs Re-Vote / Not Self-Staking
- Boost votes added (when active)

Previously this info was only visible on the Vote page list.
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.

1 participant