Skip to content

Commit

Permalink
πŸ› slipstream positions got ignored (DefiLlama#11124)
Browse files Browse the repository at this point in the history
* πŸ› slipstream positions got ignored

* re-run lint

* undo empty line

* undo changes in adaptor
  • Loading branch information
j-vp authored and tlatkdgus1 committed Nov 25, 2024
1 parent e3ae7a8 commit 05ed3f5
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 05ed3f5

Please sign in to comment.