@@ -49,6 +49,7 @@ pub struct AggregatedPriceFeedData {
4949 pub best_bid_price : Option < Price > ,
5050 pub best_ask_price : Option < Price > ,
5151 pub publisher_count : u16 ,
52+ pub exponent : i16 ,
5253 pub confidence : Option < Price > ,
5354 pub funding_rate : Option < Rate > ,
5455 pub funding_timestamp : Option < TimestampUs > ,
@@ -63,15 +64,15 @@ impl PayloadData {
6364 pub fn new (
6465 timestamp_us : TimestampUs ,
6566 channel_id : ChannelId ,
66- feeds : & [ ( PriceFeedId , i16 , AggregatedPriceFeedData ) ] ,
67+ feeds : & [ ( PriceFeedId , AggregatedPriceFeedData ) ] ,
6768 requested_properties : & [ PriceFeedProperty ] ,
6869 ) -> Self {
6970 Self {
7071 timestamp_us,
7172 channel_id,
7273 feeds : feeds
7374 . iter ( )
74- . map ( |( feed_id, exponent , feed) | PayloadFeedData {
75+ . map ( |( feed_id, feed) | PayloadFeedData {
7576 feed_id : * feed_id,
7677 properties : requested_properties
7778 . iter ( )
@@ -87,7 +88,7 @@ impl PayloadData {
8788 PayloadPropertyValue :: PublisherCount ( feed. publisher_count )
8889 }
8990 PriceFeedProperty :: Exponent => {
90- PayloadPropertyValue :: Exponent ( * exponent)
91+ PayloadPropertyValue :: Exponent ( feed . exponent )
9192 }
9293 PriceFeedProperty :: Confidence => {
9394 PayloadPropertyValue :: Confidence ( feed. confidence )
0 commit comments