CRYPTO NEWS

Cleaning up crypto: How much enforcement is too much?

Chainlink AggregatorV3Interface: how would we know that a parameter can be passed into the AggregatorV3Interface constructor?

AggregatorV3Interface priceFeed = AggregatorV3Interface(0xD4a33860578De61DBAbDc8BFdb98FD742fA7028e); When I look into the code of AggregatorV3Interface.sol (https://github.com/smartcontractkit/chainlink/blob/develop/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol) // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface AggregatorV3Interface { function decimals() external view returns (uint8); function description() external view returns (string memory); function version() external view returns (uint256); function getRoundData(uint80 _roundId) external view returns ( uint80 roundId, int256 answer, uint256 startedAt, uint256::Listen

AggregatorV3Interface priceFeed = AggregatorV3Interface(0xD4a33860578De61DBAbDc8BFdb98FD742fA7028e);

When I look into the code of AggregatorV3Interface.sol (https://github.com/smartcontractkit/chainlink/blob/develop/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol)

// SPDX-License-Identifier: MIT pragma solidity ^0.8.0;      interface AggregatorV3Interface {           function decimals() external view returns (uint8);            function description() external view returns (string memory);            function version() external view returns (uint256);            function getRoundData(uint80 _roundId)         external         view         returns (           uint80 roundId,           int256 answer,           uint256 startedAt,           uint256 updatedAt,           uint80 answeredInRound         );            function latestRoundData()         external         view         returns (           uint80 roundId,           int256 answer,           uint256 startedAt,           uint256 updatedAt,           uint80 answeredInRound         ); }   

I don’t see / understand where in the definition of the code that it can accept contract.

Where can we verify/check this?

Cleaning up crypto: How much enforcement is too much?

Shopping cart
There are no products in the cart!
Continue shopping
0