@@ -30,8 +30,7 @@ pub struct SignedPublisherPrice {
30
30
#[ schema( example = "0x534f4c55534400000000000000000000505241474d4100" ) ]
31
31
pub oracle_asset_id : String ,
32
32
33
- /// Price in StarkEx decimal format (not hex)
34
- /// The price is scaled by 10^18
33
+ /// Price in `StarkEx` 18 decimals
35
34
#[ schema( example = "128065038090000000000" ) ]
36
35
pub oracle_price : String ,
37
36
@@ -52,8 +51,7 @@ pub struct AssetOraclePrice {
52
51
#[ schema( example = "0x534f4c2d5553442d38000000000000" ) ]
53
52
pub global_asset_id : String ,
54
53
55
- /// Median price in `StarkEx` decimal format
56
- /// The price is scaled by 10^18
54
+ /// Median price in `StarkEx` 18 decimals format
57
55
#[ schema( example = "128065038090000007168" ) ]
58
56
pub median_price : String ,
59
57
@@ -67,7 +65,7 @@ pub struct AssetOraclePrice {
67
65
pub signed_prices : Vec < SignedPublisherPrice > ,
68
66
}
69
67
70
- /// WebSocket response message for StarkEx price updates
68
+ /// WebSocket response message for ` StarkEx` price updates
71
69
#[ derive( Debug , Default , Serialize , Deserialize , ToResponse , ToSchema ) ]
72
70
#[ schema( example = json!( {
73
71
"oracle_prices" : [ {
0 commit comments