  This short note illustrates the theoretical solution to a trader determining
how to optimally swap her wealth into a target asset through on-chain
operations. It offers the framework to solve optimal slippage parameters and
optimal trade size.
