diff --git a/src/app/components/dashboard/dashboard.component.ts b/src/app/components/dashboard/dashboard.component.ts index 5cca2208..061b4ffc 100644 --- a/src/app/components/dashboard/dashboard.component.ts +++ b/src/app/components/dashboard/dashboard.component.ts @@ -222,7 +222,7 @@ 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', @@ -230,7 +230,7 @@ export class DashboardComponent implements OnInit { committee.validators.length > 1 ? 'are' : 'is' } currently part of the active sync committee.

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()}.

You'll earn extra rewards during this period. `, } as SyncCommitteeMessage @@ -241,7 +241,7 @@ 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', @@ -249,7 +249,7 @@ export class DashboardComponent implements OnInit { committee.validators.length > 1 ? 'are' : 'is' } part of the next sync committee.

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()}.

You'll earn extra rewards during this period. `, } as SyncCommitteeMessage diff --git a/src/app/utils/EthereumUnits.ts b/src/app/utils/EthereumUnits.ts index bc0092ac..110aa5d2 100644 --- a/src/app/utils/EthereumUnits.ts +++ b/src/app/utils/EthereumUnits.ts @@ -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)