IFeedRegistry
Functions
batchRegisterFeedMappings
Registers mappings of ERC20 token, and denomination (ETH, BTC, or USD) to feed
function batchRegisterFeedMappings(FeedMappingArgs[] memory args) external;
Parameters
Name | Type | Description |
---|---|---|
args | FeedMappingArgs[] | 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
Name | Type | Description |
---|---|---|
token | address | The exchange token (ERC20 token) |
denomination | address | The Chainlink token denomination to quote against (ETH, BTC, or USD) |
Returns
Name | Type | Description |
---|---|---|
<none> | address | The feed address |
Events
FeedMappingsRegistered
Emitted when new price feed mappings are registered
event FeedMappingsRegistered(FeedMappingArgs[] args);
Parameters
Name | Type | Description |
---|---|---|
args | FeedMappingArgs[] | The arguments for the new mappings |
Structs
FeedMappingArgs
struct FeedMappingArgs {
address token;
address denomination;
address feed;
}