This repository was archived by the owner on Apr 3, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ module example::your_module {
65
65
66
66
public fun do_something(user: &signer, pyth_update_data: vector<vector<u8>>) {
67
67
68
- // First update the Pyth price feeds. The user pays the fee for the update.
68
+ // First update the Pyth price feeds. The user pays the fee for the update.
69
69
let coins = coin::withdraw(user, pyth::get_update_fee());
70
70
pyth::update_price_feeds(pyth_update_data, coins);
71
71
@@ -104,7 +104,9 @@ This method is useful if you want to show continuously updating real-time prices
104
104
// Subscribe to the price feeds given by `priceId`. The callback will be invoked every time the requested feed
105
105
// gets a price update.
106
106
connection .subscribePriceFeedUpdates (priceIds , (priceFeed ) => {
107
- console .log (` Received update for ${priceFeed .id }: ${priceFeed .getPriceNoOlderThan (60 )} ` );
107
+ console .log (
108
+ ` Received update for ${priceFeed .id }: ${priceFeed .getPriceNoOlderThan (60 )} `
109
+ );
108
110
});
109
111
110
112
// When using the subscription, make sure to close the websocket upon termination to finish the process gracefully.
Original file line number Diff line number Diff line change @@ -109,7 +109,9 @@ This method is useful if you want to show continuously updating real-time prices
109
109
// Subscribe to the price feeds given by `priceId`. The callback will be invoked every time the requested feed
110
110
// gets a price update.
111
111
connection .subscribePriceFeedUpdates (priceIds , (priceFeed ) => {
112
- console .log (` Received update for ${priceFeed .id }: ${priceFeed .getPriceNoOlderThan (60 )} ` );
112
+ console .log (
113
+ ` Received update for ${priceFeed .id }: ${priceFeed .getPriceNoOlderThan (60 )} `
114
+ );
113
115
});
114
116
115
117
// When using the subscription, make sure to close the websocket upon termination to finish the process gracefully.
You can’t perform that action at this time.
0 commit comments