Skip to content

Commit

Permalink
replace rust_decimal with bigdecimal for arbitrary precision
Browse files Browse the repository at this point in the history
This commit updates the version of the uniswap-sdk-core-rust library to 0.5.0 and includes bigdecimal as a dependency, replacing the previous rust_decimal. The major change involves the update in the Fraction and CurrencyAmount where BigDecimal is now used for calculations instead of Decimal from rust_decimal. The relevant changes in the code are also refactored to fit with the bigdecimal usage. The Cargo.lock file has also been updated to reflect these changes.
  • Loading branch information
shuhuiluo committed Dec 30, 2023
1 parent 2c1c036 commit d971925
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 238 deletions.
233 changes: 16 additions & 217 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-sdk-core-rust"
version = "0.4.1"
version = "0.5.0"
edition = "2021"
authors = ["malik <[email protected]>", "Shuhui Luo <twitter.com/aureliano_law>"]
description = "The Uniswap SDK Core in Rust provides essential functionality for interacting with the Uniswap decentralized exchange"
Expand All @@ -10,14 +10,14 @@ license = "MIT"

[dependencies]
alloy-primitives = "0.5.4"
bigdecimal = "0.4.2"
eth_checksum = "0.1.2"
lazy_static = "1.4.0"
num-bigint = "0.4.4"
num-integer = "0.1.45"
num-rational = "0.4.1"
num-traits = "0.2.17"
regex = "1.10.2"
rust_decimal = "1.33.1"
rustc-hex = "2.1.0"
serde-value = "0.7.0"
sha3 = "0.10.8"
Loading

0 comments on commit d971925

Please sign in to comment.