Perpetual DEXes look simple from the outside. Users post collateral, take leveraged positions, the protocol manages the book, and someone —…