Skip to main content

JBChainlinkV3PriceFeed

Manages and normalizes price feeds.

Code

https://github.com/jbx-protocol/juice-contracts-v2/blob/main/contracts/JBChainlinkV3PriceFeed.sol

Addresses

Ethereum mainnet: 0x729eE70bfdF65bEc7A530Fd49F644d07D0b2c087

Ethereum rinkeby: 0x59F6aEE20d746708539B4f2E75CA50F9dDCFdC70

Interfaces

NameDescription
IJBPriceFeedGeneral interface for the methods in this contract that interact with the blockchain's state according to the protocol's rules.

Constructor

/**
@param _feed The feed to report prices from.
*/
constructor(AggregatorV3Interface _feed) {
feed = _feed;
}
  • _feed is the feed to report prices from.

Properties

FunctionDefinition
feed

Returns

Read

FunctionDefinition
currentPrice

Params

  • uint256 _decimals

Returns

  • uint256 price