diff --git a/governance/pyth_staking_sdk/src/utils/vesting.ts b/governance/pyth_staking_sdk/src/utils/vesting.ts index f9d1ffa317..3ccfec7564 100644 --- a/governance/pyth_staking_sdk/src/utils/vesting.ts +++ b/governance/pyth_staking_sdk/src/utils/vesting.ts @@ -57,7 +57,9 @@ export const getPeriodicUnlockSchedule = (options: { if (currentTimeStamp < unlockTimeStamp || includePastPeriods) { unlockSchedule.push({ date: new Date(unlockTimeStamp * 1000), - amount: balance / numPeriods, + amount: + ((numPeriods - BigInt(i)) * balance) / numPeriods - + ((numPeriods - BigInt(i + 1)) * balance) / numPeriods, }); } }