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

(BIDS-2619) fix vali history tooltip #2676

Merged
merged 2 commits into from
Nov 13, 2023

Conversation

LuccaBitfly
Copy link
Collaborator

@LuccaBitfly LuccaBitfly commented Nov 7, 2023

🤖 Generated by Copilot at 90dd7c9

This pull request fixes various typos and formatting issues in the code and the user interface of the eth2-beaconchain-explorer. It improves the validator history, attestation and block status badges, and the mempool view table. It affects the files handlers/validator.go, utils/format.go and handlers/mempoolView.go.

Comment on lines +276 to +277
income += fmt.Sprintf("Att. Source: %s %s<br/>", FormatAddCommasFormatted(currencyFunc(IfToDec(details.AttestationSourceReward).Sub(IfToDec(details.AttestationSourcePenalty)), currencyName).InexactFloat64(), maxDigits), currencySymbol)
income += fmt.Sprintf("Att. Target: %s %s<br/>", FormatAddCommasFormatted(currencyFunc(IfToDec(details.AttestationTargetReward).Sub(IfToDec(details.AttestationTargetPenalty)), currencyName).InexactFloat64(), maxDigits), currencySymbol)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is the relevant part for the BIDS (=preventing int underflow)

Copy link
Collaborator

@Eisei24 Eisei24 left a comment

Choose a reason for hiding this comment

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

lgtm but please confirm that the tooltips should be changed.

utils/format.go Show resolved Hide resolved
utils/format.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@Eisei24 Eisei24 left a comment

Choose a reason for hiding this comment

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

lgtm

@LuccaBitfly LuccaBitfly merged commit 023a33e into master Nov 13, 2023
3 checks passed
@LuccaBitfly LuccaBitfly deleted the BIDS-2619/fixValiHistoryTooltip branch November 13, 2023 09:59
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