in the current implementation, if the user doesn't have enough funds, during cancel_and_place_orders an spl-transfer error will be raised failing the entire tx
solution
treat the input lots as an upper limit rather than as an exact amount; max_base_lots and max_quote_lots_including_fees are overridden with the user maximum amounts available
problem
in the current implementation, if the user doesn't have enough funds, during
cancel_and_place_orders
an spl-transfer error will be raised failing the entire txsolution treat the input lots as an upper limit rather than as an exact amount;
max_base_lots
andmax_quote_lots_including_fees
are overridden with the user maximum amounts available