BTC $77,745.25 +0.72%
ETH $2,265.16 +1.17%
BNB $704.60 +0.79%
XRP $1.25 +0.70%
SOL $95.41 -0.11%
TRX $0.3101 -3.81%
DOGE $0.0757 +0.87%
ADA $0.1933 +0.36%
BCH $284.05 -2.11%
LINK $11.80 +3.82%
HYPE $87.55 -0.54%
AAVE $138.78 +5.89%
SUI $0.9051 +1.26%
XLM $0.1690 +0.39%
ZEC $1,242.78 -1.92%
AAPL $345.44 -0.03%
AMZN $241.54 +0.19%
GOOGL $283.31 +0.66%
MSFT $525.54 +0.20%
META $615.16 +0.13%
NVDA $204.95 +0.65%
TSLA $400.16 +0.10%
SNDK $1,163.33 +0.80%
INTC $65.77 +1.73%
SPCX $137.76 +0.61%
MU $901.18 -0.11%
AMD $512.11 +0.38%
BTC $77,745.25 +0.72%
ETH $2,265.16 +1.17%
BNB $704.60 +0.79%
XRP $1.25 +0.70%
SOL $95.41 -0.11%
TRX $0.3101 -3.81%
DOGE $0.0757 +0.87%
ADA $0.1933 +0.36%
BCH $284.05 -2.11%
LINK $11.80 +3.82%
HYPE $87.55 -0.54%
AAVE $138.78 +5.89%
SUI $0.9051 +1.26%
XLM $0.1690 +0.39%
ZEC $1,242.78 -1.92%
AAPL $345.44 -0.03%
AMZN $241.54 +0.19%
GOOGL $283.31 +0.66%
MSFT $525.54 +0.20%
META $615.16 +0.13%
NVDA $204.95 +0.65%
TSLA $400.16 +0.10%
SNDK $1,163.33 +0.80%
INTC $65.77 +1.73%
SPCX $137.76 +0.61%
MU $901.18 -0.11%
AMD $512.11 +0.38%

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.