Skip to content

Commit a66ef27

Browse files
authored
Merge pull request #48 from 0xKitsune/kit/0.6.0
chore: Bump version to `0.6.0`
2 parents d292de9 + bac17d0 commit a66ef27

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "uniswap_v3_math"
33
rust-version = "1.82"
4-
version = "0.5.3"
4+
version = "0.6.0"
55
edition = "2021"
66
license = "MIT"
77
description = "Uniswap V3 math in Rust"
@@ -12,10 +12,13 @@ keywords = ["uniswapV3", "math"]
1212
exclude = ["target/*", ".github/*", ".gitignore", "Uniswap/*"]
1313

1414
[dependencies]
15-
alloy = { version = "0.11", features = ["contract", "providers"], optional = true }
15+
alloy = { version = "0.11", features = [
16+
"contract",
17+
"providers",
18+
], optional = true }
1619
alloy-primitives = "0.8"
1720
eyre = "0.6"
1821
thiserror = "2.0"
1922

2023
[features]
21-
contract = ["dep:alloy"]
24+
contract = ["dep:alloy"]

src/tick_bitmap.rs

+4-6
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ mod contract {
7272
let next = if initialized {
7373
(compressed
7474
- (bit_pos
75-
.overflowing_sub(bit_math::most_significant_bit(masked)?)
76-
.0) as i32)
75+
.overflowing_sub(bit_math::most_significant_bit(masked)?)
76+
.0) as i32)
7777
* tick_spacing
7878
} else {
7979
(compressed - bit_pos as i32) * tick_spacing
@@ -112,8 +112,8 @@ mod contract {
112112
(compressed
113113
+ 1
114114
+ (bit_math::least_significant_bit(masked)?
115-
.overflowing_sub(bit_pos)
116-
.0) as i32)
115+
.overflowing_sub(bit_pos)
116+
.0) as i32)
117117
* tick_spacing
118118
} else {
119119
(compressed + 1 + ((0xFF - bit_pos) as i32)) * tick_spacing
@@ -124,8 +124,6 @@ mod contract {
124124
}
125125
}
126126

127-
128-
129127
//Flips the initialized state for a given tick from false to true, or vice versa
130128
pub fn flip_tick(
131129
tick_bitmap: &mut HashMap<i16, U256>,

0 commit comments

Comments
 (0)