Rename var to feeRateStat
MODIFY
WalletWasabi/WabiSabi/Backend/Statistics/CoinJoinFeeRateStatStore.cs
WalletWasabi/WabiSabi/Backend/Statistics/CoinJoinFeeRateStatStore.cs
@@ -48,9 +48,9 @@ public class CoinJoinFeeRateStatStore : PeriodicRunner
{
var feeRate = (await Rpc.EstimateSmartFeeAsync((int)Config.ConfirmationTarget, EstimateSmartFeeMode.Conservative, simulateIfRegTest: true, cancel).ConfigureAwait(false)).FeeRate;
- CoinJoinFeeRateStat record = new(DateTimeOffset.UtcNow, Config.ConfirmationTarget, feeRate);
- Add(record);
- NewStat?.Invoke(this, record);
+ CoinJoinFeeRateStat feeRateStat = new(DateTimeOffset.UtcNow, Config.ConfirmationTarget, feeRate);
+ Add(feeRateStat);
+ NewStat?.Invoke(this, feeRateStat);
}
public void Add(CoinJoinFeeRateStat feeRateStat)

MODIFY
WalletWasabi/WabiSabi/WabiSabiCoordinator.cs
WalletWasabi/WabiSabi/WabiSabiCoordinator.cs
@@ -55,14 +55,14 @@ public class WabiSabiCoordinator : BackgroundService
File.AppendAllLines(Parameters.CoinJoinIdStoreFilePath, new[] { e.GetHash().ToString() });
}
- private void FeeRateStatStore_NewStat(object? sender, CoinJoinFeeRateStat record)
+ private void FeeRateStatStore_NewStat(object? sender, CoinJoinFeeRateStat feeRateStat)
{
if (!File.Exists(Parameters.CoinJoinFeeRateStatStoreFilePath))
{
IoHelpers.EnsureContainingDirectoryExists(Parameters.CoinJoinFeeRateStatStoreFilePath);
}
- File.AppendAllLines(Parameters.CoinJoinFeeRateStatStoreFilePath, new[] { record.ToLine() });
+ File.AppendAllLines(Parameters.CoinJoinFeeRateStatStoreFilePath, new[] { feeRateStat.ToLine() });
}
protected override async Task ExecuteAsync(CancellationToken stoppingToken)

Rename var to feeRateStat