Skip to content

Commit

Permalink
πŸ› slipstream positions got ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
j-vp committed Jul 27, 2024
1 parent 75798c4 commit 623afa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/helper/unwrapLPs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 623afa9

Please sign in to comment.