diff --git a/src/Miningcore/Api/Controllers/PoolApiController.cs b/src/Miningcore/Api/Controllers/PoolApiController.cs index 7230b3e62..d84de8f7e 100644 --- a/src/Miningcore/Api/Controllers/PoolApiController.cs +++ b/src/Miningcore/Api/Controllers/PoolApiController.cs @@ -73,7 +73,7 @@ public async Task Get(CancellationToken ct, [FromQuery] uint t if(lastBlockTime.HasValue) { - DateTime startTime = lastBlockTime.Value; + var startTime = lastBlockTime.Value; var poolEffort = await cf.Run(con => shareRepo.GetEffortBetweenCreatedAsync(con, config.Id, pool.ShareMultiplier, startTime, clock.Now)); if(poolEffort.HasValue) result.PoolEffort = poolEffort.Value; @@ -142,7 +142,7 @@ public async Task GetPoolInfoAsync(string poolId, CancellationT if(lastBlockTime.HasValue) { - DateTime startTime = lastBlockTime.Value; + var startTime = lastBlockTime.Value; var poolEffort = await cf.Run(con => shareRepo.GetEffortBetweenCreatedAsync(con, pool.Id, poolInstance.ShareMultiplier, startTime, clock.Now)); if(poolEffort.HasValue) response.Pool.PoolEffort = poolEffort.Value;