From 125276d66d0f569abd9798a52a9e24740c8101e1 Mon Sep 17 00:00:00 2001 From: Manuel <5877862+manuelsc@users.noreply.github.com> Date: Fri, 3 Nov 2023 10:31:18 +0100 Subject: [PATCH 1/3] unify rpl rounding --- src/app/utils/EthereumUnits.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) From a0fa325b7540a0eac95c17211423b5afd23624e8 Mon Sep 17 00:00:00 2001 From: Manuel <5877862+manuelsc@users.noreply.github.com> Date: Mon, 6 Nov 2023 09:11:35 +0100 Subject: [PATCH 2/3] fix end date of sync committee message --- src/app/components/dashboard/dashboard.component.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/components/dashboard/dashboard.component.ts b/src/app/components/dashboard/dashboard.component.ts index c1a94a10..5479d619 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 From b11d70fd890cb72e3c2581a8421cebb490e0d4b4 Mon Sep 17 00:00:00 2001 From: Manuel <5877862+manuelsc@users.noreply.github.com> Date: Mon, 6 Nov 2023 09:35:21 +0100 Subject: [PATCH 3/3] prettier --- src/app/components/dashboard/dashboard.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/components/dashboard/dashboard.component.ts b/src/app/components/dashboard/dashboard.component.ts index 5479d619..4f8e4468 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+1) + const endTs = this.epochToTimestamp(committee.end_epoch + 1) const startTs = this.epochToTimestamp(committee.start_epoch) this.currentSyncCommitteeMessage = { title: 'Sync Committee', @@ -241,7 +241,7 @@ export class DashboardComponent implements OnInit { updateNextSyncCommitteeMessage(committee: SyncCommitteeResponse) { if (committee) { - const endTs = this.epochToTimestamp(committee.end_epoch+1) + const endTs = this.epochToTimestamp(committee.end_epoch + 1) const startTs = this.epochToTimestamp(committee.start_epoch) this.nextSyncCommitteeMessage = { title: 'Sync Committee Soon',