Ethereum 地址(1)的实体是什么?
最近,我读到了复合金融的智能合约。 在PriceOracleProxy.sol()中 第3863行显示: 地址常数usdcOracleKey=地址(1); 我不明白这个地址(1)是什么意思Ethereum 地址(1)的实体是什么?,ethereum,solidity,Ethereum,Solidity,最近,我读到了复合金融的智能合约。 在PriceOracleProxy.sol()中 第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, w
/**
* @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);
这只是写入
0x0000000000000000000000000001
的另一种方式,
按相同的逻辑地址(0)为0x0000000000000000000000000000