Skip to content

Commit

Permalink
Update uniswap-sdk-core-rust version and add test cases for price tic…
Browse files Browse the repository at this point in the history
…k conversions

The version of uniswap-sdk-core-rust dependency in Cargo.toml is updated from 0.4.0 to 0.5.0 which is now sourced from Github repo. Changes in the price_tick_conversions.rs, include modifications in the calculation of sqrt_ratio and the addition of various tests for price and tick conversions. Cargo.lock is updated accordingly to reflect these changes.
  • Loading branch information
shuhuiluo committed Dec 30, 2023
1 parent 5f4b2f9 commit 1dba589
Show file tree
Hide file tree
Showing 3 changed files with 268 additions and 188 deletions.
202 changes: 19 additions & 183 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "uniswap-v3-sdk-rs"
version = "0.1.0"
version = "0.2.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand All @@ -15,7 +15,7 @@ num-bigint = "0.4.4"
num-traits = "0.2.17"
once_cell = "1.19.0"
ruint = "1.11.1"
uniswap-sdk-core-rust = "0.4.0"
uniswap-sdk-core-rust = { git = "https://github.com/malik672/uniswap-sdk-core-rust", branch = "master" }
uniswap_v3_math = "0.4.1"

[dev-dependencies]
Expand Down
Loading

0 comments on commit 1dba589

Please sign in to comment.