Skip to content

Commit

Permalink
fixing client updates in API
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmitry-lahoda committed Mar 26, 2024
1 parent 7443516 commit d4d1830
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 1 addition & 2 deletions mantis/node/src/bin/mantis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ use mantis_node::{
cosmwasm::{smart_query, to_exec_signed, to_exec_signed_with_fund},
*,
},
solve::randomize_order,
},
prelude::*,
solver::{orderbook::OrderList, solution::Solution},
Expand Down Expand Up @@ -149,7 +148,7 @@ async fn solve(
let all_orders = get_all_orders(order_contract, cosmos_query_client, tip).await;
if !all_orders.is_empty() {
let cows_per_pair = mantis_node::mantis::solve::do_cows(all_orders);
let cows_cvm = mantis_node::mantis::solve::route(cows_per_pair, all_orders);
let cows_cvm = route(cows_per_pair, all_orders);
let cvm_rest = mantis_node::mantis::cosmos::client::get_cvm_routing_data(rpc).await;
for (cows, optimal_price) in cows_per_pair {
send_solution(
Expand Down
7 changes: 6 additions & 1 deletion mantis/node/src/mantis/indexer.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
async fn get_all_orders(
use cw_mantis_order::OrderItem;

use super::cosmos::client::{CosmWasmReadClient, Tip};


pub async fn get_all_orders(
order_contract: &String,
cosmos_query_client: &mut CosmWasmReadClient,
tip: &Tip,
Expand Down

0 comments on commit d4d1830

Please sign in to comment.