什么是固体中的地址(1)?

  • 本文关键字:地址 ethereum solidity
  • 更新时间 :
  • 英文 :


最近,我读了复合金融的智能合约。 In PriceOracleProxy.sol(https://etherscan.io/address/0xe7664229833AE4Abf4E269b8F23a86B657E2338D#code(

第 3863 行显示:

地址常量 usdcOracleKey = 地址(1(; 我对这个地址(1(感到困惑,它是什么意思。

/**
* @notice address of the cUSDC contract, which we hand pick a key for
*/
address public cUsdcAddress;
/**
* @notice address of the USDC contract, which we hand pick a key for
*/
address constant usdcOracleKey = address(1);

last used:
return v1PriceOracle.assetPrices(usdcOracleKey);

这只是另一种写0x0000000000000000000000000000000000000001的方式, 通过相同的逻辑地址(0(0x0000000000000000000000000000000000000000

最新更新