currentPrice
Contract: JBChainlinkV3PriceFeed
Interface: IJBPriceFeed
- Step by step
- Code
- Bug bounty
Gets the current price from the feed, normalized to the specified number of decimals.
Definition
function currentPrice(uint256 _decimals) external view override returns (uint256) { ... }
- Arguments:
_decimals
is the number of decimals the returned fixed point price should include.
- The view function can be accessed externally by anyone.
- The view function does not alter state on the blockchain.
- The function overrides a function definition from the
IJBPriceFeed
interface. - The function returns the current price of the feed, as a fixed point number with the specified number of decimals.