We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf932a6 commit 0302969Copy full SHA for 0302969
src/domain/solver/dex/fills.rs
@@ -38,6 +38,10 @@ impl Fills {
38
/// Returns which dex query should be tried for the given order. Takes
39
/// information of previous partial fill attempts into account.
40
pub fn dex_order(&self, order: &order::Order, tokens: &auction::Tokens) -> Option<dex::Order> {
41
+ // Do not attempt solving for same sell and buy token
42
+ if order.sell.token == order.buy.token {
43
+ return None;
44
+ }
45
if !order.partially_fillable {
46
return Some(dex::Order::new(order));
47
}
0 commit comments