From 5ed9d351cf541f1f583e2566e95c677e1161ae05 Mon Sep 17 00:00:00 2001 From: Leandro Date: Thu, 21 Mar 2024 11:37:39 -0700 Subject: [PATCH] refactor: simplify U256 literal Co-authored-by: Martin Beckmann --- crates/shared/src/order_validation.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/shared/src/order_validation.rs b/crates/shared/src/order_validation.rs index efa5fc869f..d6f6708ea1 100644 --- a/crates/shared/src/order_validation.rs +++ b/crates/shared/src/order_validation.rs @@ -816,7 +816,7 @@ fn has_same_buy_and_sell_token(order: &PreOrderData, native_token: &WETH9) -> bo // A minimum, of 1 atom is still required as a spam protection measure. // TODO: ideally, we should keep the full balance enforcement for SWAPs, // but given all orders are LIMIT now, this is harder to do. -const MINIMUM_BALANCE: U256 = U256([1, 0, 0, 0]); // 1 atom of a token +const MINIMUM_BALANCE: U256 = U256::one(); // 1 atom of a token /// Retrieves the quote for an order that is being created and verify that its /// fee is sufficient.