-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: refactor and add
Multicall
trait (#98)
* feat: refactor and add `Multicall` trait Refactor `encode_multicall` and `decode_multicall` to be more generic and implement the `Multicall` trait for various types. This improves the flexibility and reusability of multicall encoding and decoding operations. * Replace asserts with error handling in pool.rs Converted assert! macro usage to return errors in the `current_liquidity` and `amount_specified_remaining` methods. This improves the code by providing more informative error handling and avoids potential panics. Additionally, updated the `uniswap_v3_math` dependency to version 0.5.2 in Cargo.toml.
- Loading branch information
Showing
4 changed files
with
54 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters