Agent documentation index: llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Skip to main content

IFeeCalculator

Interface for calculating block-latency feed fees.

Sourced from IFeeCalculator.sol on GitHub.

Functions

calculateFeeByIds

Calculates a fee that needs to be paid to fetch feeds' data, addressed by feed id.

function calculateFeeByIds(
bytes21[] _feedIds
) external view returns (
uint256 _fee
);

Parameters

  • _feedIds: List of feed ids.

calculateFeeByIndices

Calculates a fee that needs to be paid to fetch feeds' data, addressed by index. The index is the position of the feed id in the FastUpdatesConfiguration contract — use this overload together with IFastUpdatesConfiguration.getFeedIndex(bytes21) when working with FastUpdates.

function calculateFeeByIndices(
uint256[] _indices
) external view returns (
uint256 _fee
);

Parameters

  • _indices: Indices of the feeds, corresponding to feed ids in the FastUpdatesConfiguration contract.