Skip to main content
fix formatting code
Source Link
Antonio Carito
  • 2.5k
  • 3
  • 10
  • 24

Try this, I think it might work.

function getVersion() public view returns(uint256) { AggregatorV3Interface pricefeed =AggregatorV3Interface( 0x8A753747A1Fa494EC906cE90E9f37563A8AF630e); (,int256 answer,,,) = pricefeed.latestRoundData(); return uint256(answer * 10000000000); }

function getVersion() public view returns(uint256) {
        AggregatorV3Interface pricefeed =AggregatorV3Interface( 0x8A753747A1Fa494EC906cE90E9f37563A8AF630e);
        (,int256 answer,,,) = pricefeed.latestRoundData();
        return uint256(answer * 10000000000);
}

Try this, I think it might work.

function getVersion() public view returns(uint256) { AggregatorV3Interface pricefeed =AggregatorV3Interface( 0x8A753747A1Fa494EC906cE90E9f37563A8AF630e); (,int256 answer,,,) = pricefeed.latestRoundData(); return uint256(answer * 10000000000); }

Try this, I think it might work.

function getVersion() public view returns(uint256) {
        AggregatorV3Interface pricefeed =AggregatorV3Interface( 0x8A753747A1Fa494EC906cE90E9f37563A8AF630e);
        (,int256 answer,,,) = pricefeed.latestRoundData();
        return uint256(answer * 10000000000);
}
Source Link

Try this, I think it might work.

function getVersion() public view returns(uint256) { AggregatorV3Interface pricefeed =AggregatorV3Interface( 0x8A753747A1Fa494EC906cE90E9f37563A8AF630e); (,int256 answer,,,) = pricefeed.latestRoundData(); return uint256(answer * 10000000000); }