-
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(tick): Refactor price tick calculations and implement tick range…
… function (#42) The logic in 'price_tick_conversions.rs' was refactored to enhance efficiency by using a single instance of BigDecimal::from(1), reducing code redundancy. Added a new function 'tick_range_from_width_and_ratio' to determine the tick range based on specified position ratio and range width, providing a more straightforward approach to tick range calculations.
- Loading branch information
Showing
2 changed files
with
76 additions
and
6 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