Skip to content

Commit

Permalink
go
Browse files Browse the repository at this point in the history
  • Loading branch information
guibescos committed Oct 9, 2024
1 parent 9389cd1 commit 0aa161d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions governance/pyth_staking_sdk/src/pyth-staking-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -784,10 +784,11 @@ export class PythStakingClient {

let lowestEpoch: bigint | undefined;
for (const record of delegationRecords) {
if (record !== null) {
if (lowestEpoch === undefined || record.lastEpoch < lowestEpoch) {
lowestEpoch = record.lastEpoch;
}
if (
record !== null &&
(lowestEpoch === undefined || record.lastEpoch < lowestEpoch)
) {
lowestEpoch = record.lastEpoch;
}
}

Expand Down

0 comments on commit 0aa161d

Please sign in to comment.