diff --git a/packages/dma-library/package.json b/packages/dma-library/package.json index 6613dc0fc..2b1f13428 100644 --- a/packages/dma-library/package.json +++ b/packages/dma-library/package.json @@ -1,6 +1,6 @@ { "name": "@oasisdex/dma-library", - "version": "0.4.2", + "version": "0.4.3", "typings": "lib/index.d.ts", "types": "lib/index.d.ts", "main": "lib/index.js", diff --git a/packages/dma-library/src/strategies/aave/adjust/adjust.ts b/packages/dma-library/src/strategies/aave/adjust/adjust.ts index 4d8882840..ac0554375 100644 --- a/packages/dma-library/src/strategies/aave/adjust/adjust.ts +++ b/packages/dma-library/src/strategies/aave/adjust/adjust.ts @@ -15,7 +15,7 @@ export async function adjust( flashloanToken: getFlashloanToken(dependencies).flashloanToken, } if ( - isRiskIncreasing(dependencies.currentPosition.riskRatio.loanToValue, args.multiple.loanToValue) + isRiskIncreasing(args.multiple.loanToValue, dependencies.currentPosition.riskRatio.loanToValue) ) { return adjustRiskUp(expandedArgs, dependencies) } else {