The recently updated binary search function uses recursion to solve optimal tradesize problem for orderbook paths. It sometimes gets stuck in an infinite recursion (resulting in max call stack error) because non of the default return conditions are met.
The recently updated binary search function uses recursion to solve optimal tradesize problem for orderbook paths. It sometimes gets stuck in an infinite recursion (resulting in max call stack error) because non of the default return conditions are met.