@@ -11,7 +11,6 @@ import {
1111 getMultisigCluster ,
1212 isRemoteCluster ,
1313 mapKey ,
14- OPS_KEY ,
1514 proposeInstructions ,
1615 WORMHOLE_ADDRESS ,
1716} from 'xc_admin_common'
@@ -414,29 +413,6 @@ const General = () => {
414413 }
415414 }
416415
417- const AddressChangesRow = ( { changes } : { changes : any } ) => {
418- const key = 'address'
419- return (
420- < >
421- { changes . prev !== changes . new && (
422- < tr key = { key } >
423- < td className = "base16 py-4 pl-6 pr-2 lg:pl-6" >
424- { key
425- . split ( '_' )
426- . map ( ( word ) => capitalizeFirstLetter ( word ) )
427- . join ( ' ' ) }
428- </ td >
429- < td className = "base16 py-4 pl-1 pr-2 lg:pl-6" >
430- < s > { changes . prev } </ s >
431- < br />
432- { changes . new }
433- </ td >
434- </ tr >
435- ) }
436- </ >
437- )
438- }
439-
440416 const MetadataChangesRows = ( { changes } : { changes : any } ) => {
441417 const addNewPriceFeed =
442418 changes . prev === undefined && changes . new !== undefined
@@ -571,20 +547,14 @@ const General = () => {
571547 }
572548
573549 const NewPriceFeedsRows = ( { priceFeedData } : { priceFeedData : any } ) => {
574- const key =
575- priceFeedData . metadata . asset_type +
576- '.' +
577- priceFeedData . metadata . base +
578- '/' +
579- priceFeedData . metadata . quote_currency
580550 return (
581551 < >
582552 < MetadataChangesRows
583- key = { key + 'metadata' }
553+ key = { priceFeedData . key + 'metadata' }
584554 changes = { { new : priceFeedData . metadata } }
585555 />
586556 < PriceAccountsChangesRows
587- key = { key + 'priceAccounts' }
557+ key = { priceFeedData . key + 'priceAccounts' }
588558 changes = { { new : priceFeedData . priceAccounts } }
589559 />
590560 </ >
@@ -621,12 +591,7 @@ const General = () => {
621591 < NewPriceFeedsRows key = { key } priceFeedData = { newChanges } />
622592 ) : (
623593 diff . map ( ( k ) =>
624- k === 'address' ? (
625- < AddressChangesRow
626- key = { k }
627- changes = { { prev : prev [ k ] , new : newChanges [ k ] } }
628- />
629- ) : k === 'metadata' ? (
594+ k === 'metadata' ? (
630595 < MetadataChangesRows
631596 key = { k }
632597 changes = { { prev : prev [ k ] , new : newChanges [ k ] } }
0 commit comments