We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf61e90 commit a58e20aCopy full SHA for a58e20a
governance/pyth_staking_sdk/src/utils/vesting.ts
@@ -57,7 +57,9 @@ export const getPeriodicUnlockSchedule = (options: {
57
if (currentTimeStamp < unlockTimeStamp || includePastPeriods) {
58
unlockSchedule.push({
59
date: new Date(unlockTimeStamp * 1000),
60
- amount: balance / numPeriods,
+ amount:
61
+ ((numPeriods - BigInt(i)) * balance) / numPeriods -
62
+ ((numPeriods - BigInt(i + 1)) * balance) / numPeriods,
63
});
64
}
65
0 commit comments