1.description:
In the MsgSwapByDenom transaction, FlagMaxAmount represents the TokenIn asset。
However, in the SwapByDenom function, msg.MaxAmount.Denom is verified against msg.DenomOut assets, causing the transaction to fail.
2.code:


3.suggestion:
msg.MaxAmount.Denom != msg.DenomIn