From cb0215793cca33f267a775151025d253de3f4e60 Mon Sep 17 00:00:00 2001 From: PatrickRL <121479313+PatrickRL@users.noreply.github.com> Date: Mon, 26 Aug 2024 10:34:17 +0200 Subject: [PATCH] ADD: Lido Fee Preset (#2013) Choosing Lido in the one click installer sets the fee recipient depending on the selected network --- launcher/src/backend/OneClickInstall.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/launcher/src/backend/OneClickInstall.js b/launcher/src/backend/OneClickInstall.js index 74fab8ee2..b51c48e7a 100755 --- a/launcher/src/backend/OneClickInstall.js +++ b/launcher/src/backend/OneClickInstall.js @@ -328,6 +328,7 @@ export class OneClickInstall { } this.handleArchiveTags(selectedPreset); + this.handleLidoTags(selectedPreset); let versions; try { @@ -413,6 +414,24 @@ export class OneClickInstall { } } + handleLidoTags(selectedPreset) { + if (selectedPreset == "obol") { + const networkFeeAdress = { + mainnet: "0x388C818CA8B9251b393131C08a736A67ccB19297", + holesky: "0xE73a3602b99f1f913e72F8bdcBC235e206794Ac8", + } + const serviceFeeAdressCommand = { + LighthouseValidatorService: "--suggested-fee-recipient=", + LodestarValidatorService: "--suggestedFeeRecipient=", + NimbusValidatorService: "--suggested-fee-recipient=", + PrysmValidatorService: "--suggested-fee-recipient=", + TekuValidatorService: "--validators-proposer-default-fee-recipient=", + } + this.validatorService.command[this.validatorService.command.findIndex((c) => c.includes(serviceFeeAdressCommand[this.validatorService.service]))] = + serviceFeeAdressCommand[this.validatorService.service] + networkFeeAdress[this.network]; + } + } + getLatestVersion(versions, service) { let network = service.network; let version = service.imageVersion;