跳到主要内容

JBChainlinkV3PriceFeed

Manages and normalizes price feeds.

Code

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

Addresses

Ethereum mainnet: 0x87Ee2F4b8eE8F4C79523f36fEcBb5f76B23e7d6F

Goerli testnet: 0x47C6072ccDb899C016ED07ae8aEb7b2cfFe3C82e

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