diff --git a/package.json b/package.json index 64171d680..5f0a33edf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@paraswap/dex-lib", - "version": "4.0.7", + "version": "4.0.8", "main": "build/index.js", "types": "build/index.d.ts", "repository": "https://github.com/paraswap/paraswap-dex-lib", 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; } }