Smardex: Smarter DeFi Trading with Minimal Impermanent Loss