You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pyth-sdk-solana/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ println!("price: ({} +- {}) x 10^{}", current_price.price, current_price.conf, c
48
48
The `PriceFeed` object returned by `load_price_feed_from_account_info` contains all currently-available pricing information about the product.
49
49
This struct also has some useful functions for manipulating and combining prices; see the [common SDK documentation](../pyth-sdk) for more details.
50
50
51
-
`get_price_no_older_than` takes in an `age` in seconds. If the current aggregate is older than `current_timestamp - age`, `get_price_no_older_than` will return `None`.
51
+
The function `get_price_no_older_than` takes in an `age` in seconds. If the current aggregate is older than `current_timestamp - age`, `get_price_no_older_than` will return `None`.
52
52
53
53
Note that your application should also validate the address of the passed-in price account before using it.
54
54
Otherwise, an attacker could pass in a different account and set the price to an arbitrary value.
0 commit comments