From fc121900d8354996b7b36d10f75e7bcc58a984c2 Mon Sep 17 00:00:00 2001 From: Malte Kliemann Date: Tue, 13 Feb 2024 14:04:23 +0100 Subject: [PATCH 1/2] Update primitives/src/traits/swaps.rs Co-authored-by: Harald Heckmann --- primitives/src/traits/swaps.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/primitives/src/traits/swaps.rs b/primitives/src/traits/swaps.rs index 3adc7d2b0..ed0e3fc41 100644 --- a/primitives/src/traits/swaps.rs +++ b/primitives/src/traits/swaps.rs @@ -118,7 +118,7 @@ pub trait Swaps { /// Buy the `asset_out`/`asset_in` pair from the pool, receiving an exact amount of `asset_out`. /// - /// This function will error is both `min_asset_amount_out` and `max_price` are `None`. + /// This function will error if both `min_asset_amount_out` and `max_price` are `None`. /// /// # Arguments /// From f2cd83ec79a4781913d6289852bf672c047e6d01 Mon Sep 17 00:00:00 2001 From: Malte Kliemann Date: Tue, 13 Feb 2024 14:04:35 +0100 Subject: [PATCH 2/2] Update primitives/src/traits/swaps.rs Co-authored-by: Harald Heckmann --- primitives/src/traits/swaps.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/primitives/src/traits/swaps.rs b/primitives/src/traits/swaps.rs index ed0e3fc41..8a8278d1f 100644 --- a/primitives/src/traits/swaps.rs +++ b/primitives/src/traits/swaps.rs @@ -93,7 +93,7 @@ pub trait Swaps { /// Buy the `asset_out`/`asset_in` pair from the pool for an exact amount of `asset_in`. /// - /// This function will error is both `min_asset_amount_out` and `max_price` are `None`. + /// This function will error if both `min_asset_amount_out` and `max_price` are `None`. /// /// # Arguments ///