Skip to content

Commit

Permalink
Updated fee-market to create proxy in interactor
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Baltariu <[email protected]>
  • Loading branch information
andreiblt1304 committed Nov 13, 2024
1 parent 14c569f commit 93663a1
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions fee-market/sc-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ add-labels = ["fee-market-external-view"]

[[proxy]]
path = "src/fee_market_proxy.rs"

[[proxy]]
path = "../esdt-safe/interactor/src/proxies/fee_market_proxy.rs"
2 changes: 1 addition & 1 deletion fee-market/src/fee_market_proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ where
.original_result()
}

pub fn disable_fee<
pub fn remove_fee<
Arg0: ProxyArg<TokenIdentifier<Env::Api>>,
>(
self,
Expand Down
2 changes: 1 addition & 1 deletion fee-market/src/fee_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ pub trait FeeTypeModule: utils::UtilsModule + bls_signature::BlsSignatureModule

#[only_owner]
#[endpoint(removeFee)]
fn disable_fee(&self, base_token: TokenIdentifier) {
fn remove_fee(&self, base_token: TokenIdentifier) {
self.token_fee(&base_token).clear();
self.fee_enabled().set(false);
}
Expand Down
2 changes: 1 addition & 1 deletion fee-market/wasm-fee-marker-full/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ multiversx_sc_wasm_adapter::endpoints! {
upgrade => upgrade
setPriceAggregatorAddress => set_price_aggregator_address
addFee => set_fee
removeFee => disable_fee
removeFee => remove_fee
getTokenFee => token_fee
addUsersToWhitelist => add_users_to_whitelist
removeUsersFromWhitelist => remove_users_from_whitelist
Expand Down
2 changes: 1 addition & 1 deletion fee-market/wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ multiversx_sc_wasm_adapter::endpoints! {
upgrade => upgrade
setPriceAggregatorAddress => set_price_aggregator_address
addFee => set_fee
removeFee => disable_fee
removeFee => remove_fee
getTokenFee => token_fee
addUsersToWhitelist => add_users_to_whitelist
removeUsersFromWhitelist => remove_users_from_whitelist
Expand Down

0 comments on commit 93663a1

Please sign in to comment.