Skip to content

Commit 6f49dfb

Browse files
authored
Display symbol for new price feeds (#616)
1 parent 562a5cd commit 6f49dfb

File tree

1 file changed

+5
-1
lines changed
  • governance/xc_admin/packages/xc_admin_frontend/components/tabs

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,10 @@ const General = () => {
175175
// if symbol is not in existing symbols, create new entry
176176
changes[symbol] = { new: {} }
177177
changes[symbol].new = { ...fileDataParsed[symbol] }
178+
changes[symbol].new.metadata = {
179+
...changes[symbol].new.metadata,
180+
symbol,
181+
}
178182
// these fields are generated deterministically and should not be updated
179183
delete changes[symbol].new.address
180184
delete changes[symbol].new.priceAccounts[0].address
@@ -276,7 +280,7 @@ const General = () => {
276280
// create add product account instruction
277281
instructions.push(
278282
await pythProgramClient.methods
279-
.addProduct({ ...newChanges.metadata, symbol: symbol })
283+
.addProduct({ ...newChanges.metadata })
280284
.accounts({
281285
fundingAccount,
282286
tailMappingAccount: rawConfig.mappingAccounts[0].address,

0 commit comments

Comments
 (0)