Skip to content

Commit

Permalink
Merge pull request #277 from White-Whale-Defi-Platform/chore/disable-…
Browse files Browse the repository at this point in the history
…entrypoint-for-remove-swap-routes-in-pool-router

chore(smart-contracts): disable-entrypoint-for-remove-swap-routes-in-…
  • Loading branch information
nseguias authored Feb 8, 2024
2 parents 377a226 + 1b0a6ac commit fbf3fa6
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,7 @@ fn add_swap_routes(
.add_attributes(attributes))
}

#[cfg_attr(not(feature = "library"), entry_point)]
pub fn remove_swap_routes(
fn remove_swap_routes(
deps: DepsMut,
env: Env,
sender: Addr,
Expand All @@ -275,8 +274,8 @@ pub fn remove_swap_routes(

for swap_route in swap_routes {
let swap_route_key = get_key_from_swap_route(deps.as_ref(), &swap_route)?;
// Remove the swap route if it exists

// Remove the swap route if it exists
if swap_route_key.has(deps.storage) {
swap_route_key.remove(deps.storage);
attributes.push(attr("swap_route", swap_route.clone().to_string()));
Expand Down

0 comments on commit fbf3fa6

Please sign in to comment.