Skip to content

Commit

Permalink
scarb check
Browse files Browse the repository at this point in the history
  • Loading branch information
Sk8erboi84 committed Mar 8, 2024
1 parent d778d42 commit 8f3ef8e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/swap/swap_utils.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,7 @@ fn swap(params: @SwapParams) -> (ContractAddress, u128) {

//TODO
let first_path: Market = *params.swap_path_markets[0];
if (params
.bank
.contract_address != params
.receiver) { //check if the address should be the same
if (params.bank.contract_address != params.receiver) { //check if the address should be the same
(*params.bank).transfer_out(*params.token_in, *params.receiver, *params.amount_in);
}

Expand Down

0 comments on commit 8f3ef8e

Please sign in to comment.