Skip to content

Commit f5d11c2

Browse files
authored
Rename init price (#755)
* Rename init price * Set exponent
1 parent 1371f18 commit f5d11c2

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ multisigCommand(
253253
getPythProgramKeyForCluster(cluster),
254254
provider
255255
)
256-
.methods.initPrice(exponent, 1)
256+
.methods.setExponent(exponent, 1)
257257
.accounts({ fundingAccount: vaultAuthority, priceAccount })
258258
.instruction();
259259
await proposeInstructions(squad, vault, [proposalInstruction], false);

governance/xc_admin/packages/xc_admin_common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"dependencies": {
2323
"@certusone/wormhole-sdk": "^0.9.8",
24-
"@pythnetwork/client": "^2.16.0",
24+
"@pythnetwork/client": "^2.17.0",
2525
"@solana/buffer-layout": "^4.0.1",
2626
"@solana/web3.js": "^1.73.0",
2727
"@sqds/mesh": "^1.0.6",

governance/xc_admin/packages/xc_admin_frontend/components/tabs/General.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ const General = () => {
399399
// create update exponent instruction
400400
instructions.push(
401401
await pythProgramClient.methods
402-
.initPrice(newChanges.priceAccounts[0].expo, 1)
402+
.setExponent(newChanges.priceAccounts[0].expo, 1)
403403
.accounts({
404404
fundingAccount,
405405
priceAccount: new PublicKey(prev.priceAccounts[0].address),

package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)