The Mantra DEX implements a hardcoded maximum slippage cap that can prevent legitimate trades and force users into unfavorable positions, especially during high volatility or for certain asset pairs.
The issue exists in the swap implementation:
This value is enforced in the assert_max_spread function:
This however creates several problems:
Users cannot execute valid trades during high volatility which directly translates to loss of funds $, considering if the market is on a free fall and they are attempting to sell off their position, it always reverts during the assertion of the maximum slippage cap, leaving them to hold on to their assets for longer and more loss of funds.
Remove the hard cap and instead allow a dynamic slippage.
