最近读了复合金融的智能合约。 在 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
关于ethereum - Solidity 中的地址(1) 是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57688908/