Skip to content

Commit

Permalink
refactor: simplify U256 literal
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Beckmann <martin.beckmann@protonmail.com>
  • Loading branch information
alfetopito and MartinquaXD committed Mar 22, 2024
1 parent 3bc8786 commit 5ed9d35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/shared/src/order_validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5ed9d35

Please sign in to comment.