Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix div by 0 in slippage computation (#2024)
# Description If some external API returns a `0` amount for a buy order it will pass the `execution_respects_order` check and will cause a panic in this slippage computation due to div by 0. # Changes Returns errors when slippage computation would encounter any div by zero (simply use `.checked_div()`). ## How to test All unit tests should continue to pass
- Loading branch information