Scan to download
BTC $60,593.97 -3.11%
ETH $1,557.32 -6.83%
BNB $574.15 -3.05%
XRP $1.08 -4.43%
SOL $61.90 -6.64%
TRX $0.3189 -2.18%
DOGE $0.0804 -4.91%
ADA $0.1549 -5.34%
BCH $220.06 -4.53%
LINK $7.27 -4.19%
HYPE $58.86 -3.44%
AAVE $60.66 -9.99%
SUI $0.6945 -3.11%
XLM $0.1953 +1.94%
ZEC $366.76 +7.64%
BTC $60,593.97 -3.11%
ETH $1,557.32 -6.83%
BNB $574.15 -3.05%
XRP $1.08 -4.43%
SOL $61.90 -6.64%
TRX $0.3189 -2.18%
DOGE $0.0804 -4.91%
ADA $0.1549 -5.34%
BCH $220.06 -4.53%
LINK $7.27 -4.19%
HYPE $58.86 -3.44%
AAVE $60.66 -9.99%
SUI $0.6945 -3.11%
XLM $0.1953 +1.94%
ZEC $366.76 +7.64%

Slow Fog Cosine: ERC404 is not yet a mature standard, and attention should be paid to the new risks brought by the new mechanism

2024-02-09 10:36:55
Collection

ChainCatcher message, Slow Mist founder Yu Xian expressed his views on the ERC404 code on social media.

Yu Xian stated: "Assuming this is a coin, with FT on one side and NFT on the other, when you trade FT, the rarity of the other side (NFT) is indiscriminately given away _owned[from].pop(). Alternatively, if the number of FT is slightly less than an integer, it will also burn an NFT. For example, if your FT is 3, corresponding to 3 NFTs, due to FT… so ERC404 also introduced a whitelist mechanism to allow some pairs/routers to not have to frequently deal with NFTs, just handle FT transactions, as the accounts are all in the contract and cannot disappear. Finally, there is the possibility of a disappearing owner; if revokeOwnership is executed, the subsequent whitelist mechanism will no longer be updated. The new mechanism will definitely bring new security risks. If a protocol does not handle the dual-sided mechanism of ERC404 properly, it could lead to unexpected consequences.

It is also important to note that ERC404 is not yet a mature standard. I casually looked at the contract codes of several projects, and there are some modifications, so this is also a possible risk, with security risks arising from differences."

app_icon
ChainCatcher Building the Web3 world with innovations.