This patch fixes the bin array indices calculation in the addLiquidityByStrategy method. Prev the indices could be outside the range of the actual min /max bin array indices a position can have.
@McSam94 Gm. Please, take a look. Maybe the byWeight method also should be patched I just don't use it atm.
Originally discovered the bug when was trying to provide liq into arbitrary bins in my positions.
This patch fixes the bin array indices calculation in the
addLiquidityByStrategy
method. Prev the indices could be outside the range of the actual min /max bin array indices a position can have.