Skip to content

Commit

Permalink
fix(staking): fix claimable rewards endianness (#1901)
Browse files Browse the repository at this point in the history
  • Loading branch information
keyvankhademi authored Sep 12, 2024
1 parent 030523d commit 25bf152
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion governance/pyth_staking_sdk/src/pyth-staking-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ export class PythStakingClient {
if (val === undefined) {
continue;
}
const buffer = Buffer.from(val, "base64");
const buffer = Buffer.from(val, "base64").reverse();
totalRewards += BigInt("0x" + buffer.toString("hex"));
}

Expand Down

0 comments on commit 25bf152

Please sign in to comment.