From 2f34942b046ca6b31237a1b7c641a71dac7efd95 Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 21 Oct 2022 19:52:08 +0800 Subject: [PATCH] fix TRON --- contracts/TRONTransitSwapRouter.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/TRONTransitSwapRouter.sol b/contracts/TRONTransitSwapRouter.sol index 471c9db..e599c1c 100644 --- a/contracts/TRONTransitSwapRouter.sol +++ b/contracts/TRONTransitSwapRouter.sol @@ -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));