Skip to content

Commit

Permalink
remove unused function (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
mzywang authored Sep 17, 2024
1 parent 1394f59 commit 6d37ae1
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/utils/tick.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,3 @@ export function createTick(tickId: string, tickIdx: i32, poolId: string, event:

return tick
}

export function feeTierToTickSpacing(feeTier: BigInt): BigInt {
if (feeTier.equals(BigInt.fromI32(10000))) {
return BigInt.fromI32(200)
}
if (feeTier.equals(BigInt.fromI32(3000))) {
return BigInt.fromI32(60)
}
if (feeTier.equals(BigInt.fromI32(500))) {
return BigInt.fromI32(10)
}
if (feeTier.equals(BigInt.fromI32(100))) {
return BigInt.fromI32(1)
}

throw Error('Unexpected fee tier')
}

0 comments on commit 6d37ae1

Please sign in to comment.