News News Report Technology
April 07, 2023

Funds from GemholicECO’s 921ETH Token Sale Stuck in zkSync’s Smart Contract Due to Using Transfer Function

In Brief

GemholicECO used the transfer function when deploying their token contract on zkSync Era.

The transfer function works on Ethereum and other EVM chains, but not on zkSync.

zkSync has given the community an update to clarify the issue.

GemholicECO, a multi-product platform, has raised 921 ETH, worth approximately $1.7 million, in a token sale. However, the funds have been stuck in the smart contract due to an issue with the usage of the .transfer() function, which works on Ethereum and other EVM chains, but not on zkSync.

zkSync Era is a Layer-2 protocol that scales Ethereum with Zero Knowledge technology. The Alpha version of the protocol opened on the mainnet on Mar 24.

To clarify the issue, zkSync tweeted an update on Thursday, giving its community context. According to zkSync, GemholicECO deployed its contract on the mainnet without trying it on the testnet or local node, which would have caught the problem. 

“Any smart contract that uses transfer() or send() is taking a hard dependency on gas costs, because this functions forward a hardcoded amount of 2300 gas,” zkSync explained. While the function uses a hardcoded gas amount, gas costs can change, causing the smart contract to break.

Developers were warned about using the transfer function three years ago, but it seems that GemholicECO did not heed the advice. Anticipating that the problem would arise, zkSync added a warning about using the transfer function directly into the compiler.

Developers of the protocol made a deliberate design choice of making zkSync not EVM equivalent. zkSync claims that Its dynamic gas metering allows some transactions to be up to 1,000 times cheaper than on any other EVM rollup.

Furthermore, zkSync previously checked the source code of dozens of popular crypto projects and didn’t find a single one to be not following the three-year-old warning of not using .transfer(), therefore leading it to conclude that the developer community had resolved this issue.

To prevent this issue from resurfacing in the future, zkSync has identified a solution that can solve a broader class of gas-related problems, unfreeze the smart contract and fully recover GemholicECO’s funds. The protocol will publish more details soon.

Read more:

Disclaimer

In line with the Trust Project guidelines, please note that the information provided on this page is not intended to be and should not be interpreted as legal, tax, investment, financial, or any other form of advice. It is important to only invest what you can afford to lose and to seek independent financial advice if you have any doubts. For further information, we suggest referring to the terms and conditions as well as the help and support pages provided by the issuer or advertiser. MetaversePost is committed to accurate, unbiased reporting, but market conditions are subject to change without notice.

About The Author

Cindy is a journalist at Metaverse Post, covering topics related to web3, NFT, metaverse and AI, with a focus on interviews with Web3 industry players. She has spoken to over 30 C-level execs and counting, bringing their valuable insights to readers. Originally from Singapore, Cindy is now based in Tbilisi, Georgia. She holds a Bachelor's degree in Communications & Media Studies from the University of South Australia and has a decade of experience in journalism and writing. Get in touch with her via [email protected] with press pitches, announcements and interview opportunities.

More articles
Cindy Tan
Cindy Tan

Cindy is a journalist at Metaverse Post, covering topics related to web3, NFT, metaverse and AI, with a focus on interviews with Web3 industry players. She has spoken to over 30 C-level execs and counting, bringing their valuable insights to readers. Originally from Singapore, Cindy is now based in Tbilisi, Georgia. She holds a Bachelor's degree in Communications & Media Studies from the University of South Australia and has a decade of experience in journalism and writing. Get in touch with her via [email protected] with press pitches, announcements and interview opportunities.

The DOGE Frenzy: Analysing Dogecoin’s (DOGE) Recent Surge in Value

The cryptocurrency industry is rapidly expanding, and meme coins are preparing for a significant upswing. Dogecoin (DOGE), ...

Know More

The Evolution of AI-Generated Content in the Metaverse

The emergence of generative AI content is one of the most fascinating developments inside the virtual environment ...

Know More
Join Our Innovative Tech Community
Read More
Read more
Arbitrum Foundation Proposes Expansion Program Adjustment To Enable Deployment Of New Orbit Chains Across Networks Beyond Ethereum
News Report Technology
Arbitrum Foundation Proposes Expansion Program Adjustment To Enable Deployment Of New Orbit Chains Across Networks Beyond Ethereum
April 18, 2024
Blast’s DEX Thruster Finance Raises $7.5M In Funding From Pantera Capital And OKX Ventures To Enhance On-Chain Experience For Users
Business News Report Technology
Blast’s DEX Thruster Finance Raises $7.5M In Funding From Pantera Capital And OKX Ventures To Enhance On-Chain Experience For Users
April 18, 2024
State of DePIN 2024 Report Reveals Key Insights From Decentralized Physical Infrastructure Networks Landscape
Markets News Report
State of DePIN 2024 Report Reveals Key Insights From Decentralized Physical Infrastructure Networks Landscape
April 18, 2024
Solana-Based Derivatives Protocol Zeta Markets Unveils Tokenomics, Allocates 10% Of Token Supply For Airdrops
Markets News Report Technology
Solana-Based Derivatives Protocol Zeta Markets Unveils Tokenomics, Allocates 10% Of Token Supply For Airdrops
April 18, 2024