From 2108e064319bf14f98c321a8acd4762d3e9e3560 Mon Sep 17 00:00:00 2001 From: Bob Baxley Date: Mon, 21 Oct 2024 11:26:55 -0400 Subject: [PATCH 1/3] swap past max tick activeTick correction --- src/dex/maverick-v2/maverick-math/maverick-pool-math.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dex/maverick-v2/maverick-math/maverick-pool-math.ts b/src/dex/maverick-v2/maverick-math/maverick-pool-math.ts index f487fe7ef..02e0e956b 100644 --- a/src/dex/maverick-v2/maverick-math/maverick-pool-math.ts +++ b/src/dex/maverick-v2/maverick-math/maverick-pool-math.ts @@ -634,7 +634,7 @@ export class MaverickPoolMath { activeTick += delta.tokenAIn ? 1n : -1n; if (MaverickDeltaMath.pastMaxTick(delta, activeTick)) { - this.state.activeTick += delta.tokenAIn ? 1n : -1n; + this.state.activeTick += delta.tokenAIn ? -1n : 1n; return delta; } } From 5eb0bb0c54108fb8d11419482c396e127998d289 Mon Sep 17 00:00:00 2001 From: Alexander Burkut Date: Tue, 17 Dec 2024 16:34:43 +0300 Subject: [PATCH 2/3] 4.0.8-maverick-v2-fix.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 64171d680..33ccd7b3e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@paraswap/dex-lib", - "version": "4.0.7", + "version": "4.0.8-maverick-v2-fix.0", "main": "build/index.js", "types": "build/index.d.ts", "repository": "https://github.com/paraswap/paraswap-dex-lib", From b63debaac5cf80e0e765ce84e0533a9ec58be771 Mon Sep 17 00:00:00 2001 From: Alexander Burkut Date: Wed, 18 Dec 2024 13:09:32 +0300 Subject: [PATCH 3/3] 4.0.8 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 33ccd7b3e..5f0a33edf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@paraswap/dex-lib", - "version": "4.0.8-maverick-v2-fix.0", + "version": "4.0.8", "main": "build/index.js", "types": "build/index.d.ts", "repository": "https://github.com/paraswap/paraswap-dex-lib",