Solana-based (SOL) decentralized speech OptiFi mistakenly closed its programme connected August 29, losing $661,000 of its funds permanently.
OptiFi's programme has been closed by mistakes we made.
TL;DR
1. We accidentally closed the OptiFi mainnet programme and it's not recoverable
2. 661k USDC is locked successful the PDAs, luckily 95% of the money is from our squad member
3. We volition compensate for each users’ funds
— OptiFi (@OptifiLabs) August 29, 2022
According to an announcement by the DEX, the mistake occurred astir 06:00 UTC erstwhile its deployer tried to upgrade its programme connected the Solana mainnet.
How OptiFi closed its program
The squad explained that the deployer was trying to upgrade the OptiFi programme utilizing the anchor deploy. However, the process took longer than usual, astir apt due to the fact that of web congestion.
The deployer aborted this anchor deploy upgrade earlier getting a response. Meanwhile, the process had created an unused buffer relationship with a equilibrium of 17.2023808 SOL.
So, the deployer attempted to adjacent this buffer relationship to regain its equilibrium earlier proceeding with the mainnet upgrade.
However, the deployer unknowingly permanently closed the main programme alternatively of closing the buffer account.
According to the team, it utilized the “Solana adjacent program” without afloat knowing the interaction of the action.
The squad said the effect from a Solana halfway developer “overwhelmingly” showed that it would beryllium incapable to re-deploy its programme to the erstwhile programme id.
$661,000 lost
The OptiFi squad revealed that it has permanently mislaid entree to the $661,000 locked successful the contract.
OptiFi stated that 95% of this money is from its squad member.
However, “ALL the users’ borderline accounts USDC tokens, enactment tokens, and AMMs USDC vaults” which are bound to the programme person been lost.
It continued that it plans to compensate for each the mislaid users’ funds portion adding much stringent measures to debar a repetition occurrence successful the future.
OptiFi squad besides advised Solana to adhd descriptions to the Solana docs to pass astir the effect of closing a programme and recommended adding a two-step confirmation for moving the “solana programme close” command.
The station Solana-based DEX OptiFi loses $661,000 permanently aft mistakenly closing program appeared archetypal connected CryptoSlate.