Skip to content

Commit

Permalink
chore(smart-contracts): disable-entrypoint-for-remove-swap-routes-in-…
Browse files Browse the repository at this point in the history
…pool-router
  • Loading branch information
nseguias committed Feb 8, 2024
1 parent 377a226 commit fe70f6b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,6 @@ fn add_swap_routes(
.add_attributes(attributes))
}

#[cfg_attr(not(feature = "library"), entry_point)]
pub fn remove_swap_routes(
deps: DepsMut,
env: Env,
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 fe70f6b

Please sign in to comment.