Skip to main content

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

It’s not easy being a dev. In recent days, a young Solana-based DEX, OptiFi, faced an unexpected downfall after a simple coding error. The platform released an announcement that their mainnet program is now unrecoverable yesterday. The move has resulted in an unexpected shutdown for the DEX.

Let’s review what we know from the announcement and how something like this could be avoided in the future.

OptiFi’s Unexpected Shutdown

OptiFi was an options and derivatives focused decentralized exchange (DEX) built on Solana that was less than a year in the making. The platform touted Solana’s low latency transactions, portfolio margining and partial liquidation mechanisms. The platform also brought the “first-ever delta-neutral options AMM vault” on Solana that provided yield to depositors. So how did we get here? According to OptiFi’s full debrief, a code update that was moving to Solana mainnet saw a user error that resulted in the use of a ‘solana program close’ command, locking roughly $660K worth of USDC in OptiFi-stored funds in their AMM vault.

OptiFi has assured that user funds will be compensated (while noting that a large majority of the funds are from an internal team member), and a proposal on the Solana github is currently active to address the matter. OptiFi notes in 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 player in NFTs and DeFi, despite occasional setbacks like this recent OptiFi debacle. | Source: SOL-USD on TradingView.com Is It Still Solana Season?

Despite small network setbacks, Solana has still seen strong strides this year in both DeFi and NFT marketplaces. Across NFTs, Solana-based projects like DeGods and Okay Bears, among others, have helped spurred the network to a strangehold of the #2 spot (behind only top dog Ethereum). In the more relevant DeFi, Solana has largely outperformed last year to date metrics, according to DeFiLlama. This has been spurred by growing products like Solend, Serum and more. DeFiLlama has Solana listed as the #6 chain in order of total value locked (TVL), at just over $1B worth of funds.

Building and shipping products is rarely a small task, and this is no exception. It hurts to see ecosystem products, regardless of chain, fall to seemingly small errors, but it unfortunately is a byproduct of this world. Our team extends best wishes to the OptiFi builders as they move forward.

Featured image from Pexels, Charts from TradingView.com The writer of this content is not associated or affiliated with any of the parties mentioned in this article. This is not financial advice.

from NewsBTC https://ift.tt/IgvfHaY
via IFTTT

Comments

Popular posts from this blog

DeFi isn’t dead, it just needs to fix these 3 critical problems

It’s been a rough year for DeFi, and it may not get any better until projects focus more on security, regulation and usability. The persistent challenges  decentralized finance  face have been well documented by a handful of analysts and the recent collapse of the Terra ecosystem re-enforced the fact that something is critically wrong with DeFi. I think DeFi today is completely broken for 99% of the population. The promise of a more transparent financial system has been overtaken by greed. UST/LUNA is just the latest in a string of bad developments: — Peter Yang (@petergyang) May 11, 2022 Let's take a look at what experts say DeFi needs to do in order to have another revival.  Improved usability To date, the promise of open and uncensored access to a global decentralized financial system has been largely hampered by the complicated interface, confusing multi-step staking processes and lack of clarity surrounding the yields on various tokens. What do you thi...

ENS DAO delegates offer perspective on DAO governance and decentralized identity

AlphaWallet CEO and Spruce co-founder talk about their roles as contributors to the Ethereum Name Service following the project's recent airdrop. Earlier this month, the Ethereum Name Service, or ENS, formed a decentralized autonomous organization, or DAO, for the ENS community.  Cointelegraph spoke to two ENS DAO delegates who applied for the opportunity to represent the community and stay involved in the decision making process: Victor Zhang, CEO of AlphaWallet, an open source Ethereum wallet, and Gregory Rocco, co-founder of Spruce, a decentralized ID and data toolkit for developers. Zhang spoke about his experience as an external contributor to ENS and an early supporter since 2018. Zhang initially sought to help ENS by offering Alpha Wallet as a user-friendly tool for  resolving .eth names and cryptocurrency wallet addresses. Essentially, if a user inputs an .eth name in the AlphaWallet, it will show the wallet address, and vice versa using reverse resolution. Alpha...

Institutional demand for crypto isn’t subsiding, but impact will be gradual

As another $2-trillion stimulus package looms in the U.S., institutions will continue to look at BTC as a hedge against inflation. For example, just last week, when the currency was hovering around the $30,000 threshold, a whole host of pundits was warning investors to brace for impact, suggesting that the premier crypto asset was on the verge of a correction and could once again dip to around the $20,000 region. However, in just one day, Bitcoin was once again playing with the bulls, retesting the $38,500 limit, only to witness a selloff and eventually settle around the $33,500 region. While for most crypto veterans that might have been another day at the office, others branded the upsurge as “Elon’s Candle,” which relates to Elon Musk, the CEO of Tesla, who included “Bitcoin” in his Twitter bio as well as sent out the following cryptic message “in retrospect, it was inevitable” to his 40 million-odd followers online. Regardless of the cause, has the recent price volatility sca...