Skip to content

Commit

Permalink
refactor(trade): Use &mut instead of RefCell for best trade (#44)
Browse files Browse the repository at this point in the history
This update refactors the code in trade.rs to directly handle mutable vectors without wrapping them in RefCell. Some iterative operations are also optimized for better readability and performance. Additionally, this update involves an upgrade to the uniswap-sdk-core from version 0.18 to 0.20.0.
  • Loading branch information
shuhuiluo authored Mar 16, 2024
1 parent 866a441 commit ee66e30
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 87 deletions.
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"
version = "0.26.1"
version = "0.27.0"
edition = "2021"
authors = ["Shuhui Luo <twitter.com/aureliano_law>"]
description = "Uniswap V3 SDK for Rust"
Expand Down Expand Up @@ -30,7 +30,7 @@ regex = { version = "1.10", optional = true }
ruint = "1.12"
serde_json = { version = "1.0", optional = true }
thiserror = "1.0"
uniswap-sdk-core = "0.18"
uniswap-sdk-core = "0.20.0"
uniswap_v3_math = "0.4"

[features]
Expand Down
Loading

0 comments on commit ee66e30

Please sign in to comment.