BTC $81,625.25 -0.76%
ETH $2,401.23 -1.07%
BNB $743.69 +0.96%
XRP $1.32 -1.17%
SOL $104.45 +0.07%
TRX $0.3292 -0.43%
DOGE $0.0798 +0.20%
ADA $0.2162 -0.77%
BCH $285.04 +2.92%
LINK $12.20 +0.26%
HYPE $78.28 -0.49%
AAVE $149.69 +0.22%
SUI $0.9974 +0.45%
XLM $0.1780 -0.63%
ZEC $1,226.85 -3.20%
AAPL $345.94 +0.53%
AMZN $250.28 -3.22%
GOOGL $324.55 -1.93%
MSFT $516.88 -2.30%
META $647.02 -8.06%
NVDA $214.39 -1.58%
TSLA $377.31 +2.35%
SNDK $1,299.05 -2.23%
INTC $87.54 -1.82%
SPCX $148.19 -4.80%
MU $880.64 -0.48%
AMD $516.85 -3.24%
BTC $81,625.25 -0.76%
ETH $2,401.23 -1.07%
BNB $743.69 +0.96%
XRP $1.32 -1.17%
SOL $104.45 +0.07%
TRX $0.3292 -0.43%
DOGE $0.0798 +0.20%
ADA $0.2162 -0.77%
BCH $285.04 +2.92%
LINK $12.20 +0.26%
HYPE $78.28 -0.49%
AAVE $149.69 +0.22%
SUI $0.9974 +0.45%
XLM $0.1780 -0.63%
ZEC $1,226.85 -3.20%
AAPL $345.94 +0.53%
AMZN $250.28 -3.22%
GOOGL $324.55 -1.93%
MSFT $516.88 -2.30%
META $647.02 -8.06%
NVDA $214.39 -1.58%
TSLA $377.31 +2.35%
SNDK $1,299.05 -2.23%
INTC $87.54 -1.82%
SPCX $148.19 -4.80%
MU $880.64 -0.48%
AMD $516.85 -3.24%

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.