Skip to content

Commit

Permalink
Merge pull request #861 from paraswap/aburkut/back-1758-maverick-fix
Browse files Browse the repository at this point in the history
Aburkut/back 1758 maverick fix
  • Loading branch information
aburkut authored Dec 18, 2024
2 parents f0d3764 + b63deba commit 4227f1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/dex/maverick-v2/maverick-math/maverick-pool-math.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 4227f1c

Please sign in to comment.