Ethereum (ETH) layer2 (L2) web zkSync said it recovered “an elegant solution” to unfreeze 921 ETH — worthy $1.7 cardinal — belonging to Gemholic that was stuck successful a astute contract.
Gemholic had had issues transferring the funds retired of zkSync’s Era mainnet and aboriginal requested help from the layer2 network.
zkSync identifies the problem
According to zkSync, Gemholic encountered issues with its astute declaration deployment connected the Era mainnet due to the fact that of its “usage of the .transfer() function.”
zkSync noted that this relation uses a hardcoded fixed state magnitude of 2300, which is not guaranteed to enactment connected Ethereum due to the fact that the state depletion could beryllium much oregon changed successful the future.
The L2 solution said it had warned of this contented arsenic acold backmost arsenic 2019.
zkSync further explained that its Era mainnet is not an equivalent of Ethereum Virtual Machine (EVM). It noted that:
“This is simply a deliberate plan choice. Era has a diverging, dynamic state metering, which allows immoderate transaction types to beryllium 10x to 1000x cheaper than connected immoderate different EVM rollup!”
The solution
zkSync said it identified “an elegant solution which tin lick a broader people of gas-related problems. It volition necessitate minimal changes successful the state metering of the protocol but volition let for afloat betterment of the funds.”
The L2 web said it checked the root codification of respective fashionable crypto projects and recovered that they complied with its erstwhile warning.
Meanwhile, the scaling solution pointed retired that these issues could person been prevented if Gemholic archetypal deployed the declaration connected a testnet. zkSync said:
“Unfortunately, the contracts were deployed connected Era mainnet without having been tried connected the testnet oregon section node, which would person instantly caught the problem.”
zkSync has enjoyed accelerated adoption since its motorboat successful March. The full worth of assets locked connected the web has risen to 4th among different L2 networks, according to L2beats data. The task said its maturation is “the astir immoderate scaling solution has ever undergone successful specified a abbreviated period.”
The station zkSync helps task retrieve stuck $1.7M from astute contract appeared archetypal connected CryptoSlate.