BTC $83,117.91 -0.37%
ETH $2,663.85 +0.25%
BNB $757.73 -1.84%
XRP $1.49 -0.71%
SOL $117.65 -1.95%
TRX $0.3341 +0.03%
DOGE $0.0931 -1.19%
ADA $0.2432 -2.23%
BCH $305.39 -3.53%
LINK $14.75 +6.03%
HYPE $87.34 -3.05%
AAVE $149.10 -0.67%
SUI $1.11 -9.17%
XLM $0.2258 +6.77%
ZEC $1,379.49 -11.86%
AAPL $337.78 -0.73%
AMZN $246.05 -1.15%
GOOGL $341.95 -0.10%
MSFT $507.41 -1.90%
META $712.04 -2.86%
NVDA $228.42 +1.95%
TSLA $356.73 -3.70%
SNDK $1,696.27 -2.25%
INTC $113.99 -4.44%
SPCX $145.87 -2.09%
MU $1,050.83 -1.49%
AMD $604.95 -2.07%
BTC $83,117.91 -0.37%
ETH $2,663.85 +0.25%
BNB $757.73 -1.84%
XRP $1.49 -0.71%
SOL $117.65 -1.95%
TRX $0.3341 +0.03%
DOGE $0.0931 -1.19%
ADA $0.2432 -2.23%
BCH $305.39 -3.53%
LINK $14.75 +6.03%
HYPE $87.34 -3.05%
AAVE $149.10 -0.67%
SUI $1.11 -9.17%
XLM $0.2258 +6.77%
ZEC $1,379.49 -11.86%
AAPL $337.78 -0.73%
AMZN $246.05 -1.15%
GOOGL $341.95 -0.10%
MSFT $507.41 -1.90%
META $712.04 -2.86%
NVDA $228.42 +1.95%
TSLA $356.73 -3.70%
SNDK $1,696.27 -2.25%
INTC $113.99 -4.44%
SPCX $145.87 -2.09%
MU $1,050.83 -1.49%
AMD $604.95 -2.07%

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.