BTC $81,564.81 -1.62%
ETH $2,395.44 -2.03%
BNB $740.51 +0.15%
XRP $1.32 -1.73%
SOL $104.12 -0.99%
TRX $0.3292 -0.28%
DOGE $0.0796 -0.54%
ADA $0.2162 -1.69%
BCH $285.64 +2.39%
LINK $12.16 -0.65%
HYPE $77.84 -1.29%
AAVE $148.84 -0.81%
SUI $0.9939 -0.93%
XLM $0.1781 -0.90%
ZEC $1,219.79 -5.11%
AAPL $346.85 +0.75%
AMZN $249.94 -3.81%
GOOGL $323.92 -2.19%
MSFT $516.15 -2.49%
META $644.78 -8.58%
NVDA $213.78 -1.92%
TSLA $375.88 +2.02%
SNDK $1,292.08 -3.08%
INTC $87.15 -2.32%
SPCX $148.13 -5.23%
MU $878.20 -1.08%
AMD $515.44 -3.46%
BTC $81,564.81 -1.62%
ETH $2,395.44 -2.03%
BNB $740.51 +0.15%
XRP $1.32 -1.73%
SOL $104.12 -0.99%
TRX $0.3292 -0.28%
DOGE $0.0796 -0.54%
ADA $0.2162 -1.69%
BCH $285.64 +2.39%
LINK $12.16 -0.65%
HYPE $77.84 -1.29%
AAVE $148.84 -0.81%
SUI $0.9939 -0.93%
XLM $0.1781 -0.90%
ZEC $1,219.79 -5.11%
AAPL $346.85 +0.75%
AMZN $249.94 -3.81%
GOOGL $323.92 -2.19%
MSFT $516.15 -2.49%
META $644.78 -8.58%
NVDA $213.78 -1.92%
TSLA $375.88 +2.02%
SNDK $1,292.08 -3.08%
INTC $87.15 -2.32%
SPCX $148.13 -5.23%
MU $878.20 -1.08%
AMD $515.44 -3.46%

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

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.