Skip to content

Commit

Permalink
bug fix: displaying wrong cycle
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmcl committed Jun 15, 2024
1 parent fc34ad4 commit b329721
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/KukaiCoreSwift/Clients/TzKTClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}

Expand Down

0 comments on commit b329721

Please sign in to comment.