From 0f92c4ff1a9d7596f4da41c918f7a782afab7539 Mon Sep 17 00:00:00 2001 From: Andrei Marinica Date: Fri, 12 Apr 2024 10:23:51 +0300 Subject: [PATCH] cargo fmt --- dex/pair/src/read_pair_storage.rs | 2 +- dex/router/src/multi_pair_swap.rs | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/dex/pair/src/read_pair_storage.rs b/dex/pair/src/read_pair_storage.rs index a14f862c3..2aeff0566 100644 --- a/dex/pair/src/read_pair_storage.rs +++ b/dex/pair/src/read_pair_storage.rs @@ -73,4 +73,4 @@ pub trait ReadPairStorageModule { SingleValueMapper::<_, _, ManagedAddress>::new_from_address(pair_address, storage_key) } -} \ No newline at end of file +} diff --git a/dex/router/src/multi_pair_swap.rs b/dex/router/src/multi_pair_swap.rs index e69350ecd..dc5492f9d 100644 --- a/dex/router/src/multi_pair_swap.rs +++ b/dex/router/src/multi_pair_swap.rs @@ -19,7 +19,10 @@ pub trait MultiPairSwap: { #[payable("*")] #[endpoint(multiPairSwap)] - fn multi_pair_swap(&self, swap_operations: MultiValueEncoded>) -> ManagedVec { + fn multi_pair_swap( + &self, + swap_operations: MultiValueEncoded>, + ) -> ManagedVec { require!(self.is_active(), "Not active"); let (token_id, nonce, amount) = self.call_value().single_esdt().into_tuple();