Revert pythnet (#1271)

This commit is contained in:
guibescos 2024-02-02 14:43:15 +00:00 committed by GitHub
parent 3555b9a976
commit 1d0d27ab3d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 9 deletions

View File

@ -37,11 +37,11 @@ export function getMaximumNumberOfPublishers(cluster: PythCluster) {
case "testnet":
return 32;
case "pythnet":
return 64;
return 32;
case "pythtest-conformance":
return 64;
return 32;
case "pythtest-crosschain":
return 64;
return 32;
case "localnet":
return 32;
}

View File

@ -126,12 +126,16 @@ const General = ({ proposerServerUrl }: { proposerServerUrl: string }) => {
metadata: {
...product.metadata,
},
priceAccounts: product.priceAccounts.map((p) => ({
address: p.address.toBase58(),
publishers: p.publishers.map((p) => p.toBase58()),
expo: p.expo,
minPub: p.minPub,
})),
priceAccounts: product.priceAccounts.map((p) => {
return {
address: p.address.toBase58(),
publishers: p.publishers
.map((p) => p.toBase58())
.slice(0, getMaximumNumberOfPublishers(cluster)),
expo: p.expo,
minPub: p.minPub,
}
}),
}
// these fields are immutable and should not be updated
delete symbolToData[product.metadata.symbol].metadata.symbol