hotfix: fix calldata generation for nativeAsset => anyAsset

This commit is contained in:
lomonoshka
2023-11-29 18:41:46 +04:00
parent 5fb7437834
commit 91b5ca3239

View File

@@ -221,11 +221,7 @@ async function processMultiFactorySwaps(
curveRegistryAddress: string,
provider: JsonRpcProvider
) {
const calls: BytesLike[] = [];
if (swapDescription.srcToken === ZeroAddress) {
const wrapCall = await generateWrapAndTransferCall(swapExecutorContractAddress, { value: amount });
calls.push(wrapCall);
}
let calls: BytesLike[] = [];
for (const swap of path) {
switch (swap.factory) {
case 'OrionV2': {