Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-marinica committed Apr 12, 2024
1 parent 4463206 commit 0f92c4f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dex/pair/src/read_pair_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ pub trait ReadPairStorageModule {

SingleValueMapper::<_, _, ManagedAddress>::new_from_address(pair_address, storage_key)
}
}
}
5 changes: 4 additions & 1 deletion dex/router/src/multi_pair_swap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ pub trait MultiPairSwap:
{
#[payable("*")]
#[endpoint(multiPairSwap)]
fn multi_pair_swap(&self, swap_operations: MultiValueEncoded<SwapOperationType<Self::Api>>) -> ManagedVec<EsdtTokenPayment> {
fn multi_pair_swap(
&self,
swap_operations: MultiValueEncoded<SwapOperationType<Self::Api>>,
) -> ManagedVec<EsdtTokenPayment> {
require!(self.is_active(), "Not active");

let (token_id, nonce, amount) = self.call_value().single_esdt().into_tuple();
Expand Down

0 comments on commit 0f92c4f

Please sign in to comment.