Skip to content

Commit

Permalink
check if the token is zeta
Browse files Browse the repository at this point in the history
  • Loading branch information
lukema95 committed Jul 24, 2024
1 parent fb4f04b commit 2f8017c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contracts/SwapHelperLib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ library SwapHelperLib {
path
);

if (!isSufficientLiquidity) {
bool isZETA = targetZRC20 == systemContract.wZetaContractAddress() || zrc20 == systemContract.wZetaContractAddress();

if (!isSufficientLiquidity && !isZETA) {
path = new address[](3);
path[0] = zrc20;
path[1] = systemContract.wZetaContractAddress();
Expand Down

0 comments on commit 2f8017c

Please sign in to comment.