From 006c949fe7eae10990e36d06613d30490e0d1dd0 Mon Sep 17 00:00:00 2001 From: Jakub Swierczek Date: Wed, 26 Jul 2023 15:07:01 +0200 Subject: [PATCH 1/2] Switch argument order in isRiskIncreasing check --- packages/dma-library/src/strategies/aave/adjust/adjust.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { From ceab119507f7cd3c1d51d09600ac7a49b4c60690 Mon Sep 17 00:00:00 2001 From: Jakub Swierczek Date: Wed, 26 Jul 2023 15:11:08 +0200 Subject: [PATCH 2/2] v0.4.3 --- packages/dma-library/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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",