BTC $85,924.82 +3.13%
ETH $2,726.64 +1.68%
BNB $776.29 +1.59%
XRP $1.52 +2.52%
SOL $121.18 +2.95%
TRX $0.3341 -0.94%
DOGE $0.0956 +1.15%
ADA $0.2535 +2.23%
BCH $313.83 +3.03%
LINK $14.32 +0.34%
HYPE $89.77 +1.17%
AAVE $185.07 +12.31%
SUI $1.17 +2.44%
XLM $0.2221 -1.03%
ZEC $1,378.28 -2.00%
AAPL $331.12 -0.44%
AMZN $249.54 -0.02%
GOOGL $340.03 -3.19%
MSFT $515.79 +0.89%
META $728.28 +0.55%
NVDA $231.96 +0.71%
TSLA $356.22 -0.14%
SNDK $1,787.88 +0.89%
INTC $121.05 -0.71%
SPCX $149.44 -1.22%
MU $1,093.10 +2.15%
AMD $621.39 0.00%
BTC $85,924.82 +3.13%
ETH $2,726.64 +1.68%
BNB $776.29 +1.59%
XRP $1.52 +2.52%
SOL $121.18 +2.95%
TRX $0.3341 -0.94%
DOGE $0.0956 +1.15%
ADA $0.2535 +2.23%
BCH $313.83 +3.03%
LINK $14.32 +0.34%
HYPE $89.77 +1.17%
AAVE $185.07 +12.31%
SUI $1.17 +2.44%
XLM $0.2221 -1.03%
ZEC $1,378.28 -2.00%
AAPL $331.12 -0.44%
AMZN $249.54 -0.02%
GOOGL $340.03 -3.19%
MSFT $515.79 +0.89%
META $728.28 +0.55%
NVDA $231.96 +0.71%
TSLA $356.22 -0.14%
SNDK $1,787.88 +0.89%
INTC $121.05 -0.71%
SPCX $149.44 -1.22%
MU $1,093.10 +2.15%
AMD $621.39 0.00%

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.