We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5799959 commit d174e7bCopy full SHA for d174e7b
pages/price-feeds/use-real-time-data/sui.mdx
@@ -106,9 +106,11 @@ public fun get_sui_price(
106
assert!(price_id == testnet_sui_price_id, E_INVALID_ID);
107
108
// Extract the price, decimal, and timestamp from the price struct and use them.
109
- let decimal_i64 = price::get_expo(&price_struct);
+ let _decimal_i64 = price::get_expo(&price_struct);
110
let price_i64 = price::get_price(&price_struct);
111
- let timestamp_sec = price::get_timestamp(&price_struct);
+ let _timestamp_sec = price::get_timestamp(&price_struct);
112
+
113
+ price_i64
114
}
115
```
116
0 commit comments