diff --git a/packages/dma-library/package.json b/packages/dma-library/package.json index df9b63474..e31249c35 100644 --- a/packages/dma-library/package.json +++ b/packages/dma-library/package.json @@ -1,6 +1,6 @@ { "name": "@oasisdex/dma-library", - "version": "0.6.78", + "version": "0.6.79", "typings": "lib/index.d.ts", "types": "lib/index.d.ts", "main": "lib/index.js", diff --git a/packages/dma-library/src/strategies/aave-like/multiply/adjust/build-operation.ts b/packages/dma-library/src/strategies/aave-like/multiply/adjust/build-operation.ts index 2de9d3041..432029a48 100644 --- a/packages/dma-library/src/strategies/aave-like/multiply/adjust/build-operation.ts +++ b/packages/dma-library/src/strategies/aave-like/multiply/adjust/build-operation.ts @@ -146,8 +146,8 @@ export async function buildAdjustFlashloan( debtToken: args.debtToken.symbol, collateralToken: args.collateralToken.symbol, }) - // We dont use the if Spark condition since on L2s non Maker FLS are used for multiply operations - if (dependencies.protocolType === 'Spark' || flashloanProvider !== FlashloanProvider.DssFlash) { + + if (dependencies.protocolType === 'Spark') { // Need to add fees to the swap amount const fromSwapAmountBeforeFees = swap.fromTokenAmount.plus(preSwapFee) const receivedAmountAfterSwap = swap.minToTokenAmount diff --git a/packages/dma-library/src/strategies/aave-like/multiply/close/build-operation.ts b/packages/dma-library/src/strategies/aave-like/multiply/close/build-operation.ts index 4324f4e66..0205be48d 100644 --- a/packages/dma-library/src/strategies/aave-like/multiply/close/build-operation.ts +++ b/packages/dma-library/src/strategies/aave-like/multiply/close/build-operation.ts @@ -105,8 +105,8 @@ export async function buildCloseFlashloan( debtToken: args.debtToken.symbol, collateralToken: args.collateralToken.symbol, }) - // We dont use the if Spark condition since on L2s non Maker FLS are used for multiply operations - if (dependencies.protocolType === 'Spark' || flashloanProvider !== FlashloanProvider.DssFlash) { + + if (dependencies.protocolType === 'Spark') { // This covers off the situation where debt balances accrue interest const amountToFlashloan = dependencies.currentPosition.debt.amount.times( ONE.plus(SAFETY_MARGIN),