最近,我读到了复合金融的智能合约。在PriceOracleProxy.sol(https://etherscan.io/address/0xe7664229833AE4Abf4E269b8F23a86B657E2338D#code)中
第3863行显示:
地址常量usdcOracleKey = address(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);发布于 2019-08-29 18:50:06
这只是另一种写入0x0000000000000000000000000000000000000001的方式,通过相同的逻辑地址(0)是0x0000000000000000000000000000000000000000
https://stackoverflow.com/questions/57688908
复制相似问题