diff --git a/projects/helper/unwrapLPs.js b/projects/helper/unwrapLPs.js index dc96b0908fc2..cdc587eba729 100644 --- a/projects/helper/unwrapLPs.js +++ b/projects/helper/unwrapLPs.js @@ -350,7 +350,7 @@ async function unwrapSlipstreamNFT({ balances, owner, positionIds = [], nftAddre if (!factories[factoryKey]) factories[factoryKey] = sdk.api.abi.call({ target: nftAddress, abi: wildCreditABI.factory, block, chain }) let factory = (await factories[factoryKey]).output - if (!positionIds) { + if (!positionIds || positionIds.length === 0) { const nftPositions = (await sdk.api.erc20.balanceOf({ target: nftIdFetcher, owner, block, chain })).output positionIds = (await sdk.api.abi.multiCall({ block, chain, abi: wildCreditABI.tokenOfOwnerByIndex, target: nftIdFetcher,