fix passing ticker instead of token address

This commit is contained in:
lomonoshka
2023-11-03 14:55:24 +04:00
parent b467888774
commit 827b2d32cd

View File

@@ -62,7 +62,7 @@ export async function generateSwapCalldataWithUnit({
let path = SafeArray.from(arrayLikePath);
const walletBalance = await getWalletBalance(
path.first().assetIn,
safeGet(assetToAddress, path.first().assetIn),
receiverAddress,
unit.provider
);