Skip to content

Commit

Permalink
Merge pull request #661 from ElrondNetwork/proxy-dex-remove-liquidity…
Browse files Browse the repository at this point in the history
…-fix

proxy dex remove liq fix
  • Loading branch information
sasurobert authored Dec 11, 2022
2 parents d5ef3db + 238b253 commit fe98620
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
6 changes: 3 additions & 3 deletions locked-asset/proxy_dex/src/proxy_pair.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,13 @@ pub trait ProxyPairModule:
.direct_esdt(&caller, &asset_token_id, 0, &difference);
} else if assets_received < locked_assets_invested {
let difference = locked_assets_invested - assets_received;
self.send().esdt_local_burn(
self.deduct_energy_from_user(
&caller,
&locked_asset_token_id,
attributes.locked_assets_nonce,
&difference,
);
self.deduct_energy_from_user(
&caller,
self.send().esdt_local_burn(
&locked_asset_token_id,
attributes.locked_assets_nonce,
&difference,
Expand Down
10 changes: 10 additions & 0 deletions locked-asset/proxy_dex/wasm/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fe98620

Please sign in to comment.