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();