File tree Expand file tree Collapse file tree 2 files changed +22
-17
lines changed
governance/xc_admin/packages/xc_admin_frontend/components/tabs Expand file tree Collapse file tree 2 files changed +22
-17
lines changed Original file line number Diff line number Diff line change @@ -508,22 +508,6 @@ const General = ({ proposerServerUrl }: { proposerServerUrl: string }) => {
508
508
)
509
509
}
510
510
511
- // check if minPub has changed
512
- if (
513
- prev . priceAccounts [ 0 ] . minPub !== newChanges . priceAccounts [ 0 ] . minPub
514
- ) {
515
- // create update product account instruction
516
- instructions . push (
517
- await pythProgramClient . methods
518
- . setMinPub ( newChanges . priceAccounts [ 0 ] . minPub , [ 0 , 0 , 0 ] )
519
- . accounts ( {
520
- priceAccount : new PublicKey ( prev . priceAccounts [ 0 ] . address ) ,
521
- fundingAccount,
522
- } )
523
- . instruction ( )
524
- )
525
- }
526
-
527
511
// check if maxLatency has changed
528
512
if (
529
513
prev . priceAccounts [ 0 ] . maxLatency !==
@@ -584,6 +568,22 @@ const General = ({ proposerServerUrl }: { proposerServerUrl: string }) => {
584
568
)
585
569
await initPublisherInPriceStore ( publisherPubKey )
586
570
}
571
+
572
+ // check if minPub has changed
573
+ if (
574
+ prev . priceAccounts [ 0 ] . minPub !== newChanges . priceAccounts [ 0 ] . minPub
575
+ ) {
576
+ // create update product account instruction
577
+ instructions . push (
578
+ await pythProgramClient . methods
579
+ . setMinPub ( newChanges . priceAccounts [ 0 ] . minPub , [ 0 , 0 , 0 ] )
580
+ . accounts ( {
581
+ priceAccount : new PublicKey ( prev . priceAccounts [ 0 ] . address ) ,
582
+ fundingAccount,
583
+ } )
584
+ . instruction ( )
585
+ )
586
+ }
587
587
}
588
588
}
589
589
Original file line number Diff line number Diff line change @@ -56,14 +56,19 @@ export const ProposalRow = ({
56
56
// set proposal time
57
57
if ( ! time ) {
58
58
connection
59
- . getConfirmedSignaturesForAddress2 ( proposal . publicKey )
59
+ . getSignaturesForAddress ( proposal . publicKey )
60
60
. then ( ( txs ) => {
61
61
if ( isCancelled ) return
62
62
const firstBlockTime = txs ?. [ txs . length - 1 ] ?. blockTime
63
63
if ( firstBlockTime ) {
64
64
setTime ( new Date ( firstBlockTime * 1000 ) )
65
65
}
66
66
} )
67
+ . catch ( ( err ) => {
68
+ console . error (
69
+ `Error fetching proposal time for ${ proposal . publicKey . toBase58 ( ) } : ${ err } `
70
+ )
71
+ } )
67
72
}
68
73
69
74
// calculate instructions summary
You can’t perform that action at this time.
0 commit comments