Skip to content

Commit

Permalink
Merge pull request #370 from oraidex/fix/logic-check-inrange
Browse files Browse the repository at this point in the history
Fix/logic check inrange
  • Loading branch information
vuonghuuhung authored Nov 27, 2024
2 parents 326ed52 + 61431ea commit b5651af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/oraiswap-v3/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oraichain/oraiswap-v3",
"version": "1.1.1",
"version": "1.1.2",
"main": "build/index.js",
"files": [
"build/"
Expand Down
2 changes: 1 addition & 1 deletion packages/oraiswap-v3/src/zap-consumer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ export class ZapConsumer {
zapInResult.tickUpperIndex = upperTick;

// if the position is out range, call @processZapInWithSingleSide
if (lowerTick >= pool.pool.current_tick_index || upperTick < pool.pool.current_tick_index) {
if (lowerTick > pool.pool.current_tick_index || upperTick <= pool.pool.current_tick_index) {
console.log("Position is out of range");
const zapInSingleSideResult = await this.processZapInWithSingleSide({
poolKey: pool.pool_key,
Expand Down

0 comments on commit b5651af

Please sign in to comment.