File tree Expand file tree Collapse file tree
crates/shared/src/price_estimation Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ impl SanitizedPriceEstimator {
4444 }
4545
4646 /// Checks if the traded tokens are supported by the protocol.
47- async fn handle_deny_listed_tokens ( & self , query : & Query ) -> Result < ( ) , PriceEstimationError > {
47+ fn handle_deny_listed_tokens ( & self , query : & Query ) -> Result < ( ) , PriceEstimationError > {
4848 for token in [ query. sell_token , query. buy_token ] {
4949 if self . deny_listed_tokens . contains ( & token) {
5050 return Err ( PriceEstimationError :: UnsupportedToken {
@@ -64,7 +64,7 @@ impl PriceEstimating for SanitizedPriceEstimator {
6464 query : Arc < Query > ,
6565 ) -> futures:: future:: BoxFuture < ' _ , super :: PriceEstimateResult > {
6666 async move {
67- self . handle_deny_listed_tokens ( & query) . await ?;
67+ self . handle_deny_listed_tokens ( & query) ?;
6868 // When estimating native price the sell token is substituted by
6969 // native one. In that case, the output amount of the price
7070 // estimation can be trivially computed as the same amount as input
You can’t perform that action at this time.
0 commit comments