Skip to content

Commit 1fed853

Browse files
committed
refactor: address comments
1 parent 6f0f5ff commit 1fed853

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

governance/xc_admin/packages/xc_admin_common/src/programs/core/core_functions.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -121,14 +121,6 @@ export function getProgramAddress(cluster: PythCluster): PublicKey {
121121
return getPythProgramKeyForCluster(cluster);
122122
}
123123

124-
/**
125-
* Check if the Pyth Core program is available on the specified cluster
126-
*/
127-
export function isAvailableOnCluster(cluster: PythCluster): boolean {
128-
// Pyth Core is available on all clusters
129-
return true;
130-
}
131-
132124
/**
133125
* Parse raw on-chain accounts into the Pyth Core configuration format
134126
*/

governance/xc_admin/packages/xc_admin_common/src/programs/program_registry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const isAvailableOnCluster: Record<
3737
ProgramType,
3838
(cluster: PythCluster) => boolean
3939
> = {
40-
[ProgramType.PYTH_CORE]: pythCore.isAvailableOnCluster,
40+
[ProgramType.PYTH_CORE]: () => true, // Pyth Core is available on all clusters - using direct value instead of a trivial function
4141
[ProgramType.PYTH_LAZER]: pythLazer.isAvailableOnCluster,
4242
};
4343

0 commit comments

Comments
 (0)