BTC $82,971.38 +0.44%
ETH $2,507.19 +0.58%
BNB $747.80 +0.37%
XRP $1.40 -0.47%
SOL $109.91 +0.13%
TRX $0.3303 -0.12%
DOGE $0.0858 -0.37%
ADA $0.2486 -2.39%
BCH $278.20 -0.09%
LINK $13.00 +1.26%
HYPE $85.62 +1.48%
AAVE $168.86 +0.01%
SUI $1.11 +2.08%
XLM $0.1960 +0.02%
ZEC $1,229.83 +1.12%
AAPL $336.42 +0.04%
AMZN $262.58 +0.01%
GOOGL $351.38 -0.14%
MSFT $534.94 -0.07%
META $719.09 +0.17%
NVDA $230.34 +0.00%
TSLA $382.34 -0.16%
SNDK $1,597.10 +0.48%
INTC $105.10 +0.19%
SPCX $163.88 +0.54%
MU $1,035.64 +0.23%
AMD $609.79 +0.21%
BTC $82,971.38 +0.44%
ETH $2,507.19 +0.58%
BNB $747.80 +0.37%
XRP $1.40 -0.47%
SOL $109.91 +0.13%
TRX $0.3303 -0.12%
DOGE $0.0858 -0.37%
ADA $0.2486 -2.39%
BCH $278.20 -0.09%
LINK $13.00 +1.26%
HYPE $85.62 +1.48%
AAVE $168.86 +0.01%
SUI $1.11 +2.08%
XLM $0.1960 +0.02%
ZEC $1,229.83 +1.12%
AAPL $336.42 +0.04%
AMZN $262.58 +0.01%
GOOGL $351.38 -0.14%
MSFT $534.94 -0.07%
META $719.09 +0.17%
NVDA $230.34 +0.00%
TSLA $382.34 -0.16%
SNDK $1,597.10 +0.48%
INTC $105.10 +0.19%
SPCX $163.88 +0.54%
MU $1,035.64 +0.23%
AMD $609.79 +0.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.