Skip to content

Commit

Permalink
Merge branch 'main' of github.com:gobitfly/eth2-beaconchain-explorer-…
Browse files Browse the repository at this point in the history
…app into nobids/smallstuff
  • Loading branch information
manuelsc committed Nov 6, 2023
2 parents 7f91aa9 + 50e3fe1 commit 94d50bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/app/components/dashboard/dashboard.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,15 +222,15 @@ export class DashboardComponent implements OnInit {

updateActiveSyncCommitteeMessage(committee: SyncCommitteeResponse) {
if (committee) {
const endTs = this.epochToTimestamp(committee.end_epoch)
const endTs = this.epochToTimestamp(committee.end_epoch + 1)
const startTs = this.epochToTimestamp(committee.start_epoch)
this.currentSyncCommitteeMessage = {
title: 'Sync Committee',
text: `Your validator${committee.validators.length > 1 ? 's' : ''} ${committee.validators.toString()} ${
committee.validators.length > 1 ? 'are' : 'is'
} currently part of the active sync committee.
<br/><br/>This duty started at epoch ${committee.start_epoch} at ${new Date(startTs).toLocaleString()} and
will end at epoch ${committee.end_epoch} at ${new Date(endTs).toLocaleString()}.
will end after epoch ${committee.end_epoch} at ${new Date(endTs).toLocaleString()}.
<br/><br/>You'll earn extra rewards during this period.
`,
} as SyncCommitteeMessage
Expand All @@ -241,15 +241,15 @@ export class DashboardComponent implements OnInit {

updateNextSyncCommitteeMessage(committee: SyncCommitteeResponse) {
if (committee) {
const endTs = this.epochToTimestamp(committee.end_epoch)
const endTs = this.epochToTimestamp(committee.end_epoch + 1)
const startTs = this.epochToTimestamp(committee.start_epoch)
this.nextSyncCommitteeMessage = {
title: 'Sync Committee Soon',
text: `Your validator${committee.validators.length > 1 ? 's' : ''} ${committee.validators.toString()} ${
committee.validators.length > 1 ? 'are' : 'is'
} part of the <strong>next</strong> sync committee.
<br/><br/>This duty starts at epoch ${committee.start_epoch} at ${new Date(startTs).toLocaleString()} and
will end at epoch ${committee.end_epoch} at ${new Date(endTs).toLocaleString()}.
will end after epoch ${committee.end_epoch} at ${new Date(endTs).toLocaleString()}.
<br/><br/>You'll earn extra rewards during this period.
`,
} as SyncCommitteeMessage
Expand Down
2 changes: 1 addition & 1 deletion src/app/utils/EthereumUnits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default class Unit {

public static ETHER = new Unit('ETH', new BigNumber('1'), 5, 'XXX-ETH', 'Ether')
public static KETHER = new Unit('KETH', new BigNumber('0.001'))
public static RPL = new Unit('RPL', new BigNumber('1'), 1) // RPL TO ETH
public static RPL = new Unit('RPL', new BigNumber('1'), 2) // RPL TO ETH
public static RPL_NAKED = new Unit('RPL', new BigNumber('1'), 2)
public static NO_CURRENCY = new Unit('', new BigNumber('1'), 0)
public static RETH = new Unit('RETH', new BigNumber('1'), 2)
Expand Down

0 comments on commit 94d50bc

Please sign in to comment.