Skip to content

Commit 5944f9f

Browse files
Update solana.mdx + linter issue fix (#758)
* resolve conflicts and add feed in json file * fix for solana --------- Co-authored-by: nidhi-singh02 <nidhi2894@gmail.com>
1 parent cb2dd63 commit 5944f9f

File tree

2 files changed

+12
-16
lines changed

2 files changed

+12
-16
lines changed

components/SponsoredFeedsTableWithData.tsx

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -193,22 +193,10 @@ export const SponsoredFeedsTable = ({
193193
<code className="text-xs font-mono text-gray-600 dark:text-gray-400 break-all leading-relaxed">
194194
{feed.account_address}
195195
</code>
196-
<button
197-
onClick={() =>
198-
feed.account_address &&
199-
copyToClipboard(feed.account_address)
200-
}
201-
className="p-1 hover:bg-gray-200 dark:hover:bg-gray-600 rounded flex-shrink-0 mt-0.5"
202-
title="Copy Account Address"
203-
>
204-
{copiedText === feed.account_address ? (
205-
<span className="text-green-500 text-xs font-bold">
206-
207-
</span>
208-
) : (
209-
<CopyIcon className="w-3 h-3 text-gray-400" />
210-
)}
211-
</button>
196+
<CopyButton
197+
value={feed.account_address}
198+
className="ml-2"
199+
/>
212200
</div>
213201
) : null}
214202
</td>

pages/price-feeds/sponsored-feeds/data/svm/solana_mainnet.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,5 +382,13 @@
382382
"time_difference": 60,
383383
"price_deviation": 0.5,
384384
"confidence_ratio": 100
385+
},
386+
{
387+
"alias": "WTIU5/USD",
388+
"account_address": "Y3XuRL2ZrRnYSxY1vZWpG7k5SWPhbxcsoBZVodS4gUp",
389+
"id": "ecd49a99bb0a0f772de2a4b5ce93fdb5b7b83ae7dd7d99c68dadf9cc40ee8fbe",
390+
"time_difference": 60,
391+
"price_deviation": 0.5,
392+
"confidence_ratio": 100
385393
}
386394
]

0 commit comments

Comments
 (0)