Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
psorinionut committed Apr 16, 2024
1 parent ec4b550 commit 954d65c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
9 changes: 0 additions & 9 deletions dex/router/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,4 @@ pub trait ConfigModule: read_pair_storage::ReadPairStorageModule {
#[view(getCommonTokensForUserPairs)]
#[storage_mapper("commonTokensForUserPairs")]
fn common_tokens_for_user_pairs(&self) -> UnorderedSetMapper<TokenIdentifier>;

// read from other storage
#[view(getFirstTokenId)]
#[storage_mapper("first_token_id")]
fn first_token_id(&self) -> SingleValueMapper<TokenIdentifier>;

#[view(getSecondTokenId)]
#[storage_mapper("second_token_id")]
fn second_token_id(&self) -> SingleValueMapper<TokenIdentifier>;
}
6 changes: 2 additions & 4 deletions dex/router/wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
////////////////////////////////////////////////////

// Init: 1
// Endpoints: 32
// Endpoints: 30
// Async Callback: 1
// Total number of exported functions: 34
// Total number of exported functions: 32

#![no_std]
#![allow(internal_features)]
Expand Down Expand Up @@ -39,8 +39,6 @@ multiversx_sc_wasm_adapter::endpoints! {
getPairTemplateAddress => pair_template_address
getTemporaryOwnerPeriod => temporary_owner_period
getCommonTokensForUserPairs => common_tokens_for_user_pairs
getFirstTokenId => first_token_id
getSecondTokenId => second_token_id
getAllPairsManagedAddresses => get_all_pairs_addresses
getAllPairTokens => get_all_token_pairs
getAllPairContractMetadata => get_all_pair_contract_metadata
Expand Down

0 comments on commit 954d65c

Please sign in to comment.