Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdc053cd

Browse files
authored
fix: add 1bps fee tier to tick_spacing and bitmap_spacing constants (#278)
1 parentff26afb commitdc053cd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎uniswap/constants.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
MAX_TICK=-MIN_TICK
6565

6666
# Source: https://github.com/Uniswap/v3-core/blob/v1.0.0/contracts/UniswapV3Factory.sol#L26-L31
67-
_tick_spacing= {500:10,3_000:60,10_000:200}
67+
_tick_spacing= {100:1,500:10,3_000:60,10_000:200}
6868

69-
_tick_bitmap_range= {500: (-347,346),3_000: (-58,57),10_000: (-18,17)}
69+
# Derived from (MIN_TICK//tick_spacing) >> 8 and (MAX_TICK//tick_spacing) >> 8
70+
_tick_bitmap_range= {100:(-3466,3465),500: (-347,346),3_000: (-58,57),10_000: (-18,17)}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp