Investing

Solana-Based DeFi Protocol Loses $661k After Shutting Down By Mistake

OptiFi, a Solana-powered decentralized exchange, lost $661,000 after accidentally shutting down its mainnet program. While the funds are not recoverable, OptiFi said it will “compensate all users’ funds” and make sure something similar does not happen again.

OptiFi Promises to Compensate All Affected Users

OptiFi, a derivatives decentralized exchange (DEX) powered by Solana and Serum, announced it has lost $661,000 in USD Coin (USDC) after shutting down its mainnet program by mistake. OptiFi was unable to recover the funds as all 661,000 USDC remained locked in the Program Derived Addresses (PDAs), but the exchange promised to compensate all affected users.

“On 29th August around 06:00 UTC, we had an update to our @solana program code, and our deployer tried to upgrade the OptiFi program on Solana mainnet. However the deployer accidentally used the solana close program command, resulting in our OptiFi program being shut down.”

OptiFi wrote in a tweet.

According to Pyth oracle, OptiFi will return the funds and “settle all user positions manually” on September 2 at 8 AM UTC. The protocol’s team said all of the deposits will be based on Solscan and directed the affected users to its Discord server for further assistance.

Explaining how it all happened, OptiFi said one of its developers used the ‘anchor deploy’ command to upgrade its program. However, the process took much longer than expected, likely due to network congestion.

The developer then aborted the deployment before receiving the response message, but the move had created an unused buffer account containing 17.2023808 SOL. After that, the deployer attempted to shut down the buffer account and retrieve its balance but they unintentionally closed the mainnet program instead of the buffer account.

2022 Keeps Getting Worse for Solana Protocols

OptiFi’s accident marks the latest in a series of troubles faced by Solana and Solana-based protocols this year. A month ago, Solana-powered protocol Nirvana Finance suffered a $3.5 million exploit as a result of a flash loan attack.

The layer-1 blockchain saw several network halts this year, pushing its price further down amid an already-bad crypto market downturn. The cryptocurrency is down more than 80% year-to-date.

To make things worse, Solana has fallen victim to a major hack earlier this month. The attack affected more than 8,000 wallets and drained roughly $8 million, though the Solana team claimed no hardware wallets were impacted.

This article originally appeared on The Tokenist

Sponsored: Find a Qualified Financial Advisor

Finding a qualified financial advisor doesn’t have to be hard. SmartAsset’s free tool matches you with up to 3 fiduciary financial advisors in your area in 5 minutes. Each advisor has been vetted by SmartAsset and is held to a fiduciary standard to act in your best interests. If you’re ready to be matched with local advisors that can help you achieve your financial goals, get started now.