How A Solana-Based mostly DEX Bricked Itself, Locking $500K+ In Funds

It’s not simple being a dev. In current days, a younger Solana-based DEX, OptiFi, confronted an surprising downfall after a easy coding error. The platform launched an announcement that their mainnet program is now unrecoverable yesterday. The transfer has resulted in an surprising shutdown for the DEX.

Let’s evaluate what we all know from the announcement and the way one thing like this may very well be averted sooner or later.

OptiFi’s Sudden Shutdown

OptiFi was an choices and derivatives targeted decentralized trade (DEX) constructed on Solana that was lower than a yr within the making. The platform touted Solana’s low latency transactions, portfolio margining and partial liquidation mechanisms. The platform additionally introduced the “first-ever delta-neutral choices AMM vault” on Solana that offered yield to depositors. So how did we get right here? In accordance with OptiFi’s full debrief, a code replace that was shifting to Solana mainnet noticed a person error that resulted in the usage of a ‘solana program shut’ command, locking roughly $660K price of USDC in OptiFi-stored funds of their AMM vault.

OptiFi has assured that person funds shall be compensated (whereas noting that a big majority of the funds are from an inner workforce member), and a proposal on the Solana github is at the moment energetic to deal with the matter. OptiFi notes of their debrief of a “lesson we discovered harshly:”


Solana (SOL) has been an rising participant in NFTs and DeFi, regardless of occasional setbacks like this current OptiFi debacle. | Supply: SOL-USD on

Is It Nonetheless Solana Season?

Regardless of small community setbacks, Solana has nonetheless seen robust strides this yr in each DeFi and NFT marketplaces. Throughout NFTs, Solana-based tasks like DeGods and Okay Bears, amongst others, have helped spurred the community to a strangehold of the #2 spot (behind solely high canine Ethereum). Within the extra related DeFi, Solana has largely outperformed final yr up to now metrics, in response to DeFiLlama. This has been spurred by rising merchandise like Solend, Serum and extra. DeFiLlama has Solana listed because the #6 chain so as of whole worth locked (TVL), at simply over $1B price of funds.

Constructing and delivery merchandise isn’t a small process, and that is no exception. It hurts to see ecosystem merchandise, no matter chain, fall to seemingly small errors, however it sadly is a byproduct of this world. Our workforce extends finest needs to the OptiFi builders as they transfer ahead.

Featured picture from Pexels, Charts from
The author of this content material isn't related or affiliated with any of the events talked about on this article. This isn't monetary recommendation.

Crypto DDoS Assaults: What, Why and How?

InvestGame releases report for the primary half of 2022