With certain inputs into swap, causes an infinite loop where amount_in > 0 (keeps the outer loop looping), and the bin_array is outside the range (error), so it breaks the inner loop.
Without the actual code for the program (#60 ) its hard to know how this matches up, but my guess is the amount_in check needs to break the inner loop, and the is_bin_id_within_range needs to advance the active bin and then break?
https://github.com/MeteoraAg/dlmm-sdk/blob/main/commons/src/quote.rs#L126-L148
With certain inputs into swap, causes an infinite loop where amount_in > 0 (keeps the outer loop looping), and the bin_array is outside the range (error), so it breaks the inner loop.
Without the actual code for the program (#60 ) its hard to know how this matches up, but my guess is the amount_in check needs to break the inner loop, and the is_bin_id_within_range needs to advance the active bin and then break?