message: Refrain from performing unnecessary writes
diff: @@ -89,6 +89,7 @@ fn update_auction_state(
  gen_snapshot_from_old(old_snapshot.clone(), accounts)
  };
  + if new_snapshot != old_snapshot {
  // Save the write to the snapshot key.
  state.write_entry(
  validators_key,
  @@ -106,6 +107,7 @@ fn update_auction_state(
  state.remove_withdraws(&validators_diff.removed);
  }
  +}
  /// Generates a new `SeigniorageRecipientsSnapshot` based on:
  /// - The starting era ID (the era ID at which the snapshot should start).
  @@ -233,6 +235,15 @@ fn find_large_bids(
  /// Updates the amount of an existing bid for the given public key, or creates a new one.
  fn create_or_update_bid(state: &mut StateTracker, pub_key: &PublicKey, stake: U512) {
  + if state
  + .get_bids()
  + .get(pub_key)
  + .and_then(|bid| bid.total_staked_amount().ok())
  + == Some(stake)
  + {
  + // already staked the amount we need, nothing to do
  + return;
  + }
  let new_bid = if let Some(bid) = state.get_bids().get(pub_key) {
  Bid::unlocked(
  pub_key.clone(),
  