Skip to main content

IJBPrices

Code​

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

Definition​

interface IJBPrices {
event AddFeed(uint256 indexed currency, uint256 indexed base, IJBPriceFeed feed);

function feedFor(uint256 _currency, uint256 _base) external view returns (IJBPriceFeed);

function priceFor(
uint256 _currency,
uint256 _base,
uint256 _decimals
) external view returns (uint256);

function addFeedFor(
uint256 _currency,
uint256 _base,
IJBPriceFeed _priceFeed
) external;
}