IFeedRegistry

Git Source

Functions

batchRegisterFeedMappings

Registers mappings of ERC20 token, and denomination (ETH, BTC, or USD) to feed

function batchRegisterFeedMappings(FeedMappingArgs[] memory args) external;

Parameters

NameTypeDescription
argsFeedMappingArgs[]The arguments for the new mappings

feed

Returns the feed for token and denomination

function feed(address token, address denomination) external view returns (address);

Parameters

NameTypeDescription
tokenaddressThe exchange token (ERC20 token)
denominationaddressThe Chainlink token denomination to quote against (ETH, BTC, or USD)

Returns

NameTypeDescription
<none>addressThe feed address

Events

FeedMappingsRegistered

Emitted when new price feed mappings are registered

event FeedMappingsRegistered(FeedMappingArgs[] args);

Parameters

NameTypeDescription
argsFeedMappingArgs[]The arguments for the new mappings

Structs

FeedMappingArgs

struct FeedMappingArgs {
    address token;
    address denomination;
    address feed;
}