@@ -40,7 +40,7 @@ use sp_runtime::{
4040 ApplyExtrinsicResult ,
4141} ;
4242use sp_version:: RuntimeVersion ;
43- use pallet_hybrid_orderbook:: { CritbitTree , PoolQuery , Tick } ;
43+ use pallet_hybrid_orderbook:: { CritbitTree , PoolQuery , PoolMetadata , Tick } ;
4444
4545// Local module imports
4646use super :: {
@@ -213,21 +213,13 @@ impl_runtime_apis! {
213213 }
214214
215215 impl pallet_hybrid_orderbook:: HybridOrderbookApi <Block , Balance , NativeOrWithId <u32 >, CritbitTree <Balance , Tick <Balance , AccountId , BlockNumber >>> for Runtime {
216- fn quote_price_exact_tokens_for_tokens( asset1: NativeOrWithId <u32 >, asset2: NativeOrWithId <u32 >, amount: Balance , include_fee: bool ) -> Option <Balance > {
217- HybridOrderbook :: quote_price_exact_tokens_for_tokens( asset1, asset2, amount, include_fee)
218- }
219-
220- fn quote_price_tokens_for_exact_tokens( asset1: NativeOrWithId <u32 >, asset2: NativeOrWithId <u32 >, amount: Balance , include_fee: bool ) -> Option <Balance > {
221- HybridOrderbook :: quote_price_tokens_for_exact_tokens( asset1, asset2, amount, include_fee)
222- }
223-
224- fn get_reserves( _asset1: NativeOrWithId <u32 >, _asset2: NativeOrWithId <u32 >) -> Option <( Balance , Balance ) > {
225- None
226- }
227-
228216 fn get_pool_query( base: NativeOrWithId <u32 >, quote: NativeOrWithId <u32 >) -> Option <PoolQuery <CritbitTree <Balance , Tick <Balance , AccountId , BlockNumber >>, Balance >> {
229217 HybridOrderbook :: get_pool_query( & base, & quote) . ok( )
230218 }
219+
220+ fn get_pool_metadata( base: NativeOrWithId <u32 >, quote: NativeOrWithId <u32 >) -> Option <PoolMetadata <Balance >> {
221+ HybridOrderbook :: get_pool_metadata( & base, & quote) . ok( )
222+ }
231223 }
232224
233225 impl cumulus_primitives_core:: CollectCollationInfo <Block > for Runtime {
0 commit comments