Skip to content

Commit d125ed4

Browse files
committed
doc: reduce duplication
1 parent d92c3da commit d125ed4

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

pages/price-feeds/use-real-time-data/solana.mdx

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -361,20 +361,18 @@ await pythSolanaReceiver.provider.sendAll(
361361

362362
For a complete example of posting TWAP updates to Solana, see the [post_twap_update.ts example script](https://github.com/pyth-network/pyth-crosschain/blob/main/target_chains/solana/sdk/js/pyth_solana_receiver/examples/post_twap_update.ts) in the Pyth crosschain repository.
363363

364-
### Example Application
365-
366-
See an end-to-end example of using Price Update Accounts for spot prices or TWAP Accounts for time-averaged prices in the [SendUSD Solana Demo App](https://github.com/pyth-network/pyth-examples/tree/main/price_feeds/solana/send_usd). It demonstrates how to fetch data from Hermes, post it to Solana, and consume it from a smart contract. The example includes:
364+
## Additional Resources
367365

368-
- A React frontend for interacting with the contract
369-
- A Solana program that consumes TWAP updates
370-
- Complete transaction building for posting and consuming TWAP data
366+
You may find these additional resources helpful for developing your Solana application.
371367

372-
The example allows users to send a USD-denominated amount of SOL using either spot prices or TWAP prices, demonstrating how TWAP can be used to reduce the impact of price volatility.
368+
### Example Application
373369

374-
## Additional Resources
370+
See an end-to-end example of using Pyth Network prices in the [SendUSD Solana Demo App](https://github.com/pyth-network/pyth-examples/tree/main/price_feeds/solana/send_usd). The app allows users to send a USD-denominated amount of SOL using either spot prices or TWAP prices.
371+
It demonstrates how to fetch price data from Hermes from a frontend, post it to the Solana blockchain, and consume it from a smart contract. The example includes:
375372

376-
You may find these additional resources helpful for developing your Solana application.
373+
- A React frontend for interacting with the contract
374+
- Solana programs that consumes spot price updates (Price Update Accounts) and time-averaged price updates (TWAP Accounts)
375+
- Complete transaction building for posting and consuming price data
377376

378-
### Example application
377+
The example allows users to send a USD-denominated amount of SOL using either spot prices or TWAP prices.
379378

380-
The [Solana example application](https://github.com/pyth-network/pyth-examples/tree/main/price_feeds/solana/send_usd) is an end-to-end application that uses Pyth Network prices on the Solana blockchain and in a frontend.

0 commit comments

Comments
 (0)