IPriceRepository
Functions
setTokenPriceAt
Set the price of token denominated in denomination at the given timestamp
function setTokenPriceAt(address token, address denomination, uint256 timestamp, UD60x18 price) external;
Parameters
| Name | Type | Description |
|---|---|---|
token | address | The exchange token (ERC20 token) |
denomination | address | The Chainlink token denomination to quote against (ETH, BTC, or USD) |
timestamp | uint256 | Reference timestamp (in seconds) |
price | UD60x18 | The amount of token denominated in denomination (18 decimals) |
Events
PriceUpdate
event PriceUpdate(address indexed token, address indexed denomination, uint256 timestamp, UD60x18 price);