What are the biggest technical challenges in building a perpetual DEX?

submitted 2 days ago by zivaajs to demcra

I’m looking into perpetual DEX development and trying to understand where the major technical challenges actually occur. A perpetual trading platform needs more than just a swap mechanism. There are issues around: Funding rates Price oracles Liquidations Leverage Margin management Position tracking Risk management Market liquidity For developers or founders working in this space, which components typically require the most attention when designing a perpetual DEX?