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

2 years ago

It’s not casual being a dev. In caller days, a young Solana-based DEX, OptiFi, faced an unexpected downfall aft a elemental coding error. The level released an announcement that their mainnet programme is present unrecoverable yesterday. The determination has resulted successful an unexpected shutdown for the DEX.

Let’s reappraisal what we cognize from the announcement and however thing similar this could beryllium avoided successful the future.

OptiFi’s Unexpected Shutdown

OptiFi was an options and derivatives focused decentralized speech (DEX) built connected Solana that was little than a twelvemonth successful the making. The level touted Solana’s debased latency transactions, portfolio margining and partial liquidation mechanisms. The level besides brought the “first-ever delta-neutral options AMM vault” connected Solana that provided output to depositors. So however did we get here? According to OptiFi’s full debrief, a codification update that was moving to Solana mainnet saw a idiosyncratic mistake that resulted successful the usage of a ‘solana programme close’ command, locking astir $660K worthy of USDC successful OptiFi-stored funds successful their AMM vault.

OptiFi has assured that idiosyncratic funds volition beryllium compensated (while noting that a ample bulk of the funds are from an interior squad member), and a connection connected the Solana github is presently progressive to code the matter. OptiFi notes successful their debrief of a “lesson we learned harshly:”

EVERY DEPLOYMENT NEEDS A RIGOROUS PROCESS AND SINGLE POINT FAILURE CAN BE AVOIDED. PLEASE DON’T RUSH LIKE WHAT WE DID, ESPECIALLY FOR DEFI PROJECTS.

Solana (SOL) has been an emerging subordinate successful NFTs and DeFi, contempt occasional setbacks similar this caller OptiFi debacle. | Source: SOL-USD connected TradingView.com Is It Still Solana Season?

Despite tiny web setbacks, Solana has inactive seen beardown strides this twelvemonth successful some DeFi and NFT marketplaces. Across NFTs, Solana-based projects similar DeGods and Okay Bears, among others, person helped spurred the web to a strangehold of the #2 spot (behind lone apical canine Ethereum). In the much applicable DeFi, Solana has mostly outperformed past twelvemonth to day metrics, according to DeFiLlama. This has been spurred by increasing products similar Solend, Serum and more. DeFiLlama has Solana listed arsenic the #6 concatenation successful bid of full worth locked (TVL), astatine conscionable implicit $1B worthy of funds.

Building and shipping products is seldom a tiny task, and this is nary exception. It hurts to spot ecosystem products, careless of chain, autumn to seemingly tiny errors, but it unluckily is simply a byproduct of this world. Our squad extends champion wishes to the OptiFi builders arsenic they determination forward.

Featured representation from Pexels, Charts from TradingView.com The writer of this contented is not associated oregon affiliated with immoderate of the parties mentioned successful this article. This is not fiscal advice.
View source