Skip to content

Commit

Permalink
ADD: Lido Fee Preset (#2013)
Browse files Browse the repository at this point in the history
Choosing Lido in the one click installer sets the fee recipient depending on the selected network
  • Loading branch information
PatrickRL authored Aug 26, 2024
1 parent eeb61fc commit cb02157
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions launcher/src/backend/OneClickInstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ export class OneClickInstall {
}

this.handleArchiveTags(selectedPreset);
this.handleLidoTags(selectedPreset);

let versions;
try {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit cb02157

Please sign in to comment.