Skip to content

Commit

Permalink
fix TRON
Browse files Browse the repository at this point in the history
  • Loading branch information
Max authored and Max committed Oct 21, 2022
1 parent bc46c47 commit 2f34942
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/TRONTransitSwapRouter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ contract TransitSwapRouter is Ownable, ReentrancyGuard, Pausable {
TransferHelper.safeTransferFrom(desc.srcToken, msg.sender, _transit_cross, desc.amount);
} else {
TransferHelper.safeTransferFrom(desc.srcToken, msg.sender, address(this), desc.amount);
if (TetherToken == desc.dstToken) {
if (TetherToken == desc.srcToken) {
TransferHelper.safeTransferWithoutRequire(desc.srcToken, _transit_cross, desc.amount.sub(fee));
} else {
TransferHelper.safeTransfer(desc.srcToken, _transit_cross, desc.amount.sub(fee));
Expand Down

0 comments on commit 2f34942

Please sign in to comment.