Conversation

According to this thread, a DeFi developer entered a single incorrect command (‘solana program close’), which bricked their entire project and lost $661k in stablecoins. Immutable! medium.com/@OptiFi/optifi
Quote Tweet
OptiFi's program has been closed by mistakes we made. TL;DR 1. We accidentally closed the OptiFi mainnet program and it's not recoverable 2. 661k USDC is locked in the PDAs, luckily 95% of the fund is from our team member 3. We will compensate for all users’ funds
Show this thread
41
765
I think it's fairly clear that arbitrary smart contracts with general purpose programming languages is not something people are capable of managing or evaluating in a rational way. Simple smart contracts built out of only a few simple declarative primitives are a reasonable idea.
1
5
Reasonable: 3-of-5 signing keys required to spend the money and after 5 years decrease requirement to 2-of-5 Unreasonable: Contract written with hundreds or even thousands of lines of code with error prone domain specific systems which requires maintenance / updates, etc.
6
Even without any of the smart contract or DeFi stuff, you can lose all your backups of your keys or send your money to an address that doesn't have someone who controls keys for it. It'd be entirely possible to set a limit on inactivity but it's not usually something that's done.