Contract Bug Disables Icon (ICX) Token Transfers
According to Reddit poster, the ICON smart contract shows a bug that it is the same one found in another cryptocurrency project called Yggdrash. The bug is reportedly a flaw in the modifier code as seen in the image below.
The error lies in the “onlyFromWallet” modifier, which controls the enable/disable ICX token transfer function. Instead of “!=,” it should be “==.” By using the former, the smart contract interprets the code as saying the wallet address is not equal to a specified address when the reverse is the case. So, anyone apart from the contract creator can enable or disable token transfers, which of course it is a huge problem. According to the original forum poster on Reddit, someone has been spamming the contract by disabling ICX transfers.
Binance, which recently announced its support for the ICX mainnet token swaps, has reportedly disabled the ICX wallet. Another edit to the Redditors post shows that the platform has resumed ICON token transfer operations. However, at the time of writing this report, the modifier error is still in the smart contract code.
The Way Forward For ICON
The error seems to be a simple one to fix, it is yet another setback for the ICON project that has seen delays in 2018. Despite launching its mainnet in January, token swaps were delayed for some months, leaving investors apprehensive.
ICON co-founder, Min Kim sent a tweet acknowledging the problem, which he called a “minor bug.” According to him, a temporary fix had been initiated as a stop-gap. Kim also said that the development team is currently working on a more long-term solution.
Minor bug. Quick solution initiated. Permanent solution already in the works and expected to be done today. Thank you for your patience and understanding.
— Min (@minhokim) June 16, 2018
Several people are still reporting that the problem keeps. A look at the ICON smart contract address shows that numerous transactions are still being canceled due to the bug. The consensus of social media is that this latest problem is a damning indictment of the ICON project. According to them, an $800 million project should do their due diligence by properly auditing smart contract codes before launching them.