Skip to content

Commit

Permalink
Disable stake pool application for testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-at-planetariummusic committed Jan 18, 2024
1 parent 8c63581 commit 15c4612
Showing 1 changed file with 21 additions and 10 deletions.
31 changes: 21 additions & 10 deletions bot/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2572,16 +2572,27 @@ fn main() -> BoxResult<()> {
);

let (stake_pool_notes, validator_stake_actions, unfunded_validators, bonus_stake_amount) =
stake_pool.apply(
cluster_multi_client,
pre_run_dry_run || config.dry_run,
&desired_validator_stake,
if config.cluster == Testnet {
Some(0.85)
} else {
None
},
)?;
match config.cluster {
Testnet => {
// Don't apply stake pool for Testnet. We only care about None/Baseline/Bonus values
(
vec!["No stake distribution for Testnet".to_string()],
ValidatorStakeActions::new(),
UnfundedValidators::new(),
42_000 * LAMPORTS_PER_SOL,
)
}
MainnetBeta => stake_pool.apply(
cluster_multi_client,
pre_run_dry_run || config.dry_run,
&desired_validator_stake,
if config.cluster == Testnet {
Some(0.85)
} else {
None
},
)?,
};

let mut summary_messages: Vec<String> = vec![format!(
"summary for {:?}/{:?}\n",
Expand Down

0 comments on commit 15c4612

Please sign in to comment.