Skip to content

Commit

Permalink
remove extra approve
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Nov 22, 2024
1 parent f425a77 commit 581f201
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions examples/swap/contracts/Swap.sol
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,6 @@ contract Swap is UniversalContract {
targetToken,
0
);

if (gasZRC20 == targetToken) {
IZRC20(gasZRC20).approve(address(gateway), outputAmount + gasFee);
} else {
IZRC20(gasZRC20).approve(address(gateway), gasFee);
IZRC20(targetToken).approve(address(gateway), outputAmount);
}
return outputAmount;
}

Expand Down

0 comments on commit 581f201

Please sign in to comment.