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 4502c6d commit 3842c94Copy full SHA for 3842c94
governance/xc_admin/packages/xc_admin_frontend/components/tabs/General.tsx
@@ -391,6 +391,23 @@ const General = () => {
391
.instruction()
392
)
393
}
394
+
395
+ if (
396
+ JSON.stringify(prev.priceAccounts[0].expo) !==
397
+ JSON.stringify(newChanges.priceAccounts[0].expo)
398
+ ) {
399
+ // create update exponent instruction
400
+ instructions.push(
401
+ await pythProgramClient.methods
402
+ .initPrice(newChanges.priceAccounts[0].expo, 1)
403
+ .accounts({
404
+ fundingAccount,
405
+ priceAccount: new PublicKey(prev.priceAccounts[0].address),
406
+ })
407
+ .instruction()
408
+ )
409
+ }
410
411
// check if minPub has changed
412
if (
413
prev.priceAccounts[0].minPub !== newChanges.priceAccounts[0].minPub
0 commit comments