Thinking aloud, may not endorse after a lot of thought
Main
What if a contract can use a ZK proof to prove that no matter what happens, after N blocks the lender is guaranteed to be able to recover their funds?
You will need a standard lender contract that verifies ZK proofs. Borrowers can submit any contract they wish along with a ZK proof about the behaviour of this contract.
If this idea actually works, then multi-block flash loans could open up all sorts of new attack vectors.
Subscribe
To subscribe, enter "Subscribe " followed by Signal username, email address or whatsapp phone number. You will receive atmost one update per month.
Alternatively, you can subscribe via RSS, or a third-party service like blogtrottr