• zkSync recently helped project Gemholic recover stuck $1.7M from a smart contract on its Era mainnet
• The issue was caused by the usage of the .transfer() function, which could be prevented if Gemholic first deployed the contract on a testnet
• zkSync has enjoyed rapid growth since launch and is ranked fourth in terms of total value locked among other L2 networks
zkSync Helps Project Recover Stuck Funds
zkSync recently helped project Gemholic recover stuck $1.7M from a smart contract on its Era mainnet. The issue was caused by the usage of the .transfer() function, which could have been prevented if Gemholic first deployed the contract on a testnet.
Era Gas Metering
The Ethereum (ETH) layer 2 (L2) network pointed out that this function uses a hardcoded fixed gas amount of 2300, which is not guaranteed to work on Ethereum because the gas consumption could be more or changed in the future. Additionally, zkSync noted that its Era mainnet is not an equivalent of Ethereum Virtual Machine (EVM). It said that it has a diverging, dynamic gas metering, which allows some transaction types to be 10x to 1000x cheaper than any other EVM rollup!
Solution Found
zkSync identified „an elegant solution which can solve a broader class of gas-related problems“ for Gemholic’s funds and will require minimal changes in the gas metering of their protocol but will allow for full recovery of the funds. It also checked several popular crypto projects‘ source codes and found that they complied with its previous warning about this issue.
Growth for zkSync
zkSync has enjoyed rapid adoption since its launch in March. The total value of assets locked on the network has risen to fourth among other L2 networks, according to L2beats data. The project said its growth is „the most any scaling solution has ever undergone in such a short period.“
Conclusion
In conclusion, zkSynch helped project Gemholic recover stuck $1.7M from their smart contract through an elegant solution involving minimal changes in their protocol’s gas metering. This highlighted how important it is to deploy contracts properly so as to avoid issues like these occurring in future. Furthermore, it demonstrated how rapidly successful zkSynch has been since launch and how well its scaling solutions have worked compared to others