From b3297211ac399e2a4ef6238f571e8146fb66ac7c Mon Sep 17 00:00:00 2001 From: Simon McLoughlin Date: Sat, 15 Jun 2024 11:49:57 +0100 Subject: [PATCH] bug fix: displaying wrong cycle --- Sources/KukaiCoreSwift/Clients/TzKTClient.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/KukaiCoreSwift/Clients/TzKTClient.swift b/Sources/KukaiCoreSwift/Clients/TzKTClient.swift index eda08f5..874bd04 100644 --- a/Sources/KukaiCoreSwift/Clients/TzKTClient.swift +++ b/Sources/KukaiCoreSwift/Clients/TzKTClient.swift @@ -392,7 +392,7 @@ public class TzKTClient { return nil } - let cycleItShouldBeRecieved = cycles[(rewards.count-1) + bakerConfig.payoutDelay] + let cycleItShouldBeRecieved = cycles[(rewards.count-1)] return rewardDetail(fromConfig: bakerConfig, rewards: rewards, cycles: cycles, selectedIndex: rewards.count-1, dateForDisplay: cycleItShouldBeRecieved.endDate ?? Date()) }