But I doubt a smart contract will work here since the collateral needs to be put at stop-limit order in able to secure the amount of collateral to 110% price margin.
The contract holding the collateral until the borrower receives funds is all you need. If the borrower agrees with your plan, neither of you needs any more protection.