Skip to content

Commit

Permalink
Merge branch 'main' into router-multi-pair-swap-return-payments
Browse files Browse the repository at this point in the history
  • Loading branch information
psorinionut authored Apr 8, 2024
2 parents e58da7b + 816d30a commit 0469d5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
17 changes: 0 additions & 17 deletions dex/router/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,23 +270,6 @@ pub trait Router:
.call_and_exit()
}

#[only_owner]
#[endpoint(setLocalRolesOwner)]
fn set_local_roles_owner(
&self,
token: TokenIdentifier,
address: ManagedAddress,
roles: MultiValueEncoded<EsdtLocalRole>,
) {
require!(self.is_active(), "Not active");

self.send()
.esdt_system_sc_proxy()
.set_special_roles(&address, &token, roles.into_iter())
.async_call()
.call_and_exit()
}

#[only_owner]
#[endpoint(removePair)]
fn remove_pair(
Expand Down
5 changes: 2 additions & 3 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: 31
// Async Callback: 1
// Total number of exported functions: 34
// Total number of exported functions: 33

#![no_std]
#![allow(internal_features)]
Expand All @@ -27,7 +27,6 @@ multiversx_sc_wasm_adapter::endpoints! {
upgradePair => upgrade_pair_endpoint
issueLpToken => issue_lp_token
setLocalRoles => set_local_roles
setLocalRolesOwner => set_local_roles_owner
removePair => remove_pair
setFeeOn => set_fee_on
setFeeOff => set_fee_off
Expand Down

0 comments on commit 0469d5e

Please sign in to comment.