DEX accidentally hits ‘kill-switch’ on mainnet, locking 660,000 USDC inside

Published at: Aug. 30, 2022

A decentralized cryptocurrency (DEX) options exchange cut its own life short after unwittingly executing a command that closed its mainnet program and made it irrecoverable.

OptiFi informed users that its platform had come to an unceremonious end after its development team tried to update its code on Aug. 29. According to the portfolio margining derivative DEX, the program incident also locked up some 660,000 USD Coin (USDC) on-chain.

OptiFi's program has been closed by mistakes we made.TL;DR1. We accidentally closed the OptiFi mainnet program and it's not recoverable2. 661k USDC is locked in the PDAs, luckily 95% of the fund is from our team member3. We will compensate for all users’ funds

— OptiFi (@OptifiLabs) August 29, 2022

OptiFi has pledged to compensate user funds lost by the error, while a large bulk of the locked-up USDC was reportedly vested by one of its team members. The company has also urged other developers working on the Solana blockchain to be wary of the ramifications of the ‘Solana program close’ command.

The platform unpacked the series of events that led to the sudden closure of its mainnet in a Medium post, which began with an attempt to deploy an update to its Solana program code on the mainnet.

Due to what the team described as bad network status, the deployment took longer than usual, and the command was canceled. However, a buffer address was created that received Solana (SOL) tokens that the team wanted to recover.

Related: Aave community proposes to temporarily suspend ETH lending before the Merge

In the past, the team had managed to recover SOL tokens from buffer accounts without using memory phrases by closing the program. The approach initially looked to have worked after executing the command as the team recovered the SOL, allowing an attempt to deploy the program a second time.

An error message was returned indicating that the program had been closed and could not be re-deployed unless a new program id was used. Discussions with a Solana core developer confirmed the team's fears that it would not be able to redeploy the program with its previous id.

“Here it turned out that we didn’t really understand the impact and risk of this closing program command line. ‘solana program close’ is actually for closing the program permanently and sending the SOL tokens in the buffer account used by the program back to the recipient wallet.”

The OptiFi team has called for the Solana development community to explore two-step confirmation when running the ‘Solana program close’ function and caution users of the results of using the command.

Tags
Related Posts
Altcoin Roundup: Holding Bitcoin? Here’s how to put it to work in DeFi
The long-awaited day finally came on Oct. 19 as the first Bitcoin (BTC) exchange-traded fund (ETF) went live on the New York Stock Exchange, thrusting the crypto asset into the limelight across mainstream news outlets and alternative media alike. Despite the fact that the ETF in question will hold no actual Bitcoin and is instead a futures-based instrument, investors and pundits across the ecosystem have largely hailed its launch as proof that Bitcoin has hit the big leagues and will soon surpass the coveted $100,000 price target. Many investors either don’t have access or will choose not to interact with …
Adoption / Oct. 22, 2021
Serum (SRM) hits a new all-time high as Solana adoption gains traction
Decentralized finance (DeFi) has reshaped the face of the cryptocurrency market over the past year, attracting the attention of both institutional investors and retail traders alike as the traditional financial sector continues to warm up to blockchain technology. While the majority of the largest DeFi protocols that have a significant amount of volume and value locked in the platform operate on the Ethereum network, high fees and slower transaction times have allowed projects like Serum, a decentralized exchange (DEX) that operates on the Solana blockchain, to rise in popularity and gain market share. Data from Cointelegraph Markets and TradingView shows …
Blockchain / April 26, 2021
Altcoins hit new highs after bulls kick Bitcoin price back above $50K
Cryptocurrency investors breathed a sigh of relief on April 26 as the sharp reversal in the price of Bitcoin (BTC) was accompanied by a marketwide recovery that has a majority of altcoins seeing green. It's likely that the breakout was aided by bullish assessments from JPMorgan Chase analysts and PayPal's announcement that demand for purchasing cryptocurrencies had surpassed expectations. Data from Cointelegraph Markets and TradingView shows that after bouncing off a low near $47,000, Bitcoin roared back above the $50,000 support level and climbed above $53,500, while Ether (ETH) reclaimed $2,500. Last week’s market pullback did little to slow the …
Blockchain / April 26, 2021
Dragonfly Research claims Ethereum is the 'MS-DOS' of blockchains
An experiment from Dragonfly Research that compared the performance of six blockchains by testing the capacity of Automated Market Makers on each has found Solana’s Orca DEX was the clear winner in trades per second. It managed 273.34 trades per second and created a new block every 590 milliseconds. Binance Smart Chain (BSC) wasn’t too far behind with 194.6 trades per second on PancakeSwap, followed by Polygon (MATIC), Avalanche (AVAX), Celo (CELO), and finally Ethereum (ETH). A blog post by researcher “GM” argued that while there was a rich ecosystem built on Ethereum Virtual Machine (EVM) compatible chains, the results …
Blockchain / March 3, 2022
Mango Markets exploiter said actions were ‘legal,’ but was it?
The $117 million Mango Markets exploiter has defended that their actions were ‘legal,’ but a lawyer suggests that they could still face consequences. Self-described digital art dealer Avraham Eisenberg, outed himself as the exploiter in a series of tweets on Oct. 15 claiming he and a team undertook a “highly profitable trading strategy” and that it was “legal open market actions, using the protocol as designed.” I believe all of our actions were legal open market actions, using the protocol as designed, even if the development team did not fully anticipate all the consequences of setting parameters the way they …
Defi / Oct. 18, 2022