BTC $77,696.42 +0.59%
ETH $2,519.23 +0.10%
BNB $724.03 +0.07%
XRP $1.38 +1.53%
SOL $101.53 +0.23%
TRX $0.3392 -0.13%
DOGE $0.0843 -0.24%
ADA $0.2089 +0.61%
BCH $224.21 -0.45%
LINK $11.43 -0.40%
HYPE $79.81 +1.25%
AAVE $126.11 -0.45%
SUI $0.7249 +0.33%
XLM $0.1844 +2.41%
ZEC $1,135.81 -0.27%
AAPL $329.70 -0.93%
AMZN $254.34 -0.89%
GOOGL $336.26 -1.06%
MSFT $493.47 -0.31%
META $639.66 -1.23%
NVDA $214.57 -1.18%
TSLA $360.93 -1.50%
SNDK $1,560.57 -2.40%
INTC $98.39 -2.46%
SPCX $148.44 -1.11%
MU $936.83 -2.19%
AMD $497.79 -2.21%
BTC $77,696.42 +0.59%
ETH $2,519.23 +0.10%
BNB $724.03 +0.07%
XRP $1.38 +1.53%
SOL $101.53 +0.23%
TRX $0.3392 -0.13%
DOGE $0.0843 -0.24%
ADA $0.2089 +0.61%
BCH $224.21 -0.45%
LINK $11.43 -0.40%
HYPE $79.81 +1.25%
AAVE $126.11 -0.45%
SUI $0.7249 +0.33%
XLM $0.1844 +2.41%
ZEC $1,135.81 -0.27%
AAPL $329.70 -0.93%
AMZN $254.34 -0.89%
GOOGL $336.26 -1.06%
MSFT $493.47 -0.31%
META $639.66 -1.23%
NVDA $214.57 -1.18%
TSLA $360.93 -1.50%
SNDK $1,560.57 -2.40%
INTC $98.39 -2.46%
SPCX $148.44 -1.11%
MU $936.83 -2.19%
AMD $497.79 -2.21%

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.