Skip to content

Commit 1ac1eb4

Browse files
committed
add sweep to strata
1 parent 26eadb2 commit 1ac1eb4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/swapService/strategies/strategyStrata.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -487,18 +487,18 @@ export class StrategyStrata {
487487
)
488488

489489
// sweep intermediate asset, just in case
490-
// const sweepMulticallItem = encodeDepositMulticallItem(
491-
// vaultData.asset,
492-
// vaultData.vault,
493-
// 0n,
494-
// vaultData.assetDustEVault,
495-
// )
490+
const sweepMulticallItem = encodeDepositMulticallItem(
491+
vaultData.asset,
492+
vaultData.vault,
493+
0n,
494+
vaultData.assetDustEVault,
495+
)
496496

497497
// repay or exact out will return unused input, which is the intermediate asset
498498
const multicallItems = [
499499
withdrawMulticallItem,
500500
...innerQuote.swap.multicallItems,
501-
// sweepMulticallItem,
501+
sweepMulticallItem,
502502
]
503503

504504
const swap = buildApiResponseSwap(swapParams.from, multicallItems)

0 commit comments

Comments
 (0)