-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert functions to
const
in math and tick utils
Functions in the `sqrt_price_math.rs` and `nearest_usable_tick.rs` files, as well as the `constants.rs` file, were changed from regular to `const` functions. This provides the capacity to have these functions evaluated at compile time wherever their usage throughout the codebase makes it possible for constant evaluation. Also, updated the tick comparison in `nearest_usable_tick.rs` which ensures more readability.
- Loading branch information
Showing
3 changed files
with
4 additions
and
4 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