From 623afa9a3a746b02818192ca7c3fe550d6d03664 Mon Sep 17 00:00:00 2001 From: j-vp Date: Sat, 27 Jul 2024 13:07:11 +0200 Subject: [PATCH 1/4] =?UTF-8?q?=F0=9F=90=9B=20slipstream=20positions=20got?= =?UTF-8?q?=20ignored?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- projects/helper/unwrapLPs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, From 6afa24cf64ee3d77be3f99d41fbcc36ec0ef68d4 Mon Sep 17 00:00:00 2001 From: j-vp Date: Sat, 27 Jul 2024 13:14:45 +0200 Subject: [PATCH 2/4] re-run lint --- projects/arcadia-finance-v2/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/arcadia-finance-v2/index.js b/projects/arcadia-finance-v2/index.js index 561698f4362f..b145a9d89805 100644 --- a/projects/arcadia-finance-v2/index.js +++ b/projects/arcadia-finance-v2/index.js @@ -42,6 +42,7 @@ async function unwrapArcadiaAeroLP({ api, ownerIds, }) { } } } + const wrappedData = await api.multiCall({ abi: abi.wrappedAeroPositionState, calls: wAERONFTIds, target: wAeroNFT, }); const stakedData = await api.multiCall({ abi: abi.stakedAeroPositionState, calls: sAERONFTIds, target: sAeroNFT, }); From d53e52d34ea3a5a6093b42fd836152180df7b3b5 Mon Sep 17 00:00:00 2001 From: j-vp Date: Sat, 27 Jul 2024 13:16:23 +0200 Subject: [PATCH 3/4] undo empty line --- projects/arcadia-finance-v2/index.js | 1 - 1 file changed, 1 deletion(-) diff --git a/projects/arcadia-finance-v2/index.js b/projects/arcadia-finance-v2/index.js index b145a9d89805..c2e508f08731 100644 --- a/projects/arcadia-finance-v2/index.js +++ b/projects/arcadia-finance-v2/index.js @@ -43,7 +43,6 @@ async function unwrapArcadiaAeroLP({ api, ownerIds, }) { } } - const wrappedData = await api.multiCall({ abi: abi.wrappedAeroPositionState, calls: wAERONFTIds, target: wAeroNFT, }); const stakedData = await api.multiCall({ abi: abi.stakedAeroPositionState, calls: sAERONFTIds, target: sAeroNFT, }); wrappedData.forEach((data) => api.add(data.pool, data.amountWrapped)); From 458616cd92f8e231b0e0b9c61badde5e6f2d7f37 Mon Sep 17 00:00:00 2001 From: j-vp Date: Sat, 27 Jul 2024 13:21:48 +0200 Subject: [PATCH 4/4] undo changes in adaptor --- projects/arcadia-finance-v2/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/arcadia-finance-v2/index.js b/projects/arcadia-finance-v2/index.js index c2e508f08731..561698f4362f 100644 --- a/projects/arcadia-finance-v2/index.js +++ b/projects/arcadia-finance-v2/index.js @@ -42,7 +42,7 @@ async function unwrapArcadiaAeroLP({ api, ownerIds, }) { } } } - + const wrappedData = await api.multiCall({ abi: abi.wrappedAeroPositionState, calls: wAERONFTIds, target: wAeroNFT, }); const stakedData = await api.multiCall({ abi: abi.stakedAeroPositionState, calls: sAERONFTIds, target: sAeroNFT, }); wrappedData.forEach((data) => api.add(data.pool, data.amountWrapped));