You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: