Ser , you should take a look at @protocol_fx as well , it will help users open a leverage position from 2x to 10x and won't get liquidated (replaced by rebalance/soft-liquidation) 

And it will be permissionless where anyone can create any leverage market. 

@protocol_fx V2.0