BTC $84,544.69 -0.23%
ETH $2,665.84 -1.30%
BNB $766.53 -0.58%
XRP $1.48 -1.10%
SOL $118.35 +0.12%
TRX $0.3343 -0.21%
DOGE $0.0922 -1.95%
ADA $0.2418 -1.60%
BCH $308.75 -0.14%
LINK $13.73 -3.91%
HYPE $87.33 +0.28%
AAVE $180.64 +5.34%
SUI $1.12 -4.28%
XLM $0.2139 -2.28%
ZEC $1,288.63 -3.06%
AAPL $333.24 +0.83%
AMZN $251.22 +1.00%
GOOGL $342.99 +1.11%
MSFT $517.59 +0.52%
META $727.26 +0.19%
NVDA $234.00 +1.13%
TSLA $370.93 +4.34%
SNDK $1,716.47 -3.52%
INTC $119.09 -0.79%
SPCX $158.69 +6.65%
MU $1,069.50 -1.78%
AMD $632.60 +2.71%
BTC $84,544.69 -0.23%
ETH $2,665.84 -1.30%
BNB $766.53 -0.58%
XRP $1.48 -1.10%
SOL $118.35 +0.12%
TRX $0.3343 -0.21%
DOGE $0.0922 -1.95%
ADA $0.2418 -1.60%
BCH $308.75 -0.14%
LINK $13.73 -3.91%
HYPE $87.33 +0.28%
AAVE $180.64 +5.34%
SUI $1.12 -4.28%
XLM $0.2139 -2.28%
ZEC $1,288.63 -3.06%
AAPL $333.24 +0.83%
AMZN $251.22 +1.00%
GOOGL $342.99 +1.11%
MSFT $517.59 +0.52%
META $727.26 +0.19%
NVDA $234.00 +1.13%
TSLA $370.93 +4.34%
SNDK $1,716.47 -3.52%
INTC $119.09 -0.79%
SPCX $158.69 +6.65%
MU $1,069.50 -1.78%
AMD $632.60 +2.71%

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.