I think the next step for smart contracts is to port risk engines (for leveraged trading) and treasury risk management into smart contracts. But I think there is little overlap between people who write risk engines (almost never open source) and people who write smart contracts with slick UIs, so I don't see this happening.
I think SBF (see https://twitter.com/SBF_FTX/status/1580170203664904195?s=20&...) of FTX, who knows how leveraged trading works, explained what risk controls FTX implements.
A simple risk control would be to have a single transaction rate limited in funds it can suck out of an account.