Skip to content

Commit a0dce4d

Browse files
committed
add decimals field for PoolQuery
1 parent bf3ba76 commit a0dce4d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pallets/hybrid-orderbook/src/types.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,12 @@ pub struct PoolQuery<Orderbook, Unit> {
284284
bids: Orderbook,
285285
asks: Orderbook,
286286
taker_fee_rate: Permill,
287-
pool_decimals: u8,
288287
base_reserve: Unit,
289288
quote_reserve: Unit,
290289
pool_price: Unit,
290+
pool_decimals: u8,
291+
base_decimals: u8,
292+
quote_decimals: u8,
291293
}
292294

293295
/// Detail of the pool
@@ -349,10 +351,12 @@ impl<T: Config> Pool<T> {
349351
bids: self.bids,
350352
asks: self.asks,
351353
taker_fee_rate: self.taker_fee_rate,
352-
pool_decimals: self.pool_decimals,
353354
base_reserve,
354355
quote_reserve,
355356
pool_price,
357+
pool_decimals: self.pool_decimals,
358+
base_decimals: self.base_decimals,
359+
quote_decimals: self.quote_decimals,
356360
}
357361
}
358362

0 commit comments

Comments
 (0)