Skip to content

Commit 2540da7

Browse files
committed
Merge branch 'main' into entropy_error23
2 parents fa9289a + a58e20a commit 2540da7

File tree

22 files changed

+2360
-1196
lines changed

22 files changed

+2360
-1196
lines changed

governance/pyth_staking_sdk/src/utils/vesting.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ export const getPeriodicUnlockSchedule = (options: {
5757
if (currentTimeStamp < unlockTimeStamp || includePastPeriods) {
5858
unlockSchedule.push({
5959
date: new Date(unlockTimeStamp * 1000),
60-
amount: balance / numPeriods,
60+
amount:
61+
((numPeriods - BigInt(i)) * balance) / numPeriods -
62+
((numPeriods - BigInt(i + 1)) * balance) / numPeriods,
6163
});
6264
}
6365
}

governance/xc_admin/packages/xc_admin_common/src/index.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,27 @@ export * from "./chains";
1414
export * from "./deterministic_stake_accounts";
1515
export * from "./price_store";
1616
export { default as lazerIdl } from "./multisig_transaction/idl/lazer.json";
17+
18+
export {
19+
ProgramType,
20+
PROGRAM_TYPE_NAMES,
21+
PriceRawConfig,
22+
ProductRawConfig,
23+
MappingRawConfig,
24+
RawConfig,
25+
DownloadablePriceAccount,
26+
DownloadableProduct,
27+
DownloadableConfig,
28+
ProgramConfig,
29+
ProgramInstructionAccounts,
30+
InstructionAccountsTypeMap,
31+
ValidationResult,
32+
} from "./programs/types";
33+
export {
34+
getProgramAddress,
35+
isAvailableOnCluster,
36+
getConfig,
37+
getDownloadableConfig,
38+
validateUploadedConfig,
39+
generateInstructions,
40+
} from "./programs/program_registry";

0 commit comments

Comments
 (0)